diff --git a/sdk/resourcemanager/automation/armautomation/CHANGELOG.md b/sdk/resourcemanager/automation/armautomation/CHANGELOG.md index 28b1ed8bb9dd..696a694ec717 100644 --- a/sdk/resourcemanager/automation/armautomation/CHANGELOG.md +++ b/sdk/resourcemanager/automation/armautomation/CHANGELOG.md @@ -1,5 +1,42 @@ # Release History +## 0.10.0 (2023-12-07) +### Breaking Changes + +- Type of `Identity.UserAssignedIdentities` has been changed from `map[string]*ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties` to `map[string]*UserAssignedIdentitiesProperties` +- `ModuleProvisioningStateCancelled` from enum `ModuleProvisioningState` has been removed +- Operation `*ModuleClient.CreateOrUpdate` has been changed to LRO, use `*ModuleClient.BeginCreateOrUpdate` instead. +- Struct `ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties` has been removed +- Field `Value` of struct `DscConfigurationClientGetContentResponse` has been removed + +### Features Added + +- New value `ModuleProvisioningStateCanceled` added to enum type `ModuleProvisioningState` +- New value `RunbookTypeEnumPowerShell72` added to enum type `RunbookTypeEnum` +- New function `*ClientFactory.NewPowerShell72ModuleClient() *PowerShell72ModuleClient` +- New function `*ClientFactory.NewPython3PackageClient() *Python3PackageClient` +- New function `NewPowerShell72ModuleClient(string, azcore.TokenCredential, *arm.ClientOptions) (*PowerShell72ModuleClient, error)` +- New function `*PowerShell72ModuleClient.BeginCreateOrUpdate(context.Context, string, string, string, ModuleCreateOrUpdateParameters, *PowerShell72ModuleClientBeginCreateOrUpdateOptions) (*runtime.Poller[PowerShell72ModuleClientCreateOrUpdateResponse], error)` +- New function `*PowerShell72ModuleClient.Delete(context.Context, string, string, string, *PowerShell72ModuleClientDeleteOptions) (PowerShell72ModuleClientDeleteResponse, error)` +- New function `*PowerShell72ModuleClient.Get(context.Context, string, string, string, *PowerShell72ModuleClientGetOptions) (PowerShell72ModuleClientGetResponse, error)` +- New function `*PowerShell72ModuleClient.NewListByAutomationAccountPager(string, string, *PowerShell72ModuleClientListByAutomationAccountOptions) *runtime.Pager[PowerShell72ModuleClientListByAutomationAccountResponse]` +- New function `*PowerShell72ModuleClient.Update(context.Context, string, string, string, ModuleUpdateParameters, *PowerShell72ModuleClientUpdateOptions) (PowerShell72ModuleClientUpdateResponse, error)` +- New function `NewPython3PackageClient(string, azcore.TokenCredential, *arm.ClientOptions) (*Python3PackageClient, error)` +- New function `*Python3PackageClient.BeginCreateOrUpdate(context.Context, string, string, string, PythonPackageCreateParameters, *Python3PackageClientBeginCreateOrUpdateOptions) (*runtime.Poller[Python3PackageClientCreateOrUpdateResponse], error)` +- New function `*Python3PackageClient.Delete(context.Context, string, string, string, *Python3PackageClientDeleteOptions) (Python3PackageClientDeleteResponse, error)` +- New function `*Python3PackageClient.Get(context.Context, string, string, string, *Python3PackageClientGetOptions) (Python3PackageClientGetResponse, error)` +- New function `*Python3PackageClient.NewListByAutomationAccountPager(string, string, *Python3PackageClientListByAutomationAccountOptions) *runtime.Pager[Python3PackageClientListByAutomationAccountResponse]` +- New function `*Python3PackageClient.Update(context.Context, string, string, string, PythonPackageUpdateParameters, *Python3PackageClientUpdateOptions) (Python3PackageClientUpdateResponse, error)` +- New struct `Dimension` +- New struct `LogSpecification` +- New struct `MetricSpecification` +- New struct `OperationPropertiesFormat` +- New struct `OperationPropertiesFormatServiceSpecification` +- New struct `UserAssignedIdentitiesProperties` +- New field `Origin`, `Properties` in struct `Operation` +- New field `Description` in struct `OperationDisplay` + + ## 0.9.0 (2023-11-30) ### Features Added diff --git a/sdk/resourcemanager/automation/armautomation/account_client.go b/sdk/resourcemanager/automation/armautomation/account_client.go index 951db7268773..da1f245df245 100644 --- a/sdk/resourcemanager/automation/armautomation/account_client.go +++ b/sdk/resourcemanager/automation/armautomation/account_client.go @@ -47,7 +47,7 @@ func NewAccountClient(subscriptionID string, credential azcore.TokenCredential, // CreateOrUpdate - Create or update automation account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - parameters - Parameters supplied to the create or update automation account. @@ -94,7 +94,7 @@ func (client *AccountClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-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 *AccountClient) createOrUpdateHandleResponse(resp *http.Response) ( // Delete - Delete an automation account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - AccountClientDeleteOptions contains the optional parameters for the AccountClient.Delete method. @@ -160,7 +160,7 @@ func (client *AccountClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -169,7 +169,7 @@ func (client *AccountClient) deleteCreateRequest(ctx context.Context, resourceGr // Get - Get information about an Automation Account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - AccountClientGetOptions contains the optional parameters for the AccountClient.Get method. @@ -215,7 +215,7 @@ func (client *AccountClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -232,7 +232,7 @@ func (client *AccountClient) getHandleResponse(resp *http.Response) (AccountClie // NewListPager - Retrieve a list of accounts within a given subscription. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - options - AccountClientListOptions contains the optional parameters for the AccountClient.NewListPager method. func (client *AccountClient) NewListPager(options *AccountClientListOptions) *runtime.Pager[AccountClientListResponse] { return runtime.NewPager(runtime.PagingHandler[AccountClientListResponse]{ @@ -269,7 +269,7 @@ func (client *AccountClient) listCreateRequest(ctx context.Context, options *Acc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -286,7 +286,7 @@ func (client *AccountClient) listHandleResponse(resp *http.Response) (AccountCli // NewListByResourceGroupPager - Retrieve a list of accounts within a given resource group. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - options - AccountClientListByResourceGroupOptions contains the optional parameters for the AccountClient.NewListByResourceGroupPager // method. @@ -329,7 +329,7 @@ func (client *AccountClient) listByResourceGroupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -347,7 +347,7 @@ func (client *AccountClient) listByResourceGroupHandleResponse(resp *http.Respon // Update - Update an automation account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - parameters - Parameters supplied to the update automation account. @@ -394,7 +394,7 @@ func (client *AccountClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/account_client_example_test.go b/sdk/resourcemanager/automation/armautomation/account_client_example_test.go deleted file mode 100644 index 314fe1919110..000000000000 --- a/sdk/resourcemanager/automation/armautomation/account_client_example_test.go +++ /dev/null @@ -1,1009 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json -func ExampleAccountClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAccountClient().Update(ctx, "rg", "myAutomationAccount9", armautomation.AccountUpdateParameters{ - Name: to.Ptr("myAutomationAccount9"), - Location: to.Ptr("East US 2"), - Properties: &armautomation.AccountUpdateProperties{ - SKU: &armautomation.SKU{ - Name: to.Ptr(armautomation.SKUNameEnumFree), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Account = armautomation.Account{ - // Name: to.Ptr("myAutomationAccount9"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // }, - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T01:13:43.267Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T01:13:43.267Z"); return t}()), - // SKU: &armautomation.SKU{ - // Name: to.Ptr(armautomation.SKUNameEnumFree), - // }, - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json -func ExampleAccountClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAccountClient().CreateOrUpdate(ctx, "rg", "myAutomationAccount9", armautomation.AccountCreateOrUpdateParameters{ - Name: to.Ptr("myAutomationAccount9"), - Location: to.Ptr("East US 2"), - Properties: &armautomation.AccountCreateOrUpdateProperties{ - SKU: &armautomation.SKU{ - Name: to.Ptr(armautomation.SKUNameEnumFree), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Account = armautomation.Account{ - // Name: to.Ptr("ContoseAutomationAccount"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // }, - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:21:15.187Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmaild@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:21:15.187Z"); return t}()), - // SKU: &armautomation.SKU{ - // Name: to.Ptr(armautomation.SKUNameEnumFree), - // }, - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json -func ExampleAccountClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewAccountClient().Delete(ctx, "rg", "myAutomationAccount9", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json -func ExampleAccountClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAccountClient().Get(ctx, "rg", "myAutomationAccount9", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Account = armautomation.Account{ - // Name: to.Ptr("myAutomationAccount9"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // }, - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T01:13:43.267Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T01:13:43.267Z"); return t}()), - // SKU: &armautomation.SKU{ - // Name: to.Ptr(armautomation.SKUNameEnumFree), - // }, - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json -func ExampleAccountClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewAccountClient().NewListByResourceGroupPager("rg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.AccountListResult = armautomation.AccountListResult{ - // Value: []*armautomation.Account{ - // { - // Name: to.Ptr("myaccount"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myaccount"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-24T00:47:04.227Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // }, - // { - // Name: to.Ptr("myAccount123"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAccount123"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-29T00:32:32.520Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // }, - // { - // Name: to.Ptr("myAccountasfads"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAccountasfads"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:21:03.270Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:21:03.270Z"); return t}()), - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount1"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:22:33.260Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:22:33.260Z"); return t}()), - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount11"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:10:24.523Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:12.027Z"); return t}()), - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount2"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:24:20.310Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:24:20.310Z"); return t}()), - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount3"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount3"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:24:43.967Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:24:43.967Z"); return t}()), - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount4"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount4"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:04:56.900Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:04:56.900Z"); return t}()), - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount6"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount6"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:10:44.567Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:10:44.567Z"); return t}()), - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount7"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount7"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:19:17.943Z"); return t}()), - // LastModifiedBy: to.Ptr("myEmailId@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:19:17.943Z"); return t}()), - // State: to.Ptr(armautomation.AutomationAccountStateOk), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json -func ExampleAccountClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewAccountClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.AccountListResult = armautomation.AccountListResult{ - // Value: []*armautomation.Account{ - // { - // Name: to.Ptr("JPEDDeployDSC1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/JPEDeploy1/providers/Microsoft.Automation/automationAccounts/JPEDDeployDSC1"), - // Location: to.Ptr("japaneast"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-04-28T23:48:25.143Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.060Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("jpeDemoAutomation1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/jpeDemo1/providers/Microsoft.Automation/automationAccounts/jpeDemoAutomation1"), - // Location: to.Ptr("japaneast"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-04-25T02:04:10.223Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.060Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("ASEAutomationAccount1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/ASERG1/providers/Microsoft.Automation/automationAccounts/ASEAutomationAccount1"), - // Location: to.Ptr("australiasoutheast"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-04-12T05:19:19.480Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:15.640Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("AAEU2DSCDemo"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/eus2Demo1/providers/Microsoft.Automation/automationAccounts/AAEU2DSCDemo"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-08-04T14:44:02.397Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("AAEU2DSCDemo2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/eus2Demo1/providers/Microsoft.Automation/automationAccounts/AAEU2DSCDemo2"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-08-04T15:03:45.977Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("AAsnoverDemo1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/aadscdemo1/providers/Microsoft.Automation/automationAccounts/AAsnoverDemo1"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-01-29T02:29:13.180Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("automationaccdelete"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/oaastest/providers/Microsoft.Automation/automationAccounts/automationaccdelete"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-29T20:30:49.970Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("mytest1212"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/aadscdemo2/providers/Microsoft.Automation/automationAccounts/mytest1212"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-12-12T20:25:36.340Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("deleteacc"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/CIDRG/providers/Microsoft.Automation/automationAccounts/deleteacc"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-01-12T22:13:39.790Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("deleteme"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/test/providers/Microsoft.Automation/automationAccounts/deleteme"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-01-12T21:56:10.267Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("deleteme3"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/tst/providers/Microsoft.Automation/automationAccounts/deleteme3"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-01-12T22:00:51.333Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Eus2Account1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/OaaSCSXASVNLMD6CUTP2UKUNHMCSLLJRVOSRAS2HOBKX4B3A3UBNLZWZEA-East-US/providers/Microsoft.Automation/automationAccounts/Eus2Account1"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-19T19:07:43.200Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("EUS2DDeployDSC1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/EUS2Deploy1/providers/Microsoft.Automation/automationAccounts/EUS2DDeployDSC1"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-04-28T23:50:56.160Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("eusAccount2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/OaaSCSXASVNLMD6CUTP2UKUNHMCSLLJRVOSRAS2HOBKX4B3A3UBNLZWZEA-East-US/providers/Microsoft.Automation/automationAccounts/eusAccount2"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-19T19:12:19.853Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myProdAutomation1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/myProdAutomation1"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-16T21:31:06.333Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-16T21:31:06.333Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myProdDevAutomation"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/myProdDevAutomation"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-10-27T21:11:16.710Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myProdPublicAutomation"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/myProdPublicAutomation"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-11-18T19:49:08.893Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myTestaccount"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myTestaccount"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-24T00:47:04.227Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("kjohn-sandbox-eus"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/kjohn-sandbox-eus"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T17:29:18.493Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T17:29:18.493Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("kjohn-sandbox-eus-proddev"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/kjohn-sandbox-eus-proddev"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-01-06T02:33:10.290Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("kjohn-sandbox-eus-prodtest"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/kjohn-rg/providers/Microsoft.Automation/automationAccounts/kjohn-sandbox-eus-prodtest"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-01-10T23:40:13.103Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("kjohn-sandbox-eus-prodtest2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/kjohn-rg/providers/Microsoft.Automation/automationAccounts/kjohn-sandbox-eus-prodtest2"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-01-11T00:20:50.463Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("LinuxPatchingOpsEUS-AA2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/LinuxPatchingOpsEUS-AA2"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-24T03:17:00.043Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("LinuxTestNewAA"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/LinuxTestNewAA"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-23T18:50:54.887Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("psrdfeAccount2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/OaasCSsubid-east-us/providers/Microsoft.Automation/automationAccounts/psrdfeAccount2"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-05-05T00:26:49.020Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("my-account-one"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/myrg/providers/Microsoft.Automation/automationAccounts/my-account-one"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-10-27T17:54:31.007Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myku-no-vms"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/myku-no-vms"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-30T01:12:00.853Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myku-win-vms"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/myku-win-vms"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-30T01:17:07.613Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("SVCPrnAcctTest1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/aadscdemo2/providers/Microsoft.Automation/automationAccounts/SVCPrnAcctTest1"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-28T20:12:48.163Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("testfgbhfghfgh"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/tesdbgfvfhgjghjgh/providers/Microsoft.Automation/automationAccounts/testfgbhfghfgh"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-12-12T20:48:59.300Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("test-linux-linuxopsworkspace"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-eus/providers/Microsoft.Automation/automationAccounts/test-linux-linuxopsworkspace"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-23T18:59:56.990Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("my-dsc-test-1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/my-dev/providers/Microsoft.Automation/automationAccounts/my-dsc-test-1"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-11-10T00:21:05.133Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("my-test-automation-1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/my-dev/providers/Microsoft.Automation/automationAccounts/my-test-automation-1"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-11-09T19:57:50.043Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAccount"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/myresourcegroupeus/providers/Microsoft.Automation/automationAccounts/myAccount"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-10T19:10:30.453Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-10T19:10:30.453Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAccount123"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAccount123"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-29T00:32:32.520Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAccountasfads"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAccountasfads"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:21:03.270Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:21:03.270Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAccountEUS"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/myResourceGroupEUS/providers/Microsoft.Automation/automationAccounts/myAccountEUS"), - // Location: to.Ptr("eastus2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-29T23:13:38.873Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount1"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:22:33.260Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:22:33.260Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount11"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:10:24.523Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:12.027Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount2"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:24:20.310Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:24:20.310Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount3"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount3"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:24:43.967Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-24T23:24:43.967Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount4"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount4"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:04:56.900Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:04:56.900Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount6"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount6"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:10:44.567Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:10:44.567Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myAutomationAccount7"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount7"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:19:17.943Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-25T02:19:17.943Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("CSSCase1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/WEURG1/providers/Microsoft.Automation/automationAccounts/CSSCase1"), - // Location: to.Ptr("westeurope"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-18T05:53:58.910Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:15.373Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("deleteme"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/deleteme"), - // Location: to.Ptr("westeurope"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-01-12T21:48:47.980Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:15.373Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("LinuxPatchingOpsWEU-AA2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/mms-weu/providers/Microsoft.Automation/automationAccounts/LinuxPatchingOpsWEU-AA2"), - // Location: to.Ptr("westeurope"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-24T02:27:35.713Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:15.373Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("LinuxPatchJobs"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/my-dev/providers/Microsoft.Automation/automationAccounts/LinuxPatchJobs"), - // Location: to.Ptr("westeurope"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-14T22:02:28.223Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:15.373Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("MyCoolAAC1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/IgnniteRG/providers/Microsoft.Automation/automationAccounts/MyCoolAAC1"), - // Location: to.Ptr("westeurope"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-22T05:59:22.443Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:15.373Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("MyCoolACT1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/IgnniteRG/providers/Microsoft.Automation/automationAccounts/MyCoolACT1"), - // Location: to.Ptr("westeurope"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-22T06:05:18.500Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:15.373Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("MyTestmyTest-WEU"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/OaaSCSXASVNLMD6CUTP2UKUNHMCSLLJRVOSRAS2HOBKX4B3A3UBNLZWZEA-West-Europe/providers/Microsoft.Automation/automationAccounts/MyTestmyTest-WEU"), - // Location: to.Ptr("West Europe"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2014-11-12T02:48:51.473Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:15.373Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("WEDDeployDSC1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/WEDeploy1/providers/Microsoft.Automation/automationAccounts/WEDDeployDSC1"), - // Location: to.Ptr("westeurope"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-04-28T23:20:01.730Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-13T08:43:47.360Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("SEADDeployDSC1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/SEADeploy1/providers/Microsoft.Automation/automationAccounts/SEADDeployDSC1"), - // Location: to.Ptr("southeamyia"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-04-28T19:06:39.100Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.683Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("seaDemoAutomation1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/seaDemo1/providers/Microsoft.Automation/automationAccounts/seaDemoAutomation1"), - // Location: to.Ptr("southeamyia"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-04-25T01:31:32.150Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:16.683Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("AAsnoverDemo2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/aadscdemo1/providers/Microsoft.Automation/automationAccounts/AAsnoverDemo2"), - // Location: to.Ptr("South Central US"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-01-29T02:30:05.840Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:17.107Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("SCUSDDeployDSC1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/SCUSDeploy1/providers/Microsoft.Automation/automationAccounts/SCUSDDeployDSC1"), - // Location: to.Ptr("southcentralus"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-06-04T23:06:44.897Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:17.107Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("scusposthydtest1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/eus2Demo1/providers/Microsoft.Automation/automationAccounts/scusposthydtest1"), - // Location: to.Ptr("South Central US"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-06-04T16:44:18.823Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:17.107Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("scustestaccount1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/OaaSCSXASVNLMD6CUTP2UKUNHMCSLLJRVOSRAS2HOBKX4B3A3UBNLZWZEA-South-Central-US/providers/Microsoft.Automation/automationAccounts/scustestaccount1"), - // Location: to.Ptr("South Central US"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-05-30T01:54:57.313Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:17.107Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("AAUKSmyTest1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/UKSRG1/providers/Microsoft.Automation/automationAccounts/AAUKSmyTest1"), - // Location: to.Ptr("uksouth"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-15T02:31:03.190Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-15T02:31:03.190Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Tip-WCUS-AutomationAccount"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/Gaurav_machines/providers/Microsoft.Automation/automationAccounts/Tip-WCUS-AutomationAccount"), - // Location: to.Ptr("westcentralus"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-08T19:53:36.293Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-08T19:53:36.293Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("aa-my"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/myRG/providers/Microsoft.Automation/automationAccounts/aa-my"), - // Location: to.Ptr("northeurope"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-21T18:59:56.260Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:15.457Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("CIDAccout1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/CIDRG/providers/Microsoft.Automation/automationAccounts/CIDAccout1"), - // Location: to.Ptr("Central India"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-02-24T20:04:58.867Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:19.003Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("aaspntest"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/aaspntest"), - // Location: to.Ptr("northcentralus"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-12-06T17:18:51.880Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:19.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("dsccomposite"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/dsccomposite"), - // Location: to.Ptr("northcentralus"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-13T17:37:55.163Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-06T17:19:15.090Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("dsclinux"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/dsclinux"), - // Location: to.Ptr("northcentralus"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-06T21:50:05.493Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-06T21:50:05.493Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("mydsc"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/mydsc"), - // Location: to.Ptr("northcentralus"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-11-01T17:28:36.197Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-09T21:35:19.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("mydsc2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/my/providers/Microsoft.Automation/automationAccounts/mydsc2"), - // Location: to.Ptr("northcentralus"), - // Properties: &armautomation.AccountProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-11-01T18:50:06.063Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-11T01:33:13.113Z"); return t}()), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/activity_client.go b/sdk/resourcemanager/automation/armautomation/activity_client.go index edc445cd8b0a..962a9781206a 100644 --- a/sdk/resourcemanager/automation/armautomation/activity_client.go +++ b/sdk/resourcemanager/automation/armautomation/activity_client.go @@ -47,7 +47,7 @@ func NewActivityClient(subscriptionID string, credential azcore.TokenCredential, // Get - Retrieve the activity in the module identified by module name and activity name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - moduleName - The name of module. @@ -103,7 +103,7 @@ func (client *ActivityClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -120,7 +120,7 @@ func (client *ActivityClient) getHandleResponse(resp *http.Response) (ActivityCl // NewListByModulePager - Retrieve a list of activities in the module identified by module name. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - moduleName - The name of module. @@ -173,7 +173,7 @@ func (client *ActivityClient) listByModuleCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/activity_client_example_test.go b/sdk/resourcemanager/automation/armautomation/activity_client_example_test.go deleted file mode 100644 index 187513ca4ee6..000000000000 --- a/sdk/resourcemanager/automation/armautomation/activity_client_example_test.go +++ /dev/null @@ -1,756 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getActivityInAModule.json -func ExampleActivityClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewActivityClient().Get(ctx, "rg", "myAutomationAccount33", "OmsCompositeResources", "Add-AzureRmAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Activity = armautomation.Activity{ - // Name: to.Ptr("Add-AzureRmAccount"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Add-AzureRmAccount"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Add-AzureRmAcccount cmdlet adds an authenticated Azure account to use for Azure Resource Manager cmdlet requests.\n\nYou can use this authenticated account only with Azure Resource Manager cmdlets. To add an authenticated account for use with Service Management cmdlets, use the Add-AzureAccount or the Import-AzurePublishSettingsFile cmdlet."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // OutputTypes: []*armautomation.ActivityOutputType{ - // { - // Name: to.Ptr("Microsoft.Azure.Commands.Profile.Models.PSAzureProfile"), - // Type: to.Ptr("Microsoft.Azure.Commands.Profile.Models.PSAzureProfile"), - // }}, - // ParameterSets: []*armautomation.ActivityParameterSet{ - // { - // Name: to.Ptr("SubscriptionId"), - // Parameters: []*armautomation.ActivityParameter{ - // { - // Name: to.Ptr("AccessToken"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("AccountId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("ApplicationId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("CertificateThumbprint"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("Credential"), - // Type: to.Ptr("System.Management.Automation.PSCredential"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("Environment"), - // Type: to.Ptr("Microsoft.Azure.Common.Authentication.Models.AzureEnvironment"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("EnvironmentName"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("SubscriptionId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(true), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("TenantId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }}, - // }, - // { - // Name: to.Ptr("ServicePrincipal"), - // Parameters: []*armautomation.ActivityParameter{ - // { - // Name: to.Ptr("Credential"), - // Type: to.Ptr("System.Management.Automation.PSCredential"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(true), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("Environment"), - // Type: to.Ptr("Microsoft.Azure.Common.Authentication.Models.AzureEnvironment"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("EnvironmentName"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("ServicePrincipal"), - // Type: to.Ptr("System.Management.Automation.SwitchParameter"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(true), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("SubscriptionId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(true), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("SubscriptionName"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(true), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("TenantId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(true), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }}, - // }, - // { - // Name: to.Ptr("SubscriptionName"), - // Parameters: []*armautomation.ActivityParameter{ - // { - // Name: to.Ptr("AccessToken"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("AccountId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("ApplicationId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("CertificateThumbprint"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("Credential"), - // Type: to.Ptr("System.Management.Automation.PSCredential"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("Environment"), - // Type: to.Ptr("Microsoft.Azure.Common.Authentication.Models.AzureEnvironment"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("EnvironmentName"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("SubscriptionName"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(true), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("TenantId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }}, - // }, - // { - // Name: to.Ptr("User"), - // Parameters: []*armautomation.ActivityParameter{ - // { - // Name: to.Ptr("Credential"), - // Type: to.Ptr("System.Management.Automation.PSCredential"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("Environment"), - // Type: to.Ptr("Microsoft.Azure.Common.Authentication.Models.AzureEnvironment"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("EnvironmentName"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("TenantId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }}, - // }, - // { - // Name: to.Ptr("AccessToken"), - // Parameters: []*armautomation.ActivityParameter{ - // { - // Name: to.Ptr("AccessToken"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(true), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("AccountId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(true), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("Environment"), - // Type: to.Ptr("Microsoft.Azure.Common.Authentication.Models.AzureEnvironment"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("EnvironmentName"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("TenantId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }}, - // }, - // { - // Name: to.Ptr("ServicePrincipalCertificate"), - // Parameters: []*armautomation.ActivityParameter{ - // { - // Name: to.Ptr("ApplicationId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(true), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("CertificateThumbprint"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(true), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("Environment"), - // Type: to.Ptr("Microsoft.Azure.Common.Authentication.Models.AzureEnvironment"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("EnvironmentName"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(false), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("ServicePrincipal"), - // Type: to.Ptr("System.Management.Automation.SwitchParameter"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(true), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }, - // { - // Name: to.Ptr("TenantId"), - // Type: to.Ptr("System.String"), - // Description: to.Ptr("Specify the feature description"), - // IsDynamic: to.Ptr(false), - // IsMandatory: to.Ptr(true), - // Position: to.Ptr[int64](-2147483648), - // ValidationSet: []*armautomation.ActivityParameterValidationSet{ - // }, - // ValueFromPipeline: to.Ptr(false), - // ValueFromPipelineByPropertyName: to.Ptr(false), - // ValueFromRemainingArguments: to.Ptr(false), - // }}, - // }}, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listActivitiesByModule.json -func ExampleActivityClient_NewListByModulePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewActivityClient().NewListByModulePager("rg", "myAutomationAccount33", "OmsCompositeResources", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ActivityListResult = armautomation.ActivityListResult{ - // Value: []*armautomation.Activity{ - // { - // Name: to.Ptr("Add-AzureRmAccount"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Add-AzureRmAccount"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Add-AzureRmAcccount cmdlet adds an authenticated Azure account to use for Azure Resource Manager cmdlet requests.\n\nYou can use this authenticated account only with Azure Resource Manager cmdlets. To add an authenticated account for use with Service Management cmdlets, use the Add-AzureAccount or the Import-AzurePublishSettingsFile cmdlet."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Add-AzureRmEnvironment"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Add-AzureRmEnvironment"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Add-AzureRmEnvironment cmdlet adds endpoints and metadata to enable Azure Resource Manager cmdlets to connect with a new instance of Azure Resource Manager. The built-in environments AzureCloud and AzureChinaCloud target existing public instances of Azure Resource Manager."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Disable-AzureRmDataCollection"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Disable-AzureRmDataCollection"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr(""), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.713Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.713Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Enable-AzureRmDataCollection"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Enable-AzureRmDataCollection"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr(""), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.713Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.713Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Get-AzureRmContext"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Get-AzureRmContext"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Get-AzureRmContext cmdlet gets the current metadata used to authenticate Azure Resource Manager requests.\n\nThis cmdlet gets the Active Directory account, Active Directory tenant, Azure subscription, and the targeted Azure environment. Azure Resource Manager cmdlets use these settings by default when making Azure Resource Manager requests."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.713Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.713Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Get-AzureRmEnvironment"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Get-AzureRmEnvironment"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Get-AzureRmEnvironment cmdlet gets endpoints and metadata for an instance of Azure services."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Get-AzureRmSubscription"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Get-AzureRmSubscription"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Get-AzureRmSubscription cmdlet gets the subscription ID, subscription name, and home tenant for subscriptions that the current account can access."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Get-AzureRmTenant"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Get-AzureRmTenant"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Get-AzureRmTenant cmdlet gets tenants authorized for the current user."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Remove-AzureRmEnvironment"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Remove-AzureRmEnvironment"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Remove-AzureRmEnvironment cmdlet removes endpoints and metadata information for connecting to a given Azure instance."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Save-AzureRmProfile"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Save-AzureRmProfile"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Save-AzureRmProfile cmdlet saves the current authentication information for use in other PowerShell sessions."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Select-AzureRmProfile"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Select-AzureRmProfile"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Select-AzureRmProfile cmdlet loads authentication information from a file to set the Azure environment and context. Cmdlets that you run in the current session use this information to authenticate requests to Azure Resource Manager."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Set-AzureRmContext"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Set-AzureRmContext"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Set-AzureRmContext cmdlet sets authentication information for cmdlets that you run in the current session. The context includes tenant, subscription, and environment information."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("Set-AzureRmEnvironment"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile/activities/Set-AzureRmEnvironment"), - // Properties: &armautomation.ActivityProperties{ - // Description: to.Ptr("The Set-AzureRMEnvironment cmdlet sets endpoints and metadata for connecting to an instance of Azure."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // Definition: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:21.697Z"); return t}()), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/agentregistrationinformation_client_example_test.go b/sdk/resourcemanager/automation/armautomation/agentregistrationinformation_client_example_test.go deleted file mode 100644 index 483a90fba823..000000000000 --- a/sdk/resourcemanager/automation/armautomation/agentregistrationinformation_client_example_test.go +++ /dev/null @@ -1,77 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getAgentRegistration.json -func ExampleAgentRegistrationInformationClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAgentRegistrationInformationClient().Get(ctx, "rg", "myAutomationAccount18", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AgentRegistration = armautomation.AgentRegistration{ - // DscMetaConfiguration: to.Ptr("\r\n instance of MSFT_WebDownloadManager as $MSFT_WebDownloadManager1ref\r\n {\r\n ResourceID = \"[ConfigurationRepositoryWeb]AzureAutomationDSC\";\r\n SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::20::9::ConfigurationRepositoryWeb\";\r\n RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n };\r\n\r\n instance of MSFT_WebResourceManager as $MSFT_WebResourceManager1ref\r\n {\r\n SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::27::9::ResourceRepositoryWeb\";\r\n ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n ResourceID = \"[ResourceRepositoryWeb]AzureAutomationDSC\";\r\n RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n };\r\n\r\n instance of MSFT_WebReportManager as $MSFT_WebReportManager1ref\r\n {\r\n SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::34::9::ReportServerWeb\";\r\n ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n ResourceID = \"[ReportServerWeb]AzureAutomationDSC\";\r\n RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n };\r\n\r\n instance of MSFT_DSCMetaConfiguration as $MSFT_DSCMetaConfiguration1ref\r\n {\r\n RefreshMode = \"Pull\";\r\n AllowModuleOverwrite = False;\r\n ActionAfterReboot = \"ContinueConfiguration\";\r\n RefreshFrequencyMins = 30;\r\n RebootNodeIfNeeded = False;\r\n ConfigurationModeFrequencyMins = 15;\r\n ConfigurationMode = \"ApplyAndMonitor\";\r\n\r\n ResourceModuleManagers = {\r\n $MSFT_WebResourceManager1ref \r\n };\r\n ReportManagers = {\r\n $MSFT_WebReportManager1ref \r\n };\r\n ConfigurationDownloadManagers = {\r\n $MSFT_WebDownloadManager1ref \r\n };\r\n };\r\n\r\n instance of OMI_ConfigurationDocument\r\n {\r\n Version=\"2.0.0\";\r\n MinimumCompatibleVersion = \"2.0.0\";\r\n CompatibleVersionAdditionalProperties= { \"MSFT_DSCMetaConfiguration:StatusRetentionTimeInDays\" };\r\n Author=\"azureautomation\";\r\n GenerationDate=\"04/17/2015 11:41:09\";\r\n GenerationHost=\"azureautomation-01\";\r\n Name=\"RegistrationMetaConfig\";\r\n };\r\n "), - // Endpoint: to.Ptr("https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount18/agentRegistrationInformation/https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6"), - // Keys: &armautomation.AgentRegistrationKeys{ - // Primary: to.Ptr("5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg=="), - // Secondary: to.Ptr("rVp0000000000000000000000000000000000000000000000000000000000000000000000000000f8cbmrOA=="), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/regenerateAgentRegistrationKey.json -func ExampleAgentRegistrationInformationClient_RegenerateKey() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAgentRegistrationInformationClient().RegenerateKey(ctx, "rg", "myAutomationAccount18", armautomation.AgentRegistrationRegenerateKeyParameter{ - KeyName: to.Ptr(armautomation.AgentRegistrationKeyNamePrimary), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AgentRegistration = armautomation.AgentRegistration{ - // Endpoint: to.Ptr("https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6"), - // Keys: &armautomation.AgentRegistrationKeys{ - // Primary: to.Ptr("5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg=="), - // Secondary: to.Ptr("rVp0000000000000000000000000000000000000000000000000000000000000000000000000000f8cbmrOA=="), - // }, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/autorest.md b/sdk/resourcemanager/automation/armautomation/autorest.md index ddbf803a4173..768c0de8e4b4 100644 --- a/sdk/resourcemanager/automation/armautomation/autorest.md +++ b/sdk/resourcemanager/automation/armautomation/autorest.md @@ -5,10 +5,10 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/readme.go.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/automation/resource-manager/readme.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/automation/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.9.0 +module-version: 0.10.0 directive: - where-operation: DscConfiguration_CreateOrUpdate transform: delete $['x-ms-examples'] diff --git a/sdk/resourcemanager/automation/armautomation/certificate_client.go b/sdk/resourcemanager/automation/armautomation/certificate_client.go index 54d9053f8ef8..04f9c835754e 100644 --- a/sdk/resourcemanager/automation/armautomation/certificate_client.go +++ b/sdk/resourcemanager/automation/armautomation/certificate_client.go @@ -47,7 +47,7 @@ func NewCertificateClient(subscriptionID string, credential azcore.TokenCredenti // CreateOrUpdate - Create a certificate. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - certificateName - The parameters supplied to the create or update certificate operation. @@ -100,7 +100,7 @@ func (client *CertificateClient) createOrUpdateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -121,7 +121,7 @@ func (client *CertificateClient) createOrUpdateHandleResponse(resp *http.Respons // Delete - Delete the certificate. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - certificateName - The name of certificate. @@ -171,7 +171,7 @@ func (client *CertificateClient) deleteCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -180,7 +180,7 @@ func (client *CertificateClient) deleteCreateRequest(ctx context.Context, resour // Get - Retrieve the certificate identified by certificate name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - certificateName - The name of certificate. @@ -231,7 +231,7 @@ func (client *CertificateClient) getCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -248,7 +248,7 @@ func (client *CertificateClient) getHandleResponse(resp *http.Response) (Certifi // NewListByAutomationAccountPager - Retrieve a list of certificates. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - CertificateClientListByAutomationAccountOptions contains the optional parameters for the CertificateClient.NewListByAutomationAccountPager @@ -296,7 +296,7 @@ func (client *CertificateClient) listByAutomationAccountCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -314,7 +314,7 @@ func (client *CertificateClient) listByAutomationAccountHandleResponse(resp *htt // Update - Update a certificate. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - certificateName - The parameters supplied to the update certificate operation. @@ -366,7 +366,7 @@ func (client *CertificateClient) updateCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/certificate_client_example_test.go b/sdk/resourcemanager/automation/armautomation/certificate_client_example_test.go deleted file mode 100644 index 3d02bdab4c24..000000000000 --- a/sdk/resourcemanager/automation/armautomation/certificate_client_example_test.go +++ /dev/null @@ -1,185 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteCertificate.json -func ExampleCertificateClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateClient().Delete(ctx, "rg", "myAutomationAccount33", "testCert", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCertificate.json -func ExampleCertificateClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateClient().Get(ctx, "rg", "myAutomationAccount33", "testCert", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Certificate = armautomation.Certificate{ - // Name: to.Ptr("testCert"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/certificates/testCert"), - // Properties: &armautomation.CertificateProperties{ - // Description: to.Ptr("Sample Cert"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T17:26:43.337Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-29T17:25:45.000Z"); return t}()), - // IsExportable: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T17:28:55.010Z"); return t}()), - // Thumbprint: to.Ptr("thumbprint of cert"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateCertificate.json -func ExampleCertificateClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateClient().CreateOrUpdate(ctx, "rg", "myAutomationAccount18", "testCert", armautomation.CertificateCreateOrUpdateParameters{ - Name: to.Ptr("testCert"), - Properties: &armautomation.CertificateCreateOrUpdateProperties{ - Description: to.Ptr("Sample Cert"), - Base64Value: to.Ptr("base 64 value of cert"), - IsExportable: to.Ptr(false), - Thumbprint: to.Ptr("thumbprint of cert"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Certificate = armautomation.Certificate{ - // Name: to.Ptr("testCert"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/certificates/testCert"), - // Properties: &armautomation.CertificateProperties{ - // Description: to.Ptr("sample certificate. Description updated"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T17:26:43.337Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-29T17:25:45.000Z"); return t}()), - // IsExportable: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T17:28:55.010Z"); return t}()), - // Thumbprint: to.Ptr("thumbprint of cert"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateCertificate.json -func ExampleCertificateClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateClient().Update(ctx, "rg", "myAutomationAccount33", "testCert", armautomation.CertificateUpdateParameters{ - Name: to.Ptr("testCert"), - Properties: &armautomation.CertificateUpdateProperties{ - Description: to.Ptr("sample certificate. Description updated"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Certificate = armautomation.Certificate{ - // Name: to.Ptr("testCert"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/certificates/testCert"), - // Properties: &armautomation.CertificateProperties{ - // Description: to.Ptr("sample certificate. Description updated"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T17:26:43.337Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-29T17:25:45.000Z"); return t}()), - // IsExportable: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T17:28:55.010Z"); return t}()), - // Thumbprint: to.Ptr("thumbprint of cert"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listCertificatesByAutomationAccount.json -func ExampleCertificateClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CertificateListResult = armautomation.CertificateListResult{ - // Value: []*armautomation.Certificate{ - // { - // Name: to.Ptr("testCert"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/certificates/testCert"), - // Properties: &armautomation.CertificateProperties{ - // Description: to.Ptr("Sample Cert"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T17:26:43.337Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-29T17:25:45.000Z"); return t}()), - // IsExportable: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T17:28:55.010Z"); return t}()), - // Thumbprint: to.Ptr("thumbprint of cert"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/client.go b/sdk/resourcemanager/automation/armautomation/client.go index e54ee5f6792a..efb2938a1d86 100644 --- a/sdk/resourcemanager/automation/armautomation/client.go +++ b/sdk/resourcemanager/automation/armautomation/client.go @@ -47,7 +47,7 @@ func NewClient(subscriptionID string, credential azcore.TokenCredential, options // ConvertGraphRunbookContent - Post operation to serialize or deserialize GraphRunbookContent // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - parameters - Input data describing the graphical runbook. @@ -95,7 +95,7 @@ func (client *Client) convertGraphRunbookContentCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/client_example_test.go b/sdk/resourcemanager/automation/armautomation/client_example_test.go deleted file mode 100644 index d4365ae2df9f..000000000000 --- a/sdk/resourcemanager/automation/armautomation/client_example_test.go +++ /dev/null @@ -1,83 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/serializeGraphRunbookContent.json -func ExampleClient_ConvertGraphRunbookContent_getGraphicalRawRunbookContentFromGraphicalRunbookJsonObject() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewClient().ConvertGraphRunbookContent(ctx, "rg", "MyAutomationAccount", armautomation.GraphicalRunbookContent{ - GraphRunbookJSON: to.Ptr(""), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.GraphicalRunbookContent = armautomation.GraphicalRunbookContent{ - // GraphRunbookJSON: to.Ptr(""), - // RawContent: &armautomation.RawGraphicalRunbookContent{ - // RunbookDefinition: to.Ptr("AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR...."), - // RunbookType: to.Ptr(armautomation.GraphRunbookTypeGraphPowerShell), - // SchemaVersion: to.Ptr("1.10"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deserializeGraphRunbookContent.json -func ExampleClient_ConvertGraphRunbookContent_getGraphicalRunbookContentFromRawContent() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewClient().ConvertGraphRunbookContent(ctx, "rg", "MyAutomationAccount", armautomation.GraphicalRunbookContent{ - RawContent: &armautomation.RawGraphicalRunbookContent{ - RunbookDefinition: to.Ptr("AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR...."), - RunbookType: to.Ptr(armautomation.GraphRunbookTypeGraphPowerShell), - SchemaVersion: to.Ptr("1.10"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.GraphicalRunbookContent = armautomation.GraphicalRunbookContent{ - // GraphRunbookJSON: to.Ptr(""), - // RawContent: &armautomation.RawGraphicalRunbookContent{ - // RunbookDefinition: to.Ptr("AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR...."), - // RunbookType: to.Ptr(armautomation.GraphRunbookTypeGraphPowerShell), - // SchemaVersion: to.Ptr("1.10"), - // }, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/client_factory.go b/sdk/resourcemanager/automation/armautomation/client_factory.go index 6712fadabe7a..b2506308f910 100644 --- a/sdk/resourcemanager/automation/armautomation/client_factory.go +++ b/sdk/resourcemanager/automation/armautomation/client_factory.go @@ -200,6 +200,12 @@ func (c *ClientFactory) NewOperationsClient() *OperationsClient { return subClient } +// NewPowerShell72ModuleClient creates a new instance of PowerShell72ModuleClient. +func (c *ClientFactory) NewPowerShell72ModuleClient() *PowerShell72ModuleClient { + subClient, _ := NewPowerShell72ModuleClient(c.subscriptionID, c.credential, c.options) + return subClient +} + // NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient. func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient { subClient, _ := NewPrivateEndpointConnectionsClient(c.subscriptionID, c.credential, c.options) @@ -218,6 +224,12 @@ func (c *ClientFactory) NewPython2PackageClient() *Python2PackageClient { return subClient } +// NewPython3PackageClient creates a new instance of Python3PackageClient. +func (c *ClientFactory) NewPython3PackageClient() *Python3PackageClient { + subClient, _ := NewPython3PackageClient(c.subscriptionID, c.credential, c.options) + return subClient +} + // NewRunbookClient creates a new instance of RunbookClient. func (c *ClientFactory) NewRunbookClient() *RunbookClient { subClient, _ := NewRunbookClient(c.subscriptionID, c.credential, c.options) diff --git a/sdk/resourcemanager/automation/armautomation/connection_client.go b/sdk/resourcemanager/automation/armautomation/connection_client.go index 8345ac26b807..f41c0e09a096 100644 --- a/sdk/resourcemanager/automation/armautomation/connection_client.go +++ b/sdk/resourcemanager/automation/armautomation/connection_client.go @@ -47,7 +47,7 @@ func NewConnectionClient(subscriptionID string, credential azcore.TokenCredentia // CreateOrUpdate - Create or update a connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - connectionName - The parameters supplied to the create or update connection operation. @@ -100,7 +100,7 @@ func (client *ConnectionClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -121,7 +121,7 @@ func (client *ConnectionClient) createOrUpdateHandleResponse(resp *http.Response // Delete - Delete the connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - connectionName - The name of connection. @@ -171,7 +171,7 @@ func (client *ConnectionClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -180,7 +180,7 @@ func (client *ConnectionClient) deleteCreateRequest(ctx context.Context, resourc // Get - Retrieve the connection identified by connection name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - connectionName - The name of connection. @@ -231,7 +231,7 @@ func (client *ConnectionClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -248,7 +248,7 @@ func (client *ConnectionClient) getHandleResponse(resp *http.Response) (Connecti // NewListByAutomationAccountPager - Retrieve a list of connections. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - ConnectionClientListByAutomationAccountOptions contains the optional parameters for the ConnectionClient.NewListByAutomationAccountPager @@ -296,7 +296,7 @@ func (client *ConnectionClient) listByAutomationAccountCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -314,7 +314,7 @@ func (client *ConnectionClient) listByAutomationAccountHandleResponse(resp *http // Update - Update a connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - connectionName - The parameters supplied to the update a connection operation. @@ -366,7 +366,7 @@ func (client *ConnectionClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/connection_client_example_test.go b/sdk/resourcemanager/automation/armautomation/connection_client_example_test.go deleted file mode 100644 index 09805016cd7a..000000000000 --- a/sdk/resourcemanager/automation/armautomation/connection_client_example_test.go +++ /dev/null @@ -1,2167 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteConnection.json -func ExampleConnectionClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewConnectionClient().Delete(ctx, "rg", "myAutomationAccount28", "myConnection", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnection.json -func ExampleConnectionClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewConnectionClient().Get(ctx, "rg", "myAutomationAccount28", "myConnection", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Connection = armautomation.Connection{ - // Name: to.Ptr("myConnection"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection"), - // Properties: &armautomation.ConnectionProperties{ - // Description: to.Ptr("my description goes here"), - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:29.290Z"); return t}()), - // FieldDefinitionValues: map[string]*string{ - // "AutomationCertificateName": to.Ptr("myCertificateName"), - // "SubscriptionID": to.Ptr("b5e4748c-f69a-467c-8749-e2f9c8cd3007"), - // }, - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:33.617Z"); return t}()), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateConnection.json -func ExampleConnectionClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewConnectionClient().CreateOrUpdate(ctx, "rg", "myAutomationAccount28", "mysConnection", armautomation.ConnectionCreateOrUpdateParameters{ - Name: to.Ptr("mysConnection"), - Properties: &armautomation.ConnectionCreateOrUpdateProperties{ - Description: to.Ptr("my description goes here"), - ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - Name: to.Ptr("Azure"), - }, - FieldDefinitionValues: map[string]*string{ - "AutomationCertificateName": to.Ptr("mysCertificateName"), - "SubscriptionID": to.Ptr("subid"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Connection = armautomation.Connection{ - // Name: to.Ptr("mysConnection"), - // Properties: &armautomation.ConnectionProperties{ - // Description: to.Ptr("my description goes here"), - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:29.290Z"); return t}()), - // FieldDefinitionValues: map[string]*string{ - // "AutomationCertificateName": to.Ptr("mysCertificateName"), - // "SubscriptionID": to.Ptr("subid"), - // }, - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:29.290Z"); return t}()), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateConnection.json -func ExampleConnectionClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewConnectionClient().Update(ctx, "rg", "myAutomationAccount28", "myConnection", armautomation.ConnectionUpdateParameters{ - Name: to.Ptr("myConnection"), - Properties: &armautomation.ConnectionUpdateProperties{ - Description: to.Ptr("my description goes here"), - FieldDefinitionValues: map[string]*string{ - "AutomationCertificateName": to.Ptr("myCertificateName"), - "SubscriptionID": to.Ptr("b5e4748c-f69a-467c-8749-e2f9c8cd3009"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Connection = armautomation.Connection{ - // Name: to.Ptr("myConnection"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount29/connections/myConnection"), - // Properties: &armautomation.ConnectionProperties{ - // Description: to.Ptr("my description goes here"), - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T08:21:29.313Z"); return t}()), - // FieldDefinitionValues: map[string]*string{ - // "AutomationCertificateName": to.Ptr("myCertificateName"), - // "SubscriptionID": to.Ptr("b5e4748c-f69a-467c-8749-e2f9c8cd3009"), - // }, - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T08:21:30.093Z"); return t}()), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listConnectionsByAutomationAccount_First100.json -func ExampleConnectionClient_NewListByAutomationAccountPager_listConnectionsByAutomationAccountFirst100() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewConnectionClient().NewListByAutomationAccountPager("rg", "myAutomationAccount28", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ConnectionListResult = armautomation.ConnectionListResult{ - // Value: []*armautomation.Connection{ - // { - // Name: to.Ptr("myConnection"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:29.290Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:33.617Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection0"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection0"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:36.493Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:36.493Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection1"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection1"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:36.760Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:36.760Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection10"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection10"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:39.117Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:39.117Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection100"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection100"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:04.527Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:04.527Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection101"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection101"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:04.777Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:04.777Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection102"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection102"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:05.027Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:05.027Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection103"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection103"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:05.277Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:05.277Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection104"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection104"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:05.527Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:05.527Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection105"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection105"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:05.820Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:05.820Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection106"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection106"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:06.070Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:06.070Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection107"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection107"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:06.370Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:06.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection108"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection108"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:06.620Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:06.620Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection109"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection109"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:06.870Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:06.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection11"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection11"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:39.367Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:39.367Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection110"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection110"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:07.167Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:07.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection111"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection111"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:07.463Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:07.463Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection112"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection112"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:07.730Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:07.730Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection113"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection113"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:07.963Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:07.963Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection114"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection114"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:08.213Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:08.213Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection115"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection115"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:08.527Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:08.527Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection116"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection116"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:08.760Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:08.760Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection117"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection117"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:09.103Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:09.103Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection118"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection118"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:09.370Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:09.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection119"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection119"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:09.650Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:09.650Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection12"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection12"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:39.617Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:39.617Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection120"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection120"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:09.883Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:09.883Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection121"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection121"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:10.167Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:10.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection122"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection122"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:10.430Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:10.430Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection123"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection123"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:10.680Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:10.680Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection124"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection124"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:10.930Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:10.930Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection125"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection125"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:11.180Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:11.180Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection126"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection126"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:11.430Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:11.430Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection127"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection127"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:11.667Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:11.667Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection128"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection128"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:11.917Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:11.917Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection129"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection129"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:12.180Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:12.180Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection13"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection13"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:39.883Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:39.883Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection130"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection130"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:12.430Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:12.430Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection131"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection131"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:12.667Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:12.667Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection132"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection132"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:12.917Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:12.917Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection133"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection133"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:13.213Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:13.213Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection134"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection134"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:13.463Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:13.463Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection135"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection135"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:13.730Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:13.730Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection136"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection136"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:14.010Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:14.010Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection137"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection137"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:14.290Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:14.290Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection138"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection138"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:14.540Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:14.540Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection139"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection139"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:14.807Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:14.807Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection14"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection14"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:40.133Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:40.133Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection140"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection140"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:15.057Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:15.057Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection141"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection141"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:15.307Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:15.307Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection142"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection142"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:15.603Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:15.603Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection143"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection143"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:15.853Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:15.853Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection144"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection144"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:16.120Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:16.120Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection145"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection145"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:16.370Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:16.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection146"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection146"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:16.633Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:16.633Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection147"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection147"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:16.900Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:16.900Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection148"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection148"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:17.167Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:17.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection149"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection149"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:17.430Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:17.430Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection15"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection15"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:40.370Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:40.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection150"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection150"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:17.680Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:17.680Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection151"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection151"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:17.963Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:17.963Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection152"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection152"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:18.527Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:18.527Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection153"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection153"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:18.790Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:18.790Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection154"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection154"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:19.073Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:19.073Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection155"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection155"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:19.353Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:19.353Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection156"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection156"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:19.680Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:19.680Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection157"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection157"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:19.930Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:19.930Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection158"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection158"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:20.243Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:20.243Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection159"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection159"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:20.557Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:20.557Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection16"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection16"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:40.620Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:40.620Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection160"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection160"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:20.823Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:20.823Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection161"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection161"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:21.150Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:21.150Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection162"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection162"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:21.417Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:21.417Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection163"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection163"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:21.650Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:21.650Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection164"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection164"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:21.993Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:21.993Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection165"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection165"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:22.323Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:22.323Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection166"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection166"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:22.680Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:22.680Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection167"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection167"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:23.057Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:23.057Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection168"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection168"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:23.417Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:23.417Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection169"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection169"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:23.697Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:23.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection17"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection17"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:40.870Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:40.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection170"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection170"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:23.963Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:23.963Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection171"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection171"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:24.243Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:24.243Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection172"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection172"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:24.510Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:24.510Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection173"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection173"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:24.777Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:24.777Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection174"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection174"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:25.057Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:25.057Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection175"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection175"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:25.340Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:25.340Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection18"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection18"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:41.197Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:41.197Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection19"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection19"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:41.570Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:41.570Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection2"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection2"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:37.010Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:37.010Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection20"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection20"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:41.913Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:41.913Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection21"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection21"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:42.273Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:42.273Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection22"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection22"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:42.663Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:42.663Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection23"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection23"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:42.993Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:42.993Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection24"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection24"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:43.260Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:43.260Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection25"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection25"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:43.587Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:43.587Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection26"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection26"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:43.870Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:43.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection27"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection27"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:44.227Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:44.227Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection28"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection28"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:44.557Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:44.557Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection29"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection29"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:44.807Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:44.807Z"); return t}()), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listConnectionsByAutomationAccount_Next100.json -func ExampleConnectionClient_NewListByAutomationAccountPager_listConnectionsByAutomationAccountNext100() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewConnectionClient().NewListByAutomationAccountPager("rg", "myAutomationAccount28", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ConnectionListResult = armautomation.ConnectionListResult{ - // Value: []*armautomation.Connection{ - // { - // Name: to.Ptr("myConnection3"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection3"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:37.290Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:37.290Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection30"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection30"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:45.040Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:45.040Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection31"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection31"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:45.307Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:45.307Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection32"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection32"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:45.557Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:45.557Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection33"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection33"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:45.853Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:45.853Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection34"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection34"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:46.087Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:46.087Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection35"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection35"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:46.353Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:46.353Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection36"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection36"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:46.603Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:46.603Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection37"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection37"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:46.853Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:46.853Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection38"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection38"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:47.103Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:47.103Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection39"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection39"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:47.353Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:47.353Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection4"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection4"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:37.540Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:37.540Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection40"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection40"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:47.620Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:47.620Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection41"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection41"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:47.883Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:47.883Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection42"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection42"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:48.167Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:48.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection43"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection43"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:48.430Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:48.430Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection44"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection44"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:48.820Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:48.820Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection45"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection45"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:49.180Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:49.180Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection46"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection46"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:49.477Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:49.477Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection47"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection47"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:49.773Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:49.773Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection48"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection48"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:50.197Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:50.197Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection49"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection49"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:50.603Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:50.603Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection5"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection5"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:37.790Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:37.790Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection50"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection50"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:50.837Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:50.837Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection51"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection51"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:51.087Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:51.087Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection52"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection52"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:51.337Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:51.337Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection53"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection53"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:51.587Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:51.587Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection54"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection54"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:51.870Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:51.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection55"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection55"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:52.150Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:52.150Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection56"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection56"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:52.400Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:52.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection57"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection57"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:52.667Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:52.667Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection58"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection58"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:52.917Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:52.917Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection59"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection59"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:53.167Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:53.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection6"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection6"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:38.103Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:38.103Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection60"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection60"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:53.463Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:53.463Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection61"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection61"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:53.727Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:53.727Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection62"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection62"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:54.010Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:54.010Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection63"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection63"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:54.273Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:54.273Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection64"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection64"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:54.523Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:54.523Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection65"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection65"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:54.807Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:54.807Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection66"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection66"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:55.103Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:55.103Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection67"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection67"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:55.370Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:55.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection68"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection68"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:55.620Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:55.620Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection69"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection69"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:55.883Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:55.883Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection7"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection7"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:38.353Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:38.353Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection70"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection70"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:56.133Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:56.133Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection71"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection71"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:56.383Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:56.383Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection72"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection72"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:56.633Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:56.633Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection73"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection73"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:56.870Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:56.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection74"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection74"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:57.120Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:57.120Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection75"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection75"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:57.370Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:57.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection76"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection76"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:57.620Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:57.620Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection77"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection77"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:57.870Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:57.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection78"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection78"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:58.120Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:58.120Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection79"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection79"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:58.370Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:58.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection8"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection8"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:38.587Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:38.587Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection80"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection80"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:58.633Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:58.633Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection81"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection81"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:58.917Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:58.917Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection82"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection82"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:59.180Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:59.180Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection83"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection83"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:59.477Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:59.477Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection84"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection84"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:59.713Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:59.713Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection85"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection85"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:00.010Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:00.010Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection86"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection86"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:00.260Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:00.260Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection87"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection87"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:00.620Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:00.620Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection88"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection88"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:00.980Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:00.980Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection89"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection89"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:01.353Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:01.353Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection9"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection9"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:38.867Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:52:38.867Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection90"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection90"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:01.697Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:01.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection91"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection91"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:01.963Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:01.963Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection92"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection92"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:02.290Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:02.290Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection93"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection93"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:02.587Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:02.587Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection94"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection94"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:02.870Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:02.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection95"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection95"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:03.260Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:03.260Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection96"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection96"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:03.510Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:03.510Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection97"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection97"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:03.760Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:03.760Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection98"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection98"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:04.027Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:04.027Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myConnection99"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount28/connections/myConnection99"), - // Properties: &armautomation.ConnectionProperties{ - // ConnectionType: &armautomation.ConnectionTypeAssociationProperty{ - // Name: to.Ptr("Azure"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:04.260Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T07:53:04.260Z"); return t}()), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/connectiontype_client.go b/sdk/resourcemanager/automation/armautomation/connectiontype_client.go index 63a6c9fdf992..3d897db81f7c 100644 --- a/sdk/resourcemanager/automation/armautomation/connectiontype_client.go +++ b/sdk/resourcemanager/automation/armautomation/connectiontype_client.go @@ -47,7 +47,7 @@ func NewConnectionTypeClient(subscriptionID string, credential azcore.TokenCrede // CreateOrUpdate - Create a connection type. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - connectionTypeName - The parameters supplied to the create or update connection type operation. @@ -100,7 +100,7 @@ func (client *ConnectionTypeClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -121,7 +121,7 @@ func (client *ConnectionTypeClient) createOrUpdateHandleResponse(resp *http.Resp // Delete - Delete the connection type. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - connectionTypeName - The name of connection type. @@ -171,7 +171,7 @@ func (client *ConnectionTypeClient) deleteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -180,7 +180,7 @@ func (client *ConnectionTypeClient) deleteCreateRequest(ctx context.Context, res // Get - Retrieve the connection type identified by connection type name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - connectionTypeName - The name of connection type. @@ -231,7 +231,7 @@ func (client *ConnectionTypeClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -248,7 +248,7 @@ func (client *ConnectionTypeClient) getHandleResponse(resp *http.Response) (Conn // NewListByAutomationAccountPager - Retrieve a list of connection types. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - ConnectionTypeClientListByAutomationAccountOptions contains the optional parameters for the ConnectionTypeClient.NewListByAutomationAccountPager @@ -296,7 +296,7 @@ func (client *ConnectionTypeClient) listByAutomationAccountCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/connectiontype_client_example_test.go b/sdk/resourcemanager/automation/armautomation/connectiontype_client_example_test.go deleted file mode 100644 index 41291d5cbfd0..000000000000 --- a/sdk/resourcemanager/automation/armautomation/connectiontype_client_example_test.go +++ /dev/null @@ -1,4857 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteConnectionType.json -func ExampleConnectionTypeClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewConnectionTypeClient().Delete(ctx, "rg", "myAutomationAccount22", "myCT", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnectionType.json -func ExampleConnectionTypeClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewConnectionTypeClient().Get(ctx, "rg", "myAutomationAccount22", "myCT", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ConnectionType = armautomation.ConnectionType{ - // Name: to.Ptr("myCT"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount22/connectionTypes/myCT"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T03:47:53.433Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T03:47:53.557Z"); return t}()), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateConnectionType.json -func ExampleConnectionTypeClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewConnectionTypeClient().CreateOrUpdate(ctx, "rg", "myAutomationAccount22", "myCT", armautomation.ConnectionTypeCreateOrUpdateParameters{ - Name: to.Ptr("myCT"), - Properties: &armautomation.ConnectionTypeCreateOrUpdateProperties{ - FieldDefinitions: map[string]*armautomation.FieldDefinition{ - "myBoolField": { - Type: to.Ptr("bool"), - IsEncrypted: to.Ptr(false), - IsOptional: to.Ptr(false), - }, - "myStringField": { - Type: to.Ptr("string"), - IsEncrypted: to.Ptr(false), - IsOptional: to.Ptr(false), - }, - "myStringFieldEncrypted": { - Type: to.Ptr("string"), - IsEncrypted: to.Ptr(true), - IsOptional: to.Ptr(false), - }, - }, - IsGlobal: to.Ptr(false), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getAllConnectionTypes_First100.json -func ExampleConnectionTypeClient_NewListByAutomationAccountPager_getConnectionTypesFirst100() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewConnectionTypeClient().NewListByAutomationAccountPager("rg", "myAutomationAccount25", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ConnectionTypeListResult = armautomation.ConnectionTypeListResult{ - // Value: []*armautomation.ConnectionType{ - // { - // Name: to.Ptr("Azure"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/Azure"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2014-03-18T23:02:40.613Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "AutomationCertificateName": &armautomation.FieldDefinition{ - // Type: to.Ptr("System.String"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "SubscriptionID": &armautomation.FieldDefinition{ - // Type: to.Ptr("System.String"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2014-03-18T23:02:40.740Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("AzureClassicCertificate"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/AzureClassicCertificate"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-04-25T23:54:02.650Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "CertificateAssetName": &armautomation.FieldDefinition{ - // Type: to.Ptr("System.String"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "SubscriptionId": &armautomation.FieldDefinition{ - // Type: to.Ptr("System.String"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "SubscriptionName": &armautomation.FieldDefinition{ - // Type: to.Ptr("System.String"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-04-25T23:54:03.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("AzureServicePrincipal"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/AzureServicePrincipal"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-16T23:08:41.853Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "ApplicationId": &armautomation.FieldDefinition{ - // Type: to.Ptr("System.String"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "CertificateThumbprint": &armautomation.FieldDefinition{ - // Type: to.Ptr("System.String"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "SubscriptionId": &armautomation.FieldDefinition{ - // Type: to.Ptr("System.String"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "TenantId": &armautomation.FieldDefinition{ - // Type: to.Ptr("System.String"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-03-16T23:08:42.407Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:14.430Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:14.510Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT0"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT0"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:14.837Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:14.853Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT1"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT1"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:15.040Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:15.057Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT10"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT10"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:17.120Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:17.150Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT100"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT100"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:36.730Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:36.760Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT101"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT101"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:36.963Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:36.993Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT102"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT102"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:37.197Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:37.213Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT103"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT103"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:37.417Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:37.430Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT104"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT104"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:37.633Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:37.650Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT105"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT105"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:37.837Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:37.883Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT106"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT106"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:38.073Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:38.087Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT107"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT107"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:38.277Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:38.290Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT108"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT108"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:38.493Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:38.510Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT109"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT109"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:38.697Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:38.713Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT11"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT11"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:17.337Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:17.383Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT110"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT110"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:38.930Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:38.947Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT111"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT111"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:39.150Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:39.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT112"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT112"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:39.353Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:39.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT113"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT113"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:39.557Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:39.573Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT114"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT114"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:39.777Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:39.790Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT115"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT115"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:39.980Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:39.993Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT116"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT116"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:40.180Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:40.197Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT117"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT117"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:40.417Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:40.430Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT118"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT118"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:40.633Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:40.650Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT119"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT119"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:40.837Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:40.853Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT12"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT12"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:17.587Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:17.603Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT120"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT120"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:41.040Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:41.057Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT121"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT121"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:41.260Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:41.277Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT122"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT122"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:41.480Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:41.557Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT123"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT123"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:41.743Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:41.760Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT124"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT124"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:41.947Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:41.963Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT125"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT125"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:42.180Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:42.197Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT126"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT126"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:42.383Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:42.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT127"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT127"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:42.603Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:42.620Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT128"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT128"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:42.823Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:42.837Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT129"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT129"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:43.027Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:43.040Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT13"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT13"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:17.790Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:17.807Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT130"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT130"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:43.243Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:43.260Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT131"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT131"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:43.447Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:43.463Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT132"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT132"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:43.650Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:43.667Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT133"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT133"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:43.870Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:43.887Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT134"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT134"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:44.073Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:44.087Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT135"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT135"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:44.290Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:44.307Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT136"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT136"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:44.493Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:44.510Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT137"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT137"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:44.760Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:44.807Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT138"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT138"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:45.010Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:45.027Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT139"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT139"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:45.213Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:45.230Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT14"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT14"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:17.993Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:18.010Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT140"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT140"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:45.433Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:45.463Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT141"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT141"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:45.650Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:45.667Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT142"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT142"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:45.883Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:45.917Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT143"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT143"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:46.103Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:46.133Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT144"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT144"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:46.340Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:46.353Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT145"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT145"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:46.540Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:46.557Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT146"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT146"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:46.760Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:46.777Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT147"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT147"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:46.963Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:46.980Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT148"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT148"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:47.197Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:47.213Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT149"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT149"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:47.417Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:47.430Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT15"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT15"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:18.213Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:18.227Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT150"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT150"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:47.637Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:47.650Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT151"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT151"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:47.853Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:47.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT152"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT152"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:48.103Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:48.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT153"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT153"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:48.370Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:48.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT154"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT154"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:48.590Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:48.667Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT155"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT155"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:48.887Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:48.930Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT156"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT156"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:49.120Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:49.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT157"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT157"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:49.370Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:49.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT158"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT158"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:49.603Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:49.637Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT159"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT159"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:49.840Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:49.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT16"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT16"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:18.417Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:18.430Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT160"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT160"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:50.090Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:50.103Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT161"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT161"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:50.290Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:50.307Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT162"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT162"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:50.493Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:50.510Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT163"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT163"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:50.697Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:50.713Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT164"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT164"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:50.917Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:50.933Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT165"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT165"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:51.120Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:51.137Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT166"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT166"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:51.340Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:51.353Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT167"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT167"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:51.540Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:51.557Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT168"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT168"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:51.743Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:51.760Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT169"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT169"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:51.980Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:51.980Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT17"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT17"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:18.620Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:18.633Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT170"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT170"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:52.213Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:52.230Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT171"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT171"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:52.417Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:52.433Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT172"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT172"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:52.637Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:52.650Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT173"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT173"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:52.840Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:52.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT174"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT174"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:53.057Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:53.073Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT175"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT175"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:53.260Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:53.290Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT18"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT18"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:18.820Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:18.837Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT19"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT19"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:19.040Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:19.057Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT2"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT2"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:15.260Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:15.273Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT20"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT20"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:19.243Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:19.260Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT21"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT21"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:19.463Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:19.477Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT22"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT22"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:19.667Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:19.680Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT23"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT23"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:19.883Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:19.900Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT24"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT24"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:20.103Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:20.120Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT25"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT25"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:20.400Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:20.417Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT26"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT26"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:20.650Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:20.667Z"); return t}()), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getAllConnectionTypes_Next100.json -func ExampleConnectionTypeClient_NewListByAutomationAccountPager_getConnectionTypesNext100() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewConnectionTypeClient().NewListByAutomationAccountPager("rg", "myAutomationAccount25", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ConnectionTypeListResult = armautomation.ConnectionTypeListResult{ - // Value: []*armautomation.ConnectionType{ - // { - // Name: to.Ptr("myCT27"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT27"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:20.870Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:20.883Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT28"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT28"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:21.070Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:21.087Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT29"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT29"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:21.290Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:21.307Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT3"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT3"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:15.477Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:15.493Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT30"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT30"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:21.523Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:21.540Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT31"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT31"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:21.727Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:21.743Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT32"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT32"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:21.930Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:21.947Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT33"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT33"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:22.133Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:22.150Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT34"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT34"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:22.353Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:22.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT35"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT35"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:22.570Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:22.587Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT36"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT36"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:22.773Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:22.790Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT37"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT37"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:22.977Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:22.993Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT38"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT38"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:23.197Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:23.213Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT39"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT39"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:23.417Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:23.447Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT4"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT4"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:15.680Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:15.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT40"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT40"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:23.633Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:23.650Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT41"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT41"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:23.853Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:23.870Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT42"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT42"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:24.057Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:24.070Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT43"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT43"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:24.260Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:24.273Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT44"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT44"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:24.477Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:24.493Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT45"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT45"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:24.680Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:24.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT46"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT46"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:24.883Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:24.900Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT47"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT47"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:25.103Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:25.120Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT48"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT48"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:25.307Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:25.320Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT49"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT49"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:25.523Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:25.540Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT5"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT5"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:15.900Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:15.917Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT50"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT50"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:25.727Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:25.743Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT51"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT51"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:25.930Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:25.947Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT52"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT52"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:26.133Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:26.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT53"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT53"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:26.353Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:26.370Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT54"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT54"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:26.570Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:26.587Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT55"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT55"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:26.773Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:26.790Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT56"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT56"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:26.977Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:26.993Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT57"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT57"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:27.197Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:27.213Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT58"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT58"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:27.477Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:27.493Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT59"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT59"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:27.680Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:27.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT6"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT6"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:16.133Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:16.167Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT60"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT60"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:27.917Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:27.947Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT61"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT61"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:28.133Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:28.150Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT62"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT62"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:28.337Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:28.353Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT63"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT63"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:28.587Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:28.587Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT64"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT64"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:28.790Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:28.807Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT65"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT65"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:28.993Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:29.010Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT66"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT66"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:29.197Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:29.213Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT67"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT67"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:29.417Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:29.463Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT68"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT68"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:29.650Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:29.697Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT69"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT69"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:29.883Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:29.900Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT7"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT7"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:16.400Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:16.447Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT70"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT70"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:30.087Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:30.120Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT71"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT71"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:30.320Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:30.353Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT72"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT72"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:30.557Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:30.570Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT73"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT73"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:30.773Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:30.790Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT74"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT74"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:30.980Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:30.980Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT75"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT75"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:31.180Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:31.200Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT76"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT76"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:31.383Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:31.400Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT77"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT77"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:31.587Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:31.620Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT78"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT78"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:31.837Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:31.853Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT79"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT79"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:32.057Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:32.057Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT8"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT8"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:16.633Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:16.680Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT80"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT80"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:32.260Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:32.277Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT81"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT81"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:32.493Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:32.510Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT82"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT82"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:32.730Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:32.743Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT83"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT83"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:32.930Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:32.947Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT84"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT84"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:33.133Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:33.197Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT85"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT85"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:33.400Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:33.417Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT86"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT86"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:33.603Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:33.620Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT87"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT87"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:33.820Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:33.837Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT88"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT88"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:34.027Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:34.040Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT89"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT89"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:34.230Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:34.243Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT9"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT9"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:16.883Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:16.917Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT90"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT90"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:34.430Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:34.480Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT91"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT91"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:34.667Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:34.713Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT92"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT92"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:34.900Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:34.947Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT93"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT93"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:35.133Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:35.150Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT94"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT94"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:35.370Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:35.417Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT95"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT95"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:35.603Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:35.620Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT96"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT96"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:35.823Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:35.837Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT97"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT97"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:36.027Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:36.040Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT98"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT98"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:36.243Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:36.290Z"); return t}()), - // }, - // }, - // { - // Name: to.Ptr("myCT99"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount25/connectionTypes/myCT99"), - // Properties: &armautomation.ConnectionTypeProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:36.493Z"); return t}()), - // FieldDefinitions: map[string]*armautomation.FieldDefinition{ - // "myBoolField": &armautomation.FieldDefinition{ - // Type: to.Ptr("bool"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringField": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(false), - // IsOptional: to.Ptr(false), - // }, - // "myStringFieldEncrypted": &armautomation.FieldDefinition{ - // Type: to.Ptr("string"), - // IsEncrypted: to.Ptr(true), - // IsOptional: to.Ptr(false), - // }, - // }, - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T06:25:36.527Z"); return t}()), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/constants.go b/sdk/resourcemanager/automation/armautomation/constants.go index 376aab40d8d8..fa7f1d308dc5 100644 --- a/sdk/resourcemanager/automation/armautomation/constants.go +++ b/sdk/resourcemanager/automation/armautomation/constants.go @@ -10,7 +10,7 @@ package armautomation const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" - moduleVersion = "v0.9.0" + moduleVersion = "v0.10.0" ) // AgentRegistrationKeyName - Gets or sets the agent registration key name - primary or secondary. @@ -405,12 +405,12 @@ func PossibleLinuxUpdateClassesValues() []LinuxUpdateClasses { } } -// ModuleProvisioningState - Gets or sets the provisioning state of the module. +// ModuleProvisioningState - Gets the provisioning state of the module. type ModuleProvisioningState string const ( ModuleProvisioningStateActivitiesStored ModuleProvisioningState = "ActivitiesStored" - ModuleProvisioningStateCancelled ModuleProvisioningState = "Cancelled" + ModuleProvisioningStateCanceled ModuleProvisioningState = "Canceled" ModuleProvisioningStateConnectionTypeImported ModuleProvisioningState = "ConnectionTypeImported" ModuleProvisioningStateContentDownloaded ModuleProvisioningState = "ContentDownloaded" ModuleProvisioningStateContentRetrieved ModuleProvisioningState = "ContentRetrieved" @@ -431,7 +431,7 @@ const ( func PossibleModuleProvisioningStateValues() []ModuleProvisioningState { return []ModuleProvisioningState{ ModuleProvisioningStateActivitiesStored, - ModuleProvisioningStateCancelled, + ModuleProvisioningStateCanceled, ModuleProvisioningStateConnectionTypeImported, ModuleProvisioningStateContentDownloaded, ModuleProvisioningStateContentRetrieved, @@ -529,6 +529,7 @@ const ( RunbookTypeEnumGraphPowerShell RunbookTypeEnum = "GraphPowerShell" RunbookTypeEnumGraphPowerShellWorkflow RunbookTypeEnum = "GraphPowerShellWorkflow" RunbookTypeEnumPowerShell RunbookTypeEnum = "PowerShell" + RunbookTypeEnumPowerShell72 RunbookTypeEnum = "PowerShell72" RunbookTypeEnumPowerShellWorkflow RunbookTypeEnum = "PowerShellWorkflow" RunbookTypeEnumPython2 RunbookTypeEnum = "Python2" RunbookTypeEnumPython3 RunbookTypeEnum = "Python3" @@ -542,6 +543,7 @@ func PossibleRunbookTypeEnumValues() []RunbookTypeEnum { RunbookTypeEnumGraphPowerShell, RunbookTypeEnumGraphPowerShellWorkflow, RunbookTypeEnumPowerShell, + RunbookTypeEnumPowerShell72, RunbookTypeEnumPowerShellWorkflow, RunbookTypeEnumPython2, RunbookTypeEnumPython3, diff --git a/sdk/resourcemanager/automation/armautomation/credential_client.go b/sdk/resourcemanager/automation/armautomation/credential_client.go index a25e0a7d570e..2e5ffadbe47b 100644 --- a/sdk/resourcemanager/automation/armautomation/credential_client.go +++ b/sdk/resourcemanager/automation/armautomation/credential_client.go @@ -47,7 +47,7 @@ func NewCredentialClient(subscriptionID string, credential azcore.TokenCredentia // CreateOrUpdate - Create a credential. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - credentialName - The parameters supplied to the create or update credential operation. @@ -100,7 +100,7 @@ func (client *CredentialClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -121,7 +121,7 @@ func (client *CredentialClient) createOrUpdateHandleResponse(resp *http.Response // Delete - Delete the credential. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - credentialName - The name of credential. @@ -171,7 +171,7 @@ func (client *CredentialClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -180,7 +180,7 @@ func (client *CredentialClient) deleteCreateRequest(ctx context.Context, resourc // Get - Retrieve the credential identified by credential name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - credentialName - The name of credential. @@ -231,7 +231,7 @@ func (client *CredentialClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -248,7 +248,7 @@ func (client *CredentialClient) getHandleResponse(resp *http.Response) (Credenti // NewListByAutomationAccountPager - Retrieve a list of credentials. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - CredentialClientListByAutomationAccountOptions contains the optional parameters for the CredentialClient.NewListByAutomationAccountPager @@ -296,7 +296,7 @@ func (client *CredentialClient) listByAutomationAccountCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -314,7 +314,7 @@ func (client *CredentialClient) listByAutomationAccountHandleResponse(resp *http // Update - Update a credential. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - credentialName - The parameters supplied to the Update credential operation. @@ -366,7 +366,7 @@ func (client *CredentialClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/credential_client_example_test.go b/sdk/resourcemanager/automation/armautomation/credential_client_example_test.go deleted file mode 100644 index 2fbda3239c9e..000000000000 --- a/sdk/resourcemanager/automation/armautomation/credential_client_example_test.go +++ /dev/null @@ -1,2196 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteCredentialExisting.json -func ExampleCredentialClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCredentialClient().Delete(ctx, "rg", "myAutomationAccount20", "myCredential", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCredential.json -func ExampleCredentialClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCredentialClient().Get(ctx, "rg", "myAutomationAccount18", "myCredential", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Credential = armautomation.Credential{ - // Name: to.Ptr("myCredential"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount18/credentials/myCredential"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:04:10.270Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:04:16.423Z"); return t}()), - // UserName: to.Ptr("mylingaiah"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateCredential.json -func ExampleCredentialClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCredentialClient().CreateOrUpdate(ctx, "rg", "myAutomationAccount18", "myCredential", armautomation.CredentialCreateOrUpdateParameters{ - Name: to.Ptr("myCredential"), - Properties: &armautomation.CredentialCreateOrUpdateProperties{ - Description: to.Ptr("my description goes here"), - Password: to.Ptr(""), - UserName: to.Ptr("mylingaiah"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Credential = armautomation.Credential{ - // Name: to.Ptr("myCredential"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount18/credentials/myCredential"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:04:10.270Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:04:13.567Z"); return t}()), - // UserName: to.Ptr("mylingaiah"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateCredential_patch.json -func ExampleCredentialClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCredentialClient().Update(ctx, "rg", "myAutomationAccount18", "myCredential", armautomation.CredentialUpdateParameters{ - Name: to.Ptr("myCredential"), - Properties: &armautomation.CredentialUpdateProperties{ - Description: to.Ptr("my description goes here"), - Password: to.Ptr(""), - UserName: to.Ptr("mylingaiah"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Credential = armautomation.Credential{ - // Name: to.Ptr("myCredential"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount18/credentials/myCredential"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:04:10.270Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:04:13.567Z"); return t}()), - // UserName: to.Ptr("mylingaiah"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listCredentialsByAutomationAccount.json -func ExampleCredentialClient_NewListByAutomationAccountPager_listCredentialsByAutomationAccountFirst100() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCredentialClient().NewListByAutomationAccountPager("rg", "myAutomationAccount20", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CredentialListResult = armautomation.CredentialListResult{ - // Value: []*armautomation.Credential{ - // { - // Name: to.Ptr("myCredential"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:38.910Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:45.393Z"); return t}()), - // UserName: to.Ptr("mylingaiah"), - // }, - // }, - // { - // Name: to.Ptr("myCredential0"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential0"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:51.770Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:51.770Z"); return t}()), - // UserName: to.Ptr("myCredential0"), - // }, - // }, - // { - // Name: to.Ptr("myCredential1"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential1"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:52.113Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:52.113Z"); return t}()), - // UserName: to.Ptr("myCredential1"), - // }, - // }, - // { - // Name: to.Ptr("myCredential10"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential10"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:55.300Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:55.300Z"); return t}()), - // UserName: to.Ptr("myCredential10"), - // }, - // }, - // { - // Name: to.Ptr("myCredential100"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential100"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:25.410Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:25.410Z"); return t}()), - // UserName: to.Ptr("myCredential100"), - // }, - // }, - // { - // Name: to.Ptr("myCredential101"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential101"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:25.690Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:25.690Z"); return t}()), - // UserName: to.Ptr("myCredential101"), - // }, - // }, - // { - // Name: to.Ptr("myCredential102"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential102"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:26.003Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:26.003Z"); return t}()), - // UserName: to.Ptr("myCredential102"), - // }, - // }, - // { - // Name: to.Ptr("myCredential103"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential103"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:26.337Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:26.337Z"); return t}()), - // UserName: to.Ptr("myCredential103"), - // }, - // }, - // { - // Name: to.Ptr("myCredential104"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential104"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:26.677Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:26.677Z"); return t}()), - // UserName: to.Ptr("myCredential104"), - // }, - // }, - // { - // Name: to.Ptr("myCredential105"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential105"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:27.020Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:27.020Z"); return t}()), - // UserName: to.Ptr("myCredential105"), - // }, - // }, - // { - // Name: to.Ptr("myCredential106"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential106"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:27.350Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:27.350Z"); return t}()), - // UserName: to.Ptr("myCredential106"), - // }, - // }, - // { - // Name: to.Ptr("myCredential107"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential107"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:27.660Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:27.660Z"); return t}()), - // UserName: to.Ptr("myCredential107"), - // }, - // }, - // { - // Name: to.Ptr("myCredential108"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential108"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:27.990Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:27.990Z"); return t}()), - // UserName: to.Ptr("myCredential108"), - // }, - // }, - // { - // Name: to.Ptr("myCredential109"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential109"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:28.300Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:28.300Z"); return t}()), - // UserName: to.Ptr("myCredential109"), - // }, - // }, - // { - // Name: to.Ptr("myCredential11"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential11"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:55.677Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:55.677Z"); return t}()), - // UserName: to.Ptr("myCredential11"), - // }, - // }, - // { - // Name: to.Ptr("myCredential110"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential110"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:28.630Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:28.630Z"); return t}()), - // UserName: to.Ptr("myCredential110"), - // }, - // }, - // { - // Name: to.Ptr("myCredential111"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential111"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:28.943Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:28.943Z"); return t}()), - // UserName: to.Ptr("myCredential111"), - // }, - // }, - // { - // Name: to.Ptr("myCredential112"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential112"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:29.253Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:29.253Z"); return t}()), - // UserName: to.Ptr("myCredential112"), - // }, - // }, - // { - // Name: to.Ptr("myCredential113"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential113"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:29.567Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:29.567Z"); return t}()), - // UserName: to.Ptr("myCredential113"), - // }, - // }, - // { - // Name: to.Ptr("myCredential114"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential114"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:29.880Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:29.880Z"); return t}()), - // UserName: to.Ptr("myCredential114"), - // }, - // }, - // { - // Name: to.Ptr("myCredential115"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential115"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:30.207Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:30.207Z"); return t}()), - // UserName: to.Ptr("myCredential115"), - // }, - // }, - // { - // Name: to.Ptr("myCredential116"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential116"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:30.520Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:30.520Z"); return t}()), - // UserName: to.Ptr("myCredential116"), - // }, - // }, - // { - // Name: to.Ptr("myCredential117"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential117"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:30.833Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:30.833Z"); return t}()), - // UserName: to.Ptr("myCredential117"), - // }, - // }, - // { - // Name: to.Ptr("myCredential118"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential118"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:31.240Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:31.240Z"); return t}()), - // UserName: to.Ptr("myCredential118"), - // }, - // }, - // { - // Name: to.Ptr("myCredential119"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential119"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:31.600Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:31.600Z"); return t}()), - // UserName: to.Ptr("myCredential119"), - // }, - // }, - // { - // Name: to.Ptr("myCredential12"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential12"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:56.020Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:56.020Z"); return t}()), - // UserName: to.Ptr("myCredential12"), - // }, - // }, - // { - // Name: to.Ptr("myCredential120"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential120"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:31.943Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:31.943Z"); return t}()), - // UserName: to.Ptr("myCredential120"), - // }, - // }, - // { - // Name: to.Ptr("myCredential121"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential121"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:32.333Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:32.333Z"); return t}()), - // UserName: to.Ptr("myCredential121"), - // }, - // }, - // { - // Name: to.Ptr("myCredential122"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential122"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:32.660Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:32.660Z"); return t}()), - // UserName: to.Ptr("myCredential122"), - // }, - // }, - // { - // Name: to.Ptr("myCredential123"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential123"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:32.957Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:32.957Z"); return t}()), - // UserName: to.Ptr("myCredential123"), - // }, - // }, - // { - // Name: to.Ptr("myCredential124"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential124"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:33.270Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:33.270Z"); return t}()), - // UserName: to.Ptr("myCredential124"), - // }, - // }, - // { - // Name: to.Ptr("myCredential125"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential125"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:33.600Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:33.600Z"); return t}()), - // UserName: to.Ptr("myCredential125"), - // }, - // }, - // { - // Name: to.Ptr("myCredential126"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential126"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:33.957Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:33.957Z"); return t}()), - // UserName: to.Ptr("myCredential126"), - // }, - // }, - // { - // Name: to.Ptr("myCredential127"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential127"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:34.287Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:34.287Z"); return t}()), - // UserName: to.Ptr("myCredential127"), - // }, - // }, - // { - // Name: to.Ptr("myCredential128"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential128"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:34.613Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:34.613Z"); return t}()), - // UserName: to.Ptr("myCredential128"), - // }, - // }, - // { - // Name: to.Ptr("myCredential129"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential129"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:34.973Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:34.973Z"); return t}()), - // UserName: to.Ptr("myCredential129"), - // }, - // }, - // { - // Name: to.Ptr("myCredential13"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential13"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:56.393Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:56.393Z"); return t}()), - // UserName: to.Ptr("myCredential13"), - // }, - // }, - // { - // Name: to.Ptr("myCredential130"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential130"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:35.363Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:35.363Z"); return t}()), - // UserName: to.Ptr("myCredential130"), - // }, - // }, - // { - // Name: to.Ptr("myCredential131"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential131"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:35.707Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:35.707Z"); return t}()), - // UserName: to.Ptr("myCredential131"), - // }, - // }, - // { - // Name: to.Ptr("myCredential132"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential132"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:36.037Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:36.037Z"); return t}()), - // UserName: to.Ptr("myCredential132"), - // }, - // }, - // { - // Name: to.Ptr("myCredential133"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential133"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:36.380Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:36.380Z"); return t}()), - // UserName: to.Ptr("myCredential133"), - // }, - // }, - // { - // Name: to.Ptr("myCredential134"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential134"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:36.740Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:36.740Z"); return t}()), - // UserName: to.Ptr("myCredential134"), - // }, - // }, - // { - // Name: to.Ptr("myCredential135"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential135"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:37.050Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:37.050Z"); return t}()), - // UserName: to.Ptr("myCredential135"), - // }, - // }, - // { - // Name: to.Ptr("myCredential136"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential136"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:37.410Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:37.410Z"); return t}()), - // UserName: to.Ptr("myCredential136"), - // }, - // }, - // { - // Name: to.Ptr("myCredential137"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential137"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:37.723Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:37.723Z"); return t}()), - // UserName: to.Ptr("myCredential137"), - // }, - // }, - // { - // Name: to.Ptr("myCredential138"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential138"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:38.037Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:38.037Z"); return t}()), - // UserName: to.Ptr("myCredential138"), - // }, - // }, - // { - // Name: to.Ptr("myCredential139"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential139"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:38.350Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:38.350Z"); return t}()), - // UserName: to.Ptr("myCredential139"), - // }, - // }, - // { - // Name: to.Ptr("myCredential14"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential14"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:56.723Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:56.723Z"); return t}()), - // UserName: to.Ptr("myCredential14"), - // }, - // }, - // { - // Name: to.Ptr("myCredential140"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential140"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:38.710Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:38.710Z"); return t}()), - // UserName: to.Ptr("myCredential140"), - // }, - // }, - // { - // Name: to.Ptr("myCredential141"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential141"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:39.037Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:39.037Z"); return t}()), - // UserName: to.Ptr("myCredential141"), - // }, - // }, - // { - // Name: to.Ptr("myCredential142"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential142"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:39.350Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:39.350Z"); return t}()), - // UserName: to.Ptr("myCredential142"), - // }, - // }, - // { - // Name: to.Ptr("myCredential143"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential143"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:39.677Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:39.677Z"); return t}()), - // UserName: to.Ptr("myCredential143"), - // }, - // }, - // { - // Name: to.Ptr("myCredential144"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential144"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:39.990Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:39.990Z"); return t}()), - // UserName: to.Ptr("myCredential144"), - // }, - // }, - // { - // Name: to.Ptr("myCredential145"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential145"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:40.317Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:40.317Z"); return t}()), - // UserName: to.Ptr("myCredential145"), - // }, - // }, - // { - // Name: to.Ptr("myCredential146"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential146"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:40.630Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:40.630Z"); return t}()), - // UserName: to.Ptr("myCredential146"), - // }, - // }, - // { - // Name: to.Ptr("myCredential147"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential147"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:40.943Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:40.943Z"); return t}()), - // UserName: to.Ptr("myCredential147"), - // }, - // }, - // { - // Name: to.Ptr("myCredential148"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential148"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:41.270Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:41.270Z"); return t}()), - // UserName: to.Ptr("myCredential148"), - // }, - // }, - // { - // Name: to.Ptr("myCredential149"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential149"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:41.600Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:41.600Z"); return t}()), - // UserName: to.Ptr("myCredential149"), - // }, - // }, - // { - // Name: to.Ptr("myCredential15"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential15"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:57.033Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:57.033Z"); return t}()), - // UserName: to.Ptr("myCredential15"), - // }, - // }, - // { - // Name: to.Ptr("myCredential150"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential150"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:41.910Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:41.910Z"); return t}()), - // UserName: to.Ptr("myCredential150"), - // }, - // }, - // { - // Name: to.Ptr("myCredential151"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential151"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:42.240Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:42.240Z"); return t}()), - // UserName: to.Ptr("myCredential151"), - // }, - // }, - // { - // Name: to.Ptr("myCredential152"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential152"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:42.567Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:42.567Z"); return t}()), - // UserName: to.Ptr("myCredential152"), - // }, - // }, - // { - // Name: to.Ptr("myCredential153"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential153"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:42.880Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:42.880Z"); return t}()), - // UserName: to.Ptr("myCredential153"), - // }, - // }, - // { - // Name: to.Ptr("myCredential154"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential154"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:43.193Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:43.193Z"); return t}()), - // UserName: to.Ptr("myCredential154"), - // }, - // }, - // { - // Name: to.Ptr("myCredential155"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential155"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:43.520Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:43.520Z"); return t}()), - // UserName: to.Ptr("myCredential155"), - // }, - // }, - // { - // Name: to.Ptr("myCredential156"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential156"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:43.833Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:43.833Z"); return t}()), - // UserName: to.Ptr("myCredential156"), - // }, - // }, - // { - // Name: to.Ptr("myCredential157"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential157"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:44.147Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:44.147Z"); return t}()), - // UserName: to.Ptr("myCredential157"), - // }, - // }, - // { - // Name: to.Ptr("myCredential158"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential158"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:44.473Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:44.473Z"); return t}()), - // UserName: to.Ptr("myCredential158"), - // }, - // }, - // { - // Name: to.Ptr("myCredential159"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential159"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:44.787Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:44.787Z"); return t}()), - // UserName: to.Ptr("myCredential159"), - // }, - // }, - // { - // Name: to.Ptr("myCredential16"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential16"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:57.363Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:57.363Z"); return t}()), - // UserName: to.Ptr("myCredential16"), - // }, - // }, - // { - // Name: to.Ptr("myCredential160"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential160"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:45.100Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:45.100Z"); return t}()), - // UserName: to.Ptr("myCredential160"), - // }, - // }, - // { - // Name: to.Ptr("myCredential161"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential161"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:45.427Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:45.427Z"); return t}()), - // UserName: to.Ptr("myCredential161"), - // }, - // }, - // { - // Name: to.Ptr("myCredential162"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential162"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:45.740Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:45.740Z"); return t}()), - // UserName: to.Ptr("myCredential162"), - // }, - // }, - // { - // Name: to.Ptr("myCredential163"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential163"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:46.067Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:46.067Z"); return t}()), - // UserName: to.Ptr("myCredential163"), - // }, - // }, - // { - // Name: to.Ptr("myCredential164"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential164"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:46.380Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:46.380Z"); return t}()), - // UserName: to.Ptr("myCredential164"), - // }, - // }, - // { - // Name: to.Ptr("myCredential165"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential165"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:46.710Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:46.710Z"); return t}()), - // UserName: to.Ptr("myCredential165"), - // }, - // }, - // { - // Name: to.Ptr("myCredential166"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential166"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:47.037Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:47.037Z"); return t}()), - // UserName: to.Ptr("myCredential166"), - // }, - // }, - // { - // Name: to.Ptr("myCredential167"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential167"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:47.350Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:47.350Z"); return t}()), - // UserName: to.Ptr("myCredential167"), - // }, - // }, - // { - // Name: to.Ptr("myCredential168"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential168"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:47.677Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:47.677Z"); return t}()), - // UserName: to.Ptr("myCredential168"), - // }, - // }, - // { - // Name: to.Ptr("myCredential169"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential169"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:47.990Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:47.990Z"); return t}()), - // UserName: to.Ptr("myCredential169"), - // }, - // }, - // { - // Name: to.Ptr("myCredential17"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential17"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:57.677Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:57.677Z"); return t}()), - // UserName: to.Ptr("myCredential17"), - // }, - // }, - // { - // Name: to.Ptr("myCredential170"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential170"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:48.287Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:48.287Z"); return t}()), - // UserName: to.Ptr("myCredential170"), - // }, - // }, - // { - // Name: to.Ptr("myCredential171"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential171"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:48.613Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:48.613Z"); return t}()), - // UserName: to.Ptr("myCredential171"), - // }, - // }, - // { - // Name: to.Ptr("myCredential172"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential172"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:48.927Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:48.927Z"); return t}()), - // UserName: to.Ptr("myCredential172"), - // }, - // }, - // { - // Name: to.Ptr("myCredential173"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential173"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:49.257Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:49.257Z"); return t}()), - // UserName: to.Ptr("myCredential173"), - // }, - // }, - // { - // Name: to.Ptr("myCredential174"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential174"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:49.567Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:49.567Z"); return t}()), - // UserName: to.Ptr("myCredential174"), - // }, - // }, - // { - // Name: to.Ptr("myCredential175"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential175"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:49.880Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:49.880Z"); return t}()), - // UserName: to.Ptr("myCredential175"), - // }, - // }, - // { - // Name: to.Ptr("myCredential176"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential176"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:50.210Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:50.210Z"); return t}()), - // UserName: to.Ptr("myCredential176"), - // }, - // }, - // { - // Name: to.Ptr("myCredential177"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential177"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:50.537Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:50.537Z"); return t}()), - // UserName: to.Ptr("myCredential177"), - // }, - // }, - // { - // Name: to.Ptr("myCredential178"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential178"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:50.863Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:50.863Z"); return t}()), - // UserName: to.Ptr("myCredential178"), - // }, - // }, - // { - // Name: to.Ptr("myCredential179"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential179"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:51.193Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:51.193Z"); return t}()), - // UserName: to.Ptr("myCredential179"), - // }, - // }, - // { - // Name: to.Ptr("myCredential18"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential18"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:58.003Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:58.003Z"); return t}()), - // UserName: to.Ptr("myCredential18"), - // }, - // }, - // { - // Name: to.Ptr("myCredential180"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential180"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:51.600Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:51.600Z"); return t}()), - // UserName: to.Ptr("myCredential180"), - // }, - // }, - // { - // Name: to.Ptr("myCredential181"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential181"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:51.910Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:51.910Z"); return t}()), - // UserName: to.Ptr("myCredential181"), - // }, - // }, - // { - // Name: to.Ptr("myCredential182"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential182"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:52.223Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:52.223Z"); return t}()), - // UserName: to.Ptr("myCredential182"), - // }, - // }, - // { - // Name: to.Ptr("myCredential183"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential183"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:52.600Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:52.600Z"); return t}()), - // UserName: to.Ptr("myCredential183"), - // }, - // }, - // { - // Name: to.Ptr("myCredential184"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential184"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:52.927Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:52.927Z"); return t}()), - // UserName: to.Ptr("myCredential184"), - // }, - // }, - // { - // Name: to.Ptr("myCredential185"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential185"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:53.270Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:53.270Z"); return t}()), - // UserName: to.Ptr("myCredential185"), - // }, - // }, - // { - // Name: to.Ptr("myCredential186"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential186"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:53.583Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:53.583Z"); return t}()), - // UserName: to.Ptr("myCredential186"), - // }, - // }, - // { - // Name: to.Ptr("myCredential187"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential187"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:54.037Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:54.037Z"); return t}()), - // UserName: to.Ptr("myCredential187"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listCredentialsByAutomationAccount_next100_using_nextLink.json -func ExampleCredentialClient_NewListByAutomationAccountPager_listCredentialsByAutomationAccountNext100() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCredentialClient().NewListByAutomationAccountPager("rg", "myAutomationAccount20", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CredentialListResult = armautomation.CredentialListResult{ - // Value: []*armautomation.Credential{ - // { - // Name: to.Ptr("myCredential188"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential188"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:54.397Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:54.397Z"); return t}()), - // UserName: to.Ptr("myCredential188"), - // }, - // }, - // { - // Name: to.Ptr("myCredential189"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential189"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:54.710Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:54.710Z"); return t}()), - // UserName: to.Ptr("myCredential189"), - // }, - // }, - // { - // Name: to.Ptr("myCredential19"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential19"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:58.330Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:58.330Z"); return t}()), - // UserName: to.Ptr("myCredential19"), - // }, - // }, - // { - // Name: to.Ptr("myCredential190"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential190"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:55.037Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:55.037Z"); return t}()), - // UserName: to.Ptr("myCredential190"), - // }, - // }, - // { - // Name: to.Ptr("myCredential191"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential191"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:55.350Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:55.350Z"); return t}()), - // UserName: to.Ptr("myCredential191"), - // }, - // }, - // { - // Name: to.Ptr("myCredential192"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential192"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:55.677Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:55.677Z"); return t}()), - // UserName: to.Ptr("myCredential192"), - // }, - // }, - // { - // Name: to.Ptr("myCredential193"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential193"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:56.007Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:56.007Z"); return t}()), - // UserName: to.Ptr("myCredential193"), - // }, - // }, - // { - // Name: to.Ptr("myCredential194"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential194"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:56.333Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:56.333Z"); return t}()), - // UserName: to.Ptr("myCredential194"), - // }, - // }, - // { - // Name: to.Ptr("myCredential195"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential195"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:56.660Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:56.660Z"); return t}()), - // UserName: to.Ptr("myCredential195"), - // }, - // }, - // { - // Name: to.Ptr("myCredential196"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential196"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:57.007Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:57.007Z"); return t}()), - // UserName: to.Ptr("myCredential196"), - // }, - // }, - // { - // Name: to.Ptr("myCredential197"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential197"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:57.333Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:57.333Z"); return t}()), - // UserName: to.Ptr("myCredential197"), - // }, - // }, - // { - // Name: to.Ptr("myCredential198"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential198"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:57.660Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:57.660Z"); return t}()), - // UserName: to.Ptr("myCredential198"), - // }, - // }, - // { - // Name: to.Ptr("myCredential199"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential199"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:57.973Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:57.973Z"); return t}()), - // UserName: to.Ptr("myCredential199"), - // }, - // }, - // { - // Name: to.Ptr("myCredential2"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential2"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:52.440Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:52.440Z"); return t}()), - // UserName: to.Ptr("myCredential2"), - // }, - // }, - // { - // Name: to.Ptr("myCredential20"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential20"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:58.660Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:58.660Z"); return t}()), - // UserName: to.Ptr("myCredential20"), - // }, - // }, - // { - // Name: to.Ptr("myCredential200"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential200"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:58.303Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:58.303Z"); return t}()), - // UserName: to.Ptr("myCredential200"), - // }, - // }, - // { - // Name: to.Ptr("myCredential21"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential21"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:59.033Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:59.033Z"); return t}()), - // UserName: to.Ptr("myCredential21"), - // }, - // }, - // { - // Name: to.Ptr("myCredential22"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential22"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:59.363Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:59.363Z"); return t}()), - // UserName: to.Ptr("myCredential22"), - // }, - // }, - // { - // Name: to.Ptr("myCredential23"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential23"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:59.707Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:59.707Z"); return t}()), - // UserName: to.Ptr("myCredential23"), - // }, - // }, - // { - // Name: to.Ptr("myCredential24"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential24"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:00.020Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:00.020Z"); return t}()), - // UserName: to.Ptr("myCredential24"), - // }, - // }, - // { - // Name: to.Ptr("myCredential25"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential25"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:00.330Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:00.330Z"); return t}()), - // UserName: to.Ptr("myCredential25"), - // }, - // }, - // { - // Name: to.Ptr("myCredential26"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential26"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:00.707Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:00.707Z"); return t}()), - // UserName: to.Ptr("myCredential26"), - // }, - // }, - // { - // Name: to.Ptr("myCredential27"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential27"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:01.020Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:01.020Z"); return t}()), - // UserName: to.Ptr("myCredential27"), - // }, - // }, - // { - // Name: to.Ptr("myCredential28"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential28"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:01.347Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:01.347Z"); return t}()), - // UserName: to.Ptr("myCredential28"), - // }, - // }, - // { - // Name: to.Ptr("myCredential29"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential29"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:01.847Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:01.847Z"); return t}()), - // UserName: to.Ptr("myCredential29"), - // }, - // }, - // { - // Name: to.Ptr("myCredential3"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential3"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:52.863Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:52.863Z"); return t}()), - // UserName: to.Ptr("myCredential3"), - // }, - // }, - // { - // Name: to.Ptr("myCredential30"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential30"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:02.160Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:02.160Z"); return t}()), - // UserName: to.Ptr("myCredential30"), - // }, - // }, - // { - // Name: to.Ptr("myCredential31"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential31"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:02.503Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:02.503Z"); return t}()), - // UserName: to.Ptr("myCredential31"), - // }, - // }, - // { - // Name: to.Ptr("myCredential32"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential32"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:02.880Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:02.880Z"); return t}()), - // UserName: to.Ptr("myCredential32"), - // }, - // }, - // { - // Name: to.Ptr("myCredential33"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential33"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:03.177Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:03.177Z"); return t}()), - // UserName: to.Ptr("myCredential33"), - // }, - // }, - // { - // Name: to.Ptr("myCredential34"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential34"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:03.550Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:03.550Z"); return t}()), - // UserName: to.Ptr("myCredential34"), - // }, - // }, - // { - // Name: to.Ptr("myCredential35"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential35"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:03.893Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:03.893Z"); return t}()), - // UserName: to.Ptr("myCredential35"), - // }, - // }, - // { - // Name: to.Ptr("myCredential36"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential36"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:04.207Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:04.207Z"); return t}()), - // UserName: to.Ptr("myCredential36"), - // }, - // }, - // { - // Name: to.Ptr("myCredential37"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential37"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:04.550Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:04.550Z"); return t}()), - // UserName: to.Ptr("myCredential37"), - // }, - // }, - // { - // Name: to.Ptr("myCredential38"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential38"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:04.847Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:04.847Z"); return t}()), - // UserName: to.Ptr("myCredential38"), - // }, - // }, - // { - // Name: to.Ptr("myCredential39"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential39"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:05.177Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:05.177Z"); return t}()), - // UserName: to.Ptr("myCredential39"), - // }, - // }, - // { - // Name: to.Ptr("myCredential4"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential4"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:53.253Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:53.253Z"); return t}()), - // UserName: to.Ptr("myCredential4"), - // }, - // }, - // { - // Name: to.Ptr("myCredential40"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential40"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:05.490Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:05.490Z"); return t}()), - // UserName: to.Ptr("myCredential40"), - // }, - // }, - // { - // Name: to.Ptr("myCredential41"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential41"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:05.830Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:05.830Z"); return t}()), - // UserName: to.Ptr("myCredential41"), - // }, - // }, - // { - // Name: to.Ptr("myCredential42"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential42"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:06.143Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:06.143Z"); return t}()), - // UserName: to.Ptr("myCredential42"), - // }, - // }, - // { - // Name: to.Ptr("myCredential43"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential43"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:06.457Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:06.457Z"); return t}()), - // UserName: to.Ptr("myCredential43"), - // }, - // }, - // { - // Name: to.Ptr("myCredential44"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential44"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:06.940Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:06.940Z"); return t}()), - // UserName: to.Ptr("myCredential44"), - // }, - // }, - // { - // Name: to.Ptr("myCredential45"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential45"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:07.300Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:07.300Z"); return t}()), - // UserName: to.Ptr("myCredential45"), - // }, - // }, - // { - // Name: to.Ptr("myCredential46"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential46"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:07.630Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:07.630Z"); return t}()), - // UserName: to.Ptr("myCredential46"), - // }, - // }, - // { - // Name: to.Ptr("myCredential47"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential47"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:07.957Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:07.957Z"); return t}()), - // UserName: to.Ptr("myCredential47"), - // }, - // }, - // { - // Name: to.Ptr("myCredential48"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential48"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:08.270Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:08.270Z"); return t}()), - // UserName: to.Ptr("myCredential48"), - // }, - // }, - // { - // Name: to.Ptr("myCredential49"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential49"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:08.580Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:08.580Z"); return t}()), - // UserName: to.Ptr("myCredential49"), - // }, - // }, - // { - // Name: to.Ptr("myCredential5"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential5"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:53.567Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:53.567Z"); return t}()), - // UserName: to.Ptr("myCredential5"), - // }, - // }, - // { - // Name: to.Ptr("myCredential50"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential50"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:09.020Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:09.020Z"); return t}()), - // UserName: to.Ptr("myCredential50"), - // }, - // }, - // { - // Name: to.Ptr("myCredential51"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential51"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:09.330Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:09.330Z"); return t}()), - // UserName: to.Ptr("myCredential51"), - // }, - // }, - // { - // Name: to.Ptr("myCredential52"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential52"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:09.643Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:09.643Z"); return t}()), - // UserName: to.Ptr("myCredential52"), - // }, - // }, - // { - // Name: to.Ptr("myCredential53"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential53"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:09.973Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:09.973Z"); return t}()), - // UserName: to.Ptr("myCredential53"), - // }, - // }, - // { - // Name: to.Ptr("myCredential54"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential54"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:10.287Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:10.287Z"); return t}()), - // UserName: to.Ptr("myCredential54"), - // }, - // }, - // { - // Name: to.Ptr("myCredential55"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential55"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:10.660Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:10.660Z"); return t}()), - // UserName: to.Ptr("myCredential55"), - // }, - // }, - // { - // Name: to.Ptr("myCredential56"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential56"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:10.973Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:10.973Z"); return t}()), - // UserName: to.Ptr("myCredential56"), - // }, - // }, - // { - // Name: to.Ptr("myCredential57"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential57"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:11.330Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:11.330Z"); return t}()), - // UserName: to.Ptr("myCredential57"), - // }, - // }, - // { - // Name: to.Ptr("myCredential58"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential58"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:11.643Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:11.643Z"); return t}()), - // UserName: to.Ptr("myCredential58"), - // }, - // }, - // { - // Name: to.Ptr("myCredential59"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential59"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:11.990Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:11.990Z"); return t}()), - // UserName: to.Ptr("myCredential59"), - // }, - // }, - // { - // Name: to.Ptr("myCredential6"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential6"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:53.863Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:53.863Z"); return t}()), - // UserName: to.Ptr("myCredential6"), - // }, - // }, - // { - // Name: to.Ptr("myCredential60"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential60"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:12.300Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:12.300Z"); return t}()), - // UserName: to.Ptr("myCredential60"), - // }, - // }, - // { - // Name: to.Ptr("myCredential61"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential61"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:12.630Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:12.630Z"); return t}()), - // UserName: to.Ptr("myCredential61"), - // }, - // }, - // { - // Name: to.Ptr("myCredential62"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential62"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:12.957Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:12.957Z"); return t}()), - // UserName: to.Ptr("myCredential62"), - // }, - // }, - // { - // Name: to.Ptr("myCredential63"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential63"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:13.270Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:13.270Z"); return t}()), - // UserName: to.Ptr("myCredential63"), - // }, - // }, - // { - // Name: to.Ptr("myCredential64"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential64"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:13.583Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:13.583Z"); return t}()), - // UserName: to.Ptr("myCredential64"), - // }, - // }, - // { - // Name: to.Ptr("myCredential65"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential65"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:13.893Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:13.893Z"); return t}()), - // UserName: to.Ptr("myCredential65"), - // }, - // }, - // { - // Name: to.Ptr("myCredential66"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential66"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:14.207Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:14.207Z"); return t}()), - // UserName: to.Ptr("myCredential66"), - // }, - // }, - // { - // Name: to.Ptr("myCredential67"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential67"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:14.537Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:14.537Z"); return t}()), - // UserName: to.Ptr("myCredential67"), - // }, - // }, - // { - // Name: to.Ptr("myCredential68"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential68"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:14.847Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:14.847Z"); return t}()), - // UserName: to.Ptr("myCredential68"), - // }, - // }, - // { - // Name: to.Ptr("myCredential69"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential69"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:15.190Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:15.190Z"); return t}()), - // UserName: to.Ptr("myCredential69"), - // }, - // }, - // { - // Name: to.Ptr("myCredential7"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential7"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:54.190Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:54.190Z"); return t}()), - // UserName: to.Ptr("myCredential7"), - // }, - // }, - // { - // Name: to.Ptr("myCredential70"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential70"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:15.503Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:15.503Z"); return t}()), - // UserName: to.Ptr("myCredential70"), - // }, - // }, - // { - // Name: to.Ptr("myCredential71"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential71"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:15.910Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:15.910Z"); return t}()), - // UserName: to.Ptr("myCredential71"), - // }, - // }, - // { - // Name: to.Ptr("myCredential72"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential72"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:16.253Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:16.253Z"); return t}()), - // UserName: to.Ptr("myCredential72"), - // }, - // }, - // { - // Name: to.Ptr("myCredential73"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential73"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:16.567Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:16.567Z"); return t}()), - // UserName: to.Ptr("myCredential73"), - // }, - // }, - // { - // Name: to.Ptr("myCredential74"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential74"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:16.927Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:16.927Z"); return t}()), - // UserName: to.Ptr("myCredential74"), - // }, - // }, - // { - // Name: to.Ptr("myCredential75"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential75"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:17.253Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:17.253Z"); return t}()), - // UserName: to.Ptr("myCredential75"), - // }, - // }, - // { - // Name: to.Ptr("myCredential76"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential76"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:17.567Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:17.567Z"); return t}()), - // UserName: to.Ptr("myCredential76"), - // }, - // }, - // { - // Name: to.Ptr("myCredential77"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential77"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:17.880Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:17.880Z"); return t}()), - // UserName: to.Ptr("myCredential77"), - // }, - // }, - // { - // Name: to.Ptr("myCredential78"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential78"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:18.190Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:18.190Z"); return t}()), - // UserName: to.Ptr("myCredential78"), - // }, - // }, - // { - // Name: to.Ptr("myCredential79"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential79"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:18.520Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:18.520Z"); return t}()), - // UserName: to.Ptr("myCredential79"), - // }, - // }, - // { - // Name: to.Ptr("myCredential8"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential8"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:54.503Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:54.503Z"); return t}()), - // UserName: to.Ptr("myCredential8"), - // }, - // }, - // { - // Name: to.Ptr("myCredential80"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential80"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:18.833Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:18.833Z"); return t}()), - // UserName: to.Ptr("myCredential80"), - // }, - // }, - // { - // Name: to.Ptr("myCredential81"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential81"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:19.177Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:19.177Z"); return t}()), - // UserName: to.Ptr("myCredential81"), - // }, - // }, - // { - // Name: to.Ptr("myCredential82"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential82"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:19.490Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:19.490Z"); return t}()), - // UserName: to.Ptr("myCredential82"), - // }, - // }, - // { - // Name: to.Ptr("myCredential83"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential83"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:19.833Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:19.833Z"); return t}()), - // UserName: to.Ptr("myCredential83"), - // }, - // }, - // { - // Name: to.Ptr("myCredential84"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential84"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:20.177Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:20.177Z"); return t}()), - // UserName: to.Ptr("myCredential84"), - // }, - // }, - // { - // Name: to.Ptr("myCredential85"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential85"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:20.503Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:20.503Z"); return t}()), - // UserName: to.Ptr("myCredential85"), - // }, - // }, - // { - // Name: to.Ptr("myCredential86"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential86"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:20.817Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:20.817Z"); return t}()), - // UserName: to.Ptr("myCredential86"), - // }, - // }, - // { - // Name: to.Ptr("myCredential87"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential87"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:21.143Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:21.143Z"); return t}()), - // UserName: to.Ptr("myCredential87"), - // }, - // }, - // { - // Name: to.Ptr("myCredential88"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential88"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:21.457Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:21.457Z"); return t}()), - // UserName: to.Ptr("myCredential88"), - // }, - // }, - // { - // Name: to.Ptr("myCredential89"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential89"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:21.787Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:21.787Z"); return t}()), - // UserName: to.Ptr("myCredential89"), - // }, - // }, - // { - // Name: to.Ptr("myCredential9"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential9"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:54.957Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:43:54.957Z"); return t}()), - // UserName: to.Ptr("myCredential9"), - // }, - // }, - // { - // Name: to.Ptr("myCredential90"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential90"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:22.100Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:22.100Z"); return t}()), - // UserName: to.Ptr("myCredential90"), - // }, - // }, - // { - // Name: to.Ptr("myCredential91"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential91"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:22.427Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:22.427Z"); return t}()), - // UserName: to.Ptr("myCredential91"), - // }, - // }, - // { - // Name: to.Ptr("myCredential92"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential92"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:22.770Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:22.770Z"); return t}()), - // UserName: to.Ptr("myCredential92"), - // }, - // }, - // { - // Name: to.Ptr("myCredential93"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential93"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:23.083Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:23.083Z"); return t}()), - // UserName: to.Ptr("myCredential93"), - // }, - // }, - // { - // Name: to.Ptr("myCredential94"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential94"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:23.410Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:23.410Z"); return t}()), - // UserName: to.Ptr("myCredential94"), - // }, - // }, - // { - // Name: to.Ptr("myCredential95"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential95"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:23.753Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:23.753Z"); return t}()), - // UserName: to.Ptr("myCredential95"), - // }, - // }, - // { - // Name: to.Ptr("myCredential96"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential96"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:24.100Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:24.100Z"); return t}()), - // UserName: to.Ptr("myCredential96"), - // }, - // }, - // { - // Name: to.Ptr("myCredential97"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/credentials/myCredential97"), - // Properties: &armautomation.CredentialProperties{ - // Description: to.Ptr("my description goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:24.427Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T21:44:24.427Z"); return t}()), - // UserName: to.Ptr("myCredential97"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/deletedautomationaccounts_client_example_test.go b/sdk/resourcemanager/automation/armautomation/deletedautomationaccounts_client_example_test.go deleted file mode 100644 index dab32b6c4806..000000000000 --- a/sdk/resourcemanager/automation/armautomation/deletedautomationaccounts_client_example_test.go +++ /dev/null @@ -1,53 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2022-01-31/examples/getDeletedAutomationAccount.json -func ExampleDeletedAutomationAccountsClient_ListBySubscription() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDeletedAutomationAccountsClient().ListBySubscription(ctx, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DeletedAutomationAccountListResult = armautomation.DeletedAutomationAccountListResult{ - // Value: []*armautomation.DeletedAutomationAccount{ - // { - // Name: to.Ptr("myAutomationAccount"), - // Type: to.Ptr("Microsoft.Automation/deletedAutomationAccounts"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/msitest/providers/Microsoft.Automation/deletedAutomationAccounts/myAutomationAccount"), - // Location: to.Ptr("westus"), - // Properties: &armautomation.DeletedAutomationAccountProperties{ - // AutomationAccountID: to.Ptr("cb855f13-0223-4fe4-8260-9e6583dfef24"), - // AutomationAccountResourceID: to.Ptr("/subscriptions/subid/resourceGroups/msitest/providers/Microsoft.Automation/automationAccounts/myAutomationAccount"), - // DeletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // Location: to.Ptr("westus"), - // }, - // }}, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/dsccompilationjob_client_example_test.go b/sdk/resourcemanager/automation/armautomation/dsccompilationjob_client_example_test.go deleted file mode 100644 index ddb7e245e701..000000000000 --- a/sdk/resourcemanager/automation/armautomation/dsccompilationjob_client_example_test.go +++ /dev/null @@ -1,178 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createCompilationJob.json -func ExampleDscCompilationJobClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewDscCompilationJobClient().BeginCreate(ctx, "rg", "myAutomationAccount33", "TestCompilationJob", armautomation.DscCompilationJobCreateParameters{ - Properties: &armautomation.DscCompilationJobCreateProperties{ - Configuration: &armautomation.DscConfigurationAssociationProperty{ - Name: to.Ptr("SetupServer"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCompilationJob.json -func ExampleDscCompilationJobClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDscCompilationJobClient().Get(ctx, "rg", "myAutomationAccount33", "TestCompilationJob", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DscCompilationJob = armautomation.DscCompilationJob{ - // Name: to.Ptr("TestCompilationJob"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/compilationjobs"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/TestCompilationJob"), - // Properties: &armautomation.DscCompilationJobProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // JobID: to.Ptr("ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // LastStatusModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.JobProvisioningStateSucceeded), - // Status: to.Ptr(armautomation.JobStatusNew), - // StatusDetails: to.Ptr("None"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listCompilationJobsByAutomationAccount.json -func ExampleDscCompilationJobClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscCompilationJobClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscCompilationJobClientListByAutomationAccountOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscCompilationJobListResult = armautomation.DscCompilationJobListResult{ - // Value: []*armautomation.DscCompilationJob{ - // { - // Name: to.Ptr("CompilationConfiguration1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/compilationjobs"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/"), - // Properties: &armautomation.DscCompilationJobProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("TestDscConfiguration"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-17T19:45:24.590Z"); return t}()), - // JobID: to.Ptr("e6e7fbab-183c-405a-afe6-9eb5db97921a"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-17T19:45:58.593Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-17T19:45:52.983Z"); return t}()), - // Status: to.Ptr(armautomation.JobStatusSuspended), - // }, - // }, - // { - // Name: to.Ptr("CompilationConfiguration2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/compilationjobs"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/"), - // Properties: &armautomation.DscCompilationJobProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("NewDscConfiguration"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:29:07.740Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:42.600Z"); return t}()), - // JobID: to.Ptr("111d4e06-2d88-46b4-8500-7febd4906838"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:42.600Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:26.480Z"); return t}()), - // Status: to.Ptr(armautomation.JobStatusCompleted), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/compilationJobStreamByJobStreamId.json -func ExampleDscCompilationJobClient_GetStream() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDscCompilationJobClient().GetStream(ctx, "rg", "myAutomationAccount33", "836d4e06-2d88-46b4-8500-7febd4906838", "836d4e06-2d88-46b4-8500-7febd4906838_00636481062421684835_00000000000000000008", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.JobStream = armautomation.JobStream{ - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062421684835_00000000000000000008"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838:00636481062421684835:00000000000000000001"), - // StreamText: to.Ptr(""), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Summary: to.Ptr(""), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:42.168Z"); return t}()), - // Value: map[string]any{ - // "PSComputerName": "localhost", - // "PSShowComputerName": true, - // "PSSourceJobInstanceId": "836d4e06-2d88-46b4-8500-7febd4906838", - // "value": "", - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/dsccompilationjobstream_client_example_test.go b/sdk/resourcemanager/automation/armautomation/dsccompilationjobstream_client_example_test.go deleted file mode 100644 index 72739d72343e..000000000000 --- a/sdk/resourcemanager/automation/armautomation/dsccompilationjobstream_client_example_test.go +++ /dev/null @@ -1,113 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/compilationJobStreamList.json -func ExampleDscCompilationJobStreamClient_ListByJob() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDscCompilationJobStreamClient().ListByJob(ctx, "rg", "myAutomationAccount33", "836d4e06-2d88-46b4-8500-7febd4906838", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.JobStreamListResult = armautomation.JobStreamListResult{ - // Value: []*armautomation.JobStream{ - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062355996678_00000000000000000001"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838_00636481062355996678_00000000000000000001"), - // StreamType: to.Ptr(armautomation.JobStreamTypeWarning), - // Summary: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838:[localhost]:The 'Microsoft.PowerShell.Management' module was not imported because the 'Microsoft.PowerShell.Management' snap-in was already imported."), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:35.599Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062380840740_00000000000000000002"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838_00636481062380840740_00000000000000000002"), - // StreamType: to.Ptr(armautomation.JobStreamTypeWarning), - // Summary: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838:[localhost]:The configuration 'NewDscConfiguration' is loading one or more built-in resources without explicitly importing associated modules. Add Import-DscResource –ModuleName 'PSDesiredStateConfiguration' to your configuration to avoid this message."), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:38.084Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062384590127_00000000000000000003"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838_00636481062384590127_00000000000000000003"), - // StreamType: to.Ptr(armautomation.JobStreamTypeWarning), - // Summary: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838:[localhost]:The 'Microsoft.PowerShell.Management' module was not imported because the 'Microsoft.PowerShell.Management' snap-in was already imported."), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:38.459Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062387245395_00000000000000000004"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838_00636481062387245395_00000000000000000004"), - // StreamType: to.Ptr(armautomation.JobStreamTypeWarning), - // Summary: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838:[localhost]:The configuration 'NewDscConfiguration' is loading one or more built-in resources without explicitly importing associated modules. Add Import-DscResource –ModuleName 'PSDesiredStateConfiguration' to your configuration to avoid this message."), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:38.724Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062417091181_00000000000000000005"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838_00636481062417091181_00000000000000000005"), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Summary: to.Ptr(""), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:41.709Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062418809632_00000000000000000006"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838_00636481062418809632_00000000000000000006"), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Summary: to.Ptr(""), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:41.880Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062420371712_00000000000000000007"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838_00636481062420371712_00000000000000000007"), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Summary: to.Ptr(""), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:42.037Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062421684835_00000000000000000008"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("836d4e06-2d88-46b4-8500-7febd4906838_00636481062421684835_00000000000000000008"), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Summary: to.Ptr(""), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-05T21:30:42.168Z"); return t}()), - // }, - // }}, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/dscconfiguration_client.go b/sdk/resourcemanager/automation/armautomation/dscconfiguration_client.go index 891a1b35783a..e210813d2978 100644 --- a/sdk/resourcemanager/automation/armautomation/dscconfiguration_client.go +++ b/sdk/resourcemanager/automation/armautomation/dscconfiguration_client.go @@ -49,7 +49,7 @@ func NewDscConfigurationClient(subscriptionID string, credential azcore.TokenCre // CreateOrUpdateWithJSON - Create the configuration identified by configuration name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - configurationName - The create or update parameters for configuration. @@ -102,7 +102,7 @@ func (client *DscConfigurationClient) createOrUpdateWithJSONCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -123,7 +123,7 @@ func (client *DscConfigurationClient) createOrUpdateWithJSONHandleResponse(resp // CreateOrUpdateWithText - Create the configuration identified by configuration name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - configurationName - The create or update parameters for configuration. @@ -176,7 +176,7 @@ func (client *DscConfigurationClient) createOrUpdateWithTextCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} body := streaming.NopCloser(strings.NewReader(parameters)) @@ -198,7 +198,7 @@ func (client *DscConfigurationClient) createOrUpdateWithTextHandleResponse(resp // Delete - Delete the dsc configuration identified by configuration name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - configurationName - The configuration name. @@ -248,7 +248,7 @@ func (client *DscConfigurationClient) deleteCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -257,7 +257,7 @@ func (client *DscConfigurationClient) deleteCreateRequest(ctx context.Context, r // Get - Retrieve the configuration identified by configuration name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - configurationName - The configuration name. @@ -308,7 +308,7 @@ func (client *DscConfigurationClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -326,7 +326,7 @@ func (client *DscConfigurationClient) getHandleResponse(resp *http.Response) (Ds // GetContent - Retrieve the configuration script identified by configuration name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - configurationName - The configuration name. @@ -346,12 +346,11 @@ func (client *DscConfigurationClient) GetContent(ctx context.Context, resourceGr if err != nil { return DscConfigurationClientGetContentResponse{}, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent) { err = runtime.NewResponseError(httpResp) return DscConfigurationClientGetContentResponse{}, err } - resp, err := client.getContentHandleResponse(httpResp) - return resp, err + return DscConfigurationClientGetContentResponse{}, nil } // getContentCreateRequest creates the GetContent request. @@ -378,27 +377,15 @@ func (client *DscConfigurationClient) getContentCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"text/powershell"} return req, nil } -// getContentHandleResponse handles the GetContent response. -func (client *DscConfigurationClient) getContentHandleResponse(resp *http.Response) (DscConfigurationClientGetContentResponse, error) { - result := DscConfigurationClientGetContentResponse{} - body, err := runtime.Payload(resp) - if err != nil { - return DscConfigurationClientGetContentResponse{}, err - } - txt := string(body) - result.Value = &txt - return result, nil -} - // NewListByAutomationAccountPager - Retrieve a list of configurations. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - DscConfigurationClientListByAutomationAccountOptions contains the optional parameters for the DscConfigurationClient.NewListByAutomationAccountPager @@ -446,7 +433,7 @@ func (client *DscConfigurationClient) listByAutomationAccountCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } @@ -476,7 +463,7 @@ func (client *DscConfigurationClient) listByAutomationAccountHandleResponse(resp // UpdateWithJSON - Create the configuration identified by configuration name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - configurationName - The create or update parameters for configuration. @@ -528,7 +515,7 @@ func (client *DscConfigurationClient) updateWithJSONCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { @@ -552,7 +539,7 @@ func (client *DscConfigurationClient) updateWithJSONHandleResponse(resp *http.Re // UpdateWithText - Create the configuration identified by configuration name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - configurationName - The create or update parameters for configuration. @@ -604,7 +591,7 @@ func (client *DscConfigurationClient) updateWithTextCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { diff --git a/sdk/resourcemanager/automation/armautomation/dscconfiguration_client_example_test.go b/sdk/resourcemanager/automation/armautomation/dscconfiguration_client_example_test.go deleted file mode 100644 index 4898b2e834e5..000000000000 --- a/sdk/resourcemanager/automation/armautomation/dscconfiguration_client_example_test.go +++ /dev/null @@ -1,266 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/deleteDscConfiguration.json -func ExampleDscConfigurationClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDscConfigurationClient().Delete(ctx, "rg", "myAutomationAccount33", "TemplateBasic", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfiguration.json -func ExampleDscConfigurationClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDscConfigurationClient().Get(ctx, "rg", "myAutomationAccount33", "TemplateBasic", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DscConfiguration = armautomation.DscConfiguration{ - // Name: to.Ptr("TemplateBasic"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Configurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/TemplateBasic"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // }, - // Etag: to.Ptr("\"636263396635600000\""), - // Properties: &armautomation.DscConfigurationProperties{ - // Description: to.Ptr("sample configuration"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:23.560Z"); return t}()), - // JobCount: to.Ptr[int32](0), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:23.560Z"); return t}()), - // LogVerbose: to.Ptr(false), - // Parameters: map[string]*armautomation.DscConfigurationParameter{ - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // State: to.Ptr(armautomation.DscConfigurationStatePublished), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfigurationContent.json -func ExampleDscConfigurationClient_GetContent() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDscConfigurationClient().GetContent(ctx, "rg", "myAutomationAccount33", "ConfigName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Value = "Configuration ConfigName {\r\n Node localhost {\r\n WindowsFeature IIS {\r\n Name = \"Web-Server\";\r\n Ensure = \"Present\"\r\n }\r\n }\r\n}" -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getAllDscConfigurations.json -func ExampleDscConfigurationClient_NewListByAutomationAccountPager_getDscConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscConfigurationClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscConfigurationClientListByAutomationAccountOptions{Filter: nil, - Skip: nil, - Top: nil, - Inlinecount: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscConfigurationListResult = armautomation.DscConfigurationListResult{ - // Value: []*armautomation.DscConfiguration{ - // { - // Name: to.Ptr("SetupServer"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Configurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SetupServer"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.DscConfigurationProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // State: to.Ptr(armautomation.DscConfigurationStatePublished), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getPagedlDscConfigurationsWithNameFilter.json -func ExampleDscConfigurationClient_NewListByAutomationAccountPager_listPagedDscConfigurationsWithNameFilter() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscConfigurationClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscConfigurationClientListByAutomationAccountOptions{Filter: to.Ptr("contains(name,'server')"), - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](2), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscConfigurationListResult = armautomation.DscConfigurationListResult{ - // TotalCount: to.Ptr[int32](4), - // Value: []*armautomation.DscConfiguration{ - // { - // Name: to.Ptr("SqlServerBig"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Configurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SqlServerBig"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.DscConfigurationProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // NodeConfigurationCount: to.Ptr[int32](1), - // State: to.Ptr(armautomation.DscConfigurationStatePublished), - // }, - // }, - // { - // Name: to.Ptr("SqlServerLittle"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Configurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SqlServerLittle"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.DscConfigurationProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // NodeConfigurationCount: to.Ptr[int32](1), - // State: to.Ptr(armautomation.DscConfigurationStatePublished), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getPagedDscConfigurationsWithNoFilter.json -func ExampleDscConfigurationClient_NewListByAutomationAccountPager_listPagedDscConfigurationsWithNoFilter() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscConfigurationClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscConfigurationClientListByAutomationAccountOptions{Filter: nil, - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](3), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscConfigurationListResult = armautomation.DscConfigurationListResult{ - // TotalCount: to.Ptr[int32](12), - // Value: []*armautomation.DscConfiguration{ - // { - // Name: to.Ptr("SqlServerBig"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Configurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SqlServerBig"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.DscConfigurationProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // NodeConfigurationCount: to.Ptr[int32](1), - // State: to.Ptr(armautomation.DscConfigurationStatePublished), - // }, - // }, - // { - // Name: to.Ptr("SqlServerLittle"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Configurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SqlServerLittle"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.DscConfigurationProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // NodeConfigurationCount: to.Ptr[int32](1), - // State: to.Ptr(armautomation.DscConfigurationStatePublished), - // }, - // }, - // { - // Name: to.Ptr("SetupServer"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Configurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SetupServer"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.DscConfigurationProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T18:53:24.997Z"); return t}()), - // NodeConfigurationCount: to.Ptr[int32](1), - // State: to.Ptr(armautomation.DscConfigurationStatePublished), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/dscnode_client_example_test.go b/sdk/resourcemanager/automation/armautomation/dscnode_client_example_test.go deleted file mode 100644 index b86638394ac6..000000000000 --- a/sdk/resourcemanager/automation/armautomation/dscnode_client_example_test.go +++ /dev/null @@ -1,796 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteDscNode.json -func ExampleDscNodeClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDscNodeClient().Delete(ctx, "rg", "myAutomationAccount9", "e1243a76-a9bd-432f-bde3-ad8f317ee786", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNode.json -func ExampleDscNodeClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDscNodeClient().Get(ctx, "rg", "myAutomationAccount33", "nodeId", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DscNode = armautomation.DscNode{ - // Name: to.Ptr("DSCCOMP"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("nodeId"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Pending"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateDscNode.json -func ExampleDscNodeClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDscNodeClient().Update(ctx, "rg", "myAutomationAccount33", "nodeId", armautomation.DscNodeUpdateParameters{ - NodeID: to.Ptr("nodeId"), - Properties: &armautomation.DscNodeUpdateParametersProperties{ - NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - Name: to.Ptr("SetupServer.localhost"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DscNode = armautomation.DscNode{ - // Name: to.Ptr("DSCCOMP"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("nodeId"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Pending"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listAllDscNodesByAutomationAccount.json -func ExampleDscNodeClient_NewListByAutomationAccountPager_listDscNodesByAutomationAccount() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeClientListByAutomationAccountOptions{Filter: nil, - Skip: nil, - Top: nil, - Inlinecount: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeListResult = armautomation.DscNodeListResult{ - // Value: []*armautomation.DscNode{ - // { - // Name: to.Ptr("DSCCOMP"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("nodeId"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Pending"), - // }, - // }, - // { - // Name: to.Ptr("DSCCOMP2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId2"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("nodeId2"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Pending"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationNotAssignedFilter.json -func ExampleDscNodeClient_NewListByAutomationAccountPager_listPagedDscNodesByAutomationAccountWhereNodeConfigurationsAreNotAssignedFilter() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeClientListByAutomationAccountOptions{Filter: to.Ptr("properties/nodeConfiguration/name eq ''"), - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](20), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeListResult = armautomation.DscNodeListResult{ - // TotalCount: to.Ptr[int32](2), - // Value: []*armautomation.DscNode{ - // { - // Name: to.Ptr("Node60"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node60"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr(""), - // }, - // NodeID: to.Ptr("477F9596-92F3-479A-82F2-9EE149F2C6B0"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("Node61"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node61"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr(""), - // }, - // NodeID: to.Ptr("E5D5D0B5-400D-48F7-A791-612945DAC5EB"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithNodeConfigurationCustomFilter.json -func ExampleDscNodeClient_NewListByAutomationAccountPager_listPagedDscNodesByAutomationAccountWithNodeConfigurationCustomFilter() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeClientListByAutomationAccountOptions{Filter: to.Ptr("contains(properties/nodeConfiguration/name,'SetupServer.localhost,SetupClient.localhost,$$Not$$Configured$$')"), - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](4), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeListResult = armautomation.DscNodeListResult{ - // TotalCount: to.Ptr[int32](12), - // Value: []*armautomation.DscNode{ - // { - // Name: to.Ptr("Node32"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node32"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr(""), - // }, - // NodeID: to.Ptr("477F9596-92F3-479A-82F2-9EE149F2C6B0"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("Node33"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node33"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("E5D5D0B5-400D-48F7-A791-612945DAC5EB"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("Node34"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node34"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupClient.localhost"), - // }, - // NodeID: to.Ptr("Node34"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("Node35"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node35"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupClient.localhost"), - // }, - // NodeID: to.Ptr("Node35"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("NotCompliant"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithNameFilter.json -func ExampleDscNodeClient_NewListByAutomationAccountPager_listPagedDscNodesByAutomationAccountWithNameFilter() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeClientListByAutomationAccountOptions{Filter: to.Ptr("contains('DSCCOMP',name)"), - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](6), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeListResult = armautomation.DscNodeListResult{ - // TotalCount: to.Ptr[int32](2), - // Value: []*armautomation.DscNode{ - // { - // Name: to.Ptr("DSCCOMP"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/DSCCOMP"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("708D250A-2169-4B54-89FF-76F5F71C252A"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("DSCCOMP2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/DSCCOMP2"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("3B4BB31A-5132-4669-A15F-A17E234D1634"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Failed"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithNoFilter.json -func ExampleDscNodeClient_NewListByAutomationAccountPager_listPagedDscNodesByAutomationAccountWithNoFilters() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeClientListByAutomationAccountOptions{Filter: nil, - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](2), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeListResult = armautomation.DscNodeListResult{ - // TotalCount: to.Ptr[int32](152), - // Value: []*armautomation.DscNode{ - // { - // Name: to.Ptr("DSCCOMP"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("FCC20208-E781-41C4-A757-17AA0429B3A4"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Pending"), - // }, - // }, - // { - // Name: to.Ptr("DSCCOMP2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId2"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("A63C781C-0C50-4825-B295-B7F8ECFD0DBC"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Pending"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithStatusFilter.json -func ExampleDscNodeClient_NewListByAutomationAccountPager_listPagedDscNodesByAutomationAccountWithNodeStatusFilter() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeClientListByAutomationAccountOptions{Filter: to.Ptr("contains(properties/status,'Compliant,NotCompliant')"), - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](4), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeListResult = armautomation.DscNodeListResult{ - // TotalCount: to.Ptr[int32](67), - // Value: []*armautomation.DscNode{ - // { - // Name: to.Ptr("Node12"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node12"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("01D64CDE-85DD-4C9B-B8F1-2F725348FDEC"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("Node13"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node13"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("E13076D7-A959-4067-B02F-4F014AAD22D7"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("Node14"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node14"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("4289B441-B9A0-4309-93FC-0C5100CFBE46"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("Node15"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node15"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.75.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("CBD2212B-8F4C-4049-98E7-1DBCBED7343B"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("NotCompliant"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithVersionFilter.json -func ExampleDscNodeClient_NewListByAutomationAccountPager_listPagedDscNodesByAutomationAccountWithVersionFilter() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeClientListByAutomationAccountOptions{Filter: to.Ptr("properties/extensionHandler/any(eh: eh/version le '2.70')"), - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](4), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeListResult = armautomation.DscNodeListResult{ - // TotalCount: to.Ptr[int32](7), - // Value: []*armautomation.DscNode{ - // { - // Name: to.Ptr("Node62"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node62"), - // Properties: &armautomation.DscNodeProperties{ - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("01D64CDE-85DD-4C9B-B8F1-2F725348FDEC"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("Node63"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node63"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.70.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("E13076D7-A959-4067-B02F-4F014AAD22D7"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("Node64"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node64"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.70.0.0"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("4289B441-B9A0-4309-93FC-0C5100CFBE46"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }, - // { - // Name: to.Ptr("Node65"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Node65"), - // Properties: &armautomation.DscNodeProperties{ - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer.localhost"), - // }, - // NodeID: to.Ptr("CBD2212B-8F4C-4049-98E7-1DBCBED7343B"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("NotCompliant"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodesByAutomationAccountWithCompositeFilter.json -func ExampleDscNodeClient_NewListByAutomationAccountPager_listPagedDscNodesWithFiltersSeparatedByAnd() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeClientListByAutomationAccountOptions{Filter: to.Ptr("properties/extensionHandler/any(eh: eh/version gt '2.70') and contains(name,'sql') and contains(properties/nodeConfiguration/name,'$$Not$$Configured$$')"), - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](10), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeListResult = armautomation.DscNodeListResult{ - // TotalCount: to.Ptr[int32](1), - // Value: []*armautomation.DscNode{ - // { - // Name: to.Ptr("Sql1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Nodes"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/Sql1"), - // Properties: &armautomation.DscNodeProperties{ - // ExtensionHandler: []*armautomation.DscNodeExtensionHandlerAssociationProperty{ - // { - // Name: to.Ptr("Microsoft.Powershell.DSC"), - // Version: to.Ptr("2.70.0.1"), - // }}, - // IP: to.Ptr("ip"), - // LastSeen: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-22T22:25:39.096Z"); return t}()), - // NodeConfiguration: &armautomation.DscNodeConfigurationAssociationProperty{ - // Name: to.Ptr("SetupSqlServer.localhost"), - // }, - // NodeID: to.Ptr("01D64CDE-85DD-4C9B-B8F1-2F725348FDEC"), - // RegistrationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-10T00:51:12.539Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/dscnodeconfiguration_client.go b/sdk/resourcemanager/automation/armautomation/dscnodeconfiguration_client.go index 71e23a51e410..97a3697e8b04 100644 --- a/sdk/resourcemanager/automation/armautomation/dscnodeconfiguration_client.go +++ b/sdk/resourcemanager/automation/armautomation/dscnodeconfiguration_client.go @@ -48,7 +48,7 @@ func NewDscNodeConfigurationClient(subscriptionID string, credential azcore.Toke // BeginCreateOrUpdate - Create the node configuration identified by node configuration name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - nodeConfigurationName - The Dsc node configuration name. @@ -75,7 +75,7 @@ func (client *DscNodeConfigurationClient) BeginCreateOrUpdate(ctx context.Contex // CreateOrUpdate - Create the node configuration identified by node configuration name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 func (client *DscNodeConfigurationClient) createOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string, parameters DscNodeConfigurationCreateOrUpdateParameters, options *DscNodeConfigurationClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "DscNodeConfigurationClient.BeginCreateOrUpdate" @@ -121,7 +121,7 @@ func (client *DscNodeConfigurationClient) createOrUpdateCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -133,7 +133,7 @@ func (client *DscNodeConfigurationClient) createOrUpdateCreateRequest(ctx contex // Delete - Delete the Dsc node configurations by node configuration. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - nodeConfigurationName - The Dsc node configuration name. @@ -184,7 +184,7 @@ func (client *DscNodeConfigurationClient) deleteCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -193,7 +193,7 @@ func (client *DscNodeConfigurationClient) deleteCreateRequest(ctx context.Contex // Get - Retrieve the Dsc node configurations by node configuration. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - nodeConfigurationName - The Dsc node configuration name. @@ -245,7 +245,7 @@ func (client *DscNodeConfigurationClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -262,7 +262,7 @@ func (client *DscNodeConfigurationClient) getHandleResponse(resp *http.Response) // NewListByAutomationAccountPager - Retrieve a list of dsc node configurations. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - DscNodeConfigurationClientListByAutomationAccountOptions contains the optional parameters for the DscNodeConfigurationClient.NewListByAutomationAccountPager @@ -310,7 +310,7 @@ func (client *DscNodeConfigurationClient) listByAutomationAccountCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } diff --git a/sdk/resourcemanager/automation/armautomation/dscnodeconfiguration_client_example_test.go b/sdk/resourcemanager/automation/armautomation/dscnodeconfiguration_client_example_test.go deleted file mode 100644 index 4e43a2cc04a8..000000000000 --- a/sdk/resourcemanager/automation/armautomation/dscnodeconfiguration_client_example_test.go +++ /dev/null @@ -1,312 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteDscNodeConfiguration.json -func ExampleDscNodeConfigurationClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDscNodeConfigurationClient().Delete(ctx, "rg", "myAutomationAccount20", "configName.nodeConfigName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeConfiguration.json -func ExampleDscNodeConfigurationClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDscNodeConfigurationClient().Get(ctx, "rg", "myAutomationAccount33", "SetupServer.localhost", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DscNodeConfiguration = armautomation.DscNodeConfiguration{ - // Name: to.Ptr("SetupServer.localhost"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/nodeConfigurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupServer.localhost"), - // Properties: &armautomation.DscNodeConfigurationProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // IncrementNodeConfigurationBuild: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // NodeCount: to.Ptr[int64](0), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateDscNodeConfiguration.json -func ExampleDscNodeConfigurationClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewDscNodeConfigurationClient().BeginCreateOrUpdate(ctx, "rg", "myAutomationAccount20", "configName.nodeConfigName", armautomation.DscNodeConfigurationCreateOrUpdateParameters{ - Name: to.Ptr("configName.nodeConfigName"), - Properties: &armautomation.DscNodeConfigurationCreateOrUpdateParametersProperties{ - Configuration: &armautomation.DscConfigurationAssociationProperty{ - Name: to.Ptr("configName"), - }, - IncrementNodeConfigurationBuild: to.Ptr(true), - Source: &armautomation.ContentSource{ - Type: to.Ptr(armautomation.ContentSourceTypeEmbeddedContent), - Hash: &armautomation.ContentHash{ - Algorithm: to.Ptr("sha256"), - Value: to.Ptr("6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5"), - }, - Value: to.Ptr("\r\ninstance of MSFT_RoleResource as $MSFT_RoleResource1ref\r\n{\r\nResourceID = \"[WindowsFeature]IIS\";\r\n Ensure = \"Present\";\r\n SourceInfo = \"::3::32::WindowsFeature\";\r\n Name = \"Web-Server\";\r\n ModuleName = \"PsDesiredStateConfiguration\";\r\n\r\nModuleVersion = \"1.0\";\r\r\n ConfigurationName = \"configName\";\r\r\n};\r\ninstance of OMI_ConfigurationDocument\r\n\r\r\n {\r\n Version=\"2.0.0\";\r\n \r\r\n MinimumCompatibleVersion = \"1.0.0\";\r\n \r\r\n CompatibleVersionAdditionalProperties= {\"Omi_BaseResource:ConfigurationName\"};\r\n \r\r\n Author=\"weijiel\";\r\n \r\r\n GenerationDate=\"03/30/2017 13:40:25\";\r\n \r\r\n GenerationHost=\"TEST-BACKEND\";\r\n \r\r\n Name=\"configName\";\r\n\r\r\n };\r\n"), - Version: to.Ptr("1.0"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listDscNodeConfigurations.json -func ExampleDscNodeConfigurationClient_NewListByAutomationAccountPager_listDscNodeConfigurationsByAutomationAccount() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeConfigurationClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeConfigurationClientListByAutomationAccountOptions{Filter: nil, - Skip: nil, - Top: nil, - Inlinecount: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeConfigurationListResult = armautomation.DscNodeConfigurationListResult{ - // Value: []*armautomation.DscNodeConfiguration{ - // { - // Name: to.Ptr("SetupServer.localhost"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/nodeConfigurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupServer.localhost"), - // Properties: &armautomation.DscNodeConfigurationProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // IncrementNodeConfigurationBuild: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // NodeCount: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("SetupServer.localhost"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/nodeConfigurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupServer.localhost"), - // Properties: &armautomation.DscNodeConfigurationProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // IncrementNodeConfigurationBuild: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // NodeCount: to.Ptr[int64](0), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeConfigurationsWithNameFilter.json -func ExampleDscNodeConfigurationClient_NewListByAutomationAccountPager_listPagedDscNodeConfigurationsByAutomationAccountWithNameFilter() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeConfigurationClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeConfigurationClientListByAutomationAccountOptions{Filter: to.Ptr("contains('.localhost',name)"), - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](2), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeConfigurationListResult = armautomation.DscNodeConfigurationListResult{ - // TotalCount: to.Ptr[int32](6), - // Value: []*armautomation.DscNodeConfiguration{ - // { - // Name: to.Ptr("server.localhost"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/nodeConfigurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupServer.localhost"), - // Properties: &armautomation.DscNodeConfigurationProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // NodeCount: to.Ptr[int64](2), - // }, - // }, - // { - // Name: to.Ptr("SetupClient.localhost"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/nodeConfigurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupClient.localhost"), - // Properties: &armautomation.DscNodeConfigurationProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("SetupClient"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // NodeCount: to.Ptr[int64](6), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeConfigurationsWithNoFilter.json -func ExampleDscNodeConfigurationClient_NewListByAutomationAccountPager_listPagedDscNodeConfigurationsByAutomationAccountWithNoFilter() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDscNodeConfigurationClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.DscNodeConfigurationClientListByAutomationAccountOptions{Filter: nil, - Skip: to.Ptr[int32](0), - Top: to.Ptr[int32](4), - Inlinecount: to.Ptr("allpages"), - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeConfigurationListResult = armautomation.DscNodeConfigurationListResult{ - // TotalCount: to.Ptr[int32](12), - // Value: []*armautomation.DscNodeConfiguration{ - // { - // Name: to.Ptr("server.localhost"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/nodeConfigurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupServer.localhost"), - // Properties: &armautomation.DscNodeConfigurationProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("SetupServer"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // NodeCount: to.Ptr[int64](2), - // }, - // }, - // { - // Name: to.Ptr("SetupClient.localhost"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/nodeConfigurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupClient.localhost"), - // Properties: &armautomation.DscNodeConfigurationProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("SetupClient"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // NodeCount: to.Ptr[int64](6), - // }, - // }, - // { - // Name: to.Ptr("webServer.localhost"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/nodeConfigurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/webServer.localhost"), - // Properties: &armautomation.DscNodeConfigurationProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("webServer"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // NodeCount: to.Ptr[int64](5), - // }, - // }, - // { - // Name: to.Ptr("SqlServer.localhost"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/nodeConfigurations"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SqlServer.localhost"), - // Properties: &armautomation.DscNodeConfigurationProperties{ - // Configuration: &armautomation.DscConfigurationAssociationProperty{ - // Name: to.Ptr("SqlServer"), - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:17:06.890Z"); return t}()), - // NodeCount: to.Ptr[int64](1), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/fake/dscconfiguration_server.go b/sdk/resourcemanager/automation/armautomation/fake/dscconfiguration_server.go index f5561fce00cc..4ce3005041f1 100644 --- a/sdk/resourcemanager/automation/armautomation/fake/dscconfiguration_server.go +++ b/sdk/resourcemanager/automation/armautomation/fake/dscconfiguration_server.go @@ -43,7 +43,7 @@ type DscConfigurationServer struct { Get func(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, options *armautomation.DscConfigurationClientGetOptions) (resp azfake.Responder[armautomation.DscConfigurationClientGetResponse], errResp azfake.ErrorResponder) // GetContent is the fake for method DscConfigurationClient.GetContent - // HTTP status codes to indicate success: http.StatusOK + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent GetContent func(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, options *armautomation.DscConfigurationClientGetContentOptions) (resp azfake.Responder[armautomation.DscConfigurationClientGetContentResponse], errResp azfake.ErrorResponder) // NewListByAutomationAccountPager is the fake for method DscConfigurationClient.NewListByAutomationAccountPager @@ -298,10 +298,10 @@ func (d *DscConfigurationServerTransport) dispatchGetContent(req *http.Request) return nil, respErr } respContent := server.GetResponseContent(respr) - if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + if !contains([]int{http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent", respContent.HTTPStatus)} } - resp, err := server.MarshalResponseAsText(respContent, server.GetResponse(respr).Value, req) + resp, err := server.NewResponse(respContent, req, nil) if err != nil { return nil, err } diff --git a/sdk/resourcemanager/automation/armautomation/fake/hybridrunbookworkergroup_server.go b/sdk/resourcemanager/automation/armautomation/fake/hybridrunbookworkergroup_server.go index c4093773df97..5b2d2b1e0ddd 100644 --- a/sdk/resourcemanager/automation/armautomation/fake/hybridrunbookworkergroup_server.go +++ b/sdk/resourcemanager/automation/armautomation/fake/hybridrunbookworkergroup_server.go @@ -25,7 +25,7 @@ import ( // HybridRunbookWorkerGroupServer is a fake server for instances of the armautomation.HybridRunbookWorkerGroupClient type. type HybridRunbookWorkerGroupServer struct { // Create is the fake for method HybridRunbookWorkerGroupClient.Create - // HTTP status codes to indicate success: http.StatusOK + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated Create func(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerGroupCreationParameters armautomation.HybridRunbookWorkerGroupCreateOrUpdateParameters, options *armautomation.HybridRunbookWorkerGroupClientCreateOptions) (resp azfake.Responder[armautomation.HybridRunbookWorkerGroupClientCreateResponse], errResp azfake.ErrorResponder) // Delete is the fake for method HybridRunbookWorkerGroupClient.Delete @@ -126,8 +126,8 @@ func (h *HybridRunbookWorkerGroupServerTransport) dispatchCreate(req *http.Reque return nil, respErr } respContent := server.GetResponseContent(respr) - if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + if !contains([]int{http.StatusOK, http.StatusCreated}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", respContent.HTTPStatus)} } resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).HybridRunbookWorkerGroup, req) if err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/fake/hybridrunbookworkers_server.go b/sdk/resourcemanager/automation/armautomation/fake/hybridrunbookworkers_server.go index 7b8856e30795..597e1e0843dc 100644 --- a/sdk/resourcemanager/automation/armautomation/fake/hybridrunbookworkers_server.go +++ b/sdk/resourcemanager/automation/armautomation/fake/hybridrunbookworkers_server.go @@ -25,7 +25,7 @@ import ( // HybridRunbookWorkersServer is a fake server for instances of the armautomation.HybridRunbookWorkersClient type. type HybridRunbookWorkersServer struct { // Create is the fake for method HybridRunbookWorkersClient.Create - // HTTP status codes to indicate success: http.StatusOK + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated Create func(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string, hybridRunbookWorkerCreationParameters armautomation.HybridRunbookWorkerCreateParameters, options *armautomation.HybridRunbookWorkersClientCreateOptions) (resp azfake.Responder[armautomation.HybridRunbookWorkersClientCreateResponse], errResp azfake.ErrorResponder) // Delete is the fake for method HybridRunbookWorkersClient.Delete @@ -130,8 +130,8 @@ func (h *HybridRunbookWorkersServerTransport) dispatchCreate(req *http.Request) return nil, respErr } respContent := server.GetResponseContent(respr) - if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + if !contains([]int{http.StatusOK, http.StatusCreated}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", respContent.HTTPStatus)} } resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).HybridRunbookWorker, req) if err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/fake/module_server.go b/sdk/resourcemanager/automation/armautomation/fake/module_server.go index d232a489ded3..4afa24f16449 100644 --- a/sdk/resourcemanager/automation/armautomation/fake/module_server.go +++ b/sdk/resourcemanager/automation/armautomation/fake/module_server.go @@ -24,9 +24,9 @@ import ( // ModuleServer is a fake server for instances of the armautomation.ModuleClient type. type ModuleServer struct { - // CreateOrUpdate is the fake for method ModuleClient.CreateOrUpdate + // BeginCreateOrUpdate is the fake for method ModuleClient.BeginCreateOrUpdate // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated - CreateOrUpdate func(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters armautomation.ModuleCreateOrUpdateParameters, options *armautomation.ModuleClientCreateOrUpdateOptions) (resp azfake.Responder[armautomation.ModuleClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) + BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters armautomation.ModuleCreateOrUpdateParameters, options *armautomation.ModuleClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armautomation.ModuleClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) // Delete is the fake for method ModuleClient.Delete // HTTP status codes to indicate success: http.StatusOK @@ -51,6 +51,7 @@ type ModuleServer struct { func NewModuleServerTransport(srv *ModuleServer) *ModuleServerTransport { return &ModuleServerTransport{ srv: srv, + beginCreateOrUpdate: newTracker[azfake.PollerResponder[armautomation.ModuleClientCreateOrUpdateResponse]](), newListByAutomationAccountPager: newTracker[azfake.PagerResponder[armautomation.ModuleClientListByAutomationAccountResponse]](), } } @@ -59,6 +60,7 @@ func NewModuleServerTransport(srv *ModuleServer) *ModuleServerTransport { // Don't use this type directly, use NewModuleServerTransport instead. type ModuleServerTransport struct { srv *ModuleServer + beginCreateOrUpdate *tracker[azfake.PollerResponder[armautomation.ModuleClientCreateOrUpdateResponse]] newListByAutomationAccountPager *tracker[azfake.PagerResponder[armautomation.ModuleClientListByAutomationAccountResponse]] } @@ -74,8 +76,8 @@ func (m *ModuleServerTransport) Do(req *http.Request) (*http.Response, error) { var err error switch method { - case "ModuleClient.CreateOrUpdate": - resp, err = m.dispatchCreateOrUpdate(req) + case "ModuleClient.BeginCreateOrUpdate": + resp, err = m.dispatchBeginCreateOrUpdate(req) case "ModuleClient.Delete": resp, err = m.dispatchDelete(req) case "ModuleClient.Get": @@ -95,44 +97,55 @@ func (m *ModuleServerTransport) Do(req *http.Request) (*http.Response, error) { return resp, nil } -func (m *ModuleServerTransport) dispatchCreateOrUpdate(req *http.Request) (*http.Response, error) { - if m.srv.CreateOrUpdate == nil { - return nil, &nonRetriableError{errors.New("fake for method CreateOrUpdate not implemented")} +func (m *ModuleServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { + if m.srv.BeginCreateOrUpdate == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginCreateOrUpdate not implemented")} } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/modules/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - body, err := server.UnmarshalRequestAsJSON[armautomation.ModuleCreateOrUpdateParameters](req) - if err != nil { - return nil, err - } - resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) - if err != nil { - return nil, err - } - automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) - if err != nil { - return nil, err + beginCreateOrUpdate := m.beginCreateOrUpdate.get(req) + if beginCreateOrUpdate == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/modules/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armautomation.ModuleCreateOrUpdateParameters](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + moduleNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("moduleName")]) + if err != nil { + return nil, err + } + respr, errRespr := m.srv.BeginCreateOrUpdate(req.Context(), resourceGroupNameParam, automationAccountNameParam, moduleNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginCreateOrUpdate = &respr + m.beginCreateOrUpdate.add(req, beginCreateOrUpdate) } - moduleNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("moduleName")]) + + resp, err := server.PollerResponderNext(beginCreateOrUpdate, req) if err != nil { return nil, err } - respr, errRespr := m.srv.CreateOrUpdate(req.Context(), resourceGroupNameParam, automationAccountNameParam, moduleNameParam, body, nil) - if respErr := server.GetError(errRespr, req); respErr != nil { - return nil, respErr - } - respContent := server.GetResponseContent(respr) - if !contains([]int{http.StatusOK, http.StatusCreated}, respContent.HTTPStatus) { - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", respContent.HTTPStatus)} + + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { + m.beginCreateOrUpdate.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} } - resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Module, req) - if err != nil { - return nil, err + if !server.PollerResponderMore(beginCreateOrUpdate) { + m.beginCreateOrUpdate.remove(req) } + return resp, nil } diff --git a/sdk/resourcemanager/automation/armautomation/fake/powershell72module_server.go b/sdk/resourcemanager/automation/armautomation/fake/powershell72module_server.go new file mode 100644 index 000000000000..cd855328a210 --- /dev/null +++ b/sdk/resourcemanager/automation/armautomation/fake/powershell72module_server.go @@ -0,0 +1,306 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package fake + +import ( + "context" + "errors" + "fmt" + azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" + "net/http" + "net/url" + "regexp" +) + +// PowerShell72ModuleServer is a fake server for instances of the armautomation.PowerShell72ModuleClient type. +type PowerShell72ModuleServer struct { + // BeginCreateOrUpdate is the fake for method PowerShell72ModuleClient.BeginCreateOrUpdate + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated + BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters armautomation.ModuleCreateOrUpdateParameters, options *armautomation.PowerShell72ModuleClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armautomation.PowerShell72ModuleClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) + + // Delete is the fake for method PowerShell72ModuleClient.Delete + // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent + Delete func(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, options *armautomation.PowerShell72ModuleClientDeleteOptions) (resp azfake.Responder[armautomation.PowerShell72ModuleClientDeleteResponse], errResp azfake.ErrorResponder) + + // Get is the fake for method PowerShell72ModuleClient.Get + // HTTP status codes to indicate success: http.StatusOK + Get func(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, options *armautomation.PowerShell72ModuleClientGetOptions) (resp azfake.Responder[armautomation.PowerShell72ModuleClientGetResponse], errResp azfake.ErrorResponder) + + // NewListByAutomationAccountPager is the fake for method PowerShell72ModuleClient.NewListByAutomationAccountPager + // HTTP status codes to indicate success: http.StatusOK + NewListByAutomationAccountPager func(resourceGroupName string, automationAccountName string, options *armautomation.PowerShell72ModuleClientListByAutomationAccountOptions) (resp azfake.PagerResponder[armautomation.PowerShell72ModuleClientListByAutomationAccountResponse]) + + // Update is the fake for method PowerShell72ModuleClient.Update + // HTTP status codes to indicate success: http.StatusOK + Update func(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters armautomation.ModuleUpdateParameters, options *armautomation.PowerShell72ModuleClientUpdateOptions) (resp azfake.Responder[armautomation.PowerShell72ModuleClientUpdateResponse], errResp azfake.ErrorResponder) +} + +// NewPowerShell72ModuleServerTransport creates a new instance of PowerShell72ModuleServerTransport with the provided implementation. +// The returned PowerShell72ModuleServerTransport instance is connected to an instance of armautomation.PowerShell72ModuleClient via the +// azcore.ClientOptions.Transporter field in the client's constructor parameters. +func NewPowerShell72ModuleServerTransport(srv *PowerShell72ModuleServer) *PowerShell72ModuleServerTransport { + return &PowerShell72ModuleServerTransport{ + srv: srv, + beginCreateOrUpdate: newTracker[azfake.PollerResponder[armautomation.PowerShell72ModuleClientCreateOrUpdateResponse]](), + newListByAutomationAccountPager: newTracker[azfake.PagerResponder[armautomation.PowerShell72ModuleClientListByAutomationAccountResponse]](), + } +} + +// PowerShell72ModuleServerTransport connects instances of armautomation.PowerShell72ModuleClient to instances of PowerShell72ModuleServer. +// Don't use this type directly, use NewPowerShell72ModuleServerTransport instead. +type PowerShell72ModuleServerTransport struct { + srv *PowerShell72ModuleServer + beginCreateOrUpdate *tracker[azfake.PollerResponder[armautomation.PowerShell72ModuleClientCreateOrUpdateResponse]] + newListByAutomationAccountPager *tracker[azfake.PagerResponder[armautomation.PowerShell72ModuleClientListByAutomationAccountResponse]] +} + +// Do implements the policy.Transporter interface for PowerShell72ModuleServerTransport. +func (p *PowerShell72ModuleServerTransport) Do(req *http.Request) (*http.Response, error) { + rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) + method, ok := rawMethod.(string) + if !ok { + return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} + } + + var resp *http.Response + var err error + + switch method { + case "PowerShell72ModuleClient.BeginCreateOrUpdate": + resp, err = p.dispatchBeginCreateOrUpdate(req) + case "PowerShell72ModuleClient.Delete": + resp, err = p.dispatchDelete(req) + case "PowerShell72ModuleClient.Get": + resp, err = p.dispatchGet(req) + case "PowerShell72ModuleClient.NewListByAutomationAccountPager": + resp, err = p.dispatchNewListByAutomationAccountPager(req) + case "PowerShell72ModuleClient.Update": + resp, err = p.dispatchUpdate(req) + default: + err = fmt.Errorf("unhandled API %s", method) + } + + if err != nil { + return nil, err + } + + return resp, nil +} + +func (p *PowerShell72ModuleServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { + if p.srv.BeginCreateOrUpdate == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginCreateOrUpdate not implemented")} + } + beginCreateOrUpdate := p.beginCreateOrUpdate.get(req) + if beginCreateOrUpdate == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/powerShell72Modules/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armautomation.ModuleCreateOrUpdateParameters](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + moduleNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("moduleName")]) + if err != nil { + return nil, err + } + respr, errRespr := p.srv.BeginCreateOrUpdate(req.Context(), resourceGroupNameParam, automationAccountNameParam, moduleNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginCreateOrUpdate = &respr + p.beginCreateOrUpdate.add(req, beginCreateOrUpdate) + } + + resp, err := server.PollerResponderNext(beginCreateOrUpdate, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { + p.beginCreateOrUpdate.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} + } + if !server.PollerResponderMore(beginCreateOrUpdate) { + p.beginCreateOrUpdate.remove(req) + } + + return resp, nil +} + +func (p *PowerShell72ModuleServerTransport) dispatchDelete(req *http.Request) (*http.Response, error) { + if p.srv.Delete == nil { + return nil, &nonRetriableError{errors.New("fake for method Delete not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/powerShell72Modules/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + moduleNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("moduleName")]) + if err != nil { + return nil, err + } + respr, errRespr := p.srv.Delete(req.Context(), resourceGroupNameParam, automationAccountNameParam, moduleNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK, http.StatusNoContent}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusNoContent", respContent.HTTPStatus)} + } + resp, err := server.NewResponse(respContent, req, nil) + if err != nil { + return nil, err + } + return resp, nil +} + +func (p *PowerShell72ModuleServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { + if p.srv.Get == nil { + return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/powerShell72Modules/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + moduleNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("moduleName")]) + if err != nil { + return nil, err + } + respr, errRespr := p.srv.Get(req.Context(), resourceGroupNameParam, automationAccountNameParam, moduleNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Module, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (p *PowerShell72ModuleServerTransport) dispatchNewListByAutomationAccountPager(req *http.Request) (*http.Response, error) { + if p.srv.NewListByAutomationAccountPager == nil { + return nil, &nonRetriableError{errors.New("fake for method NewListByAutomationAccountPager not implemented")} + } + newListByAutomationAccountPager := p.newListByAutomationAccountPager.get(req) + if newListByAutomationAccountPager == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/powerShell72Modules` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + resp := p.srv.NewListByAutomationAccountPager(resourceGroupNameParam, automationAccountNameParam, nil) + newListByAutomationAccountPager = &resp + p.newListByAutomationAccountPager.add(req, newListByAutomationAccountPager) + server.PagerResponderInjectNextLinks(newListByAutomationAccountPager, req, func(page *armautomation.PowerShell72ModuleClientListByAutomationAccountResponse, createLink func() string) { + page.NextLink = to.Ptr(createLink()) + }) + } + resp, err := server.PagerResponderNext(newListByAutomationAccountPager, req) + if err != nil { + return nil, err + } + if !contains([]int{http.StatusOK}, resp.StatusCode) { + p.newListByAutomationAccountPager.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} + } + if !server.PagerResponderMore(newListByAutomationAccountPager) { + p.newListByAutomationAccountPager.remove(req) + } + return resp, nil +} + +func (p *PowerShell72ModuleServerTransport) dispatchUpdate(req *http.Request) (*http.Response, error) { + if p.srv.Update == nil { + return nil, &nonRetriableError{errors.New("fake for method Update not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/powerShell72Modules/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armautomation.ModuleUpdateParameters](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + moduleNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("moduleName")]) + if err != nil { + return nil, err + } + respr, errRespr := p.srv.Update(req.Context(), resourceGroupNameParam, automationAccountNameParam, moduleNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Module, req) + if err != nil { + return nil, err + } + return resp, nil +} diff --git a/sdk/resourcemanager/automation/armautomation/fake/python3package_server.go b/sdk/resourcemanager/automation/armautomation/fake/python3package_server.go new file mode 100644 index 000000000000..5d36eb65e79b --- /dev/null +++ b/sdk/resourcemanager/automation/armautomation/fake/python3package_server.go @@ -0,0 +1,306 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package fake + +import ( + "context" + "errors" + "fmt" + azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" + "net/http" + "net/url" + "regexp" +) + +// Python3PackageServer is a fake server for instances of the armautomation.Python3PackageClient type. +type Python3PackageServer struct { + // BeginCreateOrUpdate is the fake for method Python3PackageClient.BeginCreateOrUpdate + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated + BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters armautomation.PythonPackageCreateParameters, options *armautomation.Python3PackageClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armautomation.Python3PackageClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) + + // Delete is the fake for method Python3PackageClient.Delete + // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent + Delete func(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, options *armautomation.Python3PackageClientDeleteOptions) (resp azfake.Responder[armautomation.Python3PackageClientDeleteResponse], errResp azfake.ErrorResponder) + + // Get is the fake for method Python3PackageClient.Get + // HTTP status codes to indicate success: http.StatusOK + Get func(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, options *armautomation.Python3PackageClientGetOptions) (resp azfake.Responder[armautomation.Python3PackageClientGetResponse], errResp azfake.ErrorResponder) + + // NewListByAutomationAccountPager is the fake for method Python3PackageClient.NewListByAutomationAccountPager + // HTTP status codes to indicate success: http.StatusOK + NewListByAutomationAccountPager func(resourceGroupName string, automationAccountName string, options *armautomation.Python3PackageClientListByAutomationAccountOptions) (resp azfake.PagerResponder[armautomation.Python3PackageClientListByAutomationAccountResponse]) + + // Update is the fake for method Python3PackageClient.Update + // HTTP status codes to indicate success: http.StatusOK + Update func(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters armautomation.PythonPackageUpdateParameters, options *armautomation.Python3PackageClientUpdateOptions) (resp azfake.Responder[armautomation.Python3PackageClientUpdateResponse], errResp azfake.ErrorResponder) +} + +// NewPython3PackageServerTransport creates a new instance of Python3PackageServerTransport with the provided implementation. +// The returned Python3PackageServerTransport instance is connected to an instance of armautomation.Python3PackageClient via the +// azcore.ClientOptions.Transporter field in the client's constructor parameters. +func NewPython3PackageServerTransport(srv *Python3PackageServer) *Python3PackageServerTransport { + return &Python3PackageServerTransport{ + srv: srv, + beginCreateOrUpdate: newTracker[azfake.PollerResponder[armautomation.Python3PackageClientCreateOrUpdateResponse]](), + newListByAutomationAccountPager: newTracker[azfake.PagerResponder[armautomation.Python3PackageClientListByAutomationAccountResponse]](), + } +} + +// Python3PackageServerTransport connects instances of armautomation.Python3PackageClient to instances of Python3PackageServer. +// Don't use this type directly, use NewPython3PackageServerTransport instead. +type Python3PackageServerTransport struct { + srv *Python3PackageServer + beginCreateOrUpdate *tracker[azfake.PollerResponder[armautomation.Python3PackageClientCreateOrUpdateResponse]] + newListByAutomationAccountPager *tracker[azfake.PagerResponder[armautomation.Python3PackageClientListByAutomationAccountResponse]] +} + +// Do implements the policy.Transporter interface for Python3PackageServerTransport. +func (p *Python3PackageServerTransport) Do(req *http.Request) (*http.Response, error) { + rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) + method, ok := rawMethod.(string) + if !ok { + return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} + } + + var resp *http.Response + var err error + + switch method { + case "Python3PackageClient.BeginCreateOrUpdate": + resp, err = p.dispatchBeginCreateOrUpdate(req) + case "Python3PackageClient.Delete": + resp, err = p.dispatchDelete(req) + case "Python3PackageClient.Get": + resp, err = p.dispatchGet(req) + case "Python3PackageClient.NewListByAutomationAccountPager": + resp, err = p.dispatchNewListByAutomationAccountPager(req) + case "Python3PackageClient.Update": + resp, err = p.dispatchUpdate(req) + default: + err = fmt.Errorf("unhandled API %s", method) + } + + if err != nil { + return nil, err + } + + return resp, nil +} + +func (p *Python3PackageServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { + if p.srv.BeginCreateOrUpdate == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginCreateOrUpdate not implemented")} + } + beginCreateOrUpdate := p.beginCreateOrUpdate.get(req) + if beginCreateOrUpdate == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/python3Packages/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armautomation.PythonPackageCreateParameters](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + packageNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("packageName")]) + if err != nil { + return nil, err + } + respr, errRespr := p.srv.BeginCreateOrUpdate(req.Context(), resourceGroupNameParam, automationAccountNameParam, packageNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginCreateOrUpdate = &respr + p.beginCreateOrUpdate.add(req, beginCreateOrUpdate) + } + + resp, err := server.PollerResponderNext(beginCreateOrUpdate, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { + p.beginCreateOrUpdate.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} + } + if !server.PollerResponderMore(beginCreateOrUpdate) { + p.beginCreateOrUpdate.remove(req) + } + + return resp, nil +} + +func (p *Python3PackageServerTransport) dispatchDelete(req *http.Request) (*http.Response, error) { + if p.srv.Delete == nil { + return nil, &nonRetriableError{errors.New("fake for method Delete not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/python3Packages/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + packageNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("packageName")]) + if err != nil { + return nil, err + } + respr, errRespr := p.srv.Delete(req.Context(), resourceGroupNameParam, automationAccountNameParam, packageNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK, http.StatusNoContent}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusNoContent", respContent.HTTPStatus)} + } + resp, err := server.NewResponse(respContent, req, nil) + if err != nil { + return nil, err + } + return resp, nil +} + +func (p *Python3PackageServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { + if p.srv.Get == nil { + return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/python3Packages/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + packageNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("packageName")]) + if err != nil { + return nil, err + } + respr, errRespr := p.srv.Get(req.Context(), resourceGroupNameParam, automationAccountNameParam, packageNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Module, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (p *Python3PackageServerTransport) dispatchNewListByAutomationAccountPager(req *http.Request) (*http.Response, error) { + if p.srv.NewListByAutomationAccountPager == nil { + return nil, &nonRetriableError{errors.New("fake for method NewListByAutomationAccountPager not implemented")} + } + newListByAutomationAccountPager := p.newListByAutomationAccountPager.get(req) + if newListByAutomationAccountPager == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/python3Packages` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + resp := p.srv.NewListByAutomationAccountPager(resourceGroupNameParam, automationAccountNameParam, nil) + newListByAutomationAccountPager = &resp + p.newListByAutomationAccountPager.add(req, newListByAutomationAccountPager) + server.PagerResponderInjectNextLinks(newListByAutomationAccountPager, req, func(page *armautomation.Python3PackageClientListByAutomationAccountResponse, createLink func() string) { + page.NextLink = to.Ptr(createLink()) + }) + } + resp, err := server.PagerResponderNext(newListByAutomationAccountPager, req) + if err != nil { + return nil, err + } + if !contains([]int{http.StatusOK}, resp.StatusCode) { + p.newListByAutomationAccountPager.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} + } + if !server.PagerResponderMore(newListByAutomationAccountPager) { + p.newListByAutomationAccountPager.remove(req) + } + return resp, nil +} + +func (p *Python3PackageServerTransport) dispatchUpdate(req *http.Request) (*http.Response, error) { + if p.srv.Update == nil { + return nil, &nonRetriableError{errors.New("fake for method Update not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Automation/automationAccounts/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/python3Packages/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armautomation.PythonPackageUpdateParameters](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + automationAccountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("automationAccountName")]) + if err != nil { + return nil, err + } + packageNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("packageName")]) + if err != nil { + return nil, err + } + respr, errRespr := p.srv.Update(req.Context(), resourceGroupNameParam, automationAccountNameParam, packageNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Module, req) + if err != nil { + return nil, err + } + return resp, nil +} diff --git a/sdk/resourcemanager/automation/armautomation/fake/server_factory.go b/sdk/resourcemanager/automation/armautomation/fake/server_factory.go index 6024dd1f61db..986b7394bf21 100644 --- a/sdk/resourcemanager/automation/armautomation/fake/server_factory.go +++ b/sdk/resourcemanager/automation/armautomation/fake/server_factory.go @@ -46,9 +46,11 @@ type ServerFactory struct { NodeReportsServer NodeReportsServer ObjectDataTypesServer ObjectDataTypesServer OperationsServer OperationsServer + PowerShell72ModuleServer PowerShell72ModuleServer PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer PrivateLinkResourcesServer PrivateLinkResourcesServer Python2PackageServer Python2PackageServer + Python3PackageServer Python3PackageServer RunbookServer RunbookServer RunbookDraftServer RunbookDraftServer ScheduleServer ScheduleServer @@ -108,9 +110,11 @@ type ServerFactoryTransport struct { trNodeReportsServer *NodeReportsServerTransport trObjectDataTypesServer *ObjectDataTypesServerTransport trOperationsServer *OperationsServerTransport + trPowerShell72ModuleServer *PowerShell72ModuleServerTransport trPrivateEndpointConnectionsServer *PrivateEndpointConnectionsServerTransport trPrivateLinkResourcesServer *PrivateLinkResourcesServerTransport trPython2PackageServer *Python2PackageServerTransport + trPython3PackageServer *Python3PackageServerTransport trRunbookServer *RunbookServerTransport trRunbookDraftServer *RunbookDraftServerTransport trScheduleServer *ScheduleServerTransport @@ -247,6 +251,11 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { case "OperationsClient": initServer(s, &s.trOperationsServer, func() *OperationsServerTransport { return NewOperationsServerTransport(&s.srv.OperationsServer) }) resp, err = s.trOperationsServer.Do(req) + case "PowerShell72ModuleClient": + initServer(s, &s.trPowerShell72ModuleServer, func() *PowerShell72ModuleServerTransport { + return NewPowerShell72ModuleServerTransport(&s.srv.PowerShell72ModuleServer) + }) + resp, err = s.trPowerShell72ModuleServer.Do(req) case "PrivateEndpointConnectionsClient": initServer(s, &s.trPrivateEndpointConnectionsServer, func() *PrivateEndpointConnectionsServerTransport { return NewPrivateEndpointConnectionsServerTransport(&s.srv.PrivateEndpointConnectionsServer) @@ -262,6 +271,11 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { return NewPython2PackageServerTransport(&s.srv.Python2PackageServer) }) resp, err = s.trPython2PackageServer.Do(req) + case "Python3PackageClient": + initServer(s, &s.trPython3PackageServer, func() *Python3PackageServerTransport { + return NewPython3PackageServerTransport(&s.srv.Python3PackageServer) + }) + resp, err = s.trPython3PackageServer.Do(req) case "RunbookClient": initServer(s, &s.trRunbookServer, func() *RunbookServerTransport { return NewRunbookServerTransport(&s.srv.RunbookServer) }) resp, err = s.trRunbookServer.Do(req) diff --git a/sdk/resourcemanager/automation/armautomation/fields_client.go b/sdk/resourcemanager/automation/armautomation/fields_client.go index cceffb695684..9f3285e14000 100644 --- a/sdk/resourcemanager/automation/armautomation/fields_client.go +++ b/sdk/resourcemanager/automation/armautomation/fields_client.go @@ -46,7 +46,7 @@ func NewFieldsClient(subscriptionID string, credential azcore.TokenCredential, o // NewListByTypePager - Retrieve a list of fields of a given type identified by module name. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - moduleName - The name of module. @@ -104,7 +104,7 @@ func (client *FieldsClient) listByTypeCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/fields_client_example_test.go b/sdk/resourcemanager/automation/armautomation/fields_client_example_test.go deleted file mode 100644 index 6c01a3aec530..000000000000 --- a/sdk/resourcemanager/automation/armautomation/fields_client_example_test.go +++ /dev/null @@ -1,58 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listFieldsByModuleAndType.json -func ExampleFieldsClient_NewListByTypePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewFieldsClient().NewListByTypePager("rg", "MyAutomationAccount", "MyModule", "MyCustomType", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.TypeFieldListResult = armautomation.TypeFieldListResult{ - // Value: []*armautomation.TypeField{ - // { - // Name: to.Ptr("Name"), - // Type: to.Ptr("System.String"), - // }, - // { - // Name: to.Ptr("Id"), - // Type: to.Ptr("System.Integer"), - // }, - // { - // Name: to.Ptr("Details"), - // Type: to.Ptr("MyModule.AnotherCustomType"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/go.mod b/sdk/resourcemanager/automation/armautomation/go.mod index 251858ad2c27..70019bf6be31 100644 --- a/sdk/resourcemanager/automation/armautomation/go.mod +++ b/sdk/resourcemanager/automation/armautomation/go.mod @@ -2,20 +2,10 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautom go 1.18 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.4.0 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v1.1.1 // indirect - github.com/golang-jwt/jwt/v5 v5.0.0 // indirect - github.com/google/uuid v1.3.1 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect - golang.org/x/crypto v0.14.0 // indirect golang.org/x/net v0.17.0 // indirect - golang.org/x/sys v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect ) diff --git a/sdk/resourcemanager/automation/armautomation/go.sum b/sdk/resourcemanager/automation/armautomation/go.sum index 7985f1da436f..428cd71de305 100644 --- a/sdk/resourcemanager/automation/armautomation/go.sum +++ b/sdk/resourcemanager/automation/armautomation/go.sum @@ -1,31 +1,12 @@ 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/azidentity v1.4.0 h1:BMAjVKJM0U/CYF27gA0ZMmXGkOcvfFtD0oHVZ1TIPRI= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.4.0/go.mod h1:1fXstnBMas5kzG+S3q8UoJcmyU6nUeunJcMDHcRYHhs= github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.0 h1:d81/ng9rET2YqdVkVwkb6EXeRrLJIwyGnJcAlAWKwhs= github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.0/go.mod h1:s4kgfzA0covAXNicZHDMN58jExvcng2mC/DepXiF1EI= -github.com/AzureAD/microsoft-authentication-library-for-go v1.1.1 h1:WpB/QDNLpMw72xHJc34BNNykqSOeEJDAWkhf0u12/Jk= -github.com/AzureAD/microsoft-authentication-library-for-go v1.1.1/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= -github.com/golang-jwt/jwt/v5 v5.0.0 h1:1n1XNM9hk7O9mnQoNBGolZvzebBQ7p93ULHRc28XJUE= -github.com/golang-jwt/jwt/v5 v5.0.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= -github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= -github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= -golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= -golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/resourcemanager/automation/armautomation/hybridrunbookworkergroup_client.go b/sdk/resourcemanager/automation/armautomation/hybridrunbookworkergroup_client.go index c4e5487c3f0c..a3d60b51d6c4 100644 --- a/sdk/resourcemanager/automation/armautomation/hybridrunbookworkergroup_client.go +++ b/sdk/resourcemanager/automation/armautomation/hybridrunbookworkergroup_client.go @@ -47,7 +47,7 @@ func NewHybridRunbookWorkerGroupClient(subscriptionID string, credential azcore. // Create - Create a hybrid runbook worker group. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - hybridRunbookWorkerGroupName - The hybrid runbook worker group name @@ -68,7 +68,7 @@ func (client *HybridRunbookWorkerGroupClient) Create(ctx context.Context, resour if err != nil { return HybridRunbookWorkerGroupClientCreateResponse{}, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { err = runtime.NewResponseError(httpResp) return HybridRunbookWorkerGroupClientCreateResponse{}, err } @@ -100,7 +100,7 @@ func (client *HybridRunbookWorkerGroupClient) createCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hybridRunbookWorkerGroupCreationParameters); err != nil { @@ -121,7 +121,7 @@ func (client *HybridRunbookWorkerGroupClient) createHandleResponse(resp *http.Re // Delete - Delete a hybrid runbook worker group. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - hybridRunbookWorkerGroupName - The hybrid runbook worker group name @@ -172,7 +172,7 @@ func (client *HybridRunbookWorkerGroupClient) deleteCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -181,7 +181,7 @@ func (client *HybridRunbookWorkerGroupClient) deleteCreateRequest(ctx context.Co // Get - Retrieve a hybrid runbook worker group. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - hybridRunbookWorkerGroupName - The hybrid runbook worker group name @@ -233,7 +233,7 @@ func (client *HybridRunbookWorkerGroupClient) getCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -250,7 +250,7 @@ func (client *HybridRunbookWorkerGroupClient) getHandleResponse(resp *http.Respo // NewListByAutomationAccountPager - Retrieve a list of hybrid runbook worker groups. // -// Generated from API version 2022-02-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - HybridRunbookWorkerGroupClientListByAutomationAccountOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.NewListByAutomationAccountPager @@ -301,7 +301,7 @@ func (client *HybridRunbookWorkerGroupClient) listByAutomationAccountCreateReque if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2022-02-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -319,7 +319,7 @@ func (client *HybridRunbookWorkerGroupClient) listByAutomationAccountHandleRespo // Update - Update a hybrid runbook worker group. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-02-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - hybridRunbookWorkerGroupName - The hybrid runbook worker group name @@ -372,7 +372,7 @@ func (client *HybridRunbookWorkerGroupClient) updateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hybridRunbookWorkerGroupUpdationParameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/hybridrunbookworkergroup_client_example_test.go b/sdk/resourcemanager/automation/armautomation/hybridrunbookworkergroup_client_example_test.go deleted file mode 100644 index ae80b719182f..000000000000 --- a/sdk/resourcemanager/automation/armautomation/hybridrunbookworkergroup_client_example_test.go +++ /dev/null @@ -1,209 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/deleteHybridRunbookWorkerGroup.json -func ExampleHybridRunbookWorkerGroupClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewHybridRunbookWorkerGroupClient().Delete(ctx, "rg", "myAutomationAccount20", "myGroup", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/getHybridRunbookWorkerGroup.json -func ExampleHybridRunbookWorkerGroupClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewHybridRunbookWorkerGroupClient().Get(ctx, "rg", "testaccount", "TestHybridGroup", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.HybridRunbookWorkerGroup = armautomation.HybridRunbookWorkerGroup{ - // Name: to.Ptr("TestHybridGroup"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup"), - // Properties: &armautomation.HybridRunbookWorkerGroupProperties{ - // Credential: &armautomation.RunAsCredentialAssociationProperty{ - // Name: to.Ptr("myRunAsCredentialName"), - // }, - // GroupType: to.Ptr(armautomation.GroupTypeEnumUser), - // }, - // SystemData: &armautomation.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // CreatedBy: to.Ptr("foo@contoso.com"), - // CreatedByType: to.Ptr(armautomation.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // LastModifiedBy: to.Ptr("foo@contoso.com"), - // LastModifiedByType: to.Ptr(armautomation.CreatedByTypeUser), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/putHybridRunbookWorkerGroup.json -func ExampleHybridRunbookWorkerGroupClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewHybridRunbookWorkerGroupClient().Create(ctx, "rg", "testaccount", "TestHybridGroup", armautomation.HybridRunbookWorkerGroupCreateOrUpdateParameters{ - Properties: &armautomation.HybridRunbookWorkerGroupCreateOrUpdateProperties{ - Credential: &armautomation.RunAsCredentialAssociationProperty{ - Name: to.Ptr("myRunAsCredentialName"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.HybridRunbookWorkerGroup = armautomation.HybridRunbookWorkerGroup{ - // Name: to.Ptr("TestHybridGroup"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup"), - // Properties: &armautomation.HybridRunbookWorkerGroupProperties{ - // Credential: &armautomation.RunAsCredentialAssociationProperty{ - // Name: to.Ptr("myRunAsCredentialName"), - // }, - // GroupType: to.Ptr(armautomation.GroupTypeEnumUser), - // }, - // SystemData: &armautomation.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // CreatedBy: to.Ptr("foo@contoso.com"), - // CreatedByType: to.Ptr(armautomation.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // LastModifiedBy: to.Ptr("foo@contoso.com"), - // LastModifiedByType: to.Ptr(armautomation.CreatedByTypeUser), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/updateHybridRunbookWorkerGroup.json -func ExampleHybridRunbookWorkerGroupClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewHybridRunbookWorkerGroupClient().Update(ctx, "rg", "testaccount", "TestHybridGroup", armautomation.HybridRunbookWorkerGroupCreateOrUpdateParameters{ - Properties: &armautomation.HybridRunbookWorkerGroupCreateOrUpdateProperties{ - Credential: &armautomation.RunAsCredentialAssociationProperty{ - Name: to.Ptr("myRunAsCredentialUpdatedName"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.HybridRunbookWorkerGroup = armautomation.HybridRunbookWorkerGroup{ - // Name: to.Ptr("TestHybridGroup"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup"), - // Properties: &armautomation.HybridRunbookWorkerGroupProperties{ - // Credential: &armautomation.RunAsCredentialAssociationProperty{ - // Name: to.Ptr("myRunAsCredentialUpdatedName"), - // }, - // GroupType: to.Ptr(armautomation.GroupTypeEnumUser), - // }, - // SystemData: &armautomation.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // CreatedBy: to.Ptr("foo@contoso.com"), - // CreatedByType: to.Ptr(armautomation.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // LastModifiedBy: to.Ptr("foo@contoso.com"), - // LastModifiedByType: to.Ptr(armautomation.CreatedByTypeUser), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/listHybridRunbookWorkerGroup.json -func ExampleHybridRunbookWorkerGroupClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewHybridRunbookWorkerGroupClient().NewListByAutomationAccountPager("rg", "testaccount", &armautomation.HybridRunbookWorkerGroupClientListByAutomationAccountOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.HybridRunbookWorkerGroupsListResult = armautomation.HybridRunbookWorkerGroupsListResult{ - // Value: []*armautomation.HybridRunbookWorkerGroup{ - // { - // Name: to.Ptr("TestHybridGroup"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup"), - // Properties: &armautomation.HybridRunbookWorkerGroupProperties{ - // Credential: &armautomation.RunAsCredentialAssociationProperty{ - // Name: to.Ptr("myRunAsCredentialName"), - // }, - // GroupType: to.Ptr(armautomation.GroupTypeEnumUser), - // }, - // SystemData: &armautomation.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // CreatedBy: to.Ptr("foo@contoso.com"), - // CreatedByType: to.Ptr(armautomation.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // LastModifiedBy: to.Ptr("foo@contoso.com"), - // LastModifiedByType: to.Ptr(armautomation.CreatedByTypeUser), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/hybridrunbookworkers_client.go b/sdk/resourcemanager/automation/armautomation/hybridrunbookworkers_client.go index 6f31ff627fca..8f7bc95cbd68 100644 --- a/sdk/resourcemanager/automation/armautomation/hybridrunbookworkers_client.go +++ b/sdk/resourcemanager/automation/armautomation/hybridrunbookworkers_client.go @@ -47,7 +47,7 @@ func NewHybridRunbookWorkersClient(subscriptionID string, credential azcore.Toke // Create - Create a hybrid runbook worker. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - hybridRunbookWorkerGroupName - The hybrid runbook worker group name @@ -69,7 +69,7 @@ func (client *HybridRunbookWorkersClient) Create(ctx context.Context, resourceGr if err != nil { return HybridRunbookWorkersClientCreateResponse{}, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { err = runtime.NewResponseError(httpResp) return HybridRunbookWorkersClientCreateResponse{}, err } @@ -105,7 +105,7 @@ func (client *HybridRunbookWorkersClient) createCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hybridRunbookWorkerCreationParameters); err != nil { @@ -126,7 +126,7 @@ func (client *HybridRunbookWorkersClient) createHandleResponse(resp *http.Respon // Delete - Delete a hybrid runbook worker. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - hybridRunbookWorkerGroupName - The hybrid runbook worker group name @@ -182,7 +182,7 @@ func (client *HybridRunbookWorkersClient) deleteCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -191,7 +191,7 @@ func (client *HybridRunbookWorkersClient) deleteCreateRequest(ctx context.Contex // Get - Retrieve a hybrid runbook worker. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - hybridRunbookWorkerGroupName - The hybrid runbook worker group name @@ -248,7 +248,7 @@ func (client *HybridRunbookWorkersClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -265,7 +265,7 @@ func (client *HybridRunbookWorkersClient) getHandleResponse(resp *http.Response) // NewListByHybridRunbookWorkerGroupPager - Retrieve a list of hybrid runbook workers. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - hybridRunbookWorkerGroupName - The hybrid runbook worker group name @@ -321,7 +321,7 @@ func (client *HybridRunbookWorkersClient) listByHybridRunbookWorkerGroupCreateRe if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -339,7 +339,7 @@ func (client *HybridRunbookWorkersClient) listByHybridRunbookWorkerGroupHandleRe // Move - Move a hybrid worker to a different group. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - hybridRunbookWorkerGroupName - The hybrid runbook worker group name @@ -396,7 +396,7 @@ func (client *HybridRunbookWorkersClient) moveCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hybridRunbookWorkerMoveParameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/hybridrunbookworkers_client_example_test.go b/sdk/resourcemanager/automation/armautomation/hybridrunbookworkers_client_example_test.go deleted file mode 100644 index cf3d1bee5c99..000000000000 --- a/sdk/resourcemanager/automation/armautomation/hybridrunbookworkers_client_example_test.go +++ /dev/null @@ -1,211 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorker.json -func ExampleHybridRunbookWorkersClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewHybridRunbookWorkersClient().Delete(ctx, "rg", "myAutomationAccount20", "myGroup", "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json -func ExampleHybridRunbookWorkersClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewHybridRunbookWorkersClient().Get(ctx, "rg", "testaccount", "TestHybridGroup", "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.HybridRunbookWorker = armautomation.HybridRunbookWorker{ - // Name: to.Ptr("c010ad12-ef14-4a2a-aa9e-ef22c4745ddd"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups/HybridRunbookWorkers"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup/hybridRunbookWorkers/c010ad12-ef14-4a2a-aa9e-ef22c4745ddd"), - // Properties: &armautomation.HybridRunbookWorkerProperties{ - // IP: to.Ptr("10.0.0.0"), - // LastSeenDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // RegisteredDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // VMResourceID: to.Ptr("/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname"), - // WorkerName: to.Ptr("vmname"), - // WorkerType: to.Ptr(armautomation.WorkerTypeHybridV2), - // }, - // SystemData: &armautomation.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // CreatedBy: to.Ptr("foo@contoso.com"), - // CreatedByType: to.Ptr(armautomation.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // LastModifiedBy: to.Ptr("foo@contoso.com"), - // LastModifiedByType: to.Ptr(armautomation.CreatedByTypeUser), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorker.json -func ExampleHybridRunbookWorkersClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewHybridRunbookWorkersClient().Create(ctx, "rg", "testaccount", "TestHybridGroup", "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", armautomation.HybridRunbookWorkerCreateParameters{ - Properties: &armautomation.HybridRunbookWorkerCreateOrUpdateParameters{ - VMResourceID: to.Ptr("/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.HybridRunbookWorker = armautomation.HybridRunbookWorker{ - // Name: to.Ptr("c010ad12-ef14-4a2a-aa9e-ef22c4745ddd"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups/HybridRunbookWorkers"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup/hybridRunbookWorkers/c010ad12-ef14-4a2a-aa9e-ef22c4745ddd"), - // Properties: &armautomation.HybridRunbookWorkerProperties{ - // IP: to.Ptr("10.0.0.0"), - // LastSeenDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // RegisteredDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // VMResourceID: to.Ptr("/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname"), - // WorkerName: to.Ptr("vmname"), - // WorkerType: to.Ptr(armautomation.WorkerTypeHybridV2), - // }, - // SystemData: &armautomation.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // CreatedBy: to.Ptr("foo@contoso.com"), - // CreatedByType: to.Ptr(armautomation.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // LastModifiedBy: to.Ptr("foo@contoso.com"), - // LastModifiedByType: to.Ptr(armautomation.CreatedByTypeUser), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/moveHybridRunbookWorker.json -func ExampleHybridRunbookWorkersClient_Move() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewHybridRunbookWorkersClient().Move(ctx, "rg", "testaccount", "TestHybridGroup", "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd", armautomation.HybridRunbookWorkerMoveParameters{ - HybridRunbookWorkerGroupName: to.Ptr("TestHybridGroup2"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorker.json -func ExampleHybridRunbookWorkersClient_NewListByHybridRunbookWorkerGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewHybridRunbookWorkersClient().NewListByHybridRunbookWorkerGroupPager("rg", "testaccount", "TestHybridGroup", &armautomation.HybridRunbookWorkersClientListByHybridRunbookWorkerGroupOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.HybridRunbookWorkersListResult = armautomation.HybridRunbookWorkersListResult{ - // Value: []*armautomation.HybridRunbookWorker{ - // { - // Name: to.Ptr("c010ad12-ef14-4a2a-aa9e-ef22c4745ddd"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups/HybridRunbookWorkers"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup/hybridRunbookWorkers/c010ad12-ef14-4a2a-aa9e-ef22c4745ddd"), - // Properties: &armautomation.HybridRunbookWorkerProperties{ - // IP: to.Ptr("10.0.0.0"), - // LastSeenDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // RegisteredDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // VMResourceID: to.Ptr("/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname"), - // WorkerName: to.Ptr("vmname"), - // WorkerType: to.Ptr(armautomation.WorkerTypeHybridV2), - // }, - // SystemData: &armautomation.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // CreatedBy: to.Ptr("foo@contoso.com"), - // CreatedByType: to.Ptr(armautomation.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // LastModifiedBy: to.Ptr("foo@contoso.com"), - // LastModifiedByType: to.Ptr(armautomation.CreatedByTypeUser), - // }, - // }, - // { - // Name: to.Ptr("e18fe971-75b1-4351-987f-6fe3604bc721"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups/HybridRunbookWorkers"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup/hybridRunbookWorkers/e18fe971-75b1-4351-987f-6fe3604bc721"), - // Properties: &armautomation.HybridRunbookWorkerProperties{ - // IP: to.Ptr("10.0.0.1"), - // LastSeenDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-25T16:30:55.000Z"); return t}()), - // RegisteredDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-25T16:30:55.000Z"); return t}()), - // VMResourceID: to.Ptr(""), - // WorkerName: to.Ptr("myworker"), - // WorkerType: to.Ptr(armautomation.WorkerTypeHybridV1), - // }, - // SystemData: &armautomation.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // CreatedBy: to.Ptr("foo@contoso.com"), - // CreatedByType: to.Ptr(armautomation.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()), - // LastModifiedBy: to.Ptr("foo@contoso.com"), - // LastModifiedByType: to.Ptr(armautomation.CreatedByTypeUser), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/job_client.go b/sdk/resourcemanager/automation/armautomation/job_client.go index 87344f8c4580..7ba77aae3ec0 100644 --- a/sdk/resourcemanager/automation/armautomation/job_client.go +++ b/sdk/resourcemanager/automation/armautomation/job_client.go @@ -47,7 +47,7 @@ func NewJobClient(subscriptionID string, credential azcore.TokenCredential, opti // Create - Create a job of the runbook. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobName - The job name. @@ -99,7 +99,7 @@ func (client *JobClient) createCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} @@ -123,7 +123,7 @@ func (client *JobClient) createHandleResponse(resp *http.Response) (JobClientCre // Get - Retrieve the job identified by job name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobName - The job name. @@ -174,7 +174,7 @@ func (client *JobClient) getCreateRequest(ctx context.Context, resourceGroupName return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} @@ -195,7 +195,7 @@ func (client *JobClient) getHandleResponse(resp *http.Response) (JobClientGetRes // GetOutput - Retrieve the job output identified by job name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobName - The name of the job to be created. @@ -246,7 +246,7 @@ func (client *JobClient) getOutputCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} @@ -270,7 +270,7 @@ func (client *JobClient) getOutputHandleResponse(resp *http.Response) (JobClient // GetRunbookContent - Retrieve the runbook content of the job identified by job name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobName - The job name. @@ -321,7 +321,7 @@ func (client *JobClient) getRunbookContentCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} @@ -344,7 +344,7 @@ func (client *JobClient) getRunbookContentHandleResponse(resp *http.Response) (J // NewListByAutomationAccountPager - Retrieve a list of jobs. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - JobClientListByAutomationAccountOptions contains the optional parameters for the JobClient.NewListByAutomationAccountPager @@ -395,7 +395,7 @@ func (client *JobClient) listByAutomationAccountCreateRequest(ctx context.Contex if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} @@ -416,7 +416,7 @@ func (client *JobClient) listByAutomationAccountHandleResponse(resp *http.Respon // Resume - Resume the job identified by jobName. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobName - The job name. @@ -466,7 +466,7 @@ func (client *JobClient) resumeCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} @@ -478,7 +478,7 @@ func (client *JobClient) resumeCreateRequest(ctx context.Context, resourceGroupN // Stop - Stop the job identified by jobName. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobName - The job name. @@ -528,7 +528,7 @@ func (client *JobClient) stopCreateRequest(ctx context.Context, resourceGroupNam return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} @@ -540,7 +540,7 @@ func (client *JobClient) stopCreateRequest(ctx context.Context, resourceGroupNam // Suspend - Suspend the job identified by job name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobName - The job name. @@ -590,7 +590,7 @@ func (client *JobClient) suspendCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} diff --git a/sdk/resourcemanager/automation/armautomation/job_client_example_test.go b/sdk/resourcemanager/automation/armautomation/job_client_example_test.go deleted file mode 100644 index 515a425dae37..000000000000 --- a/sdk/resourcemanager/automation/armautomation/job_client_example_test.go +++ /dev/null @@ -1,244 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJobOutput.json -func ExampleJobClient_GetOutput() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewJobClient().GetOutput(ctx, "mygroup", "ContoseAutomationAccount", "foo", &armautomation.JobClientGetOutputOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Value = "Wednesday, February 7, 2018 3:47:17 PM" -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJobRunbookContent.json -func ExampleJobClient_GetRunbookContent() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewJobClient().GetRunbookContent(ctx, "mygroup", "ContoseAutomationAccount", "foo", &armautomation.JobClientGetRunbookContentOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Value = "get-date" -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/suspendJob.json -func ExampleJobClient_Suspend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewJobClient().Suspend(ctx, "mygroup", "ContoseAutomationAccount", "foo", &armautomation.JobClientSuspendOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/stopJob.json -func ExampleJobClient_Stop() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewJobClient().Stop(ctx, "mygroup", "ContoseAutomationAccount", "foo", &armautomation.JobClientStopOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJob.json -func ExampleJobClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewJobClient().Get(ctx, "mygroup", "ContoseAutomationAccount", "foo", &armautomation.JobClientGetOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Job = armautomation.Job{ - // Name: to.Ptr("foo"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Jobs"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName"), - // Properties: &armautomation.JobProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-01T05:53:30.243Z"); return t}()), - // JobID: to.Ptr("5b8a3960-e8ab-45f6-bec6-567df8467d1a"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-01T05:53:30.243Z"); return t}()), - // LastStatusModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-01T05:53:30.243Z"); return t}()), - // Parameters: map[string]*string{ - // "tag01": to.Ptr("value01"), - // "tag02": to.Ptr("value02"), - // }, - // ProvisioningState: to.Ptr(armautomation.JobProvisioningStateSucceeded), - // RunOn: to.Ptr(""), - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // Status: to.Ptr(armautomation.JobStatusNew), - // StatusDetails: to.Ptr("None"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/createJob.json -func ExampleJobClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewJobClient().Create(ctx, "mygroup", "ContoseAutomationAccount", "foo", armautomation.JobCreateParameters{ - Properties: &armautomation.JobCreateProperties{ - Parameters: map[string]*string{ - "key01": to.Ptr("value01"), - "key02": to.Ptr("value02"), - }, - RunOn: to.Ptr(""), - Runbook: &armautomation.RunbookAssociationProperty{ - Name: to.Ptr("TestRunbook"), - }, - }, - }, &armautomation.JobClientCreateOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/listJobsByAutomationAccount.json -func ExampleJobClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewJobClient().NewListByAutomationAccountPager("mygroup", "ContoseAutomationAccount", &armautomation.JobClientListByAutomationAccountOptions{Filter: nil, - ClientRequestID: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.JobListResultV2 = armautomation.JobListResultV2{ - // Value: []*armautomation.JobCollectionItem{ - // { - // Name: to.Ptr("job1"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Jobs"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/job1"), - // Properties: &armautomation.JobCollectionItemProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-30T05:53:30.243Z"); return t}()), - // JobID: to.Ptr("45203a94-a8cb-47c3-8ce4-4dcc3a5f7d23"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-30T05:53:30.243Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // Status: to.Ptr(armautomation.JobStatusNew), - // }, - // }, - // { - // Name: to.Ptr("job2"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Jobs"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/job2"), - // Properties: &armautomation.JobCollectionItemProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-30T05:46:49.370Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-30T05:48:38.857Z"); return t}()), - // JobID: to.Ptr("7584055f-5118-460a-a2dd-5176c9c8efe9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-30T05:48:38.857Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-30T05:47:35.200Z"); return t}()), - // Status: to.Ptr(armautomation.JobStatusCompleted), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/resumeJob.json -func ExampleJobClient_Resume() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewJobClient().Resume(ctx, "mygroup", "ContoseAutomationAccount", "foo", &armautomation.JobClientResumeOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/automation/armautomation/jobschedule_client.go b/sdk/resourcemanager/automation/armautomation/jobschedule_client.go index 716666db1034..7995d0ece37f 100644 --- a/sdk/resourcemanager/automation/armautomation/jobschedule_client.go +++ b/sdk/resourcemanager/automation/armautomation/jobschedule_client.go @@ -47,7 +47,7 @@ func NewJobScheduleClient(subscriptionID string, credential azcore.TokenCredenti // Create - Create a job schedule. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobScheduleID - The job schedule name. @@ -99,7 +99,7 @@ func (client *JobScheduleClient) createCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-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 *JobScheduleClient) createHandleResponse(resp *http.Response) (JobS // Delete - Delete the job schedule identified by job schedule name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobScheduleID - The job schedule name. @@ -170,7 +170,7 @@ func (client *JobScheduleClient) deleteCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -179,7 +179,7 @@ func (client *JobScheduleClient) deleteCreateRequest(ctx context.Context, resour // Get - Retrieve the job schedule identified by job schedule name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobScheduleID - The job schedule name. @@ -230,7 +230,7 @@ func (client *JobScheduleClient) getCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -247,7 +247,7 @@ func (client *JobScheduleClient) getHandleResponse(resp *http.Response) (JobSche // NewListByAutomationAccountPager - Retrieve a list of job schedules. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - JobScheduleClientListByAutomationAccountOptions contains the optional parameters for the JobScheduleClient.NewListByAutomationAccountPager @@ -298,7 +298,7 @@ func (client *JobScheduleClient) listByAutomationAccountCreateRequest(ctx contex if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/jobschedule_client_example_test.go b/sdk/resourcemanager/automation/armautomation/jobschedule_client_example_test.go deleted file mode 100644 index f4ae6d3a4719..000000000000 --- a/sdk/resourcemanager/automation/armautomation/jobschedule_client_example_test.go +++ /dev/null @@ -1,166 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteJobSchedule.json -func ExampleJobScheduleClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewJobScheduleClient().Delete(ctx, "rg", "ContoseAutomationAccount", "0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getJobSchedule.json -func ExampleJobScheduleClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewJobScheduleClient().Get(ctx, "rg", "ContoseAutomationAccount", "0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.JobSchedule = armautomation.JobSchedule{ - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobSchedules/0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc"), - // Properties: &armautomation.JobScheduleProperties{ - // JobScheduleID: to.Ptr("0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc"), - // Parameters: map[string]*string{ - // "jobscheduletag01": to.Ptr("jobschedulevalue01"), - // "jobscheduletag02": to.Ptr("jobschedulevalue02"), - // }, - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // Schedule: &armautomation.ScheduleAssociationProperty{ - // Name: to.Ptr("ScheduleNameGoesHere332204b5-debe-4348-a5c7-6357457189f2"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createJobSchedule.json -func ExampleJobScheduleClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewJobScheduleClient().Create(ctx, "rg", "ContoseAutomationAccount", "0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc", armautomation.JobScheduleCreateParameters{ - Properties: &armautomation.JobScheduleCreateProperties{ - Parameters: map[string]*string{ - "jobscheduletag01": to.Ptr("jobschedulevalue01"), - "jobscheduletag02": to.Ptr("jobschedulevalue02"), - }, - Runbook: &armautomation.RunbookAssociationProperty{ - Name: to.Ptr("TestRunbook"), - }, - Schedule: &armautomation.ScheduleAssociationProperty{ - Name: to.Ptr("ScheduleNameGoesHere332204b5-debe-4348-a5c7-6357457189f2"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listAllJobSchedulesByAutomationAccount.json -func ExampleJobScheduleClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewJobScheduleClient().NewListByAutomationAccountPager("rg", "ContoseAutomationAccount", &armautomation.JobScheduleClientListByAutomationAccountOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.JobScheduleListResult = armautomation.JobScheduleListResult{ - // Value: []*armautomation.JobSchedule{ - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobSchedules/2f4d8f35-ecd5-44ee-a019-2382fec58fb7"), - // Properties: &armautomation.JobScheduleProperties{ - // JobScheduleID: to.Ptr("2f4d8f35-ecd5-44ee-a019-2382fec58fb7"), - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // Schedule: &armautomation.ScheduleAssociationProperty{ - // Name: to.Ptr("JobScheduleforTestRunbook"), - // }, - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobSchedules/446f7a33-86ff-45a1-b71c-f998f701b443"), - // Properties: &armautomation.JobScheduleProperties{ - // JobScheduleID: to.Ptr("446f7a33-86ff-45a1-b71c-f998f701b443"), - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // Schedule: &armautomation.ScheduleAssociationProperty{ - // Name: to.Ptr("TestSchedule"), - // }, - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobSchedules/0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc"), - // Properties: &armautomation.JobScheduleProperties{ - // JobScheduleID: to.Ptr("0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc"), - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // Schedule: &armautomation.ScheduleAssociationProperty{ - // Name: to.Ptr("ScheduleNameGoesHere332204b5-debe-4348-a5c7-6357457189f2"), - // }, - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/jobstream_client.go b/sdk/resourcemanager/automation/armautomation/jobstream_client.go index c4765b800b4e..5962ac6a87ee 100644 --- a/sdk/resourcemanager/automation/armautomation/jobstream_client.go +++ b/sdk/resourcemanager/automation/armautomation/jobstream_client.go @@ -47,7 +47,7 @@ func NewJobStreamClient(subscriptionID string, credential azcore.TokenCredential // Get - Retrieve the job stream identified by job stream id. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobName - The job name. @@ -103,7 +103,7 @@ func (client *JobStreamClient) getCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} @@ -123,7 +123,7 @@ func (client *JobStreamClient) getHandleResponse(resp *http.Response) (JobStream // NewListByJobPager - Retrieve a list of jobs streams identified by job name. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - jobName - The job name. @@ -178,7 +178,7 @@ func (client *JobStreamClient) listByJobCreateRequest(ctx context.Context, resou if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} diff --git a/sdk/resourcemanager/automation/armautomation/jobstream_client_example_test.go b/sdk/resourcemanager/automation/armautomation/jobstream_client_example_test.go deleted file mode 100644 index a4a8574e7069..000000000000 --- a/sdk/resourcemanager/automation/armautomation/jobstream_client_example_test.go +++ /dev/null @@ -1,95 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJobStream.json -func ExampleJobStreamClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewJobStreamClient().Get(ctx, "mygroup", "ContoseAutomationAccount", "foo", "851b2101-686f-40e2-8a4b-5b8df08afbd1_00636535684910693884_00000000000000000001", &armautomation.JobStreamClientGetOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.JobStream = armautomation.JobStream{ - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName/streams/851b2101-686f-40e2-8a4b-5b8df08afbd1_00636535684910693884_00000000000000000001"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("851b2101-686f-40e2-8a4b-5b8df08afbd1:00636535684910693884:00000000000000000001"), - // StreamText: to.Ptr(""), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-07T02:48:11.069Z"); return t}()), - // Value: map[string]any{ - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/listJobStreamsByJob.json -func ExampleJobStreamClient_NewListByJobPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewJobStreamClient().NewListByJobPager("mygroup", "ContoseAutomationAccount", "foo", &armautomation.JobStreamClientListByJobOptions{Filter: nil, - ClientRequestID: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.JobStreamListResult = armautomation.JobStreamListResult{ - // Value: []*armautomation.JobStream{ - // { - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName/streams/24456a8a-2857-4af6-932c-3455f38bd05e_00636535675981232703_00000000000000000001"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("24456a8a-2857-4af6-932c-3455f38bd05e_00636535675981232703_00000000000000000001"), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-07T02:33:18.123Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName/streams/24456a8a-2857-4af6-932c-3455f38bd05e_00636535675984691350_00000000000000000002"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("24456a8a-2857-4af6-932c-3455f38bd05e_00636535675984691350_00000000000000000002"), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-07T02:33:18.469Z"); return t}()), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/keys_client.go b/sdk/resourcemanager/automation/armautomation/keys_client.go index ef0a7d2473dd..73e8e25717aa 100644 --- a/sdk/resourcemanager/automation/armautomation/keys_client.go +++ b/sdk/resourcemanager/automation/armautomation/keys_client.go @@ -47,7 +47,7 @@ func NewKeysClient(subscriptionID string, credential azcore.TokenCredential, opt // ListByAutomationAccount - Retrieve the automation keys for an account. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - KeysClientListByAutomationAccountOptions contains the optional parameters for the KeysClient.ListByAutomationAccount @@ -94,7 +94,7 @@ func (client *KeysClient) listByAutomationAccountCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/keys_client_example_test.go b/sdk/resourcemanager/automation/armautomation/keys_client_example_test.go deleted file mode 100644 index 7b9b09a3db24..000000000000 --- a/sdk/resourcemanager/automation/armautomation/keys_client_example_test.go +++ /dev/null @@ -1,51 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json -func ExampleKeysClient_ListByAutomationAccount() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewKeysClient().ListByAutomationAccount(ctx, "rg", "MyAutomationAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.KeyListResult = armautomation.KeyListResult{ - // Keys: []*armautomation.Key{ - // { - // KeyName: to.Ptr(armautomation.AutomationKeyNamePrimary), - // Permissions: to.Ptr(armautomation.AutomationKeyPermissionsFull), - // Value: to.Ptr("**************************************************************"), - // }, - // { - // KeyName: to.Ptr(armautomation.AutomationKeyNameSecondary), - // Permissions: to.Ptr(armautomation.AutomationKeyPermissionsFull), - // Value: to.Ptr("**************************************************************"), - // }}, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/linkedworkspace_client.go b/sdk/resourcemanager/automation/armautomation/linkedworkspace_client.go index 1f76df0f5c04..c12244c2805f 100644 --- a/sdk/resourcemanager/automation/armautomation/linkedworkspace_client.go +++ b/sdk/resourcemanager/automation/armautomation/linkedworkspace_client.go @@ -47,7 +47,7 @@ func NewLinkedWorkspaceClient(subscriptionID string, credential azcore.TokenCred // Get - Retrieve the linked workspace for the account id. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - LinkedWorkspaceClientGetOptions contains the optional parameters for the LinkedWorkspaceClient.Get method. @@ -93,7 +93,7 @@ func (client *LinkedWorkspaceClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/linkedworkspace_client_example_test.go b/sdk/resourcemanager/automation/armautomation/linkedworkspace_client_example_test.go deleted file mode 100644 index 0818e23eac11..000000000000 --- a/sdk/resourcemanager/automation/armautomation/linkedworkspace_client_example_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getLinkedWorkspace.json -func ExampleLinkedWorkspaceClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewLinkedWorkspaceClient().Get(ctx, "rg", "ContosoAutomationAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.LinkedWorkspace = armautomation.LinkedWorkspace{ - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.OperationalInsights/workspaces/ContosoWorkspace"), - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/models.go b/sdk/resourcemanager/automation/armautomation/models.go index 1dbfeea912e3..adb9cdd63980 100644 --- a/sdk/resourcemanager/automation/armautomation/models.go +++ b/sdk/resourcemanager/automation/armautomation/models.go @@ -404,14 +404,6 @@ type CertificateUpdateProperties struct { Description *string } -type ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties struct { - // READ-ONLY; The client id of user assigned identity. - ClientID *string - - // READ-ONLY; The principal id of user assigned identity. - PrincipalID *string -} - // Connection - Definition of the connection. type Connection struct { // Gets or sets the properties of the connection. @@ -570,13 +562,13 @@ type ContentHash struct { // ContentLink - Definition of the content link. type ContentLink struct { - // Gets or sets the hash. + // Sets the hash. ContentHash *ContentHash - // Gets or sets the uri of the runbook content. + // Sets the uri of the content. URI *string - // Gets or sets the version of the content. + // Sets the version of the content. Version *string } @@ -715,6 +707,15 @@ type DeletedAutomationAccountProperties struct { DeletionTime *time.Time } +// Dimension of the metric. +type Dimension struct { + // The display name of the dimension. + DisplayName *string + + // The name of the dimension. + Name *string +} + // DscCompilationJob - Definition of the Dsc Compilation job. type DscCompilationJob struct { // Gets or sets the properties of the Dsc Compilation job. @@ -1436,7 +1437,7 @@ type Identity struct { // The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource // ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - UserAssignedIdentities map[string]*ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties + UserAssignedIdentities map[string]*UserAssignedIdentitiesProperties // READ-ONLY; The principal ID of resource identity. PrincipalID *string @@ -1734,15 +1735,48 @@ type LinuxProperties struct { RebootSetting *string } +// LogSpecification - Description of logging specification. +type LogSpecification struct { + // Duration of the blob. + BlobDuration *string + + // The display name of the specification. + DisplayName *string + + // The name of the specification. + Name *string +} + +// MetricSpecification - Description of metrics specification. +type MetricSpecification struct { + // The aggregation type. + AggregationType *string + + // List of dimensions. + Dimensions []*Dimension + + // The description of the metric. + DisplayDescription *string + + // The display name of the metric. + DisplayName *string + + // The name of the metric. + Name *string + + // Units the metric to be displayed in. + Unit *string +} + // Module - Definition of the module type. type Module struct { - // Gets or sets the etag of the resource. + // Gets the etag of the resource. Etag *string // The Azure Region where the resource lives Location *string - // Gets or sets the module properties. + // Gets the module properties. Properties *ModuleProperties // Resource tags. @@ -1760,97 +1794,97 @@ type Module struct { // ModuleCreateOrUpdateParameters - The parameters supplied to the create or update module operation. type ModuleCreateOrUpdateParameters struct { - // REQUIRED; Gets or sets the module create properties. + // REQUIRED; Sets the module create properties. Properties *ModuleCreateOrUpdateProperties - // Gets or sets the location of the resource. + // Sets the location of the resource. Location *string - // Gets or sets name of the resource. + // Sets name of the resource. Name *string - // Gets or sets the tags attached to the resource. + // Sets the tags attached to the resource. Tags map[string]*string } // ModuleCreateOrUpdateProperties - The parameters supplied to the create or update module properties. type ModuleCreateOrUpdateProperties struct { - // REQUIRED; Gets or sets the module content link. + // REQUIRED; Sets the hash. ContentLink *ContentLink } // ModuleErrorInfo - Definition of the module error info type. type ModuleErrorInfo struct { - // Gets or sets the error code. + // Gets the error code. Code *string - // Gets or sets the error message. + // Gets the error message. Message *string } // ModuleListResult - The response model for the list module operation. type ModuleListResult struct { - // Gets or sets the next link. + // Gets the next link. NextLink *string - // Gets or sets a list of modules. + // Gets a list of modules. Value []*Module } // ModuleProperties - Definition of the module property type. type ModuleProperties struct { - // Gets or sets the activity count of the module. + // Gets the activity count of the module. ActivityCount *int32 // Gets or sets the contentLink of the module. ContentLink *ContentLink - // Gets or sets the creation time. + // Gets the creation time. CreationTime *time.Time // Gets or sets the description. Description *string - // Gets or sets the error info of the module. + // Gets the error info of the module. Error *ModuleErrorInfo - // Gets or sets type of module, if its composite or not. + // Gets type of module, if its composite or not. IsComposite *bool - // Gets or sets the isGlobal flag of the module. + // Gets the isGlobal flag of the module. IsGlobal *bool - // Gets or sets the last modified time. + // Gets the last modified time. LastModifiedTime *time.Time - // Gets or sets the provisioning state of the module. + // Gets the provisioning state of the module. ProvisioningState *ModuleProvisioningState - // Gets or sets the size in bytes of the module. + // Gets the size in bytes of the module. SizeInBytes *int64 - // Gets or sets the version of the module. + // Gets the version of the module. Version *string } // ModuleUpdateParameters - The parameters supplied to the update module operation. type ModuleUpdateParameters struct { - // Gets or sets the location of the resource. - Location *string - - // Gets or sets name of the resource. - Name *string - - // Gets or sets the module update properties. + // Sets the module update properties. Properties *ModuleUpdateProperties - // Gets or sets the tags attached to the resource. + // Sets the tags attached to the resource. Tags map[string]*string + + // READ-ONLY; Sets the location of the resource. + Location *string + + // READ-ONLY; Sets name of the resource. + Name *string } // ModuleUpdateProperties - The parameters supplied to the update properties. type ModuleUpdateProperties struct { - // Gets or sets the module content link. + // Sets the module content link. ContentLink *ContentLink } @@ -1891,10 +1925,19 @@ type Operation struct { // Operation name: {provider}/{resource}/{operation} Name *string + + // Origin of the operation. + Origin *string + + // Operation properties format. + Properties *OperationPropertiesFormat } // OperationDisplay - Provider, Resource and Operation values type OperationDisplay struct { + // Description of the operation. + Description *string + // Operation type: Read, write, delete, etc. Operation *string @@ -1911,6 +1954,21 @@ type OperationListResult struct { Value []*Operation } +// OperationPropertiesFormat - Description of operation properties format. +type OperationPropertiesFormat struct { + // Specification of the service. + ServiceSpecification *OperationPropertiesFormatServiceSpecification +} + +// OperationPropertiesFormatServiceSpecification - Specification of the service. +type OperationPropertiesFormatServiceSpecification struct { + // Operation log specification. + LogSpecifications []*LogSpecification + + // Operation service specification. + MetricSpecifications []*MetricSpecification +} + // PrivateEndpointConnection - A private endpoint connection type PrivateEndpointConnection struct { // Resource properties. @@ -3212,6 +3270,14 @@ type UsageListResult struct { Value []*Usage } +type UserAssignedIdentitiesProperties struct { + // READ-ONLY; The client id of user assigned identity. + ClientID *string + + // READ-ONLY; The principal id of user assigned identity. + PrincipalID *string +} + // Variable - Definition of the variable. type Variable struct { // Gets or sets the properties of the variable. diff --git a/sdk/resourcemanager/automation/armautomation/models_serde.go b/sdk/resourcemanager/automation/armautomation/models_serde.go index c82e51e7febc..4101c90a0a27 100644 --- a/sdk/resourcemanager/automation/armautomation/models_serde.go +++ b/sdk/resourcemanager/automation/armautomation/models_serde.go @@ -1044,37 +1044,6 @@ func (c *CertificateUpdateProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties. -func (c ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "clientId", c.ClientID) - populate(objectMap, "principalId", c.PrincipalID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties. -func (c *ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "clientId": - err = unpopulate(val, "ClientID", &c.ClientID) - delete(rawMsg, key) - case "principalId": - err = unpopulate(val, "PrincipalID", &c.PrincipalID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type Connection. func (c Connection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -1973,6 +1942,37 @@ func (d *DeletedAutomationAccountProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type Dimension. +func (d Dimension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "displayName", d.DisplayName) + populate(objectMap, "name", d.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Dimension. +func (d *Dimension) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "displayName": + err = unpopulate(val, "DisplayName", &d.DisplayName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DscCompilationJob. func (d DscCompilationJob) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -4644,6 +4644,88 @@ func (l *LinuxProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type LogSpecification. +func (l LogSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobDuration", l.BlobDuration) + populate(objectMap, "displayName", l.DisplayName) + populate(objectMap, "name", l.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LogSpecification. +func (l *LogSpecification) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "blobDuration": + err = unpopulate(val, "BlobDuration", &l.BlobDuration) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &l.DisplayName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &l.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type MetricSpecification. +func (m MetricSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aggregationType", m.AggregationType) + populate(objectMap, "dimensions", m.Dimensions) + populate(objectMap, "displayDescription", m.DisplayDescription) + populate(objectMap, "displayName", m.DisplayName) + populate(objectMap, "name", m.Name) + populate(objectMap, "unit", m.Unit) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MetricSpecification. +func (m *MetricSpecification) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "aggregationType": + err = unpopulate(val, "AggregationType", &m.AggregationType) + delete(rawMsg, key) + case "dimensions": + err = unpopulate(val, "Dimensions", &m.Dimensions) + delete(rawMsg, key) + case "displayDescription": + err = unpopulate(val, "DisplayDescription", &m.DisplayDescription) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &m.DisplayName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &m.Unit) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Module. func (m Module) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -5081,6 +5163,8 @@ func (o Operation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "display", o.Display) populate(objectMap, "name", o.Name) + populate(objectMap, "origin", o.Origin) + populate(objectMap, "properties", o.Properties) return json.Marshal(objectMap) } @@ -5099,6 +5183,12 @@ func (o *Operation) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &o.Name) delete(rawMsg, key) + case "origin": + err = unpopulate(val, "Origin", &o.Origin) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &o.Properties) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", o, err) @@ -5110,6 +5200,7 @@ func (o *Operation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationDisplay. func (o OperationDisplay) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "description", o.Description) populate(objectMap, "operation", o.Operation) populate(objectMap, "provider", o.Provider) populate(objectMap, "resource", o.Resource) @@ -5125,6 +5216,9 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "description": + err = unpopulate(val, "Description", &o.Description) + delete(rawMsg, key) case "operation": err = unpopulate(val, "Operation", &o.Operation) delete(rawMsg, key) @@ -5169,6 +5263,64 @@ func (o *OperationListResult) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type OperationPropertiesFormat. +func (o OperationPropertiesFormat) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "serviceSpecification", o.ServiceSpecification) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationPropertiesFormat. +func (o *OperationPropertiesFormat) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "serviceSpecification": + err = unpopulate(val, "ServiceSpecification", &o.ServiceSpecification) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationPropertiesFormatServiceSpecification. +func (o OperationPropertiesFormatServiceSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "logSpecifications", o.LogSpecifications) + populate(objectMap, "metricSpecifications", o.MetricSpecifications) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationPropertiesFormatServiceSpecification. +func (o *OperationPropertiesFormatServiceSpecification) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "logSpecifications": + err = unpopulate(val, "LogSpecifications", &o.LogSpecifications) + delete(rawMsg, key) + case "metricSpecifications": + err = unpopulate(val, "MetricSpecifications", &o.MetricSpecifications) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection. func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -8581,6 +8733,37 @@ func (u *UsageListResult) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentitiesProperties. +func (u UserAssignedIdentitiesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", u.ClientID) + populate(objectMap, "principalId", u.PrincipalID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentitiesProperties. +func (u *UserAssignedIdentitiesProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "clientId": + err = unpopulate(val, "ClientID", &u.ClientID) + delete(rawMsg, key) + case "principalId": + err = unpopulate(val, "PrincipalID", &u.PrincipalID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Variable. func (v Variable) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/sdk/resourcemanager/automation/armautomation/module_client.go b/sdk/resourcemanager/automation/armautomation/module_client.go index 831d486c33ea..13e96bfc6eca 100644 --- a/sdk/resourcemanager/automation/armautomation/module_client.go +++ b/sdk/resourcemanager/automation/armautomation/module_client.go @@ -44,39 +44,61 @@ func NewModuleClient(subscriptionID string, credential azcore.TokenCredential, o return client, nil } -// CreateOrUpdate - Create or Update the module identified by module name. +// BeginCreateOrUpdate - Create or Update the module identified by module name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - moduleName - The name of module. // - parameters - The create or update parameters for module. -// - options - ModuleClientCreateOrUpdateOptions contains the optional parameters for the ModuleClient.CreateOrUpdate method. -func (client *ModuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters, options *ModuleClientCreateOrUpdateOptions) (ModuleClientCreateOrUpdateResponse, error) { +// - options - ModuleClientBeginCreateOrUpdateOptions contains the optional parameters for the ModuleClient.BeginCreateOrUpdate +// method. +func (client *ModuleClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters, options *ModuleClientBeginCreateOrUpdateOptions) (*runtime.Poller[ModuleClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, automationAccountName, moduleName, parameters, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ModuleClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ModuleClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Create or Update the module identified by module name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +func (client *ModuleClient) createOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters, options *ModuleClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error - const operationName = "ModuleClient.CreateOrUpdate" + const operationName = "ModuleClient.BeginCreateOrUpdate" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, automationAccountName, moduleName, parameters, options) if err != nil { - return ModuleClientCreateOrUpdateResponse{}, err + return nil, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return ModuleClientCreateOrUpdateResponse{}, err + return nil, err } if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { err = runtime.NewResponseError(httpResp) - return ModuleClientCreateOrUpdateResponse{}, err + return nil, err } - resp, err := client.createOrUpdateHandleResponse(httpResp) - return resp, err + return httpResp, nil } // createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *ModuleClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters, options *ModuleClientCreateOrUpdateOptions) (*policy.Request, error) { +func (client *ModuleClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters, options *ModuleClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -99,7 +121,7 @@ func (client *ModuleClient) createOrUpdateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -108,19 +130,10 @@ func (client *ModuleClient) createOrUpdateCreateRequest(ctx context.Context, res return req, nil } -// createOrUpdateHandleResponse handles the CreateOrUpdate response. -func (client *ModuleClient) createOrUpdateHandleResponse(resp *http.Response) (ModuleClientCreateOrUpdateResponse, error) { - result := ModuleClientCreateOrUpdateResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.Module); err != nil { - return ModuleClientCreateOrUpdateResponse{}, err - } - return result, nil -} - // Delete - Delete the module by name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - moduleName - The module name. @@ -170,7 +183,7 @@ func (client *ModuleClient) deleteCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -179,7 +192,7 @@ func (client *ModuleClient) deleteCreateRequest(ctx context.Context, resourceGro // Get - Retrieve the module identified by module name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - moduleName - The module name. @@ -230,7 +243,7 @@ func (client *ModuleClient) getCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -247,7 +260,7 @@ func (client *ModuleClient) getHandleResponse(resp *http.Response) (ModuleClient // NewListByAutomationAccountPager - Retrieve a list of modules. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - ModuleClientListByAutomationAccountOptions contains the optional parameters for the ModuleClient.NewListByAutomationAccountPager @@ -295,7 +308,7 @@ func (client *ModuleClient) listByAutomationAccountCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -313,7 +326,7 @@ func (client *ModuleClient) listByAutomationAccountHandleResponse(resp *http.Res // Update - Update the module identified by module name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - moduleName - The name of module. @@ -365,7 +378,7 @@ func (client *ModuleClient) updateCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/module_client_example_test.go b/sdk/resourcemanager/automation/armautomation/module_client_example_test.go deleted file mode 100644 index 914b257b7f5c..000000000000 --- a/sdk/resourcemanager/automation/armautomation/module_client_example_test.go +++ /dev/null @@ -1,396 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteModule.json -func ExampleModuleClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewModuleClient().Delete(ctx, "rg", "myAutomationAccount33", "OmsCompositeResources", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getModule.json -func ExampleModuleClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewModuleClient().Get(ctx, "rg", "myAutomationAccount33", "OmsCompositeResources", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Module = armautomation.Module{ - // Name: to.Ptr("OmsCompositeResources"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Modules"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/OmsCompositeResources"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // }, - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:41:47.003Z"); return t}()), - // Error: &armautomation.ModuleErrorInfo{ - // Message: to.Ptr(""), - // }, - // IsComposite: to.Ptr(true), - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:42:10.567Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateModule.json -func ExampleModuleClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewModuleClient().CreateOrUpdate(ctx, "rg", "myAutomationAccount33", "OmsCompositeResources", armautomation.ModuleCreateOrUpdateParameters{ - Properties: &armautomation.ModuleCreateOrUpdateProperties{ - ContentLink: &armautomation.ContentLink{ - ContentHash: &armautomation.ContentHash{ - Algorithm: to.Ptr("sha265"), - Value: to.Ptr("07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), - }, - URI: to.Ptr("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"), - Version: to.Ptr("1.0.0.0"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Module = armautomation.Module{ - // Name: to.Ptr("OmsCompositeResources"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Modules"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/OmsCompositeResources"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // }, - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:41:47.003Z"); return t}()), - // Error: &armautomation.ModuleErrorInfo{ - // }, - // IsComposite: to.Ptr(false), - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:42:10.567Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateModule.json -func ExampleModuleClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewModuleClient().Update(ctx, "rg", "MyAutomationAccount", "MyModule", armautomation.ModuleUpdateParameters{ - Properties: &armautomation.ModuleUpdateProperties{ - ContentLink: &armautomation.ContentLink{ - ContentHash: &armautomation.ContentHash{ - Algorithm: to.Ptr("sha265"), - Value: to.Ptr("07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), - }, - URI: to.Ptr("https://teststorage.blob.core.windows.net/mycontainer/MyModule.zip"), - Version: to.Ptr("1.0.0.0"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Module = armautomation.Module{ - // Name: to.Ptr("MyModule"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Modules"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyAutomationAccount/modules/MyModule"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // }, - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:41:47.003Z"); return t}()), - // Error: &armautomation.ModuleErrorInfo{ - // }, - // IsComposite: to.Ptr(false), - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:42:10.567Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listModulesByAutomationAccount.json -func ExampleModuleClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewModuleClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ModuleListResult = armautomation.ModuleListResult{ - // Value: []*armautomation.Module{ - // { - // Name: to.Ptr("Azure"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/Azure"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2014-03-18T23:02:40.323Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T16:57:48.343Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("Azure.Storage"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/Azure.Storage"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-01-30T01:21:44.680Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:04:27.833Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("AzureRM.Automation"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Automation"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-01-30T01:19:39.427Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:02:24.420Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("AzureRM.Compute"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Compute"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-24T20:24:06.100Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:01:53.810Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("AzureRM.Profile"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Profile"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-24T20:23:34.723Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:01:22.993Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("AzureRM.Resources"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Resources"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-01-30T01:20:10.367Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:02:55.250Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("AzureRM.Sql"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Sql"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-01-30T01:20:42.177Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:03:26.080Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("AzureRM.Storage"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/AzureRM.Storage"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-01-30T01:21:13.237Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:03:56.990Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.PowerShell.Core"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/Microsoft.PowerShell.Core"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-03-17T00:12:20.897Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T16:58:19.017Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.PowerShell.Diagnostics"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/Microsoft.PowerShell.Diagnostics"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-03-17T00:12:22.817Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T16:58:49.737Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.PowerShell.Management"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/Microsoft.PowerShell.Management"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-03-17T00:12:24.967Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T16:59:20.380Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.PowerShell.Security"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/Microsoft.PowerShell.Security"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-03-17T00:12:26.753Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T16:59:51.007Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.PowerShell.Utility"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/Microsoft.PowerShell.Utility"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-03-17T00:12:28.643Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:00:21.647Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.WSMan.Management"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/Microsoft.WSMan.Management"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-03-17T00:17:15.003Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:00:52.197Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("OmsCompositeResources"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/OmsCompositeResources"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:41:47.003Z"); return t}()), - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:42:10.567Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }, - // { - // Name: to.Ptr("Orchestrator.AssetManagement.Cmdlets"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/Orchestrator.AssetManagement.Cmdlets"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-09-12T00:45:12.897Z"); return t}()), - // IsGlobal: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-17T17:05:01.570Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/nodecountinformation_client_example_test.go b/sdk/resourcemanager/automation/armautomation/nodecountinformation_client_example_test.go deleted file mode 100644 index f523129e4d2c..000000000000 --- a/sdk/resourcemanager/automation/armautomation/nodecountinformation_client_example_test.go +++ /dev/null @@ -1,114 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeConfigurationCounts.json -func ExampleNodeCountInformationClient_Get_getNodesNodeConfigurationCounts() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewNodeCountInformationClient().Get(ctx, "rg", "myAutomationAccount33", armautomation.CountTypeNodeconfiguration, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.NodeCounts = armautomation.NodeCounts{ - // TotalCount: to.Ptr[int32](16), - // Value: []*armautomation.NodeCount{ - // { - // Name: to.Ptr("client.localhost"), - // Properties: &armautomation.NodeCountProperties{ - // Count: to.Ptr[int32](24), - // }, - // }, - // { - // Name: to.Ptr("server.localhost"), - // Properties: &armautomation.NodeCountProperties{ - // Count: to.Ptr[int32](3), - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeStatusCounts.json -func ExampleNodeCountInformationClient_Get_getNodesStatusCounts() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewNodeCountInformationClient().Get(ctx, "rg", "myAutomationAccount33", armautomation.CountTypeStatus, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.NodeCounts = armautomation.NodeCounts{ - // TotalCount: to.Ptr[int32](6), - // Value: []*armautomation.NodeCount{ - // { - // Name: to.Ptr("Compliant"), - // Properties: &armautomation.NodeCountProperties{ - // Count: to.Ptr[int32](10), - // }, - // }, - // { - // Name: to.Ptr("Failed"), - // Properties: &armautomation.NodeCountProperties{ - // Count: to.Ptr[int32](1), - // }, - // }, - // { - // Name: to.Ptr("InProgress"), - // Properties: &armautomation.NodeCountProperties{ - // Count: to.Ptr[int32](1), - // }, - // }, - // { - // Name: to.Ptr("NotCompliant"), - // Properties: &armautomation.NodeCountProperties{ - // Count: to.Ptr[int32](3), - // }, - // }, - // { - // Name: to.Ptr("Pending"), - // Properties: &armautomation.NodeCountProperties{ - // Count: to.Ptr[int32](0), - // }, - // }, - // { - // Name: to.Ptr("Unresponsive"), - // Properties: &armautomation.NodeCountProperties{ - // Count: to.Ptr[int32](4), - // }, - // }}, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/nodereports_client_example_test.go b/sdk/resourcemanager/automation/armautomation/nodereports_client_example_test.go deleted file mode 100644 index 8e1d06362651..000000000000 --- a/sdk/resourcemanager/automation/armautomation/nodereports_client_example_test.go +++ /dev/null @@ -1,655 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listDscNodeReportsByNode.json -func ExampleNodeReportsClient_NewListByNodePager_listDscReportsByNodeId() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewNodeReportsClient().NewListByNodePager("rg", "myAutomationAccount33", "nodeId", &armautomation.NodeReportsClientListByNodeOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeReportListResult = armautomation.DscNodeReportListResult{ - // Value: []*armautomation.DscNodeReport{ - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:27.587Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/903a5ead-140c-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:29.444Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("903a5ead-140c-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:27.587Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:27.015Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/903a5eac-140c-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:28.381Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("903a5eac-140c-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:26.015Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:26.986Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/77c280c2-140a-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:28.216Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("77c280c2-140a-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:25.986Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:28.668Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/5f4f5382-1408-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:29.043Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("5f4f5382-1408-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:27.668Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:26.957Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/5f4f5381-1408-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:27.949Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("5f4f5381-1408-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:25.957Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:31:26.941Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/46d97d6a-1406-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:31:27.682Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("46d97d6a-1406-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:31:25.941Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:17:10.163Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/48c8e301-1404-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:17:11.004Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("48c8e301-1404-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:17:10.163Z"); return t}()), - // Status: to.Ptr("Failed"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:17:09.897Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/2e63fdbc-1404-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:16:27.312Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("2e63fdbc-1404-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:16:25.897Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:01:27.899Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/15ee63e4-1402-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:01:26.628Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("15ee63e4-1402-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:01:25.899Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:39.511Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/0508f316-1400-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:40.577Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("0508f316-1400-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:38.511Z"); return t}()), - // Status: to.Ptr("Failed"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:37.843Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/fd799a51-13ff-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:28.466Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("fd799a51-13ff-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:25.843Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:31:27.818Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/e504ae1b-13fd-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:31:28.150Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("e504ae1b-13fd-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:31:25.818Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:59.538Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/cd3ed224-13fb-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:37.176Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("cd3ed224-13fb-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:35.538Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:34.956Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/cd3ed223-13fb-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:29.237Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("cd3ed223-13fb-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:26.956Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:02:02.916Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/b6915efa-13f9-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:01:31.875Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("b6915efa-13f9-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:01:29.916Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:44.626Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/a3560dca-13f7-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:39.749Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("a3560dca-13f7-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:38.626Z"); return t}()), - // Status: to.Ptr("Failed"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:37.676Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/9b9bb016-13f7-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:27.260Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("9b9bb016-13f7-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:25.676Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:40:24.805Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/833bd89b-13f5-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:31:27.135Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("833bd89b-13f5-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:31:25.805Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeReportsByNode.json -func ExampleNodeReportsClient_NewListByNodePager_listPagedDscReportsByNodeId() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewNodeReportsClient().NewListByNodePager("rg", "myAutomationAccount33", "nodeId", &armautomation.NodeReportsClientListByNodeOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DscNodeReportListResult = armautomation.DscNodeReportListResult{ - // Value: []*armautomation.DscNodeReport{ - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:27.587Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/903a5ead-140c-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:29.444Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("903a5ead-140c-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:27.587Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:27.015Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/903a5eac-140c-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:28.381Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("903a5eac-140c-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:26.015Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:26.986Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/77c280c2-140a-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:28.216Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("77c280c2-140a-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:25.986Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:28.668Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/5f4f5382-1408-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:29.043Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("5f4f5382-1408-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:27.668Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:26.957Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/5f4f5381-1408-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:27.949Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("5f4f5381-1408-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:46:25.957Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:31:26.941Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/46d97d6a-1406-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:31:27.682Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("46d97d6a-1406-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:31:25.941Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:17:10.163Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/48c8e301-1404-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:17:11.004Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("48c8e301-1404-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:17:10.163Z"); return t}()), - // Status: to.Ptr("Failed"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:17:09.897Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/2e63fdbc-1404-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:16:27.312Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("2e63fdbc-1404-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:16:25.897Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:01:27.899Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/15ee63e4-1402-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:01:26.628Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("15ee63e4-1402-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:01:25.899Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:39.511Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/0508f316-1400-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:40.577Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("0508f316-1400-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:38.511Z"); return t}()), - // Status: to.Ptr("Failed"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:37.843Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/fd799a51-13ff-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:28.466Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("fd799a51-13ff-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:46:25.843Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:31:27.818Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/e504ae1b-13fd-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:31:28.150Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("e504ae1b-13fd-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:31:25.818Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:59.538Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/cd3ed224-13fb-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:37.176Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("cd3ed224-13fb-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:35.538Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:34.956Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/cd3ed223-13fb-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:29.237Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("cd3ed223-13fb-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:16:26.956Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:02:02.916Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/b6915efa-13f9-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:01:31.875Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("b6915efa-13f9-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:01:29.916Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:44.626Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/a3560dca-13f7-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:39.749Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("a3560dca-13f7-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:38.626Z"); return t}()), - // Status: to.Ptr("Failed"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:37.676Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/9b9bb016-13f7-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:27.260Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("9b9bb016-13f7-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:46:25.676Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }, - // { - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:40:24.805Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/833bd89b-13f5-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:31:27.135Z"); return t}()), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("833bd89b-13f5-11e7-a943-000d3a6140c9"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T20:31:25.805Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeReport.json -func ExampleNodeReportsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewNodeReportsClient().Get(ctx, "rg", "myAutomationAccount33", "nodeId", "903a5ead-140c-11e7-a943-000d3a6140c9", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DscNodeReport = armautomation.DscNodeReport{ - // Type: to.Ptr("Consistency"), - // ConfigurationVersion: to.Ptr("2.0.0"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:27.587Z"); return t}()), - // Errors: []*armautomation.DscReportError{ - // }, - // HostName: to.Ptr("DSCCOMP"), - // IPV4Addresses: []*string{ - // to.Ptr("172.16.2.5"), - // to.Ptr("127.0.0.1")}, - // IPV6Addresses: []*string{ - // to.Ptr("fe80::4c51:9518:aa3c:256a%5"), - // to.Ptr("::2000:0:0:0"), - // to.Ptr("::1"), - // to.Ptr("::2000:0:0:0"), - // to.Ptr("2001:0:9d38:78cf:106b:130a:53ef:fdfa"), - // to.Ptr("fe80::106b:130a:53ef:fdfa%7")}, - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/903a5ead-140c-11e7-a943-000d3a6140c9"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:29.444Z"); return t}()), - // MetaConfiguration: &armautomation.DscMetaConfiguration{ - // ActionAfterReboot: to.Ptr("ContinueConfiguration"), - // AllowModuleOverwrite: to.Ptr(false), - // CertificateID: to.Ptr("certId"), - // ConfigurationMode: to.Ptr("ApplyAndMonitor"), - // ConfigurationModeFrequencyMins: to.Ptr[int32](15), - // RebootNodeIfNeeded: to.Ptr(false), - // RefreshFrequencyMins: to.Ptr[int32](30), - // }, - // NumberOfResources: to.Ptr[int32](1), - // RebootRequested: to.Ptr("False"), - // RefreshMode: to.Ptr("Pull"), - // ReportFormatVersion: to.Ptr("2.0"), - // ReportID: to.Ptr("903a5ead-140c-11e7-a943-000d3a6140c9"), - // Resources: []*armautomation.DscReportResource{ - // { - // DependsOn: []*armautomation.DscReportResourceNavigation{ - // }, - // DurationInSeconds: to.Ptr[float64](0.25), - // ModuleName: to.Ptr("PsDesiredStateConfiguration"), - // ModuleVersion: to.Ptr("1.1"), - // ResourceID: to.Ptr("[WindowsFeature]IIS"), - // ResourceName: to.Ptr("WindowsFeature"), - // SourceInfo: to.Ptr("::4::32::WindowsFeature"), - // StartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:28.181Z"); return t}()), - // Status: to.Ptr("Compliant"), - // }}, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:16:27.587Z"); return t}()), - // Status: to.Ptr("Compliant"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeReportContent.json -func ExampleNodeReportsClient_GetContent() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewNodeReportsClient().GetContent(ctx, "rg", "myAutomationAccount33", "nodeId", "reportId", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // "AdditionalData":[]any{ - // map[string]any{ - // "Key": "OSVersion", - // "Value": "{\"VersionString\":\"Microsoft Windows NT 6.1.7601 Service Pack 1\",\"ServicePack\":\"Service Pack 1\",\"Platform\":\"Win32NT\"}", - // }, - // map[string]any{ - // "Key": "PSVersion", - // "Value": "{\"CLRVersion\":\"4.0.30319.42000\",\"PSVersion\":\"5.1.14409.1012\",\"BuildVersion\":\"10.0.14409.1012\"}", - // }, - // }, - // "Errors":[]any{ - // }, - // "IpAddress": "10.13.49.8;127.0.0.1;fe80::2cc0:8062:a210:e1c6%11;::2000:0:0:0;::1;::2000:0:0:0", - // "JobId": "eabe061f-2e1f-11e8-8d01-000d3a18dec4", - // "LCMVersion": "2.0", - // "NodeName": "ANAGG-2008R2", - // "OperationType": "Consistency", - // "ReportFormatVersion": "2.0", - // "StartTime": "2018-03-22T22:25:26.2140000+00:00", - // "StatusData":[]any{ - // "{\"IPV4Addresses\":[\"10.13.49.8\",\"127.0.0.1\"],\"MACAddresses\":[\"00-0D-3A-18-DE-C4\",\"00-00-00-00-00-00-00-E0\"],\"Type\":\"Consistency\",\"HostName\":\"ANAGG-2008R2\",\"Locale\":\"en-US\",\"StartDate\":\"2018-03-22T22:25:26.2140000+00:00\",\"JobID\":\"{EABE061F-2E1F-11E8-8D01-000D3A18DEC4}\",\"LCMVersion\":\"2.0\",\"IPV6Addresses\":[\"fe80::2cc0:8062:a210:e1c6%11\",\"::2000:0:0:0\",\"::1\",\"::2000:0:0:0\"]}", - // }, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/objectdatatypes_client.go b/sdk/resourcemanager/automation/armautomation/objectdatatypes_client.go index 9102cd9fb3ec..67f08f84329e 100644 --- a/sdk/resourcemanager/automation/armautomation/objectdatatypes_client.go +++ b/sdk/resourcemanager/automation/armautomation/objectdatatypes_client.go @@ -46,7 +46,7 @@ func NewObjectDataTypesClient(subscriptionID string, credential azcore.TokenCred // NewListFieldsByModuleAndTypePager - Retrieve a list of fields of a given type identified by module name. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - moduleName - The name of module. @@ -105,7 +105,7 @@ func (client *ObjectDataTypesClient) listFieldsByModuleAndTypeCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -122,7 +122,7 @@ func (client *ObjectDataTypesClient) listFieldsByModuleAndTypeHandleResponse(res // NewListFieldsByTypePager - Retrieve a list of fields of a given type across all accessible modules. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - typeName - The name of type. @@ -176,7 +176,7 @@ func (client *ObjectDataTypesClient) listFieldsByTypeCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/objectdatatypes_client_example_test.go b/sdk/resourcemanager/automation/armautomation/objectdatatypes_client_example_test.go deleted file mode 100644 index 250a782889dc..000000000000 --- a/sdk/resourcemanager/automation/armautomation/objectdatatypes_client_example_test.go +++ /dev/null @@ -1,98 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listFieldsByModuleAndType.json -func ExampleObjectDataTypesClient_NewListFieldsByModuleAndTypePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewObjectDataTypesClient().NewListFieldsByModuleAndTypePager("rg", "MyAutomationAccount", "MyModule", "MyCustomType", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.TypeFieldListResult = armautomation.TypeFieldListResult{ - // Value: []*armautomation.TypeField{ - // { - // Name: to.Ptr("Name"), - // Type: to.Ptr("System.String"), - // }, - // { - // Name: to.Ptr("Id"), - // Type: to.Ptr("System.Integer"), - // }, - // { - // Name: to.Ptr("Details"), - // Type: to.Ptr("MyModule.AnotherCustomType"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listFieldsByType.json -func ExampleObjectDataTypesClient_NewListFieldsByTypePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewObjectDataTypesClient().NewListFieldsByTypePager("rg", "MyAutomationAccount", "MyCustomType", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.TypeFieldListResult = armautomation.TypeFieldListResult{ - // Value: []*armautomation.TypeField{ - // { - // Name: to.Ptr("Name"), - // Type: to.Ptr("System.String"), - // }, - // { - // Name: to.Ptr("Id"), - // Type: to.Ptr("System.Integer"), - // }, - // { - // Name: to.Ptr("Details"), - // Type: to.Ptr("MyModule.AnotherCustomType"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/operations_client.go b/sdk/resourcemanager/automation/armautomation/operations_client.go index 9814d76ccecc..462e216cf8c2 100644 --- a/sdk/resourcemanager/automation/armautomation/operations_client.go +++ b/sdk/resourcemanager/automation/armautomation/operations_client.go @@ -39,7 +39,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Lists all of the available Automation REST API operations. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-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", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/options.go b/sdk/resourcemanager/automation/armautomation/options.go index 3b0838a351e9..6e26f4d7bdec 100644 --- a/sdk/resourcemanager/automation/armautomation/options.go +++ b/sdk/resourcemanager/automation/armautomation/options.go @@ -484,9 +484,10 @@ type LinkedWorkspaceClientGetOptions struct { // placeholder for future optional parameters } -// ModuleClientCreateOrUpdateOptions contains the optional parameters for the ModuleClient.CreateOrUpdate method. -type ModuleClientCreateOrUpdateOptions struct { - // placeholder for future optional parameters +// ModuleClientBeginCreateOrUpdateOptions contains the optional parameters for the ModuleClient.BeginCreateOrUpdate method. +type ModuleClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string } // ModuleClientDeleteOptions contains the optional parameters for the ModuleClient.Delete method. @@ -548,6 +549,34 @@ type OperationsClientListOptions struct { // placeholder for future optional parameters } +// PowerShell72ModuleClientBeginCreateOrUpdateOptions contains the optional parameters for the PowerShell72ModuleClient.BeginCreateOrUpdate +// method. +type PowerShell72ModuleClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// PowerShell72ModuleClientDeleteOptions contains the optional parameters for the PowerShell72ModuleClient.Delete method. +type PowerShell72ModuleClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// PowerShell72ModuleClientGetOptions contains the optional parameters for the PowerShell72ModuleClient.Get method. +type PowerShell72ModuleClientGetOptions struct { + // placeholder for future optional parameters +} + +// PowerShell72ModuleClientListByAutomationAccountOptions contains the optional parameters for the PowerShell72ModuleClient.NewListByAutomationAccountPager +// method. +type PowerShell72ModuleClientListByAutomationAccountOptions struct { + // placeholder for future optional parameters +} + +// PowerShell72ModuleClientUpdateOptions contains the optional parameters for the PowerShell72ModuleClient.Update method. +type PowerShell72ModuleClientUpdateOptions struct { + // placeholder for future optional parameters +} + // PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate // method. type PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions struct { @@ -607,6 +636,34 @@ type Python2PackageClientUpdateOptions struct { // placeholder for future optional parameters } +// Python3PackageClientBeginCreateOrUpdateOptions contains the optional parameters for the Python3PackageClient.BeginCreateOrUpdate +// method. +type Python3PackageClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// Python3PackageClientDeleteOptions contains the optional parameters for the Python3PackageClient.Delete method. +type Python3PackageClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// Python3PackageClientGetOptions contains the optional parameters for the Python3PackageClient.Get method. +type Python3PackageClientGetOptions struct { + // placeholder for future optional parameters +} + +// Python3PackageClientListByAutomationAccountOptions contains the optional parameters for the Python3PackageClient.NewListByAutomationAccountPager +// method. +type Python3PackageClientListByAutomationAccountOptions struct { + // placeholder for future optional parameters +} + +// Python3PackageClientUpdateOptions contains the optional parameters for the Python3PackageClient.Update method. +type Python3PackageClientUpdateOptions struct { + // placeholder for future optional parameters +} + // RunbookClientBeginPublishOptions contains the optional parameters for the RunbookClient.BeginPublish method. type RunbookClientBeginPublishOptions struct { // Resumes the LRO from the provided token. diff --git a/sdk/resourcemanager/automation/armautomation/powershell72module_client.go b/sdk/resourcemanager/automation/armautomation/powershell72module_client.go new file mode 100644 index 000000000000..a351a73be6c9 --- /dev/null +++ b/sdk/resourcemanager/automation/armautomation/powershell72module_client.go @@ -0,0 +1,399 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armautomation + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// PowerShell72ModuleClient contains the methods for the PowerShell72Module group. +// Don't use this type directly, use NewPowerShell72ModuleClient() instead. +type PowerShell72ModuleClient struct { + internal *arm.Client + subscriptionID string +} + +// NewPowerShell72ModuleClient creates a new instance of PowerShell72ModuleClient with the specified values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewPowerShell72ModuleClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PowerShell72ModuleClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &PowerShell72ModuleClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create or Update the module identified by module name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - automationAccountName - The name of the automation account. +// - moduleName - The name of module. +// - parameters - The create or update parameters for module. +// - options - PowerShell72ModuleClientBeginCreateOrUpdateOptions contains the optional parameters for the PowerShell72ModuleClient.BeginCreateOrUpdate +// method. +func (client *PowerShell72ModuleClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters, options *PowerShell72ModuleClientBeginCreateOrUpdateOptions) (*runtime.Poller[PowerShell72ModuleClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, automationAccountName, moduleName, parameters, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[PowerShell72ModuleClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[PowerShell72ModuleClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Create or Update the module identified by module name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +func (client *PowerShell72ModuleClient) createOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters, options *PowerShell72ModuleClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "PowerShell72ModuleClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, automationAccountName, moduleName, parameters, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *PowerShell72ModuleClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters, options *PowerShell72ModuleClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if automationAccountName == "" { + return nil, errors.New("parameter automationAccountName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{automationAccountName}", url.PathEscape(automationAccountName)) + if moduleName == "" { + return nil, errors.New("parameter moduleName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{moduleName}", url.PathEscape(moduleName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil +} + +// Delete - Delete the module by name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - automationAccountName - The name of the automation account. +// - moduleName - The name of module. +// - options - PowerShell72ModuleClientDeleteOptions contains the optional parameters for the PowerShell72ModuleClient.Delete +// method. +func (client *PowerShell72ModuleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, options *PowerShell72ModuleClientDeleteOptions) (PowerShell72ModuleClientDeleteResponse, error) { + var err error + const operationName = "PowerShell72ModuleClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, automationAccountName, moduleName, options) + if err != nil { + return PowerShell72ModuleClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return PowerShell72ModuleClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return PowerShell72ModuleClientDeleteResponse{}, err + } + return PowerShell72ModuleClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *PowerShell72ModuleClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, options *PowerShell72ModuleClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if automationAccountName == "" { + return nil, errors.New("parameter automationAccountName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{automationAccountName}", url.PathEscape(automationAccountName)) + if moduleName == "" { + return nil, errors.New("parameter moduleName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{moduleName}", url.PathEscape(moduleName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Retrieve the module identified by module name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - automationAccountName - The name of the automation account. +// - moduleName - The name of module. +// - options - PowerShell72ModuleClientGetOptions contains the optional parameters for the PowerShell72ModuleClient.Get method. +func (client *PowerShell72ModuleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, options *PowerShell72ModuleClientGetOptions) (PowerShell72ModuleClientGetResponse, error) { + var err error + const operationName = "PowerShell72ModuleClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, automationAccountName, moduleName, options) + if err != nil { + return PowerShell72ModuleClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return PowerShell72ModuleClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PowerShell72ModuleClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *PowerShell72ModuleClient) getCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, options *PowerShell72ModuleClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if automationAccountName == "" { + return nil, errors.New("parameter automationAccountName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{automationAccountName}", url.PathEscape(automationAccountName)) + if moduleName == "" { + return nil, errors.New("parameter moduleName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{moduleName}", url.PathEscape(moduleName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *PowerShell72ModuleClient) getHandleResponse(resp *http.Response) (PowerShell72ModuleClientGetResponse, error) { + result := PowerShell72ModuleClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Module); err != nil { + return PowerShell72ModuleClientGetResponse{}, err + } + return result, nil +} + +// NewListByAutomationAccountPager - Retrieve a list of PowerShell72 modules. +// +// Generated from API version 2023-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - automationAccountName - The name of the automation account. +// - options - PowerShell72ModuleClientListByAutomationAccountOptions contains the optional parameters for the PowerShell72ModuleClient.NewListByAutomationAccountPager +// method. +func (client *PowerShell72ModuleClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *PowerShell72ModuleClientListByAutomationAccountOptions) *runtime.Pager[PowerShell72ModuleClientListByAutomationAccountResponse] { + return runtime.NewPager(runtime.PagingHandler[PowerShell72ModuleClientListByAutomationAccountResponse]{ + More: func(page PowerShell72ModuleClientListByAutomationAccountResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *PowerShell72ModuleClientListByAutomationAccountResponse) (PowerShell72ModuleClientListByAutomationAccountResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "PowerShell72ModuleClient.NewListByAutomationAccountPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByAutomationAccountCreateRequest(ctx, resourceGroupName, automationAccountName, options) + }, nil) + if err != nil { + return PowerShell72ModuleClientListByAutomationAccountResponse{}, err + } + return client.listByAutomationAccountHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByAutomationAccountCreateRequest creates the ListByAutomationAccount request. +func (client *PowerShell72ModuleClient) listByAutomationAccountCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, options *PowerShell72ModuleClientListByAutomationAccountOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if automationAccountName == "" { + return nil, errors.New("parameter automationAccountName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{automationAccountName}", url.PathEscape(automationAccountName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByAutomationAccountHandleResponse handles the ListByAutomationAccount response. +func (client *PowerShell72ModuleClient) listByAutomationAccountHandleResponse(resp *http.Response) (PowerShell72ModuleClientListByAutomationAccountResponse, error) { + result := PowerShell72ModuleClientListByAutomationAccountResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ModuleListResult); err != nil { + return PowerShell72ModuleClientListByAutomationAccountResponse{}, err + } + return result, nil +} + +// Update - Update the module identified by module name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - automationAccountName - The name of the automation account. +// - moduleName - The name of module. +// - parameters - The update parameters for module. +// - options - PowerShell72ModuleClientUpdateOptions contains the optional parameters for the PowerShell72ModuleClient.Update +// method. +func (client *PowerShell72ModuleClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleUpdateParameters, options *PowerShell72ModuleClientUpdateOptions) (PowerShell72ModuleClientUpdateResponse, error) { + var err error + const operationName = "PowerShell72ModuleClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, automationAccountName, moduleName, parameters, options) + if err != nil { + return PowerShell72ModuleClientUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return PowerShell72ModuleClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PowerShell72ModuleClientUpdateResponse{}, err + } + resp, err := client.updateHandleResponse(httpResp) + return resp, err +} + +// updateCreateRequest creates the Update request. +func (client *PowerShell72ModuleClient) updateCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleUpdateParameters, options *PowerShell72ModuleClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if automationAccountName == "" { + return nil, errors.New("parameter automationAccountName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{automationAccountName}", url.PathEscape(automationAccountName)) + if moduleName == "" { + return nil, errors.New("parameter moduleName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{moduleName}", url.PathEscape(moduleName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil +} + +// updateHandleResponse handles the Update response. +func (client *PowerShell72ModuleClient) updateHandleResponse(resp *http.Response) (PowerShell72ModuleClientUpdateResponse, error) { + result := PowerShell72ModuleClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Module); err != nil { + return PowerShell72ModuleClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/automation/armautomation/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/automation/armautomation/privateendpointconnections_client_example_test.go deleted file mode 100644 index 0e94943c6d4a..000000000000 --- a/sdk/resourcemanager/automation/armautomation/privateendpointconnections_client_example_test.go +++ /dev/null @@ -1,187 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionListGet.json -func ExamplePrivateEndpointConnectionsClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPrivateEndpointConnectionsClient().NewListByAutomationAccountPager("rg1", "ddb1", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PrivateEndpointConnectionListResult = armautomation.PrivateEndpointConnectionListResult{ - // Value: []*armautomation.PrivateEndpointConnection{ - // { - // Name: to.Ptr("privateEndpointConnectionName"), - // Type: to.Ptr("Microsoft.Automation/automationAccounts/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Automation/automationAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName"), - // Properties: &armautomation.PrivateEndpointConnectionProperties{ - // GroupIDs: []*string{ - // to.Ptr("sql")}, - // PrivateEndpoint: &armautomation.PrivateEndpointProperty{ - // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"), - // }, - // PrivateLinkServiceConnectionState: &armautomation.PrivateLinkServiceConnectionStateProperty{ - // Description: to.Ptr("Auto-approved"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Approved"), - // }, - // }, - // }, - // { - // Name: to.Ptr("privateEndpointConnectionName"), - // Type: to.Ptr("Microsoft.Automation/automationAccounts/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Automation/automationAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName2"), - // Properties: &armautomation.PrivateEndpointConnectionProperties{ - // GroupIDs: []*string{ - // to.Ptr("sql")}, - // PrivateEndpoint: &armautomation.PrivateEndpointProperty{ - // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName2"), - // }, - // PrivateLinkServiceConnectionState: &armautomation.PrivateLinkServiceConnectionStateProperty{ - // Description: to.Ptr("Auto-approved"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Approved"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionGet.json -func ExamplePrivateEndpointConnectionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPrivateEndpointConnectionsClient().Get(ctx, "rg1", "ddb1", "privateEndpointConnectionName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.PrivateEndpointConnection = armautomation.PrivateEndpointConnection{ - // Name: to.Ptr("privateEndpointConnectionName"), - // Type: to.Ptr("Microsoft.Automation/automationAccounts/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.Automation/automationAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName"), - // Properties: &armautomation.PrivateEndpointConnectionProperties{ - // GroupIDs: []*string{ - // to.Ptr("sql")}, - // PrivateEndpoint: &armautomation.PrivateEndpointProperty{ - // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"), - // }, - // PrivateLinkServiceConnectionState: &armautomation.PrivateLinkServiceConnectionStateProperty{ - // Description: to.Ptr("Auto-approved"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Approved"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionUpdate.json -func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewPrivateEndpointConnectionsClient().BeginCreateOrUpdate(ctx, "rg1", "ddb1", "privateEndpointConnectionName", armautomation.PrivateEndpointConnection{ - Properties: &armautomation.PrivateEndpointConnectionProperties{ - PrivateLinkServiceConnectionState: &armautomation.PrivateLinkServiceConnectionStateProperty{ - Description: to.Ptr("Approved by johndoe@contoso.com"), - Status: to.Ptr("Approved"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.PrivateEndpointConnection = armautomation.PrivateEndpointConnection{ - // Name: to.Ptr("privateEndpointConnectionName"), - // Type: to.Ptr("Microsoft.Automation/automationAccounts/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.Automation/automationAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName"), - // Properties: &armautomation.PrivateEndpointConnectionProperties{ - // GroupIDs: []*string{ - // to.Ptr("sql")}, - // PrivateEndpoint: &armautomation.PrivateEndpointProperty{ - // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"), - // }, - // PrivateLinkServiceConnectionState: &armautomation.PrivateLinkServiceConnectionStateProperty{ - // Description: to.Ptr("Auto-approved"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Approved"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateEndpointConnectionDelete.json -func ExamplePrivateEndpointConnectionsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewPrivateEndpointConnectionsClient().BeginDelete(ctx, "rg1", "ddb1", "privateEndpointConnectionName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/automation/armautomation/privatelinkresources_client_example_test.go b/sdk/resourcemanager/automation/armautomation/privatelinkresources_client_example_test.go deleted file mode 100644 index f59cce0a14e8..000000000000 --- a/sdk/resourcemanager/automation/armautomation/privatelinkresources_client_example_test.go +++ /dev/null @@ -1,57 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/PrivateLinkResourceListGet.json -func ExamplePrivateLinkResourcesClient_NewAutomationPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPrivateLinkResourcesClient().NewAutomationPager("rg1", "ddb1", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PrivateLinkResourceListResult = armautomation.PrivateLinkResourceListResult{ - // Value: []*armautomation.PrivateLinkResource{ - // { - // Name: to.Ptr("sql"), - // Type: to.Ptr("Microsoft.Automation/automationAccounts/privateLinkResources"), - // ID: to.Ptr("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Automation/automationAccounts/ddb1/privateLinkResources/sql"), - // Properties: &armautomation.PrivateLinkResourceProperties{ - // GroupID: to.Ptr("sql"), - // RequiredMembers: []*string{ - // to.Ptr("ddb1"), - // to.Ptr("ddb1-westus")}, - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/python2package_client.go b/sdk/resourcemanager/automation/armautomation/python2package_client.go index 95080731bbd5..73205275c0e2 100644 --- a/sdk/resourcemanager/automation/armautomation/python2package_client.go +++ b/sdk/resourcemanager/automation/armautomation/python2package_client.go @@ -47,7 +47,7 @@ func NewPython2PackageClient(subscriptionID string, credential azcore.TokenCrede // CreateOrUpdate - Create or Update the python 2 package identified by package name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - packageName - The name of python package. @@ -100,7 +100,7 @@ func (client *Python2PackageClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -121,7 +121,7 @@ func (client *Python2PackageClient) createOrUpdateHandleResponse(resp *http.Resp // Delete - Delete the python 2 package by name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - packageName - The python package name. @@ -171,7 +171,7 @@ func (client *Python2PackageClient) deleteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -180,7 +180,7 @@ func (client *Python2PackageClient) deleteCreateRequest(ctx context.Context, res // Get - Retrieve the python 2 package identified by package name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - packageName - The python package name. @@ -231,7 +231,7 @@ func (client *Python2PackageClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -248,7 +248,7 @@ func (client *Python2PackageClient) getHandleResponse(resp *http.Response) (Pyth // NewListByAutomationAccountPager - Retrieve a list of python 2 packages. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - Python2PackageClientListByAutomationAccountOptions contains the optional parameters for the Python2PackageClient.NewListByAutomationAccountPager @@ -296,7 +296,7 @@ func (client *Python2PackageClient) listByAutomationAccountCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -314,7 +314,7 @@ func (client *Python2PackageClient) listByAutomationAccountHandleResponse(resp * // Update - Update the python 2 package identified by package name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - packageName - The name of python package. @@ -366,7 +366,7 @@ func (client *Python2PackageClient) updateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/python2package_client_example_test.go b/sdk/resourcemanager/automation/armautomation/python2package_client_example_test.go deleted file mode 100644 index 9df41e4065d5..000000000000 --- a/sdk/resourcemanager/automation/armautomation/python2package_client_example_test.go +++ /dev/null @@ -1,238 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deletePython2Package.json -func ExamplePython2PackageClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewPython2PackageClient().Delete(ctx, "rg", "myAutomationAccount33", "OmsCompositeResources", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getPython2Package.json -func ExamplePython2PackageClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPython2PackageClient().Get(ctx, "rg", "myAutomationAccount33", "OmsCompositeResources", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Module = armautomation.Module{ - // Name: to.Ptr("OmsCompositeResources"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Python2Packages"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/OmsCompositeResources"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // }, - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:41:47.003Z"); return t}()), - // Error: &armautomation.ModuleErrorInfo{ - // Message: to.Ptr(""), - // }, - // IsComposite: to.Ptr(true), - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:42:10.567Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdatePython2Package.json -func ExamplePython2PackageClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPython2PackageClient().CreateOrUpdate(ctx, "rg", "myAutomationAccount33", "OmsCompositeResources", armautomation.PythonPackageCreateParameters{ - Properties: &armautomation.PythonPackageCreateProperties{ - ContentLink: &armautomation.ContentLink{ - ContentHash: &armautomation.ContentHash{ - Algorithm: to.Ptr("sha265"), - Value: to.Ptr("07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), - }, - URI: to.Ptr("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"), - Version: to.Ptr("1.0.0.0"), - }, - }, - Tags: map[string]*string{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Module = armautomation.Module{ - // Name: to.Ptr("OmsCompositeResources"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/python2Packages"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/OmsCompositeResources"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // }, - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:41:47.003Z"); return t}()), - // Error: &armautomation.ModuleErrorInfo{ - // }, - // IsComposite: to.Ptr(false), - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:42:10.567Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updatePython2Package.json -func ExamplePython2PackageClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPython2PackageClient().Update(ctx, "rg", "MyAutomationAccount", "MyPython2Package", armautomation.PythonPackageUpdateParameters{ - Tags: map[string]*string{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Module = armautomation.Module{ - // Name: to.Ptr("MyPython2Package"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/python2Packages"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyAutomationAccount/python2Packages/MyPython2Package"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // }, - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:41:47.003Z"); return t}()), - // Error: &armautomation.ModuleErrorInfo{ - // }, - // IsComposite: to.Ptr(false), - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T15:42:10.567Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](0), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPython2PackagesByAutomationAccount.json -func ExamplePython2PackageClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPython2PackageClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ModuleListResult = armautomation.ModuleListResult{ - // Value: []*armautomation.Module{ - // { - // Name: to.Ptr("configparser"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/configparser"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-07-17T17:57:01.786Z"); return t}()), - // IsComposite: to.Ptr(false), - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-07-24T20:30:16.496Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](39573), - // Version: to.Ptr("3.5.0"), - // }, - // }, - // { - // Name: to.Ptr("flask"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/flask"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-07-09T18:07:44.613Z"); return t}()), - // IsComposite: to.Ptr(false), - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-07-09T18:09:20.773Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](91364), - // Version: to.Ptr("1.0.2"), - // }, - // }, - // { - // Name: to.Ptr("numpy"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/numpy"), - // Properties: &armautomation.ModuleProperties{ - // ActivityCount: to.Ptr[int32](0), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-07-14T01:05:54.670Z"); return t}()), - // IsComposite: to.Ptr(false), - // IsGlobal: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-07-17T17:58:09.873Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ModuleProvisioningStateSucceeded), - // SizeInBytes: to.Ptr[int64](13345673), - // Version: to.Ptr("1.14.5"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/python3package_client.go b/sdk/resourcemanager/automation/armautomation/python3package_client.go new file mode 100644 index 000000000000..e0d48b37d1be --- /dev/null +++ b/sdk/resourcemanager/automation/armautomation/python3package_client.go @@ -0,0 +1,397 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armautomation + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// Python3PackageClient contains the methods for the Python3Package group. +// Don't use this type directly, use NewPython3PackageClient() instead. +type Python3PackageClient struct { + internal *arm.Client + subscriptionID string +} + +// NewPython3PackageClient creates a new instance of Python3PackageClient with the specified values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewPython3PackageClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Python3PackageClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &Python3PackageClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create or Update the python 3 package identified by package name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +// - resourceGroupName - Name of an Azure Resource group. +// - automationAccountName - The name of the automation account. +// - packageName - The name of python package. +// - parameters - The create or update parameters for python package. +// - options - Python3PackageClientBeginCreateOrUpdateOptions contains the optional parameters for the Python3PackageClient.BeginCreateOrUpdate +// method. +func (client *Python3PackageClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageCreateParameters, options *Python3PackageClientBeginCreateOrUpdateOptions) (*runtime.Poller[Python3PackageClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, automationAccountName, packageName, parameters, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[Python3PackageClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[Python3PackageClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Create or Update the python 3 package identified by package name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +func (client *Python3PackageClient) createOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageCreateParameters, options *Python3PackageClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "Python3PackageClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, automationAccountName, packageName, parameters, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *Python3PackageClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageCreateParameters, options *Python3PackageClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if automationAccountName == "" { + return nil, errors.New("parameter automationAccountName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{automationAccountName}", url.PathEscape(automationAccountName)) + if packageName == "" { + return nil, errors.New("parameter packageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{packageName}", url.PathEscape(packageName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil +} + +// Delete - Delete the python 3 package by name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +// - resourceGroupName - Name of an Azure Resource group. +// - automationAccountName - The name of the automation account. +// - packageName - The python package name. +// - options - Python3PackageClientDeleteOptions contains the optional parameters for the Python3PackageClient.Delete method. +func (client *Python3PackageClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, options *Python3PackageClientDeleteOptions) (Python3PackageClientDeleteResponse, error) { + var err error + const operationName = "Python3PackageClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, automationAccountName, packageName, options) + if err != nil { + return Python3PackageClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return Python3PackageClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return Python3PackageClientDeleteResponse{}, err + } + return Python3PackageClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *Python3PackageClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, options *Python3PackageClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if automationAccountName == "" { + return nil, errors.New("parameter automationAccountName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{automationAccountName}", url.PathEscape(automationAccountName)) + if packageName == "" { + return nil, errors.New("parameter packageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{packageName}", url.PathEscape(packageName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Retrieve the python 3 package identified by package name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +// - resourceGroupName - Name of an Azure Resource group. +// - automationAccountName - The name of the automation account. +// - packageName - The python package name. +// - options - Python3PackageClientGetOptions contains the optional parameters for the Python3PackageClient.Get method. +func (client *Python3PackageClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, options *Python3PackageClientGetOptions) (Python3PackageClientGetResponse, error) { + var err error + const operationName = "Python3PackageClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, automationAccountName, packageName, options) + if err != nil { + return Python3PackageClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return Python3PackageClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return Python3PackageClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *Python3PackageClient) getCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, options *Python3PackageClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if automationAccountName == "" { + return nil, errors.New("parameter automationAccountName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{automationAccountName}", url.PathEscape(automationAccountName)) + if packageName == "" { + return nil, errors.New("parameter packageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{packageName}", url.PathEscape(packageName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *Python3PackageClient) getHandleResponse(resp *http.Response) (Python3PackageClientGetResponse, error) { + result := Python3PackageClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Module); err != nil { + return Python3PackageClientGetResponse{}, err + } + return result, nil +} + +// NewListByAutomationAccountPager - Retrieve a list of python 3 packages. +// +// Generated from API version 2023-11-01 +// - resourceGroupName - Name of an Azure Resource group. +// - automationAccountName - The name of the automation account. +// - options - Python3PackageClientListByAutomationAccountOptions contains the optional parameters for the Python3PackageClient.NewListByAutomationAccountPager +// method. +func (client *Python3PackageClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *Python3PackageClientListByAutomationAccountOptions) *runtime.Pager[Python3PackageClientListByAutomationAccountResponse] { + return runtime.NewPager(runtime.PagingHandler[Python3PackageClientListByAutomationAccountResponse]{ + More: func(page Python3PackageClientListByAutomationAccountResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *Python3PackageClientListByAutomationAccountResponse) (Python3PackageClientListByAutomationAccountResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "Python3PackageClient.NewListByAutomationAccountPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByAutomationAccountCreateRequest(ctx, resourceGroupName, automationAccountName, options) + }, nil) + if err != nil { + return Python3PackageClientListByAutomationAccountResponse{}, err + } + return client.listByAutomationAccountHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByAutomationAccountCreateRequest creates the ListByAutomationAccount request. +func (client *Python3PackageClient) listByAutomationAccountCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, options *Python3PackageClientListByAutomationAccountOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if automationAccountName == "" { + return nil, errors.New("parameter automationAccountName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{automationAccountName}", url.PathEscape(automationAccountName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByAutomationAccountHandleResponse handles the ListByAutomationAccount response. +func (client *Python3PackageClient) listByAutomationAccountHandleResponse(resp *http.Response) (Python3PackageClientListByAutomationAccountResponse, error) { + result := Python3PackageClientListByAutomationAccountResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ModuleListResult); err != nil { + return Python3PackageClientListByAutomationAccountResponse{}, err + } + return result, nil +} + +// Update - Update the python 3 package identified by package name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-11-01 +// - resourceGroupName - Name of an Azure Resource group. +// - automationAccountName - The name of the automation account. +// - packageName - The name of python package. +// - parameters - The update parameters for python package. +// - options - Python3PackageClientUpdateOptions contains the optional parameters for the Python3PackageClient.Update method. +func (client *Python3PackageClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageUpdateParameters, options *Python3PackageClientUpdateOptions) (Python3PackageClientUpdateResponse, error) { + var err error + const operationName = "Python3PackageClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, automationAccountName, packageName, parameters, options) + if err != nil { + return Python3PackageClientUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return Python3PackageClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return Python3PackageClientUpdateResponse{}, err + } + resp, err := client.updateHandleResponse(httpResp) + return resp, err +} + +// updateCreateRequest creates the Update request. +func (client *Python3PackageClient) updateCreateRequest(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageUpdateParameters, options *Python3PackageClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if automationAccountName == "" { + return nil, errors.New("parameter automationAccountName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{automationAccountName}", url.PathEscape(automationAccountName)) + if packageName == "" { + return nil, errors.New("parameter packageName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{packageName}", url.PathEscape(packageName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil +} + +// updateHandleResponse handles the Update response. +func (client *Python3PackageClient) updateHandleResponse(resp *http.Response) (Python3PackageClientUpdateResponse, error) { + result := Python3PackageClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Module); err != nil { + return Python3PackageClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/automation/armautomation/response_types.go b/sdk/resourcemanager/automation/armautomation/response_types.go index 8afe6a7c59a9..bcec5b76522e 100644 --- a/sdk/resourcemanager/automation/armautomation/response_types.go +++ b/sdk/resourcemanager/automation/armautomation/response_types.go @@ -240,7 +240,7 @@ type DscConfigurationClientDeleteResponse struct { // DscConfigurationClientGetContentResponse contains the response from method DscConfigurationClient.GetContent. type DscConfigurationClientGetContentResponse struct { - Value *string + // placeholder for future response values } // DscConfigurationClientGetResponse contains the response from method DscConfigurationClient.Get. @@ -465,7 +465,7 @@ type LinkedWorkspaceClientGetResponse struct { LinkedWorkspace } -// ModuleClientCreateOrUpdateResponse contains the response from method ModuleClient.CreateOrUpdate. +// ModuleClientCreateOrUpdateResponse contains the response from method ModuleClient.BeginCreateOrUpdate. type ModuleClientCreateOrUpdateResponse struct { // Definition of the module type. Module @@ -536,6 +536,35 @@ type OperationsClientListResponse struct { OperationListResult } +// PowerShell72ModuleClientCreateOrUpdateResponse contains the response from method PowerShell72ModuleClient.BeginCreateOrUpdate. +type PowerShell72ModuleClientCreateOrUpdateResponse struct { + // Definition of the module type. + Module +} + +// PowerShell72ModuleClientDeleteResponse contains the response from method PowerShell72ModuleClient.Delete. +type PowerShell72ModuleClientDeleteResponse struct { + // placeholder for future response values +} + +// PowerShell72ModuleClientGetResponse contains the response from method PowerShell72ModuleClient.Get. +type PowerShell72ModuleClientGetResponse struct { + // Definition of the module type. + Module +} + +// PowerShell72ModuleClientListByAutomationAccountResponse contains the response from method PowerShell72ModuleClient.NewListByAutomationAccountPager. +type PowerShell72ModuleClientListByAutomationAccountResponse struct { + // The response model for the list module operation. + ModuleListResult +} + +// PowerShell72ModuleClientUpdateResponse contains the response from method PowerShell72ModuleClient.Update. +type PowerShell72ModuleClientUpdateResponse struct { + // Definition of the module type. + Module +} + // PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.BeginCreateOrUpdate. type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct { // A private endpoint connection @@ -594,6 +623,35 @@ type Python2PackageClientUpdateResponse struct { Module } +// Python3PackageClientCreateOrUpdateResponse contains the response from method Python3PackageClient.BeginCreateOrUpdate. +type Python3PackageClientCreateOrUpdateResponse struct { + // Definition of the module type. + Module +} + +// Python3PackageClientDeleteResponse contains the response from method Python3PackageClient.Delete. +type Python3PackageClientDeleteResponse struct { + // placeholder for future response values +} + +// Python3PackageClientGetResponse contains the response from method Python3PackageClient.Get. +type Python3PackageClientGetResponse struct { + // Definition of the module type. + Module +} + +// Python3PackageClientListByAutomationAccountResponse contains the response from method Python3PackageClient.NewListByAutomationAccountPager. +type Python3PackageClientListByAutomationAccountResponse struct { + // The response model for the list module operation. + ModuleListResult +} + +// Python3PackageClientUpdateResponse contains the response from method Python3PackageClient.Update. +type Python3PackageClientUpdateResponse struct { + // Definition of the module type. + Module +} + // RunbookClientCreateOrUpdateResponse contains the response from method RunbookClient.CreateOrUpdate. type RunbookClientCreateOrUpdateResponse struct { // Definition of the runbook type. diff --git a/sdk/resourcemanager/automation/armautomation/runbook_client.go b/sdk/resourcemanager/automation/armautomation/runbook_client.go index 301e37b134c0..d18dc895adcc 100644 --- a/sdk/resourcemanager/automation/armautomation/runbook_client.go +++ b/sdk/resourcemanager/automation/armautomation/runbook_client.go @@ -47,7 +47,7 @@ func NewRunbookClient(subscriptionID string, credential azcore.TokenCredential, // CreateOrUpdate - Create the runbook identified by runbook name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -100,7 +100,7 @@ func (client *RunbookClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -121,7 +121,7 @@ func (client *RunbookClient) createOrUpdateHandleResponse(resp *http.Response) ( // Delete - Delete the runbook by name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -171,7 +171,7 @@ func (client *RunbookClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -180,7 +180,7 @@ func (client *RunbookClient) deleteCreateRequest(ctx context.Context, resourceGr // Get - Retrieve the runbook identified by runbook name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -231,7 +231,7 @@ func (client *RunbookClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -249,7 +249,7 @@ func (client *RunbookClient) getHandleResponse(resp *http.Response) (RunbookClie // GetContent - Retrieve the content of runbook identified by runbook name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -299,7 +299,7 @@ func (client *RunbookClient) getContentCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"text/powershell"} return req, nil @@ -307,7 +307,7 @@ func (client *RunbookClient) getContentCreateRequest(ctx context.Context, resour // NewListByAutomationAccountPager - Retrieve a list of runbooks. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - RunbookClientListByAutomationAccountOptions contains the optional parameters for the RunbookClient.NewListByAutomationAccountPager @@ -355,7 +355,7 @@ func (client *RunbookClient) listByAutomationAccountCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -373,7 +373,7 @@ func (client *RunbookClient) listByAutomationAccountHandleResponse(resp *http.Re // BeginPublish - Publish runbook draft. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The parameters supplied to the publish runbook operation. @@ -398,7 +398,7 @@ func (client *RunbookClient) BeginPublish(ctx context.Context, resourceGroupName // Publish - Publish runbook draft. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 func (client *RunbookClient) publish(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *RunbookClientBeginPublishOptions) (*http.Response, error) { var err error const operationName = "RunbookClient.BeginPublish" @@ -444,7 +444,7 @@ func (client *RunbookClient) publishCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -453,7 +453,7 @@ func (client *RunbookClient) publishCreateRequest(ctx context.Context, resourceG // Update - Update the runbook identified by runbook name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -505,7 +505,7 @@ func (client *RunbookClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/runbook_client_example_test.go b/sdk/resourcemanager/automation/armautomation/runbook_client_example_test.go deleted file mode 100644 index 978312918a69..000000000000 --- a/sdk/resourcemanager/automation/armautomation/runbook_client_example_test.go +++ /dev/null @@ -1,347 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/publishRunbook.json -func ExampleRunbookClient_BeginPublish() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewRunbookClient().BeginPublish(ctx, "rg", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookContent.json -func ExampleRunbookClient_GetContent() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewRunbookClient().GetContent(ctx, "rg", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json -func ExampleRunbookClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewRunbookClient().Get(ctx, "rg", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Runbook = armautomation.Runbook{ - // Name: to.Ptr("Get-AzureVMTutorial"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Runbooks"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // "tag01": to.Ptr("value01"), - // "tag02": to.Ptr("value02"), - // }, - // Etag: to.Ptr("\"636263335437500000\""), - // Properties: &armautomation.RunbookProperties{ - // Description: to.Ptr("Description of the Runbook"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:32:23.750Z"); return t}()), - // JobCount: to.Ptr[int32](0), - // LastModifiedBy: to.Ptr("myEmaild@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:32:23.750Z"); return t}()), - // LogActivityTrace: to.Ptr[int32](1), - // LogProgress: to.Ptr(true), - // LogVerbose: to.Ptr(false), - // OutputTypes: []*string{ - // }, - // Parameters: map[string]*armautomation.RunbookParameter{ - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // RunbookType: to.Ptr(armautomation.RunbookTypeEnumPowerShellWorkflow), - // State: to.Ptr(armautomation.RunbookStatePublished), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdateRunbook.json -func ExampleRunbookClient_CreateOrUpdate_createOrUpdateRunbookAndPublishIt() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewRunbookClient().CreateOrUpdate(ctx, "rg", "ContoseAutomationAccount", "Get-AzureVMTutorial", armautomation.RunbookCreateOrUpdateParameters{ - Name: to.Ptr("Get-AzureVMTutorial"), - Location: to.Ptr("East US 2"), - Properties: &armautomation.RunbookCreateOrUpdateProperties{ - Description: to.Ptr("Description of the Runbook"), - LogActivityTrace: to.Ptr[int32](1), - LogProgress: to.Ptr(true), - LogVerbose: to.Ptr(false), - PublishContentLink: &armautomation.ContentLink{ - ContentHash: &armautomation.ContentHash{ - Algorithm: to.Ptr("SHA256"), - Value: to.Ptr("115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53010A80"), - }, - URI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1"), - }, - RunbookType: to.Ptr(armautomation.RunbookTypeEnumPowerShellWorkflow), - }, - Tags: map[string]*string{ - "tag01": to.Ptr("value01"), - "tag02": to.Ptr("value02"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Runbook = armautomation.Runbook{ - // Name: to.Ptr("Get-AzureVMTutorial"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Runbooks"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // "tag01": to.Ptr("value01"), - // "tag02": to.Ptr("value02"), - // }, - // Etag: to.Ptr("\"636263318866000000\""), - // Properties: &armautomation.RunbookProperties{ - // Description: to.Ptr("Description of the Runbook"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:04:43.660Z"); return t}()), - // JobCount: to.Ptr[int32](0), - // LastModifiedBy: to.Ptr("myEmaild@microsoft.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:04:46.600Z"); return t}()), - // LogActivityTrace: to.Ptr[int32](1), - // LogProgress: to.Ptr(true), - // LogVerbose: to.Ptr(true), - // OutputTypes: []*string{ - // }, - // Parameters: map[string]*armautomation.RunbookParameter{ - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // RunbookType: to.Ptr(armautomation.RunbookTypeEnumPowerShellWorkflow), - // State: to.Ptr(armautomation.RunbookStatePublished), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createRunbookAsDraft.json -func ExampleRunbookClient_CreateOrUpdate_createRunbookAsDraft() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewRunbookClient().CreateOrUpdate(ctx, "rg", "ContoseAutomationAccount", "Get-AzureVMTutorial", armautomation.RunbookCreateOrUpdateParameters{ - Name: to.Ptr("Get-AzureVMTutorial"), - Location: to.Ptr("East US 2"), - Properties: &armautomation.RunbookCreateOrUpdateProperties{ - Description: to.Ptr("Description of the Runbook"), - Draft: &armautomation.RunbookDraft{}, - LogProgress: to.Ptr(false), - LogVerbose: to.Ptr(false), - RunbookType: to.Ptr(armautomation.RunbookTypeEnumPowerShellWorkflow), - }, - Tags: map[string]*string{ - "tag01": to.Ptr("value01"), - "tag02": to.Ptr("value02"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Runbook = armautomation.Runbook{ - // Name: to.Ptr("Get-AzureVMTutorial"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Runbooks"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial"), - // Location: to.Ptr("East US 2"), - // Tags: map[string]*string{ - // "tag01": to.Ptr("value01"), - // "tag02": to.Ptr("value02"), - // }, - // Etag: to.Ptr("\"636263318866000000\""), - // Properties: &armautomation.RunbookProperties{ - // Description: to.Ptr("Description of the Runbook"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-09T03:25:59.097Z"); return t}()), - // JobCount: to.Ptr[int32](0), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-09T03:25:59.097Z"); return t}()), - // LogActivityTrace: to.Ptr[int32](0), - // LogProgress: to.Ptr(false), - // LogVerbose: to.Ptr(false), - // Parameters: map[string]*armautomation.RunbookParameter{ - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // RunbookType: to.Ptr(armautomation.RunbookTypeEnumScript), - // State: to.Ptr(armautomation.RunbookStateNew), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updateRunbook.json -func ExampleRunbookClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewRunbookClient().Update(ctx, "rg", "ContoseAutomationAccount", "Get-AzureVMTutorial", armautomation.RunbookUpdateParameters{ - Properties: &armautomation.RunbookUpdateProperties{ - Description: to.Ptr("Updated Description of the Runbook"), - LogActivityTrace: to.Ptr[int32](1), - LogProgress: to.Ptr(true), - LogVerbose: to.Ptr(false), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/deleteRunbook.json -func ExampleRunbookClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewRunbookClient().Delete(ctx, "rg", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listRunbooksByAutomationAccount.json -func ExampleRunbookClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewRunbookClient().NewListByAutomationAccountPager("rg", "ContoseAutomationAccount", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.RunbookListResult = armautomation.RunbookListResult{ - // Value: []*armautomation.Runbook{ - // { - // Name: to.Ptr("ASR-AddPublicIp"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Runbooks"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/ASR-AddPublicIp"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.RunbookProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:32:25.780Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:32:25.810Z"); return t}()), - // LogActivityTrace: to.Ptr[int32](1), - // LogProgress: to.Ptr(true), - // LogVerbose: to.Ptr(true), - // RunbookType: to.Ptr(armautomation.RunbookTypeEnumPowerShell), - // State: to.Ptr(armautomation.RunbookStatePublished), - // }, - // }, - // { - // Name: to.Ptr("AutoExport"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Runbooks"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/AutoExport"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.RunbookProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:32:27.327Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:32:27.327Z"); return t}()), - // LogActivityTrace: to.Ptr[int32](1), - // LogProgress: to.Ptr(true), - // LogVerbose: to.Ptr(true), - // RunbookType: to.Ptr(armautomation.RunbookTypeEnumPowerShell), - // State: to.Ptr(armautomation.RunbookStatePublished), - // }, - // }, - // { - // Name: to.Ptr("Get-AzureVMTutorial"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Runbooks"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial"), - // Location: to.Ptr("East US 2"), - // Properties: &armautomation.RunbookProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:32:23.750Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T21:32:23.750Z"); return t}()), - // LogActivityTrace: to.Ptr[int32](1), - // LogProgress: to.Ptr(true), - // LogVerbose: to.Ptr(false), - // RunbookType: to.Ptr(armautomation.RunbookTypeEnumPowerShellWorkflow), - // State: to.Ptr(armautomation.RunbookStatePublished), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/runbookdraft_client.go b/sdk/resourcemanager/automation/armautomation/runbookdraft_client.go index c905538b930a..6e7152043fdb 100644 --- a/sdk/resourcemanager/automation/armautomation/runbookdraft_client.go +++ b/sdk/resourcemanager/automation/armautomation/runbookdraft_client.go @@ -48,7 +48,7 @@ func NewRunbookDraftClient(subscriptionID string, credential azcore.TokenCredent // Get - Retrieve the runbook draft identified by runbook name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -99,7 +99,7 @@ func (client *RunbookDraftClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -117,7 +117,7 @@ func (client *RunbookDraftClient) getHandleResponse(resp *http.Response) (Runboo // GetContent - Retrieve the content of runbook draft identified by runbook name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -167,7 +167,7 @@ func (client *RunbookDraftClient) getContentCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"text/powershell"} return req, nil @@ -176,7 +176,7 @@ func (client *RunbookDraftClient) getContentCreateRequest(ctx context.Context, r // BeginReplaceContent - Replaces the runbook draft content. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -190,7 +190,8 @@ func (client *RunbookDraftClient) BeginReplaceContent(ctx context.Context, resou return nil, err } poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[RunbookDraftClientReplaceContentResponse]{ - Tracer: client.internal.Tracer(), + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), }) return poller, err } else { @@ -203,7 +204,7 @@ func (client *RunbookDraftClient) BeginReplaceContent(ctx context.Context, resou // ReplaceContent - Replaces the runbook draft content. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 func (client *RunbookDraftClient) replaceContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, runbookContent io.ReadSeekCloser, options *RunbookDraftClientBeginReplaceContentOptions) (*http.Response, error) { var err error const operationName = "RunbookDraftClient.BeginReplaceContent" @@ -249,7 +250,7 @@ func (client *RunbookDraftClient) replaceContentCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -262,7 +263,7 @@ func (client *RunbookDraftClient) replaceContentCreateRequest(ctx context.Contex // UndoEdit - Undo draft edit to last known published state identified by runbook name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -313,7 +314,7 @@ func (client *RunbookDraftClient) undoEditCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/runbookdraft_client_example_test.go b/sdk/resourcemanager/automation/armautomation/runbookdraft_client_example_test.go deleted file mode 100644 index d7f44e8db586..000000000000 --- a/sdk/resourcemanager/automation/armautomation/runbookdraft_client_example_test.go +++ /dev/null @@ -1,81 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraftContent.json -func ExampleRunbookDraftClient_GetContent() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewRunbookDraftClient().GetContent(ctx, "rg", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraft.json -func ExampleRunbookDraftClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewRunbookDraftClient().Get(ctx, "rg", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RunbookDraft = armautomation.RunbookDraft{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-09T03:25:59.110Z"); return t}()), - // InEdit: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-09T04:48:56.430Z"); return t}()), - // OutputTypes: []*string{ - // }, - // Parameters: map[string]*armautomation.RunbookParameter{ - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/undoDraftEditToLastKnownPublishedState.json -func ExampleRunbookDraftClient_UndoEdit() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewRunbookDraftClient().UndoEdit(ctx, "rg", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/automation/armautomation/schedule_client.go b/sdk/resourcemanager/automation/armautomation/schedule_client.go index e44ad11bea0e..6fc80ad59a9f 100644 --- a/sdk/resourcemanager/automation/armautomation/schedule_client.go +++ b/sdk/resourcemanager/automation/armautomation/schedule_client.go @@ -47,7 +47,7 @@ func NewScheduleClient(subscriptionID string, credential azcore.TokenCredential, // CreateOrUpdate - Create a schedule. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - scheduleName - The schedule name. @@ -99,7 +99,7 @@ func (client *ScheduleClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-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 *ScheduleClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - Delete the schedule identified by schedule name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - scheduleName - The schedule name. @@ -170,7 +170,7 @@ func (client *ScheduleClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -179,7 +179,7 @@ func (client *ScheduleClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Retrieve the schedule identified by schedule name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - scheduleName - The schedule name. @@ -230,7 +230,7 @@ func (client *ScheduleClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -247,7 +247,7 @@ func (client *ScheduleClient) getHandleResponse(resp *http.Response) (ScheduleCl // NewListByAutomationAccountPager - Retrieve a list of schedules. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - ScheduleClientListByAutomationAccountOptions contains the optional parameters for the ScheduleClient.NewListByAutomationAccountPager @@ -295,7 +295,7 @@ func (client *ScheduleClient) listByAutomationAccountCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -313,7 +313,7 @@ func (client *ScheduleClient) listByAutomationAccountHandleResponse(resp *http.R // Update - Update the schedule identified by schedule name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - scheduleName - The schedule name. @@ -365,7 +365,7 @@ func (client *ScheduleClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/schedule_client_example_test.go b/sdk/resourcemanager/automation/armautomation/schedule_client_example_test.go deleted file mode 100644 index 637ab71b737b..000000000000 --- a/sdk/resourcemanager/automation/armautomation/schedule_client_example_test.go +++ /dev/null @@ -1,3590 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateSchedule.json -func ExampleScheduleClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewScheduleClient().CreateOrUpdate(ctx, "rg", "myAutomationAccount33", "mySchedule", armautomation.ScheduleCreateOrUpdateParameters{ - Name: to.Ptr("mySchedule"), - Properties: &armautomation.ScheduleCreateOrUpdateProperties{ - Description: to.Ptr("my description of schedule goes here"), - AdvancedSchedule: &armautomation.AdvancedSchedule{}, - ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:57.249Z"); return t }()), - Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - Interval: float64(1), - StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:28:57.249Z"); return t }()), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Schedule = armautomation.Schedule{ - // Name: to.Ptr("mySchedule"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T16:59:22.697Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T16:59:22.697Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:28:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:28:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateSchedule.json -func ExampleScheduleClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewScheduleClient().Update(ctx, "rg", "myAutomationAccount33", "mySchedule", armautomation.ScheduleUpdateParameters{ - Name: to.Ptr("mySchedule"), - Properties: &armautomation.ScheduleUpdateProperties{ - Description: to.Ptr("my updated description of schedule goes here"), - IsEnabled: to.Ptr(false), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Schedule = armautomation.Schedule{ - // Name: to.Ptr("mySchedule"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my updated description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T16:59:22.697Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T16:59:22.697Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:28:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:28:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getSchedule.json -func ExampleScheduleClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewScheduleClient().Get(ctx, "rg", "myAutomationAccount33", "mySchedule", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Schedule = armautomation.Schedule{ - // Name: to.Ptr("mySchedule"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T16:59:22.697Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T16:59:22.697Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:28:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:28:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteSchedule.json -func ExampleScheduleClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewScheduleClient().Delete(ctx, "rg", "myAutomationAccount33", "mySchedule", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listSchedulesByAutomationAccount_First100.json -func ExampleScheduleClient_NewListByAutomationAccountPager_listSchedulesByAutomationAccountFirst100() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewScheduleClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ScheduleListResult = armautomation.ScheduleListResult{ - // Value: []*armautomation.Schedule{ - // { - // Name: to.Ptr("mySchedule"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my updated description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T16:59:22.697Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:14.027Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:28:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:28:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule0"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule0"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:17.180Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:17.180Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule1"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule1"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:17.493Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:17.493Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule10"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule10"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:20.540Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:20.540Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule100"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule100"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:50.103Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:50.103Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule101"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule101"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:50.433Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:50.433Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule102"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule102"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:50.713Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:50.713Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule103"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule103"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:51.040Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:51.040Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule104"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule104"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:51.323Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:51.323Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule105"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule105"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:51.620Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:51.620Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule106"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule106"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:51.900Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:51.900Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule107"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule107"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:52.183Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:52.183Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule108"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule108"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:52.480Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:52.480Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule109"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule109"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:52.760Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:52.760Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule11"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule11"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:20.883Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:20.883Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule110"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule110"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:53.073Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:53.073Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule111"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule111"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:53.480Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:53.480Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule112"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule112"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:53.807Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:53.807Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule113"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule113"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:54.073Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:54.073Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule114"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule114"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:54.353Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:54.353Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule115"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule115"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:54.650Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:54.650Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule116"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule116"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:54.933Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:54.933Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule117"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule117"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:55.277Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:55.277Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule118"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule118"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:55.650Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:55.650Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule119"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule119"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:55.950Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:55.950Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule12"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule12"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:21.213Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:21.213Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule120"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule120"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:56.353Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:56.353Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule121"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule121"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:56.650Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:56.650Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule122"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule122"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:56.950Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:56.950Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule123"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule123"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:57.247Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:57.247Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule124"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule124"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:57.573Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:57.573Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule125"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule125"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:57.900Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:57.900Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule126"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule126"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:58.387Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:58.387Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule127"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule127"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:58.700Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:58.700Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule128"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule128"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:59.400Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:59.400Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule129"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule129"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:59.730Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:59.730Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule13"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule13"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:21.603Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:21.603Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule130"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule130"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:00.090Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:00.090Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule131"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule131"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:00.400Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:00.400Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule132"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule132"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:00.683Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:00.683Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule133"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule133"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:01.073Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:01.073Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule134"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule134"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:01.387Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:01.387Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule135"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule135"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:01.667Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:01.667Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule136"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule136"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:01.950Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:01.950Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule137"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule137"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:02.247Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:02.247Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule138"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule138"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:02.557Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:02.557Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule139"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule139"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:02.853Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:02.853Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule14"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule14"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:21.980Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:21.980Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule140"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule140"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:03.247Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:03.247Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule141"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule141"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:03.573Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:03.573Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule142"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule142"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:03.870Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:03.870Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule143"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule143"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:04.200Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:04.200Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule144"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule144"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:04.480Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:04.480Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule145"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule145"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:04.760Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:04.760Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule146"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule146"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:05.027Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:05.027Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule147"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule147"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:05.353Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:05.353Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule148"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule148"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:05.650Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:05.650Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule149"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule149"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:05.950Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:05.950Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule15"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule15"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:22.353Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:22.353Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule150"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule150"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:06.247Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:06.247Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule151"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule151"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:06.527Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:06.527Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule152"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule152"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:06.810Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:06.810Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule153"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule153"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:07.157Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:07.157Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule154"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule154"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:07.453Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:07.453Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule155"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule155"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:07.750Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:07.750Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule156"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule156"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:08.093Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:08.093Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule157"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule157"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:08.513Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:08.513Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule158"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule158"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:08.873Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:08.873Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule159"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule159"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:09.203Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:09.203Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule16"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule16"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:22.697Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:22.697Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule160"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule160"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:09.547Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:09.547Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule161"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule161"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:09.843Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:09.843Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule162"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule162"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:10.140Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:10.140Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule163"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule163"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:10.437Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:10.437Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule164"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule164"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:10.720Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:10.720Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule165"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule165"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:11.013Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:11.013Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule166"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule166"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:11.297Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:11.297Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule167"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule167"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:11.610Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:11.610Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule168"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule168"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:11.890Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:11.890Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule169"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule169"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:12.203Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:12.203Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule17"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule17"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:23.027Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:23.027Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule170"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule170"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:12.453Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:12.453Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule171"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule171"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:12.733Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:12.733Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule172"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule172"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:13.030Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:13.030Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule173"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule173"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:13.310Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:13.310Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule174"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule174"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:13.623Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:13.623Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule175"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule175"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:13.937Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:01:13.937Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule18"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule18"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:23.337Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:23.337Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule19"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule19"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:23.667Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:23.667Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule2"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule2"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:17.823Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:17.823Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule20"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule20"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:24.010Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:24.010Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule21"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule21"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:24.337Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:24.337Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule22"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule22"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:24.667Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:24.667Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule23"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule23"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:24.980Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:24.980Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule24"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule24"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:25.353Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:25.353Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule25"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule25"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:25.680Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:25.680Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule26"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule26"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:26.010Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:26.010Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule27"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule27"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:26.323Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:26.323Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule28"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule28"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:26.650Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:26.650Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule29"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule29"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:26.947Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:26.947Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listSchedulesByAutomationAccount_Next100.json -func ExampleScheduleClient_NewListByAutomationAccountPager_listSchedulesByAutomationAccountNext100() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewScheduleClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ScheduleListResult = armautomation.ScheduleListResult{ - // Value: []*armautomation.Schedule{ - // { - // Name: to.Ptr("mySchedule3"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule3"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:18.120Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:18.120Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule30"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule30"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:27.277Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:27.277Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule31"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule31"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:27.603Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:27.603Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule32"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule32"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:28.040Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:28.040Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule33"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule33"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:28.353Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:28.353Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule34"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule34"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:28.667Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:28.667Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule35"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule35"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:29.010Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:29.010Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule36"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule36"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:29.353Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:29.353Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule37"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule37"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:29.680Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:29.680Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule38"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule38"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:29.993Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:29.993Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule39"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule39"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:30.307Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:30.307Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule4"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule4"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:18.417Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:18.417Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule40"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule40"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:30.620Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:30.620Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule41"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule41"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:30.930Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:30.930Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule42"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule42"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:31.260Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:31.260Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule43"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule43"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:31.573Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:31.573Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule44"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule44"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:31.947Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:31.947Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule45"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule45"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:32.290Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:32.290Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule46"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule46"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:32.603Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:32.603Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule47"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule47"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:32.930Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:32.930Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule48"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule48"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:33.510Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:33.510Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule49"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule49"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:33.823Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:33.823Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule5"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule5"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:18.743Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:18.743Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule50"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule50"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:34.150Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:34.150Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule51"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule51"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:34.447Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:34.447Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule52"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule52"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:34.743Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:34.743Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule53"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule53"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:35.057Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:35.057Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule54"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule54"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:35.370Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:35.370Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule55"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule55"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:35.683Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:35.683Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule56"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule56"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:35.980Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:35.980Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule57"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule57"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:36.277Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:36.277Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule58"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule58"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:36.603Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:36.603Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule59"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule59"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:36.947Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:36.947Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule6"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule6"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:19.103Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:19.103Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule60"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule60"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:37.260Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:37.260Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule61"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule61"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:37.557Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:37.557Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule62"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule62"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:37.963Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:37.963Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule63"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule63"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:38.290Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:38.290Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule64"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule64"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:38.603Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:38.603Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule65"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule65"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:38.917Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:38.917Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule66"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule66"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:39.307Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:39.307Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule67"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule67"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:39.590Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:39.590Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule68"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule68"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:39.947Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:39.947Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule69"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule69"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:40.307Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:40.307Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule7"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule7"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:19.510Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:19.510Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule70"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule70"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:40.667Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:40.667Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule71"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule71"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:41.010Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:41.010Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule72"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule72"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:41.323Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:41.323Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule73"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule73"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:41.637Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:41.637Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule74"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule74"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:41.933Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:41.933Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule75"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule75"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:42.260Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:42.260Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule76"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule76"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:42.573Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:42.573Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule77"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule77"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:42.900Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:42.900Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule78"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule78"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:43.213Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:43.213Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule79"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule79"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:43.573Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:43.573Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule8"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule8"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:19.837Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:19.837Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule80"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule80"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:43.870Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:43.870Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule81"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule81"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:44.197Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:44.197Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule82"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule82"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:44.493Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:44.493Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule83"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule83"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:44.807Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:44.807Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule84"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule84"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:45.183Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:45.183Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule85"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule85"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:45.493Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:45.493Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule86"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule86"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:45.790Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:45.790Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule87"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule87"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:46.090Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:46.090Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule88"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule88"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:46.370Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:46.370Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule89"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule89"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:46.887Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:46.887Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule9"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule9"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:20.150Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:20.150Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule90"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule90"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:47.183Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:47.183Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule91"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule91"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:47.493Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:47.493Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule92"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule92"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:47.760Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:47.760Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule93"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule93"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:48.073Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:48.073Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule94"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule94"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:48.353Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:48.353Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule95"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule95"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:48.683Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:48.683Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule96"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule96"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:48.963Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:48.963Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule97"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule97"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:49.243Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:49.243Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule98"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule98"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:49.510Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:49.510Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("mySchedule99"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule99"), - // Properties: &armautomation.ScheduleProperties{ - // Description: to.Ptr("my description of schedule goes here"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:49.790Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-01T17:28:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](0), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // Interval: float64(1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T17:00:49.790Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](0), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-27T18:59:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](0), - // TimeZone: to.Ptr("UTC"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationmachineruns_client.go b/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationmachineruns_client.go index d6baebea57f4..81380da7b330 100644 --- a/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationmachineruns_client.go +++ b/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationmachineruns_client.go @@ -47,7 +47,7 @@ func NewSoftwareUpdateConfigurationMachineRunsClient(subscriptionID string, cred // GetByID - Get a single software update configuration machine run by Id. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - softwareUpdateConfigurationMachineRunID - The Id of the software update configuration machine run. @@ -99,7 +99,7 @@ func (client *SoftwareUpdateConfigurationMachineRunsClient) getByIDCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} @@ -120,7 +120,7 @@ func (client *SoftwareUpdateConfigurationMachineRunsClient) getByIDHandleRespons // List - Return list of software update configuration machine runs // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - SoftwareUpdateConfigurationMachineRunsClientListOptions contains the optional parameters for the SoftwareUpdateConfigurationMachineRunsClient.List @@ -167,7 +167,7 @@ func (client *SoftwareUpdateConfigurationMachineRunsClient) listCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } diff --git a/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationmachineruns_client_example_test.go b/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationmachineruns_client_example_test.go deleted file mode 100644 index 8eb62e0af828..000000000000 --- a/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationmachineruns_client_example_test.go +++ /dev/null @@ -1,218 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json -func ExampleSoftwareUpdateConfigurationMachineRunsClient_GetByID() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSoftwareUpdateConfigurationMachineRunsClient().GetByID(ctx, "mygroup", "myaccount", "ca440719-34a4-4234-a1a9-3f84faf7788f", &armautomation.SoftwareUpdateConfigurationMachineRunsClientGetByIDOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SoftwareUpdateConfigurationMachineRun = armautomation.SoftwareUpdateConfigurationMachineRun{ - // Name: to.Ptr("ca440719-34a4-4234-a1a9-3f84faf7788f"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7788f"), - // Properties: &armautomation.UpdateConfigurationMachineRunProperties{ - // ConfiguredDuration: to.Ptr("PT2H"), - // CorrelationID: to.Ptr("0b943e57-44d3-4f05-898c-6e92aa617e59"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:30.748Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:36.416Z"); return t}()), - // Error: &armautomation.ErrorResponse{ - // }, - // Job: &armautomation.JobNavigation{ - // }, - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:34:32.436Z"); return t}()), - // OSType: to.Ptr("Windows"), - // SoftwareUpdateConfiguration: &armautomation.UpdateConfigurationNavigation{ - // Name: to.Ptr("mypatch"), - // }, - // SourceComputerID: to.Ptr("3d3f24bf-7037-424e-bfba-aae3b9752f8e"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:30.748Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // TargetComputer: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm"), - // TargetComputerType: to.Ptr("AzureVirtualMachines"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json -func ExampleSoftwareUpdateConfigurationMachineRunsClient_List_listSoftwareUpdateConfigurationMachineRuns() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSoftwareUpdateConfigurationMachineRunsClient().List(ctx, "mygroup", "myaccount", &armautomation.SoftwareUpdateConfigurationMachineRunsClientListOptions{ClientRequestID: nil, - Filter: nil, - Skip: nil, - Top: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SoftwareUpdateConfigurationMachineRunListResult = armautomation.SoftwareUpdateConfigurationMachineRunListResult{ - // Value: []*armautomation.SoftwareUpdateConfigurationMachineRun{ - // { - // Name: to.Ptr("ca440719-34a4-4234-a1a9-3f84faf7788f"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7788f"), - // Properties: &armautomation.UpdateConfigurationMachineRunProperties{ - // ConfiguredDuration: to.Ptr("PT2H"), - // CorrelationID: to.Ptr("0b943e57-44d3-4f05-898c-6e92aa617e59"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:30.748Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:36.416Z"); return t}()), - // Error: &armautomation.ErrorResponse{ - // }, - // Job: &armautomation.JobNavigation{ - // }, - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:34:32.436Z"); return t}()), - // OSType: to.Ptr("Windows"), - // SoftwareUpdateConfiguration: &armautomation.UpdateConfigurationNavigation{ - // Name: to.Ptr("mypatch"), - // }, - // SourceComputerID: to.Ptr("3d3f24bf-7037-424e-bfba-aae3b9752f8e"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:30.748Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // TargetComputer: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm"), - // TargetComputerType: to.Ptr("AzureVirtualMachines"), - // }, - // }, - // { - // Name: to.Ptr("ca440719-34a4-4234-a1a9-3f84faf7789f"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7789f"), - // Properties: &armautomation.UpdateConfigurationMachineRunProperties{ - // ConfiguredDuration: to.Ptr("PT2H"), - // CorrelationID: to.Ptr("0b943e57-44d3-4f05-898c-6e92aa617e59"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:30.748Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:36.416Z"); return t}()), - // Error: &armautomation.ErrorResponse{ - // }, - // Job: &armautomation.JobNavigation{ - // }, - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:34:32.436Z"); return t}()), - // OSType: to.Ptr("Windows"), - // SoftwareUpdateConfiguration: &armautomation.UpdateConfigurationNavigation{ - // Name: to.Ptr("mypatch"), - // }, - // SourceComputerID: to.Ptr("3d3f24bf-7037-424e-bfba-aae3b9752f8e"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:30.748Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // TargetComputer: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm2"), - // TargetComputerType: to.Ptr("AzureVirtualMachines"), - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json -func ExampleSoftwareUpdateConfigurationMachineRunsClient_List_listSoftwareUpdateConfigurationMachineRunsForASpecificSoftwareUpdateConfigurationRun() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSoftwareUpdateConfigurationMachineRunsClient().List(ctx, "mygroup", "myaccount", &armautomation.SoftwareUpdateConfigurationMachineRunsClientListOptions{ClientRequestID: nil, - Filter: to.Ptr("$filter=properties/correlationId%20eq%200b943e57-44d3-4f05-898c-6e92aa617e59"), - Skip: nil, - Top: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SoftwareUpdateConfigurationMachineRunListResult = armautomation.SoftwareUpdateConfigurationMachineRunListResult{ - // Value: []*armautomation.SoftwareUpdateConfigurationMachineRun{ - // { - // Name: to.Ptr("ca440719-34a4-4234-a1a9-3f84faf7788f"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7788f"), - // Properties: &armautomation.UpdateConfigurationMachineRunProperties{ - // ConfiguredDuration: to.Ptr("PT2H"), - // CorrelationID: to.Ptr("0b943e57-44d3-4f05-898c-6e92aa617e59"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:30.748Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:36.416Z"); return t}()), - // Error: &armautomation.ErrorResponse{ - // }, - // Job: &armautomation.JobNavigation{ - // }, - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:34:32.436Z"); return t}()), - // OSType: to.Ptr("Windows"), - // SoftwareUpdateConfiguration: &armautomation.UpdateConfigurationNavigation{ - // Name: to.Ptr("mypatch"), - // }, - // SourceComputerID: to.Ptr("3d3f24bf-7037-424e-bfba-aae3b9752f8e"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:30.748Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // TargetComputer: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm"), - // TargetComputerType: to.Ptr("AzureVirtualMachines"), - // }, - // }, - // { - // Name: to.Ptr("ca440719-34a4-4234-a1a9-3f84faf7789f"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationMachineRuns/ca440719-34a4-4234-a1a9-3f84faf7789f"), - // Properties: &armautomation.UpdateConfigurationMachineRunProperties{ - // ConfiguredDuration: to.Ptr("PT2H"), - // CorrelationID: to.Ptr("0b943e57-44d3-4f05-898c-6e92aa617e59"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:30.748Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:36.416Z"); return t}()), - // Error: &armautomation.ErrorResponse{ - // }, - // Job: &armautomation.JobNavigation{ - // }, - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:34:32.436Z"); return t}()), - // OSType: to.Ptr("Windows"), - // SoftwareUpdateConfiguration: &armautomation.UpdateConfigurationNavigation{ - // Name: to.Ptr("mypatch"), - // }, - // SourceComputerID: to.Ptr("3d3f24bf-7037-424e-bfba-aae3b9752f8e"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:33:30.748Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // TargetComputer: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/myvm2"), - // TargetComputerType: to.Ptr("AzureVirtualMachines"), - // }, - // }}, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationruns_client.go b/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationruns_client.go index 701c3fbe51c3..45f71b2e49a3 100644 --- a/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationruns_client.go +++ b/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationruns_client.go @@ -47,7 +47,7 @@ func NewSoftwareUpdateConfigurationRunsClient(subscriptionID string, credential // GetByID - Get a single software update configuration Run by Id. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - softwareUpdateConfigurationRunID - The Id of the software update configuration run. @@ -99,7 +99,7 @@ func (client *SoftwareUpdateConfigurationRunsClient) getByIDCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.ClientRequestID != nil { req.Raw().Header["clientRequestId"] = []string{*options.ClientRequestID} @@ -120,7 +120,7 @@ func (client *SoftwareUpdateConfigurationRunsClient) getByIDHandleResponse(resp // List - Return list of software update configuration runs // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2019-06-01 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - SoftwareUpdateConfigurationRunsClientListOptions contains the optional parameters for the SoftwareUpdateConfigurationRunsClient.List @@ -167,7 +167,7 @@ func (client *SoftwareUpdateConfigurationRunsClient) listCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2019-06-01") + reqQP.Set("api-version", "2023-11-01") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } diff --git a/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationruns_client_example_test.go b/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationruns_client_example_test.go deleted file mode 100644 index 3b4e213edc7e..000000000000 --- a/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurationruns_client_example_test.go +++ /dev/null @@ -1,223 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json -func ExampleSoftwareUpdateConfigurationRunsClient_GetByID() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSoftwareUpdateConfigurationRunsClient().GetByID(ctx, "mygroup", "myaccount", "2bd77cfa-2e9c-41b4-a45b-684a77cfeca9", &armautomation.SoftwareUpdateConfigurationRunsClientGetByIDOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SoftwareUpdateConfigurationRun = armautomation.SoftwareUpdateConfigurationRun{ - // Name: to.Ptr("2bd77cfa-2e9c-41b4-a45b-684a77cfeca9"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/2bd77cfa-2e9c-41b4-a45b-684a77cfeca9"), - // Properties: &armautomation.SoftwareUpdateConfigurationRunProperties{ - // ComputerCount: to.Ptr[int32](1), - // ConfiguredDuration: to.Ptr("PT2H"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:30:36.240Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:30:42.846Z"); return t}()), - // FailedCount: to.Ptr[int32](0), - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:31:39.396Z"); return t}()), - // OSType: to.Ptr("Windows"), - // SoftwareUpdateConfiguration: &armautomation.UpdateConfigurationNavigation{ - // Name: to.Ptr("mypatch"), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:30:36.240Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // Tasks: &armautomation.SoftwareUpdateConfigurationRunTasks{ - // PreTask: &armautomation.SoftwareUpdateConfigurationRunTaskProperties{ - // JobID: to.Ptr("be430e9e-2290-462e-8f86-686407c35fab"), - // Source: to.Ptr("preRunbook"), - // Status: to.Ptr("Completed"), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json -func ExampleSoftwareUpdateConfigurationRunsClient_List_listSoftwareUpdateConfigurationMachineRunWithStatusEqualToFailed() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSoftwareUpdateConfigurationRunsClient().List(ctx, "mygroup", "myaccount", &armautomation.SoftwareUpdateConfigurationRunsClientListOptions{ClientRequestID: nil, - Filter: to.Ptr("properties/status%20eq%20'Failed'"), - Skip: nil, - Top: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SoftwareUpdateConfigurationRunListResult = armautomation.SoftwareUpdateConfigurationRunListResult{ - // Value: []*armautomation.SoftwareUpdateConfigurationRun{ - // { - // Name: to.Ptr("2bd77cfa-2e9c-41b4-a45b-684a77cfeca9"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/2bd77cfa-2e9c-41b4-a45b-684a77cfeca9"), - // Properties: &armautomation.SoftwareUpdateConfigurationRunProperties{ - // ComputerCount: to.Ptr[int32](1), - // ConfiguredDuration: to.Ptr("PT2H"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:30:36.240Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:30:42.846Z"); return t}()), - // FailedCount: to.Ptr[int32](0), - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:31:39.396Z"); return t}()), - // OSType: to.Ptr("Windows"), - // SoftwareUpdateConfiguration: &armautomation.UpdateConfigurationNavigation{ - // Name: to.Ptr("mypatch"), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:30:36.240Z"); return t}()), - // Status: to.Ptr("Failed"), - // Tasks: &armautomation.SoftwareUpdateConfigurationRunTasks{ - // PreTask: &armautomation.SoftwareUpdateConfigurationRunTaskProperties{ - // JobID: to.Ptr("be430e9e-2290-462e-8f86-686407c35fab"), - // Source: to.Ptr("preRunbook"), - // Status: to.Ptr("Completed"), - // }, - // }, - // }, - // }, - // { - // Name: to.Ptr("5dabff55-9812-4a58-af16-b0cb1d9384e8"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/5dabff55-9812-4a58-af16-b0cb1d9384e8"), - // Properties: &armautomation.SoftwareUpdateConfigurationRunProperties{ - // ComputerCount: to.Ptr[int32](1), - // ConfiguredDuration: to.Ptr("PT2H"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T01:33:01.881Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T01:33:08.113Z"); return t}()), - // FailedCount: to.Ptr[int32](0), - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T01:34:03.940Z"); return t}()), - // OSType: to.Ptr("Windows"), - // SoftwareUpdateConfiguration: &armautomation.UpdateConfigurationNavigation{ - // Name: to.Ptr("mypatch"), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T01:33:01.881Z"); return t}()), - // Status: to.Ptr("Failed"), - // Tasks: &armautomation.SoftwareUpdateConfigurationRunTasks{ - // PreTask: &armautomation.SoftwareUpdateConfigurationRunTaskProperties{ - // JobID: to.Ptr("be430e9e-2290-462e-8f86-686407c35fab"), - // Source: to.Ptr("preRunbook"), - // Status: to.Ptr("Completed"), - // }, - // }, - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json -func ExampleSoftwareUpdateConfigurationRunsClient_List_listSoftwareUpdateConfigurationMachineRuns() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSoftwareUpdateConfigurationRunsClient().List(ctx, "mygroup", "myaccount", &armautomation.SoftwareUpdateConfigurationRunsClientListOptions{ClientRequestID: nil, - Filter: nil, - Skip: nil, - Top: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SoftwareUpdateConfigurationRunListResult = armautomation.SoftwareUpdateConfigurationRunListResult{ - // Value: []*armautomation.SoftwareUpdateConfigurationRun{ - // { - // Name: to.Ptr("2bd77cfa-2e9c-41b4-a45b-684a77cfeca9"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/2bd77cfa-2e9c-41b4-a45b-684a77cfeca9"), - // Properties: &armautomation.SoftwareUpdateConfigurationRunProperties{ - // ComputerCount: to.Ptr[int32](1), - // ConfiguredDuration: to.Ptr("PT2H"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:30:36.240Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:30:42.846Z"); return t}()), - // FailedCount: to.Ptr[int32](0), - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:31:39.396Z"); return t}()), - // OSType: to.Ptr("Windows"), - // SoftwareUpdateConfiguration: &armautomation.UpdateConfigurationNavigation{ - // Name: to.Ptr("mypatch"), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T02:30:36.240Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // Tasks: &armautomation.SoftwareUpdateConfigurationRunTasks{ - // PreTask: &armautomation.SoftwareUpdateConfigurationRunTaskProperties{ - // JobID: to.Ptr("be430e9e-2290-462e-8f86-686407c35fab"), - // Source: to.Ptr("preRunbook"), - // Status: to.Ptr("Completed"), - // }, - // }, - // }, - // }, - // { - // Name: to.Ptr("5dabff55-9812-4a58-af16-b0cb1d9384e8"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns/5dabff55-9812-4a58-af16-b0cb1d9384e8"), - // Properties: &armautomation.SoftwareUpdateConfigurationRunProperties{ - // ComputerCount: to.Ptr[int32](1), - // ConfiguredDuration: to.Ptr("PT2H"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T01:33:01.881Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T01:33:08.113Z"); return t}()), - // FailedCount: to.Ptr[int32](0), - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T01:34:03.940Z"); return t}()), - // OSType: to.Ptr("Windows"), - // SoftwareUpdateConfiguration: &armautomation.UpdateConfigurationNavigation{ - // Name: to.Ptr("mypatch"), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T01:33:01.881Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // Tasks: &armautomation.SoftwareUpdateConfigurationRunTasks{ - // PreTask: &armautomation.SoftwareUpdateConfigurationRunTaskProperties{ - // JobID: to.Ptr("be430e9e-2290-462e-8f86-686407c35fab"), - // Source: to.Ptr("preRunbook"), - // Status: to.Ptr("Completed"), - // }, - // }, - // }, - // }}, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurations_client_example_test.go b/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurations_client_example_test.go deleted file mode 100644 index 0f19233b7f3e..000000000000 --- a/sdk/resourcemanager/automation/armautomation/softwareupdateconfigurations_client_example_test.go +++ /dev/null @@ -1,541 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json -func ExampleSoftwareUpdateConfigurationsClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSoftwareUpdateConfigurationsClient().Create(ctx, "mygroup", "myaccount", "testpatch", armautomation.SoftwareUpdateConfiguration{ - Properties: &armautomation.SoftwareUpdateConfigurationProperties{ - ScheduleInfo: &armautomation.SUCScheduleProperties{ - AdvancedSchedule: &armautomation.AdvancedSchedule{ - WeekDays: []*string{ - to.Ptr("Monday"), - to.Ptr("Thursday")}, - }, - ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-09T11:22:57.000Z"); return t }()), - Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - Interval: to.Ptr[int64](1), - StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T12:22:57.000Z"); return t }()), - TimeZone: to.Ptr("America/Los_Angeles"), - }, - Tasks: &armautomation.SoftwareUpdateConfigurationTasks{ - PostTask: &armautomation.TaskProperties{ - Source: to.Ptr("GetCache"), - }, - PreTask: &armautomation.TaskProperties{ - Parameters: map[string]*string{ - "COMPUTERNAME": to.Ptr("Computer1"), - }, - Source: to.Ptr("HelloWorld"), - }, - }, - UpdateConfiguration: &armautomation.UpdateConfiguration{ - AzureVirtualMachines: []*string{ - to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01"), - to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02"), - to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03")}, - Duration: to.Ptr("PT2H0M"), - NonAzureComputerNames: []*string{ - to.Ptr("box1.contoso.com"), - to.Ptr("box2.contoso.com")}, - OperatingSystem: to.Ptr(armautomation.OperatingSystemTypeWindows), - Targets: &armautomation.TargetProperties{ - AzureQueries: []*armautomation.AzureQueryProperties{ - { - Locations: []*string{ - to.Ptr("Japan East"), - to.Ptr("UK South")}, - Scope: []*string{ - to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources"), - to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067")}, - TagSettings: &armautomation.TagSettingsProperties{ - FilterOperator: to.Ptr(armautomation.TagOperatorsAll), - Tags: map[string][]*string{ - "tag1": { - to.Ptr("tag1Value1"), - to.Ptr("tag1Value2"), - to.Ptr("tag1Value3")}, - "tag2": { - to.Ptr("tag2Value1"), - to.Ptr("tag2Value2"), - to.Ptr("tag2Value3")}, - }, - }, - }}, - NonAzureQueries: []*armautomation.NonAzureQueryProperties{ - { - FunctionAlias: to.Ptr("SavedSearch1"), - WorkspaceID: to.Ptr("WorkspaceId1"), - }, - { - FunctionAlias: to.Ptr("SavedSearch2"), - WorkspaceID: to.Ptr("WorkspaceId2"), - }}, - }, - Windows: &armautomation.WindowsProperties{ - ExcludedKbNumbers: []*string{ - to.Ptr("168934"), - to.Ptr("168973")}, - IncludedUpdateClassifications: to.Ptr(armautomation.WindowsUpdateClassesCritical), - RebootSetting: to.Ptr("IfRequired"), - }, - }, - }, - }, &armautomation.SoftwareUpdateConfigurationsClientCreateOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SoftwareUpdateConfiguration = armautomation.SoftwareUpdateConfiguration{ - // Name: to.Ptr("testpatch"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch"), - // Properties: &armautomation.SoftwareUpdateConfigurationProperties{ - // CreatedBy: to.Ptr("adam@contoso.com"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.523Z"); return t}()), - // Error: &armautomation.ErrorResponse{ - // }, - // LastModifiedBy: to.Ptr("adam@contoso.com"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.680Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // ScheduleInfo: &armautomation.SUCScheduleProperties{ - // Description: to.Ptr(""), - // AdvancedSchedule: &armautomation.AdvancedSchedule{ - // }, - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.523Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-09T19:22:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](-480), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyWeek), - // Interval: to.Ptr[int64](1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.523Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T19:22:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](-420), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T19:22:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](-420), - // TimeZone: to.Ptr("America/Los_Angeles"), - // }, - // Tasks: &armautomation.SoftwareUpdateConfigurationTasks{ - // PostTask: &armautomation.TaskProperties{ - // Source: to.Ptr("GetCache"), - // }, - // PreTask: &armautomation.TaskProperties{ - // Parameters: map[string]*string{ - // "COMPUTERNAME": to.Ptr("Computer1"), - // }, - // Source: to.Ptr("HelloWorld"), - // }, - // }, - // UpdateConfiguration: &armautomation.UpdateConfiguration{ - // AzureVirtualMachines: []*string{ - // to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01"), - // to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02"), - // to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03")}, - // Duration: to.Ptr("PT2H"), - // Linux: &armautomation.LinuxProperties{ - // }, - // NonAzureComputerNames: []*string{ - // to.Ptr("box1.contoso.com"), - // to.Ptr("box2.contoso.com")}, - // OperatingSystem: to.Ptr(armautomation.OperatingSystemTypeWindows), - // Targets: &armautomation.TargetProperties{ - // AzureQueries: []*armautomation.AzureQueryProperties{ - // { - // Locations: []*string{ - // to.Ptr("Japan East"), - // to.Ptr("UK South")}, - // Scope: []*string{ - // to.Ptr("/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0"), - // to.Ptr("/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d")}, - // TagSettings: &armautomation.TagSettingsProperties{ - // FilterOperator: to.Ptr(armautomation.TagOperatorsAll), - // Tags: map[string][]*string{ - // "tag1": []*string{ - // to.Ptr("tag1Value1"), - // to.Ptr("tag1Value2")}, - // "tag2": []*string{ - // to.Ptr("tag2Value1"), - // to.Ptr("tag2Value2")}, - // }, - // }, - // }}, - // }, - // Windows: &armautomation.WindowsProperties{ - // ExcludedKbNumbers: []*string{ - // to.Ptr("168934"), - // to.Ptr("168973")}, - // IncludedUpdateClassifications: to.Ptr(armautomation.WindowsUpdateClassesCritical), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json -func ExampleSoftwareUpdateConfigurationsClient_GetByName() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSoftwareUpdateConfigurationsClient().GetByName(ctx, "mygroup", "myaccount", "mypatch", &armautomation.SoftwareUpdateConfigurationsClientGetByNameOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SoftwareUpdateConfiguration = armautomation.SoftwareUpdateConfiguration{ - // Name: to.Ptr("testpatch"), - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch"), - // Properties: &armautomation.SoftwareUpdateConfigurationProperties{ - // CreatedBy: to.Ptr("eve@contoso.com"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.523Z"); return t}()), - // Error: &armautomation.ErrorResponse{ - // }, - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.680Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // ScheduleInfo: &armautomation.SUCScheduleProperties{ - // Description: to.Ptr(""), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.523Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-09T19:22:00.000Z"); return t}()), - // ExpiryTimeOffsetMinutes: to.Ptr[float64](-480), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyWeek), - // Interval: to.Ptr[int64](1), - // IsEnabled: to.Ptr(true), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.523Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T19:22:00.000Z"); return t}()), - // NextRunOffsetMinutes: to.Ptr[float64](-420), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T19:22:00.000Z"); return t}()), - // StartTimeOffsetMinutes: to.Ptr[float64](-420), - // TimeZone: to.Ptr("America/Los_Angeles"), - // }, - // Tasks: &armautomation.SoftwareUpdateConfigurationTasks{ - // PostTask: &armautomation.TaskProperties{ - // Source: to.Ptr("GetCache"), - // }, - // PreTask: &armautomation.TaskProperties{ - // Parameters: map[string]*string{ - // "COMPUTERNAME": to.Ptr("Computer1"), - // }, - // Source: to.Ptr("HelloWorld"), - // }, - // }, - // UpdateConfiguration: &armautomation.UpdateConfiguration{ - // AzureVirtualMachines: []*string{ - // to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01"), - // to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02"), - // to.Ptr("/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03")}, - // Duration: to.Ptr("PT2H"), - // Linux: &armautomation.LinuxProperties{ - // }, - // NonAzureComputerNames: []*string{ - // to.Ptr("box1.contoso.com"), - // to.Ptr("box2.contoso.com")}, - // OperatingSystem: to.Ptr(armautomation.OperatingSystemTypeWindows), - // Targets: &armautomation.TargetProperties{ - // AzureQueries: []*armautomation.AzureQueryProperties{ - // { - // Scope: []*string{ - // to.Ptr("/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0"), - // to.Ptr("/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d")}, - // TagSettings: &armautomation.TagSettingsProperties{ - // FilterOperator: to.Ptr(armautomation.TagOperatorsAll), - // Tags: map[string][]*string{ - // "tag1": []*string{ - // to.Ptr("tag1Value1"), - // to.Ptr("tag1Value2")}, - // "tag2": []*string{ - // to.Ptr("tag2Value1"), - // to.Ptr("tag2Value2")}, - // }, - // }, - // }}, - // }, - // Windows: &armautomation.WindowsProperties{ - // ExcludedKbNumbers: []*string{ - // to.Ptr("168934"), - // to.Ptr("168973")}, - // IncludedUpdateClassifications: to.Ptr(armautomation.WindowsUpdateClassesCritical), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/deleteSoftwareUpdateConfiguration.json -func ExampleSoftwareUpdateConfigurationsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewSoftwareUpdateConfigurationsClient().Delete(ctx, "mygroup", "myaccount", "mypatch", &armautomation.SoftwareUpdateConfigurationsClientDeleteOptions{ClientRequestID: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json -func ExampleSoftwareUpdateConfigurationsClient_List_listSoftwareUpdateConfigurations() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSoftwareUpdateConfigurationsClient().List(ctx, "mygroup", "myaccount", &armautomation.SoftwareUpdateConfigurationsClientListOptions{ClientRequestID: nil, - Filter: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SoftwareUpdateConfigurationListResult = armautomation.SoftwareUpdateConfigurationListResult{ - // Value: []*armautomation.SoftwareUpdateConfigurationCollectionItem{ - // { - // Name: to.Ptr("testpatch-01"), - // ID: to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01"), - // Properties: &armautomation.SoftwareUpdateConfigurationCollectionItemProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.523Z"); return t}()), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyWeek), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.680Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T19:22:00.000Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T19:22:00.000Z"); return t}()), - // Tasks: &armautomation.SoftwareUpdateConfigurationTasks{ - // PostTask: &armautomation.TaskProperties{ - // Source: to.Ptr("GetCache"), - // }, - // PreTask: &armautomation.TaskProperties{ - // Parameters: map[string]*string{ - // "COMPUTERNAME": to.Ptr("Computer1"), - // }, - // Source: to.Ptr("HelloWorld"), - // }, - // }, - // UpdateConfiguration: &armautomation.UpdateConfiguration{ - // AzureVirtualMachines: []*string{ - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01"), - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02"), - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03")}, - // Duration: to.Ptr("PT2H"), - // OperatingSystem: to.Ptr(armautomation.OperatingSystemTypeWindows), - // Targets: &armautomation.TargetProperties{ - // AzureQueries: []*armautomation.AzureQueryProperties{ - // { - // Scope: []*string{ - // to.Ptr("/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0"), - // to.Ptr("/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d")}, - // TagSettings: &armautomation.TagSettingsProperties{ - // FilterOperator: to.Ptr(armautomation.TagOperatorsAll), - // Tags: map[string][]*string{ - // "tag1": []*string{ - // to.Ptr("tag1Value1"), - // to.Ptr("tag1Value2")}, - // "tag2": []*string{ - // to.Ptr("tag2Value1"), - // to.Ptr("tag2Value2")}, - // }, - // }, - // }}, - // }, - // Windows: &armautomation.WindowsProperties{ - // IncludedUpdateClassifications: to.Ptr(armautomation.WindowsUpdateClasses("Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates")), - // }, - // }, - // }, - // }, - // { - // Name: to.Ptr("testpatch-02"), - // ID: to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02"), - // Properties: &armautomation.SoftwareUpdateConfigurationCollectionItemProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-11T21:52:02.773Z"); return t}()), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-11T21:52:22.880Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-05T19:26:00.000Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-05T19:26:00.000Z"); return t}()), - // Tasks: &armautomation.SoftwareUpdateConfigurationTasks{ - // PostTask: &armautomation.TaskProperties{ - // Source: to.Ptr("GetCache"), - // }, - // PreTask: &armautomation.TaskProperties{ - // Parameters: map[string]*string{ - // "COMPUTERNAME": to.Ptr("Computer1"), - // }, - // Source: to.Ptr("HelloWorld"), - // }, - // }, - // UpdateConfiguration: &armautomation.UpdateConfiguration{ - // AzureVirtualMachines: []*string{ - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-04"), - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05"), - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06")}, - // Duration: to.Ptr("PT2H30M"), - // OperatingSystem: to.Ptr(armautomation.OperatingSystemTypeWindows), - // Targets: &armautomation.TargetProperties{ - // AzureQueries: []*armautomation.AzureQueryProperties{ - // { - // Locations: []*string{ - // to.Ptr("Japan East"), - // to.Ptr("UK South")}, - // Scope: []*string{ - // to.Ptr("/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0"), - // to.Ptr("/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d")}, - // TagSettings: &armautomation.TagSettingsProperties{ - // FilterOperator: to.Ptr(armautomation.TagOperatorsAll), - // Tags: map[string][]*string{ - // "tag1": []*string{ - // to.Ptr("tag1Value1"), - // to.Ptr("tag1Value2")}, - // "tag2": []*string{ - // to.Ptr("tag2Value1"), - // to.Ptr("tag2Value2")}, - // }, - // }, - // }}, - // }, - // Windows: &armautomation.WindowsProperties{ - // IncludedUpdateClassifications: to.Ptr(armautomation.WindowsUpdateClasses("Critical, FeaturePack")), - // }, - // }, - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json -func ExampleSoftwareUpdateConfigurationsClient_List_listSoftwareUpdateConfigurationsTargetingASpecificAzureVirtualMachine() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSoftwareUpdateConfigurationsClient().List(ctx, "mygroup", "myaccount", &armautomation.SoftwareUpdateConfigurationsClientListOptions{ClientRequestID: nil, - Filter: to.Ptr("properties/updateConfiguration/azureVirtualMachines/any(m: m eq '/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01')"), - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SoftwareUpdateConfigurationListResult = armautomation.SoftwareUpdateConfigurationListResult{ - // Value: []*armautomation.SoftwareUpdateConfigurationCollectionItem{ - // { - // Name: to.Ptr("testpatch-01"), - // ID: to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01"), - // Properties: &armautomation.SoftwareUpdateConfigurationCollectionItemProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.523Z"); return t}()), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyWeek), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T18:54:50.680Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-23T19:22:00.000Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-10-19T19:22:00.000Z"); return t}()), - // Tasks: &armautomation.SoftwareUpdateConfigurationTasks{ - // PostTask: &armautomation.TaskProperties{ - // Source: to.Ptr("GetCache"), - // }, - // PreTask: &armautomation.TaskProperties{ - // Parameters: map[string]*string{ - // "COMPUTERNAME": to.Ptr("Computer1"), - // }, - // Source: to.Ptr("HelloWorld"), - // }, - // }, - // UpdateConfiguration: &armautomation.UpdateConfiguration{ - // AzureVirtualMachines: []*string{ - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01"), - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02"), - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03")}, - // Duration: to.Ptr("PT2H"), - // OperatingSystem: to.Ptr(armautomation.OperatingSystemTypeWindows), - // Windows: &armautomation.WindowsProperties{ - // IncludedUpdateClassifications: to.Ptr(armautomation.WindowsUpdateClasses("Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates")), - // }, - // }, - // }, - // }, - // { - // Name: to.Ptr("testpatch-02"), - // ID: to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02"), - // Properties: &armautomation.SoftwareUpdateConfigurationCollectionItemProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-11T21:52:02.773Z"); return t}()), - // Frequency: to.Ptr(armautomation.ScheduleFrequencyHour), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-11T21:52:22.880Z"); return t}()), - // NextRun: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-05T19:26:00.000Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-05T19:26:00.000Z"); return t}()), - // Tasks: &armautomation.SoftwareUpdateConfigurationTasks{ - // PostTask: &armautomation.TaskProperties{ - // Source: to.Ptr("GetCache"), - // }, - // PreTask: &armautomation.TaskProperties{ - // Parameters: map[string]*string{ - // "COMPUTERNAME": to.Ptr("Computer1"), - // }, - // Source: to.Ptr("HelloWorld"), - // }, - // }, - // UpdateConfiguration: &armautomation.UpdateConfiguration{ - // AzureVirtualMachines: []*string{ - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01"), - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05"), - // to.Ptr("/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06")}, - // Duration: to.Ptr("PT2H30M"), - // OperatingSystem: to.Ptr(armautomation.OperatingSystemTypeWindows), - // Windows: &armautomation.WindowsProperties{ - // IncludedUpdateClassifications: to.Ptr(armautomation.WindowsUpdateClasses("Critical, FeaturePack")), - // }, - // }, - // }, - // }}, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/sourcecontrol_client.go b/sdk/resourcemanager/automation/armautomation/sourcecontrol_client.go index 3dbc2981856b..f285f73c9a6c 100644 --- a/sdk/resourcemanager/automation/armautomation/sourcecontrol_client.go +++ b/sdk/resourcemanager/automation/armautomation/sourcecontrol_client.go @@ -47,7 +47,7 @@ func NewSourceControlClient(subscriptionID string, credential azcore.TokenCreden // CreateOrUpdate - Create a source control. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - sourceControlName - The source control name. @@ -100,7 +100,7 @@ func (client *SourceControlClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -121,7 +121,7 @@ func (client *SourceControlClient) createOrUpdateHandleResponse(resp *http.Respo // Delete - Delete the source control. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - sourceControlName - The name of source control. @@ -171,7 +171,7 @@ func (client *SourceControlClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -180,7 +180,7 @@ func (client *SourceControlClient) deleteCreateRequest(ctx context.Context, reso // Get - Retrieve the source control identified by source control name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - sourceControlName - The name of source control. @@ -231,7 +231,7 @@ func (client *SourceControlClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -248,7 +248,7 @@ func (client *SourceControlClient) getHandleResponse(resp *http.Response) (Sourc // NewListByAutomationAccountPager - Retrieve a list of source controls. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - SourceControlClientListByAutomationAccountOptions contains the optional parameters for the SourceControlClient.NewListByAutomationAccountPager @@ -299,7 +299,7 @@ func (client *SourceControlClient) listByAutomationAccountCreateRequest(ctx cont if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -317,7 +317,7 @@ func (client *SourceControlClient) listByAutomationAccountHandleResponse(resp *h // Update - Update a source control. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - sourceControlName - The source control name. @@ -369,7 +369,7 @@ func (client *SourceControlClient) updateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/sourcecontrol_client_example_test.go b/sdk/resourcemanager/automation/armautomation/sourcecontrol_client_example_test.go deleted file mode 100644 index 6387a98a0dca..000000000000 --- a/sdk/resourcemanager/automation/armautomation/sourcecontrol_client_example_test.go +++ /dev/null @@ -1,270 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/createOrUpdateSourceControl.json -func ExampleSourceControlClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSourceControlClient().CreateOrUpdate(ctx, "rg", "sampleAccount9", "sampleSourceControl", armautomation.SourceControlCreateOrUpdateParameters{ - Properties: &armautomation.SourceControlCreateOrUpdateProperties{ - Description: to.Ptr("my description"), - AutoSync: to.Ptr(true), - Branch: to.Ptr("master"), - FolderPath: to.Ptr("/folderOne/folderTwo"), - PublishRunbook: to.Ptr(true), - RepoURL: to.Ptr("https://sampleUser.visualstudio.com/myProject/_git/myRepository"), - SecurityToken: &armautomation.SourceControlSecurityTokenProperties{ - AccessToken: to.Ptr("3a326f7a0dcd343ea58fee21f2fd5fb4c1234567"), - TokenType: to.Ptr(armautomation.TokenTypePersonalAccessToken), - }, - SourceType: to.Ptr(armautomation.SourceTypeVsoGit), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SourceControl = armautomation.SourceControl{ - // Name: to.Ptr("sampleSourceControl"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl"), - // Properties: &armautomation.SourceControlProperties{ - // Description: to.Ptr("my description"), - // AutoSync: to.Ptr(true), - // Branch: to.Ptr("master"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // FolderPath: to.Ptr("/folderOne/folderTwo"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // PublishRunbook: to.Ptr(true), - // RepoURL: to.Ptr("https://sampleUser.visualstudio.com/myProject/_git/myRepository"), - // SourceType: to.Ptr(armautomation.SourceTypeVsoGit), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/updateSourceControl_patch.json -func ExampleSourceControlClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSourceControlClient().Update(ctx, "rg", "sampleAccount9", "sampleSourceControl", armautomation.SourceControlUpdateParameters{ - Properties: &armautomation.SourceControlUpdateProperties{ - Description: to.Ptr("my description"), - AutoSync: to.Ptr(true), - Branch: to.Ptr("master"), - FolderPath: to.Ptr("/folderOne/folderTwo"), - PublishRunbook: to.Ptr(true), - SecurityToken: &armautomation.SourceControlSecurityTokenProperties{ - AccessToken: to.Ptr("3a326f7a0dcd343ea58fee21f2fd5fb4c1234567"), - TokenType: to.Ptr(armautomation.TokenTypePersonalAccessToken), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SourceControl = armautomation.SourceControl{ - // Name: to.Ptr("sampleSourceControl"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl"), - // Properties: &armautomation.SourceControlProperties{ - // Description: to.Ptr("my description"), - // AutoSync: to.Ptr(true), - // Branch: to.Ptr("master"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // FolderPath: to.Ptr("/folderOne/folderTwo"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // PublishRunbook: to.Ptr(true), - // RepoURL: to.Ptr("https://sampleUser.visualstudio.com/myProject/_git/myRepository"), - // SourceType: to.Ptr(armautomation.SourceTypeVsoGit), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/deleteSourceControl.json -func ExampleSourceControlClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewSourceControlClient().Delete(ctx, "rg", "sampleAccount9", "sampleSourceControl", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getSourceControl.json -func ExampleSourceControlClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSourceControlClient().Get(ctx, "rg", "sampleAccount9", "sampleSourceControl", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SourceControl = armautomation.SourceControl{ - // Name: to.Ptr("sampleSourceControl"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl"), - // Properties: &armautomation.SourceControlProperties{ - // Description: to.Ptr("my description"), - // AutoSync: to.Ptr(true), - // Branch: to.Ptr("master"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // FolderPath: to.Ptr("/folderOne/folderTwo"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // PublishRunbook: to.Ptr(true), - // RepoURL: to.Ptr("https://github.com/SampleUserRepro/PowerShell"), - // SourceType: to.Ptr(armautomation.SourceTypeGitHub), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getAllSourceControls.json -func ExampleSourceControlClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewSourceControlClient().NewListByAutomationAccountPager("rg", "sampleAccount9", &armautomation.SourceControlClientListByAutomationAccountOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SourceControlListResult = armautomation.SourceControlListResult{ - // Value: []*armautomation.SourceControl{ - // { - // Name: to.Ptr("sampleSourceControl1"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl1"), - // Properties: &armautomation.SourceControlProperties{ - // Description: to.Ptr("my description"), - // AutoSync: to.Ptr(true), - // Branch: to.Ptr("master"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // FolderPath: to.Ptr("/sampleFolder/sampleFolder2"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // PublishRunbook: to.Ptr(true), - // RepoURL: to.Ptr("https://github.com/SampleUserRepro/PowerShell-1"), - // SourceType: to.Ptr(armautomation.SourceTypeGitHub), - // }, - // }, - // { - // Name: to.Ptr("sampleSourceControl2"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl2"), - // Properties: &armautomation.SourceControlProperties{ - // Description: to.Ptr("my description"), - // AutoSync: to.Ptr(true), - // Branch: to.Ptr("master"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // FolderPath: to.Ptr("/sampleFolder/sampleFolder2"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // PublishRunbook: to.Ptr(true), - // RepoURL: to.Ptr("https://github.com/SampleUserRepro/PowerShell-2"), - // SourceType: to.Ptr(armautomation.SourceTypeGitHub), - // }, - // }, - // { - // Name: to.Ptr("sampleSourceControl3"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl3"), - // Properties: &armautomation.SourceControlProperties{ - // Description: to.Ptr("my description"), - // AutoSync: to.Ptr(true), - // Branch: to.Ptr("master"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // FolderPath: to.Ptr("/sampleFolder/sampleFolder2"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // PublishRunbook: to.Ptr(true), - // RepoURL: to.Ptr("https://github.com/SampleUserRepro/PowerShell-3"), - // SourceType: to.Ptr(armautomation.SourceTypeGitHub), - // }, - // }, - // { - // Name: to.Ptr("sampleSourceControl4"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl4"), - // Properties: &armautomation.SourceControlProperties{ - // Description: to.Ptr("my description"), - // AutoSync: to.Ptr(true), - // Branch: to.Ptr("master"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // FolderPath: to.Ptr("/sampleFolder/sampleFolder2"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // PublishRunbook: to.Ptr(true), - // RepoURL: to.Ptr("https://github.com/SampleUserRepro/PowerShell-4"), - // SourceType: to.Ptr(armautomation.SourceTypeGitHub), - // }, - // }, - // { - // Name: to.Ptr("sampleSourceControl5"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/sourcecontrols/sampleSourceControl5"), - // Properties: &armautomation.SourceControlProperties{ - // Description: to.Ptr("my description"), - // AutoSync: to.Ptr(true), - // Branch: to.Ptr("master"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // FolderPath: to.Ptr("/sampleFolder/sampleFolder2"), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // PublishRunbook: to.Ptr(true), - // RepoURL: to.Ptr("https://github.com/SampleUserRepro/PowerShell-5"), - // SourceType: to.Ptr(armautomation.SourceTypeGitHub), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjob_client.go b/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjob_client.go index 9b7df7ef0a3e..c0c362c09dd3 100644 --- a/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjob_client.go +++ b/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjob_client.go @@ -47,7 +47,7 @@ func NewSourceControlSyncJobClient(subscriptionID string, credential azcore.Toke // Create - Creates the sync job for a source control. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - sourceControlName - The source control name. @@ -105,7 +105,7 @@ func (client *SourceControlSyncJobClient) createCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-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 *SourceControlSyncJobClient) createHandleResponse(resp *http.Respon // Get - Retrieve the source control sync job identified by job id. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - sourceControlName - The source control name. @@ -183,7 +183,7 @@ func (client *SourceControlSyncJobClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -200,7 +200,7 @@ func (client *SourceControlSyncJobClient) getHandleResponse(resp *http.Response) // NewListByAutomationAccountPager - Retrieve a list of source control sync jobs. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - sourceControlName - The source control name. @@ -256,7 +256,7 @@ func (client *SourceControlSyncJobClient) listByAutomationAccountCreateRequest(c if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjob_client_example_test.go b/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjob_client_example_test.go deleted file mode 100644 index 1ea70f9c02b4..000000000000 --- a/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjob_client_example_test.go +++ /dev/null @@ -1,155 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json -func ExampleSourceControlSyncJobClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewSourceControlSyncJobClient().Create(ctx, "rg", "myAutomationAccount33", "MySourceControl", "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", armautomation.SourceControlSyncJobCreateParameters{ - Properties: &armautomation.SourceControlSyncJobCreateProperties{ - CommitID: to.Ptr("9de0980bfb45026a3d97a1b0522d98a9f604226e"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJob/getSourceControlSyncJob.json -func ExampleSourceControlSyncJobClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSourceControlSyncJobClient().Get(ctx, "rg", "myAutomationAccount33", "MySourceControl", "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SourceControlSyncJobByID = armautomation.SourceControlSyncJobByID{ - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a"), - // Properties: &armautomation.SourceControlSyncJobByIDProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:28.903Z"); return t}()), - // Exception: to.Ptr(""), - // ProvisioningState: to.Ptr(armautomation.ProvisioningState("Succeeded")), - // SourceControlSyncJobID: to.Ptr("ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:27.903Z"); return t}()), - // SyncType: to.Ptr(armautomation.SyncTypePartialSync), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json -func ExampleSourceControlSyncJobClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewSourceControlSyncJobClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", "MySourceControl", &armautomation.SourceControlSyncJobClientListByAutomationAccountOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SourceControlSyncJobListResult = armautomation.SourceControlSyncJobListResult{ - // Value: []*armautomation.SourceControlSyncJob{ - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a1a"), - // Properties: &armautomation.SourceControlSyncJobProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:28.903Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ProvisioningState("Succeeded")), - // SourceControlSyncJobID: to.Ptr("ce6fe3e3-9db3-4096-a6b4-82bfb4c10a1a"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:27.903Z"); return t}()), - // SyncType: to.Ptr(armautomation.SyncTypePartialSync), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2a"), - // Properties: &armautomation.SourceControlSyncJobProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:28.903Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ProvisioningState("Succeeded")), - // SourceControlSyncJobID: to.Ptr("ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2a"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:27.903Z"); return t}()), - // SyncType: to.Ptr(armautomation.SyncTypePartialSync), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a3a"), - // Properties: &armautomation.SourceControlSyncJobProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:28.903Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ProvisioningState("Succeeded")), - // SourceControlSyncJobID: to.Ptr("ce6fe3e3-9db3-4096-a6b4-82bfb4c10a3a"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:27.903Z"); return t}()), - // SyncType: to.Ptr(armautomation.SyncTypePartialSync), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a4a"), - // Properties: &armautomation.SourceControlSyncJobProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:28.903Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ProvisioningState("Succeeded")), - // SourceControlSyncJobID: to.Ptr("ce6fe3e3-9db3-4096-a6b4-82bfb4c10a4a"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:27.903Z"); return t}()), - // SyncType: to.Ptr(armautomation.SyncTypePartialSync), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a5a"), - // Properties: &armautomation.SourceControlSyncJobProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:28.903Z"); return t}()), - // ProvisioningState: to.Ptr(armautomation.ProvisioningState("Succeeded")), - // SourceControlSyncJobID: to.Ptr("ce6fe3e3-9db3-4096-a6b4-82bfb4c10a5a"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:27.903Z"); return t}()), - // SyncType: to.Ptr(armautomation.SyncTypePartialSync), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjobstreams_client.go b/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjobstreams_client.go index 9d17671baa7b..18d7110987fb 100644 --- a/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjobstreams_client.go +++ b/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjobstreams_client.go @@ -47,7 +47,7 @@ func NewSourceControlSyncJobStreamsClient(subscriptionID string, credential azco // Get - Retrieve a sync job stream identified by stream id. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - sourceControlName - The source control name. @@ -109,7 +109,7 @@ func (client *SourceControlSyncJobStreamsClient) getCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -126,7 +126,7 @@ func (client *SourceControlSyncJobStreamsClient) getHandleResponse(resp *http.Re // NewListBySyncJobPager - Retrieve a list of sync job streams identified by sync job id. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - sourceControlName - The source control name. @@ -187,7 +187,7 @@ func (client *SourceControlSyncJobStreamsClient) listBySyncJobCreateRequest(ctx if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjobstreams_client_example_test.go b/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjobstreams_client_example_test.go deleted file mode 100644 index e7c2efe64709..000000000000 --- a/sdk/resourcemanager/automation/armautomation/sourcecontrolsyncjobstreams_client_example_test.go +++ /dev/null @@ -1,108 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreams.json -func ExampleSourceControlSyncJobStreamsClient_NewListBySyncJobPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewSourceControlSyncJobStreamsClient().NewListBySyncJobPager("rg", "myAutomationAccount33", "MySourceControl", "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2b", &armautomation.SourceControlSyncJobStreamsClientListBySyncJobOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SourceControlSyncJobStreamsListBySyncJob = armautomation.SourceControlSyncJobStreamsListBySyncJob{ - // Value: []*armautomation.SourceControlSyncJobStream{ - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2b/streams/b86c5c31-e9fd-4734-8764-ddd6c101e706_00636596855134810785_00000000000000000005"), - // Properties: &armautomation.SourceControlSyncJobStreamProperties{ - // SourceControlSyncJobStreamID: to.Ptr("b86c5c31-e9fd-4734-8764-ddd6c101e706_00636596855134810785_00000000000000000005"), - // StreamType: to.Ptr(armautomation.StreamTypeError), - // Summary: to.Ptr("ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription."), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2b/streams/b86c5c31-e9fd-4734-8764-ddd6c101e706_00636596855136998262_00000000000000000006"), - // Properties: &armautomation.SourceControlSyncJobStreamProperties{ - // SourceControlSyncJobStreamID: to.Ptr("b86c5c31-e9fd-4734-8764-ddd6c101e706_00636596855136998262_00000000000000000006"), - // StreamType: to.Ptr(armautomation.StreamTypeError), - // Summary: to.Ptr("System.Management.Automation.RuntimeException: Cannot index into a null array.\r\n at CallSite.Target(Closure , CallSite , Object , Int32 )\r\n at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)\r\n at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)"), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:27.903Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2b/streams/b86c5c31-e9fd-4734-8764-ddd6c101e706_00636596855139029522_00000000000000000007"), - // Properties: &armautomation.SourceControlSyncJobStreamProperties{ - // SourceControlSyncJobStreamID: to.Ptr("b86c5c31-e9fd-4734-8764-ddd6c101e706_00636596855139029522_00000000000000000007"), - // StreamType: to.Ptr(armautomation.StreamTypeError), - // Summary: to.Ptr("System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'Location'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. ---> System.Management.Automation.ValidationMetadataException: The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.\r\n at System.Management.Automation.ValidateNotNullOrEmptyAttribute.Validate(Object arguments, EngineIntrinsics engineIntrinsics)"), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:28.903Z"); return t}()), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreamsByStreamId.json -func ExampleSourceControlSyncJobStreamsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewSourceControlSyncJobStreamsClient().Get(ctx, "rg", "myAutomationAccount33", "MySourceControl", "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2b", "b86c5c31-e9fd-4734-8764-ddd6c101e706_00636596855139029522_00000000000000000007", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SourceControlSyncJobStreamByID = armautomation.SourceControlSyncJobStreamByID{ - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2b/streams/b86c5c31-e9fd-4734-8764-ddd6c101e706_00636596855139029522_00000000000000000007"), - // Properties: &armautomation.SourceControlSyncJobStreamByIDProperties{ - // SourceControlSyncJobStreamID: to.Ptr("b86c5c31-e9fd-4734-8764-ddd6c101e706_00636596855139029522_00000000000000000007"), - // StreamText: to.Ptr("New-AzureAffinityGroup : Cannot validate argument on parameter 'Location'. The argument is null or empty. Provide an \r\nargument that is not null or empty, and then try the command again.\r\nAt DatabaseExportImport1fba401e-0:69 char:69\r\n+ \r\n + CategoryInfo : InvalidData: . . . ."), - // StreamType: to.Ptr(armautomation.StreamTypeError), - // Summary: to.Ptr(""), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:14:26.903Z"); return t}()), - // Value: map[string]any{ - // "Exception": map[string]any{ - // "Message": "System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'Location'. The argument is null or empty . . .} }", - // }, - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/automation/armautomation/statistics_client.go b/sdk/resourcemanager/automation/armautomation/statistics_client.go index f220e127d0db..e73772a48067 100644 --- a/sdk/resourcemanager/automation/armautomation/statistics_client.go +++ b/sdk/resourcemanager/automation/armautomation/statistics_client.go @@ -46,7 +46,7 @@ func NewStatisticsClient(subscriptionID string, credential azcore.TokenCredentia // NewListByAutomationAccountPager - Retrieve the statistics for the account. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - StatisticsClientListByAutomationAccountOptions contains the optional parameters for the StatisticsClient.NewListByAutomationAccountPager @@ -98,7 +98,7 @@ func (client *StatisticsClient) listByAutomationAccountCreateRequest(ctx context if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/statistics_client_example_test.go b/sdk/resourcemanager/automation/armautomation/statistics_client_example_test.go deleted file mode 100644 index c50c1804bf04..000000000000 --- a/sdk/resourcemanager/automation/armautomation/statistics_client_example_test.go +++ /dev/null @@ -1,137 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json -func ExampleStatisticsClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStatisticsClient().NewListByAutomationAccountPager("rg", "myAutomationAccount11", &armautomation.StatisticsClientListByAutomationAccountOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StatisticsListResult = armautomation.StatisticsListResult{ - // Value: []*armautomation.Statistics{ - // { - // CounterProperty: to.Ptr("New"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/New"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Activating"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Activating"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Running"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Running"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Completed"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Completed"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Failed"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Failed"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Stopped"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Stopped"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Blocked"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Blocked"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Suspended"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Suspended"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Disconnected"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Disconnected"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Suspending"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Suspending"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Stopping"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Stopping"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Resuming"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Resuming"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }, - // { - // CounterProperty: to.Ptr("Removing"), - // CounterValue: to.Ptr[int64](0), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-26T02:11:49.987Z"); return t}()), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Removing"), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-19T02:11:49.987Z"); return t}()), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/testjob_client.go b/sdk/resourcemanager/automation/armautomation/testjob_client.go index 1f2fa18d1d82..f7a3f031e94e 100644 --- a/sdk/resourcemanager/automation/armautomation/testjob_client.go +++ b/sdk/resourcemanager/automation/armautomation/testjob_client.go @@ -47,7 +47,7 @@ func NewTestJobClient(subscriptionID string, credential azcore.TokenCredential, // Create - Create a test job of the runbook. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The parameters supplied to the create test job operation. @@ -99,7 +99,7 @@ func (client *TestJobClient) createCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-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 *TestJobClient) createHandleResponse(resp *http.Response) (TestJobC // Get - Retrieve the test job for the specified runbook. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -171,7 +171,7 @@ func (client *TestJobClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -189,7 +189,7 @@ func (client *TestJobClient) getHandleResponse(resp *http.Response) (TestJobClie // Resume - Resume the test job. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -239,7 +239,7 @@ func (client *TestJobClient) resumeCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -248,7 +248,7 @@ func (client *TestJobClient) resumeCreateRequest(ctx context.Context, resourceGr // Stop - Stop the test job. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -298,7 +298,7 @@ func (client *TestJobClient) stopCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -307,7 +307,7 @@ func (client *TestJobClient) stopCreateRequest(ctx context.Context, resourceGrou // Suspend - Suspend the test job. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -357,7 +357,7 @@ func (client *TestJobClient) suspendCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/testjob_client_example_test.go b/sdk/resourcemanager/automation/armautomation/testjob_client_example_test.go deleted file mode 100644 index a2c1a1e1436a..000000000000 --- a/sdk/resourcemanager/automation/armautomation/testjob_client_example_test.go +++ /dev/null @@ -1,124 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createTestJob.json -func ExampleTestJobClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewTestJobClient().Create(ctx, "mygroup", "ContoseAutomationAccount", "Get-AzureVMTutorial", armautomation.TestJobCreateParameters{ - Parameters: map[string]*string{ - "key01": to.Ptr("value01"), - "key02": to.Ptr("value02"), - }, - RunOn: to.Ptr(""), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJob.json -func ExampleTestJobClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewTestJobClient().Get(ctx, "mygroup", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.TestJob = armautomation.TestJob{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-09T05:52:00.934Z"); return t}()), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-09T05:55:16.782Z"); return t}()), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-09T05:55:16.782Z"); return t}()), - // LastStatusModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-09T05:55:16.782Z"); return t}()), - // Parameters: map[string]*string{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-09T05:55:10.834Z"); return t}()), - // Status: to.Ptr("Completed"), - // StatusDetails: to.Ptr("None"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/resumeTestJob.json -func ExampleTestJobClient_Resume() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewTestJobClient().Resume(ctx, "mygroup", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/stopTestJob.json -func ExampleTestJobClient_Stop() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewTestJobClient().Stop(ctx, "mygroup", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/suspendTestJob.json -func ExampleTestJobClient_Suspend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewTestJobClient().Suspend(ctx, "mygroup", "ContoseAutomationAccount", "Get-AzureVMTutorial", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/automation/armautomation/testjobstreams_client.go b/sdk/resourcemanager/automation/armautomation/testjobstreams_client.go index a473e40630f1..a395e682565d 100644 --- a/sdk/resourcemanager/automation/armautomation/testjobstreams_client.go +++ b/sdk/resourcemanager/automation/armautomation/testjobstreams_client.go @@ -47,7 +47,7 @@ func NewTestJobStreamsClient(subscriptionID string, credential azcore.TokenCrede // Get - Retrieve a test job stream of the test job identified by runbook name and stream id. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -103,7 +103,7 @@ func (client *TestJobStreamsClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -120,7 +120,7 @@ func (client *TestJobStreamsClient) getHandleResponse(resp *http.Response) (Test // NewListByTestJobPager - Retrieve a list of test job streams identified by runbook name. // -// Generated from API version 2018-06-30 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - runbookName - The runbook name. @@ -176,7 +176,7 @@ func (client *TestJobStreamsClient) listByTestJobCreateRequest(ctx context.Conte if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } - reqQP.Set("api-version", "2018-06-30") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/testjobstreams_client_example_test.go b/sdk/resourcemanager/automation/armautomation/testjobstreams_client_example_test.go deleted file mode 100644 index ccbddc1e26aa..000000000000 --- a/sdk/resourcemanager/automation/armautomation/testjobstreams_client_example_test.go +++ /dev/null @@ -1,93 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJobStream.json -func ExampleTestJobStreamsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewTestJobStreamsClient().Get(ctx, "mygroup", "ContoseAutomationAccount", "Get-AzureVMTutorial", "851b2101-686f-40e2-8a4b-5b8df08afbd1_00636535684910693884_00000000000000000001", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.JobStream = armautomation.JobStream{ - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/foo/draft/testJob/streams/851b2101-686f-40e2-8a4b-5b8df08afbd1_00636535684910693884_00000000000000000001"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("851b2101-686f-40e2-8a4b-5b8df08afbd1:00636535684910693884:00000000000000000001"), - // StreamText: to.Ptr(""), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-07T02:48:11.069Z"); return t}()), - // Value: map[string]any{ - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listTestJobStreamsByJob.json -func ExampleTestJobStreamsClient_NewListByTestJobPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewTestJobStreamsClient().NewListByTestJobPager("mygroup", "ContoseAutomationAccount", "Get-AzureVMTutorial", &armautomation.TestJobStreamsClientListByTestJobOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.JobStreamListResult = armautomation.JobStreamListResult{ - // Value: []*armautomation.JobStream{ - // { - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName/streams/24456a8a-2857-4af6-932c-3455f38bd05e_00636535675981232703_00000000000000000001"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("24456a8a-2857-4af6-932c-3455f38bd05e_00636535675981232703_00000000000000000001"), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-07T02:33:18.123Z"); return t}()), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName/streams/24456a8a-2857-4af6-932c-3455f38bd05e_00636535675984691350_00000000000000000002"), - // Properties: &armautomation.JobStreamProperties{ - // JobStreamID: to.Ptr("24456a8a-2857-4af6-932c-3455f38bd05e_00636535675984691350_00000000000000000002"), - // StreamType: to.Ptr(armautomation.JobStreamTypeOutput), - // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-02-07T02:33:18.469Z"); return t}()), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/usages_client.go b/sdk/resourcemanager/automation/armautomation/usages_client.go index a93ade17c119..2840d235082e 100644 --- a/sdk/resourcemanager/automation/armautomation/usages_client.go +++ b/sdk/resourcemanager/automation/armautomation/usages_client.go @@ -46,7 +46,7 @@ func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, o // NewListByAutomationAccountPager - Retrieve the usage for the account id. // -// Generated from API version 2021-06-22 +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - UsagesClientListByAutomationAccountOptions contains the optional parameters for the UsagesClient.NewListByAutomationAccountPager @@ -95,7 +95,7 @@ func (client *UsagesClient) listByAutomationAccountCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-06-22") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/automation/armautomation/usages_client_example_test.go b/sdk/resourcemanager/automation/armautomation/usages_client_example_test.go deleted file mode 100644 index 70af59925d36..000000000000 --- a/sdk/resourcemanager/automation/armautomation/usages_client_example_test.go +++ /dev/null @@ -1,76 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json -func ExampleUsagesClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewUsagesClient().NewListByAutomationAccountPager("rg", "myAutomationAccount11", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.UsageListResult = armautomation.UsageListResult{ - // Value: []*armautomation.Usage{ - // { - // Name: &armautomation.UsageCounterName{ - // LocalizedValue: to.Ptr("AccountUsage"), - // Value: to.Ptr("AccountUsage"), - // }, - // CurrentValue: to.Ptr[float64](0), - // Limit: to.Ptr[int64](500), - // ThrottleStatus: to.Ptr("NotThrottled"), - // Unit: to.Ptr("Minute"), - // }, - // { - // Name: &armautomation.UsageCounterName{ - // LocalizedValue: to.Ptr("SubscriptionUsage"), - // Value: to.Ptr("SubscriptionUsage"), - // }, - // CurrentValue: to.Ptr[float64](429), - // Limit: to.Ptr[int64](500), - // ThrottleStatus: to.Ptr("NotThrottled"), - // Unit: to.Ptr("Minute"), - // }, - // { - // Name: &armautomation.UsageCounterName{ - // LocalizedValue: to.Ptr("DscSubscriptionUsage"), - // Value: to.Ptr("DscSubscriptionUsage"), - // }, - // CurrentValue: to.Ptr[float64](8), - // Limit: to.Ptr[int64](5), - // ThrottleStatus: to.Ptr("ThrottledAtSubscriptionLevel"), - // Unit: to.Ptr("Count"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/variable_client.go b/sdk/resourcemanager/automation/armautomation/variable_client.go index a3b765ca6ccd..f53afdc8de64 100644 --- a/sdk/resourcemanager/automation/armautomation/variable_client.go +++ b/sdk/resourcemanager/automation/armautomation/variable_client.go @@ -47,7 +47,7 @@ func NewVariableClient(subscriptionID string, credential azcore.TokenCredential, // CreateOrUpdate - Create a variable. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - variableName - The variable name. @@ -99,7 +99,7 @@ func (client *VariableClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-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 *VariableClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - Delete the variable. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - variableName - The name of variable. @@ -170,7 +170,7 @@ func (client *VariableClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -179,7 +179,7 @@ func (client *VariableClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Retrieve the variable identified by variable name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - variableName - The name of variable. @@ -230,7 +230,7 @@ func (client *VariableClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -247,7 +247,7 @@ func (client *VariableClient) getHandleResponse(resp *http.Response) (VariableCl // NewListByAutomationAccountPager - Retrieve a list of variables. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - options - VariableClientListByAutomationAccountOptions contains the optional parameters for the VariableClient.NewListByAutomationAccountPager @@ -295,7 +295,7 @@ func (client *VariableClient) listByAutomationAccountCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -313,7 +313,7 @@ func (client *VariableClient) listByAutomationAccountHandleResponse(resp *http.R // Update - Update a variable. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2020-01-13-preview +// Generated from API version 2023-11-01 // - resourceGroupName - Name of an Azure Resource group. // - automationAccountName - The name of the automation account. // - variableName - The variable name. @@ -365,7 +365,7 @@ func (client *VariableClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2020-01-13-preview") + reqQP.Set("api-version", "2023-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/automation/armautomation/variable_client_example_test.go b/sdk/resourcemanager/automation/armautomation/variable_client_example_test.go deleted file mode 100644 index aae9ecec456a..000000000000 --- a/sdk/resourcemanager/automation/armautomation/variable_client_example_test.go +++ /dev/null @@ -1,1307 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateVariable.json -func ExampleVariableClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewVariableClient().CreateOrUpdate(ctx, "rg", "sampleAccount9", "sampleVariable", armautomation.VariableCreateOrUpdateParameters{ - Name: to.Ptr("sampleVariable"), - Properties: &armautomation.VariableCreateOrUpdateProperties{ - Description: to.Ptr("my description"), - IsEncrypted: to.Ptr(false), - Value: to.Ptr("\"ComputerName.domain.com\""), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Variable = armautomation.Variable{ - // Name: to.Ptr("sampleVariable"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable"), - // Properties: &armautomation.VariableProperties{ - // Description: to.Ptr("my description"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // Value: to.Ptr("\"ComputerName2.domain.com\""), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateVariable_patch.json -func ExampleVariableClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewVariableClient().Update(ctx, "rg", "sampleAccount9", "sampleVariable", armautomation.VariableUpdateParameters{ - Name: to.Ptr("sampleVariable"), - Properties: &armautomation.VariableUpdateProperties{ - Value: to.Ptr("\"ComputerName3.domain.com\""), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Variable = armautomation.Variable{ - // Name: to.Ptr("sampleVariable"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable"), - // Properties: &armautomation.VariableProperties{ - // Description: to.Ptr("my description"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:00:53.363Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:00:57.987Z"); return t}()), - // Value: to.Ptr("\"ComputerName3.domain.com\""), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteVariable.json -func ExampleVariableClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewVariableClient().Delete(ctx, "rg", "sampleAccount9", "sampleVariable", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getVariable.json -func ExampleVariableClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewVariableClient().Get(ctx, "rg", "sampleAccount9", "sampleVariable", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Variable = armautomation.Variable{ - // Name: to.Ptr("sampleVariable"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable"), - // Properties: &armautomation.VariableProperties{ - // Description: to.Ptr("my description"), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T22:59:00.937Z"); return t}()), - // Value: to.Ptr("\"ComputerName.domain.com\""), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listVariables_First100.json -func ExampleVariableClient_NewListByAutomationAccountPager_listVariablesFirst100() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewVariableClient().NewListByAutomationAccountPager("rg", "sampleAccount9", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.VariableListResult = armautomation.VariableListResult{ - // Value: []*armautomation.Variable{ - // { - // Name: to.Ptr("sampleVariable"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:00:53.363Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:00:57.987Z"); return t}()), - // Value: to.Ptr("\"ComputerName3.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable0"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable0"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:00:58.847Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:00:58.847Z"); return t}()), - // Value: to.Ptr("\"server0.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable1"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable1"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:00:59.690Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:00:59.690Z"); return t}()), - // Value: to.Ptr("\"server1.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable10"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable10"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:08.393Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:08.393Z"); return t}()), - // Value: to.Ptr("\"server10.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable100"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable100"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:27.380Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:27.380Z"); return t}()), - // Value: to.Ptr("\"server100.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable101"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable101"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:28.223Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:28.223Z"); return t}()), - // Value: to.Ptr("\"server101.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable102"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable102"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:28.990Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:28.990Z"); return t}()), - // Value: to.Ptr("\"server102.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable103"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable103"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:29.770Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:29.770Z"); return t}()), - // Value: to.Ptr("\"server103.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable104"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable104"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:30.647Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:30.647Z"); return t}()), - // Value: to.Ptr("\"server104.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable105"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable105"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:31.490Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:31.490Z"); return t}()), - // Value: to.Ptr("\"server105.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable106"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable106"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:32.303Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:32.303Z"); return t}()), - // Value: to.Ptr("\"server106.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable107"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable107"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:34.583Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:34.583Z"); return t}()), - // Value: to.Ptr("\"server107.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable108"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable108"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:35.367Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:35.367Z"); return t}()), - // Value: to.Ptr("\"server108.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable109"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable109"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:36.147Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:36.147Z"); return t}()), - // Value: to.Ptr("\"server109.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable11"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable11"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:09.270Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:09.270Z"); return t}()), - // Value: to.Ptr("\"server11.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable12"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable12"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:10.160Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:10.160Z"); return t}()), - // Value: to.Ptr("\"server12.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable13"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable13"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:11.003Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:11.003Z"); return t}()), - // Value: to.Ptr("\"server13.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable14"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable14"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:11.863Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:11.863Z"); return t}()), - // Value: to.Ptr("\"server14.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable15"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable15"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:12.740Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:12.740Z"); return t}()), - // Value: to.Ptr("\"server15.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable16"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable16"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:13.597Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:13.597Z"); return t}()), - // Value: to.Ptr("\"server16.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable17"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable17"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:16.287Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:16.287Z"); return t}()), - // Value: to.Ptr("\"server17.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable18"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable18"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:17.160Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:17.160Z"); return t}()), - // Value: to.Ptr("\"server18.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable19"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable19"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:18.020Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:18.020Z"); return t}()), - // Value: to.Ptr("\"server19.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable2"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable2"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:00.567Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:00.567Z"); return t}()), - // Value: to.Ptr("\"server2.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable20"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable20"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:18.847Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:18.847Z"); return t}()), - // Value: to.Ptr("\"server20.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable21"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable21"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:19.723Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:19.723Z"); return t}()), - // Value: to.Ptr("\"server21.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable22"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable22"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:21.597Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:21.597Z"); return t}()), - // Value: to.Ptr("\"server22.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable23"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable23"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:22.393Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:22.393Z"); return t}()), - // Value: to.Ptr("\"server23.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable24"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable24"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:23.207Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:23.207Z"); return t}()), - // Value: to.Ptr("\"server24.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable25"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable25"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:23.973Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:23.973Z"); return t}()), - // Value: to.Ptr("\"server25.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable26"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable26"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:24.800Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:24.800Z"); return t}()), - // Value: to.Ptr("\"server26.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable27"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable27"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:25.597Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:25.597Z"); return t}()), - // Value: to.Ptr("\"server27.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable28"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable28"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:26.550Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:26.550Z"); return t}()), - // Value: to.Ptr("\"server28.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable29"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable29"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:27.457Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:27.457Z"); return t}()), - // Value: to.Ptr("\"server29.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable3"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable3"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:01.427Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:01.427Z"); return t}()), - // Value: to.Ptr("\"server3.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable30"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable30"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:28.253Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:28.253Z"); return t}()), - // Value: to.Ptr("\"server30.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable31"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable31"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:29.050Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:29.050Z"); return t}()), - // Value: to.Ptr("\"server31.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable32"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable32"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:29.817Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:29.817Z"); return t}()), - // Value: to.Ptr("\"server32.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable33"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable33"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:30.643Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:30.643Z"); return t}()), - // Value: to.Ptr("\"server33.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable34"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable34"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:31.473Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:31.473Z"); return t}()), - // Value: to.Ptr("\"server34.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable35"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable35"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:32.253Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:32.253Z"); return t}()), - // Value: to.Ptr("\"server35.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable36"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable36"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:33.270Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:33.270Z"); return t}()), - // Value: to.Ptr("\"server36.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable37"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable37"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:34.037Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:34.037Z"); return t}()), - // Value: to.Ptr("\"server37.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable38"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable38"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:34.817Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:34.817Z"); return t}()), - // Value: to.Ptr("\"server38.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable39"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable39"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:35.613Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:35.613Z"); return t}()), - // Value: to.Ptr("\"server39.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable4"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable4"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:02.380Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:02.380Z"); return t}()), - // Value: to.Ptr("\"server4.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable40"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable40"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:36.397Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:36.397Z"); return t}()), - // Value: to.Ptr("\"server40.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable41"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable41"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:37.190Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:37.190Z"); return t}()), - // Value: to.Ptr("\"server41.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable42"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable42"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:38.037Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:38.037Z"); return t}()), - // Value: to.Ptr("\"server42.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable43"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable43"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:38.880Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:38.880Z"); return t}()), - // Value: to.Ptr("\"server43.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable44"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable44"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:39.707Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:39.707Z"); return t}()), - // Value: to.Ptr("\"server44.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable45"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable45"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:41.457Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:41.457Z"); return t}()), - // Value: to.Ptr("\"server45.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable46"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable46"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:42.253Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:42.253Z"); return t}()), - // Value: to.Ptr("\"server46.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable47"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable47"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:43.083Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:43.083Z"); return t}()), - // Value: to.Ptr("\"server47.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable48"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable48"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:43.957Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:43.957Z"); return t}()), - // Value: to.Ptr("\"server48.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable49"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable49"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:44.740Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:44.740Z"); return t}()), - // Value: to.Ptr("\"server49.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable5"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable5"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:03.253Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:03.253Z"); return t}()), - // Value: to.Ptr("\"server5.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable50"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable50"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:46.350Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:46.350Z"); return t}()), - // Value: to.Ptr("\"server50.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable51"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable51"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:47.100Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:47.100Z"); return t}()), - // Value: to.Ptr("\"server51.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable52"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable52"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:47.880Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:47.880Z"); return t}()), - // Value: to.Ptr("\"server52.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable53"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable53"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:48.677Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:48.677Z"); return t}()), - // Value: to.Ptr("\"server53.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable54"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable54"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:49.473Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:49.473Z"); return t}()), - // Value: to.Ptr("\"server54.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable55"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable55"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:51.160Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:51.160Z"); return t}()), - // Value: to.Ptr("\"server55.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable56"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable56"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:51.927Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:51.927Z"); return t}()), - // Value: to.Ptr("\"server56.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable57"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable57"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:52.757Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:52.757Z"); return t}()), - // Value: to.Ptr("\"server57.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable58"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable58"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:53.550Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:53.550Z"); return t}()), - // Value: to.Ptr("\"server58.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable59"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable59"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:54.317Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:54.317Z"); return t}()), - // Value: to.Ptr("\"server59.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable6"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable6"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:04.143Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:04.143Z"); return t}()), - // Value: to.Ptr("\"server6.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable60"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable60"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:55.177Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:55.177Z"); return t}()), - // Value: to.Ptr("\"server60.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable61"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable61"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:56.583Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:56.583Z"); return t}()), - // Value: to.Ptr("\"server61.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable62"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable62"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:57.270Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:57.270Z"); return t}()), - // Value: to.Ptr("\"server62.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable63"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable63"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:57.943Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:57.943Z"); return t}()), - // Value: to.Ptr("\"server63.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable64"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable64"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:58.660Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:58.660Z"); return t}()), - // Value: to.Ptr("\"server64.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable65"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable65"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:59.350Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:59.350Z"); return t}()), - // Value: to.Ptr("\"server65.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable66"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable66"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:00.020Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:00.020Z"); return t}()), - // Value: to.Ptr("\"server66.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable67"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable67"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:01.507Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:01.507Z"); return t}()), - // Value: to.Ptr("\"server67.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable68"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable68"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:02.177Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:02.177Z"); return t}()), - // Value: to.Ptr("\"server68.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable69"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable69"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:02.863Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:02.863Z"); return t}()), - // Value: to.Ptr("\"server69.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable7"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable7"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:05.393Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:05.393Z"); return t}()), - // Value: to.Ptr("\"server7.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable70"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable70"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:03.600Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:03.600Z"); return t}()), - // Value: to.Ptr("\"server70.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable71"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable71"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:04.333Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:04.333Z"); return t}()), - // Value: to.Ptr("\"server71.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable72"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable72"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:05.100Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:05.100Z"); return t}()), - // Value: to.Ptr("\"server72.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable73"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable73"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:05.833Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:05.833Z"); return t}()), - // Value: to.Ptr("\"server73.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable74"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable74"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:06.647Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:06.647Z"); return t}()), - // Value: to.Ptr("\"server74.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable75"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable75"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:07.363Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:07.363Z"); return t}()), - // Value: to.Ptr("\"server75.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable76"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable76"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:08.100Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:08.100Z"); return t}()), - // Value: to.Ptr("\"server76.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable77"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable77"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:08.820Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:08.820Z"); return t}()), - // Value: to.Ptr("\"server77.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable78"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable78"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:09.553Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:09.553Z"); return t}()), - // Value: to.Ptr("\"server78.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable79"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable79"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:10.630Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:10.630Z"); return t}()), - // Value: to.Ptr("\"server79.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable8"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable8"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:06.520Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:06.520Z"); return t}()), - // Value: to.Ptr("\"server8.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable80"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable80"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:11.320Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:11.320Z"); return t}()), - // Value: to.Ptr("\"server80.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable81"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable81"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:12.020Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:12.020Z"); return t}()), - // Value: to.Ptr("\"server81.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable82"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable82"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:12.723Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:12.723Z"); return t}()), - // Value: to.Ptr("\"server82.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable83"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable83"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:13.443Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:13.443Z"); return t}()), - // Value: to.Ptr("\"server83.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable84"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable84"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:14.160Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:14.160Z"); return t}()), - // Value: to.Ptr("\"server84.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable85"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable85"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:15.177Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:15.177Z"); return t}()), - // Value: to.Ptr("\"server85.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable86"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable86"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:16.053Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:16.053Z"); return t}()), - // Value: to.Ptr("\"server86.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable87"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable87"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:16.820Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:16.820Z"); return t}()), - // Value: to.Ptr("\"server87.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable88"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable88"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:17.583Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:17.583Z"); return t}()), - // Value: to.Ptr("\"server88.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable89"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable89"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:18.333Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:18.333Z"); return t}()), - // Value: to.Ptr("\"server89.domain.com\""), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listVariables_Next100.json -func ExampleVariableClient_NewListByAutomationAccountPager_listVariablesNext100() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewVariableClient().NewListByAutomationAccountPager("rg", "sampleAccount9", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.VariableListResult = armautomation.VariableListResult{ - // Value: []*armautomation.Variable{ - // { - // Name: to.Ptr("sampleVariable9"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable9"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:07.380Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:01:07.380Z"); return t}()), - // Value: to.Ptr("\"server9.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable90"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable90"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:19.147Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:19.147Z"); return t}()), - // Value: to.Ptr("\"server90.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable91"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable91"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:20.257Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:20.257Z"); return t}()), - // Value: to.Ptr("\"server91.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable92"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable92"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:21.037Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:21.037Z"); return t}()), - // Value: to.Ptr("\"server92.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable93"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable93"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:21.803Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:21.803Z"); return t}()), - // Value: to.Ptr("\"server93.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable94"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable94"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:22.583Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:22.583Z"); return t}()), - // Value: to.Ptr("\"server94.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable95"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable95"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:23.333Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:23.333Z"); return t}()), - // Value: to.Ptr("\"server95.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable96"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable96"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:24.163Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:24.163Z"); return t}()), - // Value: to.Ptr("\"server96.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable97"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable97"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:24.973Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:24.973Z"); return t}()), - // Value: to.Ptr("\"server97.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable98"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable98"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:25.757Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:25.757Z"); return t}()), - // Value: to.Ptr("\"server98.domain.com\""), - // }, - // }, - // { - // Name: to.Ptr("sampleVariable99"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/sampleAccount9/variables/sampleVariable99"), - // Properties: &armautomation.VariableProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:26.553Z"); return t}()), - // IsEncrypted: to.Ptr(false), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-28T23:02:26.553Z"); return t}()), - // Value: to.Ptr("\"server99.domain.com\""), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/watcher_client_example_test.go b/sdk/resourcemanager/automation/armautomation/watcher_client_example_test.go deleted file mode 100644 index 7e5cefd085d4..000000000000 --- a/sdk/resourcemanager/automation/armautomation/watcher_client_example_test.go +++ /dev/null @@ -1,256 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateWatcher.json -func ExampleWatcherClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWatcherClient().CreateOrUpdate(ctx, "rg", "MyTestAutomationAccount", "MyTestWatcher", armautomation.Watcher{ - Properties: &armautomation.WatcherProperties{ - Description: to.Ptr("This is a test watcher."), - ExecutionFrequencyInSeconds: to.Ptr[int64](60), - ScriptName: to.Ptr("MyTestWatcherRunbook"), - ScriptRunOn: to.Ptr("MyTestHybridWorkerGroup"), - }, - Tags: map[string]*string{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Watcher = armautomation.Watcher{ - // Name: to.Ptr("MyTestWatcher"), - // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyTestAutomationAccount/watchers/MyTestWatcher"), - // Properties: &armautomation.WatcherProperties{ - // Description: to.Ptr("This is a test watcher."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-14T21:14:09.607Z"); return t}()), - // ExecutionFrequencyInSeconds: to.Ptr[int64](60), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-14T21:14:09.607Z"); return t}()), - // ScriptName: to.Ptr("MyTestWatcherRunbook"), - // ScriptRunOn: to.Ptr("MyTestHybridWorkerGroup"), - // Status: to.Ptr("New"), - // }, - // Tags: map[string]*string{ - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getWatcher.json -func ExampleWatcherClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWatcherClient().Get(ctx, "rg", "MyTestAutomationAccount", "MyTestWatcher", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Watcher = armautomation.Watcher{ - // Name: to.Ptr("MyTestWatcher"), - // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyTestAutomationAccount/watchers/MyTestWatcher"), - // Properties: &armautomation.WatcherProperties{ - // Description: to.Ptr(""), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-30T18:50:17.163Z"); return t}()), - // ExecutionFrequencyInSeconds: to.Ptr[int64](60), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-30T18:50:17.163Z"); return t}()), - // ScriptName: to.Ptr("MyTestWatcherRunbook"), - // ScriptParameters: map[string]*string{ - // }, - // ScriptRunOn: to.Ptr("MyTestHybridWorkerGroup"), - // Status: to.Ptr("Running"), - // }, - // Tags: map[string]*string{ - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateWatcher.json -func ExampleWatcherClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWatcherClient().Update(ctx, "rg", "MyTestAutomationAccount", "MyTestWatcher", armautomation.WatcherUpdateParameters{ - Name: to.Ptr("MyTestWatcher"), - Properties: &armautomation.WatcherUpdateProperties{ - ExecutionFrequencyInSeconds: to.Ptr[int64](600), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Watcher = armautomation.Watcher{ - // Name: to.Ptr("MyTestWatcher"), - // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyTestAutomationAccount/watchers/MyTestWatcher"), - // Properties: &armautomation.WatcherProperties{ - // Description: to.Ptr("This is a test watcher."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-14T21:33:02.197Z"); return t}()), - // ExecutionFrequencyInSeconds: to.Ptr[int64](600), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-14T22:29:57.650Z"); return t}()), - // ScriptName: to.Ptr("MyTestWatcherRunbook"), - // ScriptParameters: map[string]*string{ - // }, - // ScriptRunOn: to.Ptr("MyTestHybridWorkerGroup"), - // Status: to.Ptr("New"), - // }, - // Tags: map[string]*string{ - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteWatcher.json -func ExampleWatcherClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWatcherClient().Delete(ctx, "rg", "MyTestAutomationAccount", "MyTestWatcher", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/startWatcher.json -func ExampleWatcherClient_Start() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWatcherClient().Start(ctx, "rg", "MyTestAutomationAccount", "MyTestWatcher", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/stopWatcher.json -func ExampleWatcherClient_Stop() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWatcherClient().Stop(ctx, "rg", "MyTestAutomationAccount", "MyTestWatcher", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listWatchersByAutomationAccount.json -func ExampleWatcherClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWatcherClient().NewListByAutomationAccountPager("rg", "MyTestAutomationAccount", &armautomation.WatcherClientListByAutomationAccountOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WatcherListResult = armautomation.WatcherListResult{ - // Value: []*armautomation.Watcher{ - // { - // Name: to.Ptr("MyTestWatcher"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyTestAutomationAccount/watchers/MyTestWatcher"), - // Properties: &armautomation.WatcherProperties{ - // Description: to.Ptr("This is a test watcher."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-12-20T21:36:48.597Z"); return t}()), - // ExecutionFrequencyInSeconds: to.Ptr[int64](60), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-12-20T21:36:48.597Z"); return t}()), - // ScriptName: to.Ptr("MyTestWatcher"), - // ScriptRunOn: to.Ptr("MyTestHybridWorkerGroup"), - // }, - // }, - // { - // Name: to.Ptr("MyTestWatcher01"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyTestAutomationAccount/watchers/MyTestWatcher01"), - // Properties: &armautomation.WatcherProperties{ - // Description: to.Ptr("This is a test watcher."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-12-20T20:47:24.697Z"); return t}()), - // ExecutionFrequencyInSeconds: to.Ptr[int64](60), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-12-20T20:47:24.697Z"); return t}()), - // ScriptName: to.Ptr("MyTestWatcher"), - // ScriptRunOn: to.Ptr("MyTestHybridWorkerGroup"), - // }, - // }, - // { - // Name: to.Ptr("MyTestWatcher02"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyTestAutomationAccount/watchers/MyTestWatcher02"), - // Properties: &armautomation.WatcherProperties{ - // Description: to.Ptr("This is a test watcher."), - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-12-20T21:26:35.647Z"); return t}()), - // ExecutionFrequencyInSeconds: to.Ptr[int64](60), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-12-20T21:26:35.647Z"); return t}()), - // ScriptName: to.Ptr("MyTestWatcher"), - // ScriptRunOn: to.Ptr("MyTestHybridWorkerGroup"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/automation/armautomation/webhook_client_example_test.go b/sdk/resourcemanager/automation/armautomation/webhook_client_example_test.go deleted file mode 100644 index 786321531faf..000000000000 --- a/sdk/resourcemanager/automation/armautomation/webhook_client_example_test.go +++ /dev/null @@ -1,223 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armautomation_test - -import ( - "context" - "log" - - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/webhookGenerateUri.json -func ExampleWebhookClient_GenerateURI() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebhookClient().GenerateURI(ctx, "rg", "myAutomationAccount33", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Value = "" -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/deleteWebhook.json -func ExampleWebhookClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebhookClient().Delete(ctx, "rg", "myAutomationAccount33", "TestWebhook", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getWebhook.json -func ExampleWebhookClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebhookClient().Get(ctx, "rg", "myAutomationAccount33", "TestWebhook", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Webhook = armautomation.Webhook{ - // Name: to.Ptr("TestWebhook"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook"), - // Properties: &armautomation.WebhookProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T22:18:14.665Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-29T22:18:13.700Z"); return t}()), - // IsEnabled: to.Ptr(true), - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T22:18:14.665Z"); return t}()), - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // URI: to.Ptr(""), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateWebhook.json -func ExampleWebhookClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebhookClient().CreateOrUpdate(ctx, "rg", "myAutomationAccount33", "TestWebhook", armautomation.WebhookCreateOrUpdateParameters{ - Name: to.Ptr("TestWebhook"), - Properties: &armautomation.WebhookCreateOrUpdateProperties{ - ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-29T22:18:13.700Z"); return t }()), - IsEnabled: to.Ptr(true), - Runbook: &armautomation.RunbookAssociationProperty{ - Name: to.Ptr("TestRunbook"), - }, - URI: to.Ptr(""), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Webhook = armautomation.Webhook{ - // Name: to.Ptr("TestWebhook"), - // Type: to.Ptr("Microsoft.Automation/AutomationAccounts/Webhooks"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook"), - // Properties: &armautomation.WebhookProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T22:18:14.665Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-29T22:18:13.700Z"); return t}()), - // IsEnabled: to.Ptr(true), - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T22:18:14.665Z"); return t}()), - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // URI: to.Ptr(""), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateWebhook.json -func ExampleWebhookClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebhookClient().Update(ctx, "rg", "myAutomationAccount33", "TestWebhook", armautomation.WebhookUpdateParameters{ - Name: to.Ptr("TestWebhook"), - Properties: &armautomation.WebhookUpdateProperties{ - Description: to.Ptr("updated webhook"), - IsEnabled: to.Ptr(false), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Webhook = armautomation.Webhook{ - // Name: to.Ptr("TestWebhook"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook"), - // Properties: &armautomation.WebhookProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-30T21:52:01.272Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-30T23:03:14.575Z"); return t}()), - // IsEnabled: to.Ptr(false), - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-30T23:03:14.906Z"); return t}()), - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // URI: to.Ptr(""), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listWebhooksByAutomationAccount.json -func ExampleWebhookClient_NewListByAutomationAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armautomation.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebhookClient().NewListByAutomationAccountPager("rg", "myAutomationAccount33", &armautomation.WebhookClientListByAutomationAccountOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebhookListResult = armautomation.WebhookListResult{ - // Value: []*armautomation.Webhook{ - // { - // Name: to.Ptr("TestWebhook"), - // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook"), - // Properties: &armautomation.WebhookProperties{ - // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T22:18:14.665Z"); return t}()), - // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-03-29T22:18:13.700Z"); return t}()), - // IsEnabled: to.Ptr(true), - // LastModifiedBy: to.Ptr(""), - // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-29T22:18:14.665Z"); return t}()), - // Runbook: &armautomation.RunbookAssociationProperty{ - // Name: to.Ptr("TestRunbook"), - // }, - // }, - // }}, - // } - } -}