armautomation

package module
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 17 Imported by: 17

README

Azure Automation Module for Go

PkgGoDev

The armautomation module provides operations for working with Azure Automation.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Automation module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Automation. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Automation module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armautomation.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armautomation.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewHybridRunbookWorkerGroupClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Automation label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account added in v0.3.0

type Account struct {
	// Gets or sets the etag of the resource.
	Etag *string

	// Identity for the resource.
	Identity *Identity

	// The Azure Region where the resource lives
	Location *string

	// Gets or sets the automation account properties.
	Properties *AccountProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Resource system metadata.
	SystemData *SystemData

	// READ-ONLY; The type of the resource.
	Type *string
}

Account - Definition of the automation account type.

func (Account) MarshalJSON added in v0.3.0

func (a Account) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Account.

func (*Account) UnmarshalJSON added in v0.7.0

func (a *Account) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Account.

type AccountClient added in v0.3.0

type AccountClient struct {
	// contains filtered or unexported fields
}

AccountClient contains the methods for the AutomationAccount group. Don't use this type directly, use NewAccountClient() instead.

func NewAccountClient added in v0.3.0

func NewAccountClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AccountClient, error)

NewAccountClient creates a new instance of AccountClient 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 (*AccountClient) CreateOrUpdate added in v0.3.0

func (client *AccountClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountCreateOrUpdateParameters, options *AccountClientCreateOrUpdateOptions) (AccountClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create or update automation account. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • parameters - Parameters supplied to the create or update automation account.
  • options - AccountClientCreateOrUpdateOptions contains the optional parameters for the AccountClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*AccountClient) Delete added in v0.3.0

func (client *AccountClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, options *AccountClientDeleteOptions) (AccountClientDeleteResponse, error)

Delete - Delete an automation account. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-22

  • 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.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*AccountClient) Get added in v0.3.0

func (client *AccountClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, options *AccountClientGetOptions) (AccountClientGetResponse, error)

Get - Get information about an Automation Account. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-22

  • 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.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*AccountClient) NewListByResourceGroupPager added in v0.5.0

func (client *AccountClient) NewListByResourceGroupPager(resourceGroupName string, options *AccountClientListByResourceGroupOptions) *runtime.Pager[AccountClientListByResourceGroupResponse]

NewListByResourceGroupPager - Retrieve a list of accounts within a given resource group.

Generated from API version 2021-06-22

  • resourceGroupName - Name of an Azure Resource group.
  • options - AccountClientListByResourceGroupOptions contains the optional parameters for the AccountClient.NewListByResourceGroupPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*AccountClient) NewListPager added in v0.5.0

NewListPager - Retrieve a list of accounts within a given subscription.

Generated from API version 2021-06-22

  • options - AccountClientListOptions contains the optional parameters for the AccountClient.NewListPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*AccountClient) Update added in v0.3.0

func (client *AccountClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountUpdateParameters, options *AccountClientUpdateOptions) (AccountClientUpdateResponse, error)

Update - Update an automation account. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • parameters - Parameters supplied to the update automation account.
  • options - AccountClientUpdateOptions contains the optional parameters for the AccountClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

type AccountClientCreateOrUpdateOptions added in v0.3.0

type AccountClientCreateOrUpdateOptions struct {
}

AccountClientCreateOrUpdateOptions contains the optional parameters for the AccountClient.CreateOrUpdate method.

type AccountClientCreateOrUpdateResponse added in v0.3.0

type AccountClientCreateOrUpdateResponse struct {
	// Definition of the automation account type.
	Account
}

AccountClientCreateOrUpdateResponse contains the response from method AccountClient.CreateOrUpdate.

type AccountClientDeleteOptions added in v0.3.0

type AccountClientDeleteOptions struct {
}

AccountClientDeleteOptions contains the optional parameters for the AccountClient.Delete method.

type AccountClientDeleteResponse added in v0.3.0

type AccountClientDeleteResponse struct {
}

AccountClientDeleteResponse contains the response from method AccountClient.Delete.

type AccountClientGetOptions added in v0.3.0

type AccountClientGetOptions struct {
}

AccountClientGetOptions contains the optional parameters for the AccountClient.Get method.

type AccountClientGetResponse added in v0.3.0

type AccountClientGetResponse struct {
	// Definition of the automation account type.
	Account
}

AccountClientGetResponse contains the response from method AccountClient.Get.

type AccountClientListByResourceGroupOptions added in v0.3.0

type AccountClientListByResourceGroupOptions struct {
}

AccountClientListByResourceGroupOptions contains the optional parameters for the AccountClient.NewListByResourceGroupPager method.

type AccountClientListByResourceGroupResponse added in v0.3.0

type AccountClientListByResourceGroupResponse struct {
	// The response model for the list account operation.
	AccountListResult
}

AccountClientListByResourceGroupResponse contains the response from method AccountClient.NewListByResourceGroupPager.

type AccountClientListOptions added in v0.3.0

type AccountClientListOptions struct {
}

AccountClientListOptions contains the optional parameters for the AccountClient.NewListPager method.

type AccountClientListResponse added in v0.3.0

type AccountClientListResponse struct {
	// The response model for the list account operation.
	AccountListResult
}

AccountClientListResponse contains the response from method AccountClient.NewListPager.

type AccountClientUpdateOptions added in v0.3.0

type AccountClientUpdateOptions struct {
}

AccountClientUpdateOptions contains the optional parameters for the AccountClient.Update method.

type AccountClientUpdateResponse added in v0.3.0

type AccountClientUpdateResponse struct {
	// Definition of the automation account type.
	Account
}

AccountClientUpdateResponse contains the response from method AccountClient.Update.

type AccountCreateOrUpdateParameters added in v0.3.0

type AccountCreateOrUpdateParameters struct {
	// Sets the identity property for automation account
	Identity *Identity

	// Gets or sets the location of the resource.
	Location *string

	// Gets or sets name of the resource.
	Name *string

	// Gets or sets account create or update properties.
	Properties *AccountCreateOrUpdateProperties

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

AccountCreateOrUpdateParameters - The parameters supplied to the create or update automation account operation.

func (AccountCreateOrUpdateParameters) MarshalJSON added in v0.3.0

func (a AccountCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AccountCreateOrUpdateParameters.

func (*AccountCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (a *AccountCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccountCreateOrUpdateParameters.

type AccountCreateOrUpdateProperties added in v0.3.0

type AccountCreateOrUpdateProperties struct {
	// Indicates whether requests using non-AAD authentication are blocked
	DisableLocalAuth *bool

	// Set the encryption properties for the automation account
	Encryption *EncryptionProperties

	// Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet
	PublicNetworkAccess *bool

	// Gets or sets account SKU.
	SKU *SKU
}

AccountCreateOrUpdateProperties - The parameters supplied to the create or update account properties.

func (AccountCreateOrUpdateProperties) MarshalJSON added in v0.7.0

func (a AccountCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AccountCreateOrUpdateProperties.

func (*AccountCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

func (a *AccountCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccountCreateOrUpdateProperties.

type AccountListResult added in v0.3.0

type AccountListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets list of accounts.
	Value []*Account
}

AccountListResult - The response model for the list account operation.

func (AccountListResult) MarshalJSON added in v0.3.0

func (a AccountListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AccountListResult.

func (*AccountListResult) UnmarshalJSON added in v0.7.0

func (a *AccountListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccountListResult.

type AccountProperties added in v0.3.0

type AccountProperties struct {
	// URL of automation hybrid service which is used for hybrid worker on-boarding.
	AutomationHybridServiceURL *string

	// Gets or sets the description.
	Description *string

	// Indicates whether requests using non-AAD authentication are blocked
	DisableLocalAuth *bool

	// Encryption properties for the automation account
	Encryption *EncryptionProperties

	// Gets or sets the last modified by.
	LastModifiedBy *string

	// List of Automation operations supported by the Automation resource provider.
	PrivateEndpointConnections []*PrivateEndpointConnection

	// Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet
	PublicNetworkAccess *bool

	// Gets or sets the SKU of account.
	SKU *SKU

	// READ-ONLY; Gets the creation time.
	CreationTime *time.Time

	// READ-ONLY; Gets the last modified time.
	LastModifiedTime *time.Time

	// READ-ONLY; Gets status of account.
	State *AutomationAccountState
}

AccountProperties - Definition of the account property.

func (AccountProperties) MarshalJSON added in v0.3.0

func (a AccountProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AccountProperties.

func (*AccountProperties) UnmarshalJSON added in v0.3.0

func (a *AccountProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccountProperties.

type AccountUpdateParameters added in v0.3.0

type AccountUpdateParameters struct {
	// Sets the identity property for automation account
	Identity *Identity

	// Gets or sets the location of the resource.
	Location *string

	// Gets or sets the name of the resource.
	Name *string

	// Gets or sets account update properties.
	Properties *AccountUpdateProperties

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

AccountUpdateParameters - The parameters supplied to the update automation account operation.

func (AccountUpdateParameters) MarshalJSON added in v0.3.0

func (a AccountUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AccountUpdateParameters.

func (*AccountUpdateParameters) UnmarshalJSON added in v0.7.0

func (a *AccountUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccountUpdateParameters.

type AccountUpdateProperties added in v0.3.0

type AccountUpdateProperties struct {
	// Indicates whether requests using non-AAD authentication are blocked
	DisableLocalAuth *bool

	// Set the encryption properties for the automation account
	Encryption *EncryptionProperties

	// Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet
	PublicNetworkAccess *bool

	// Gets or sets account SKU.
	SKU *SKU
}

AccountUpdateProperties - The parameters supplied to the update account properties.

func (AccountUpdateProperties) MarshalJSON added in v0.7.0

func (a AccountUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AccountUpdateProperties.

func (*AccountUpdateProperties) UnmarshalJSON added in v0.7.0

func (a *AccountUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccountUpdateProperties.

type Activity

type Activity struct {
	// Gets or sets the id of the resource.
	ID *string

	// Gets or sets the properties of the activity.
	Properties *ActivityProperties

	// READ-ONLY; Gets the name of the activity.
	Name *string
}

Activity - Definition of the activity.

func (Activity) MarshalJSON added in v0.7.0

func (a Activity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Activity.

func (*Activity) UnmarshalJSON added in v0.7.0

func (a *Activity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Activity.

type ActivityClient

type ActivityClient struct {
	// contains filtered or unexported fields
}

ActivityClient contains the methods for the Activity group. Don't use this type directly, use NewActivityClient() instead.

func NewActivityClient

func NewActivityClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ActivityClient, error)

NewActivityClient creates a new instance of ActivityClient 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 (*ActivityClient) Get

func (client *ActivityClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, activityName string, options *ActivityClientGetOptions) (ActivityClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • moduleName - The name of module.
  • activityName - The name of activity.
  • options - ActivityClientGetOptions contains the optional parameters for the ActivityClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 				}},
	// 		}},
	// 	},
	// }
}
Output:

func (*ActivityClient) NewListByModulePager added in v0.5.0

func (client *ActivityClient) NewListByModulePager(resourceGroupName string, automationAccountName string, moduleName string, options *ActivityClientListByModuleOptions) *runtime.Pager[ActivityClientListByModuleResponse]

NewListByModulePager - Retrieve a list of activities in the module identified by module name.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • moduleName - The name of module.
  • options - ActivityClientListByModuleOptions contains the optional parameters for the ActivityClient.NewListByModulePager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
		// 			},
		// 	}},
		// }
	}
}
Output:

type ActivityClientGetOptions added in v0.3.0

type ActivityClientGetOptions struct {
}

ActivityClientGetOptions contains the optional parameters for the ActivityClient.Get method.

type ActivityClientGetResponse added in v0.3.0

type ActivityClientGetResponse struct {
	// Definition of the activity.
	Activity
}

ActivityClientGetResponse contains the response from method ActivityClient.Get.

type ActivityClientListByModuleOptions added in v0.3.0

type ActivityClientListByModuleOptions struct {
}

ActivityClientListByModuleOptions contains the optional parameters for the ActivityClient.NewListByModulePager method.

type ActivityClientListByModuleResponse added in v0.3.0

type ActivityClientListByModuleResponse struct {
	// The response model for the list activity operation.
	ActivityListResult
}

ActivityClientListByModuleResponse contains the response from method ActivityClient.NewListByModulePager.

type ActivityListResult

type ActivityListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of activities.
	Value []*Activity
}

ActivityListResult - The response model for the list activity operation.

func (ActivityListResult) MarshalJSON

func (a ActivityListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ActivityListResult.

func (*ActivityListResult) UnmarshalJSON added in v0.7.0

func (a *ActivityListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ActivityListResult.

type ActivityOutputType

type ActivityOutputType struct {
	// Gets or sets the name of the activity output type.
	Name *string

	// Gets or sets the type of the activity output type.
	Type *string
}

ActivityOutputType - Definition of the activity output type.

func (ActivityOutputType) MarshalJSON added in v0.7.0

func (a ActivityOutputType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ActivityOutputType.

func (*ActivityOutputType) UnmarshalJSON added in v0.7.0

func (a *ActivityOutputType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ActivityOutputType.

type ActivityParameter

type ActivityParameter struct {
	// Gets or sets the description of the activity parameter.
	Description *string

	// Gets or sets a Boolean value that indicates true if the parameter is dynamic.
	IsDynamic *bool

	// Gets or sets a Boolean value that indicates true if the parameter is required. If the value is false, the parameter is
	// optional.
	IsMandatory *bool

	// Gets or sets the name of the activity parameter.
	Name *string

	// Gets or sets the position of the activity parameter.
	Position *int64

	// Gets or sets the type of the activity parameter.
	Type *string

	// Gets or sets the validation set of activity parameter.
	ValidationSet []*ActivityParameterValidationSet

	// Gets or sets a Boolean value that indicates true if the parameter can take values from the incoming pipeline objects. This
	// setting is used if the cmdlet must access the complete input object. false
	// indicates that the parameter cannot take values from the complete input object.
	ValueFromPipeline *bool

	// Gets or sets a Boolean value that indicates true if the parameter can be filled from a property of the incoming pipeline
	// object that has the same name as this parameter. false indicates that the
	// parameter cannot be filled from the incoming pipeline object property with the same name.
	ValueFromPipelineByPropertyName *bool

	// Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments
	// that are associated with this parameter in the form of an array. false if the
	// cmdlet parameter does not accept all the remaining argument values.
	ValueFromRemainingArguments *bool
}

ActivityParameter - Definition of the activity parameter.

func (ActivityParameter) MarshalJSON

func (a ActivityParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ActivityParameter.

func (*ActivityParameter) UnmarshalJSON added in v0.7.0

func (a *ActivityParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ActivityParameter.

type ActivityParameterSet

type ActivityParameterSet struct {
	// Gets or sets the name of the activity parameter set.
	Name *string

	// Gets or sets the parameters of the activity parameter set.
	Parameters []*ActivityParameter
}

ActivityParameterSet - Definition of the activity parameter set.

func (ActivityParameterSet) MarshalJSON

func (a ActivityParameterSet) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ActivityParameterSet.

func (*ActivityParameterSet) UnmarshalJSON added in v0.7.0

func (a *ActivityParameterSet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ActivityParameterSet.

type ActivityParameterValidationSet

type ActivityParameterValidationSet struct {
	// Gets or sets the name of the activity parameter validation set member.
	MemberValue *string
}

ActivityParameterValidationSet - Definition of the activity parameter validation set.

func (ActivityParameterValidationSet) MarshalJSON added in v0.7.0

func (a ActivityParameterValidationSet) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ActivityParameterValidationSet.

func (*ActivityParameterValidationSet) UnmarshalJSON added in v0.7.0

func (a *ActivityParameterValidationSet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ActivityParameterValidationSet.

type ActivityProperties

type ActivityProperties struct {
	// Gets or sets the creation time.
	CreationTime *time.Time

	// Gets or sets the user name of the activity.
	Definition *string

	// Gets or sets the description.
	Description *string

	// Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// Gets or sets the output types of the activity.
	OutputTypes []*ActivityOutputType

	// Gets or sets the parameter sets of the activity.
	ParameterSets []*ActivityParameterSet
}

ActivityProperties - Properties of the activity.

func (ActivityProperties) MarshalJSON

func (a ActivityProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ActivityProperties.

func (*ActivityProperties) UnmarshalJSON

func (a *ActivityProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ActivityProperties.

type AdvancedSchedule

type AdvancedSchedule struct {
	// Days of the month that the job should execute on. Must be between 1 and 31.
	MonthDays []*int32

	// Occurrences of days within a month.
	MonthlyOccurrences []*AdvancedScheduleMonthlyOccurrence

	// Days of the week that the job should execute on.
	WeekDays []*string
}

AdvancedSchedule - The properties of the create Advanced Schedule.

func (AdvancedSchedule) MarshalJSON

func (a AdvancedSchedule) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AdvancedSchedule.

func (*AdvancedSchedule) UnmarshalJSON added in v0.7.0

func (a *AdvancedSchedule) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AdvancedSchedule.

type AdvancedScheduleMonthlyOccurrence

type AdvancedScheduleMonthlyOccurrence struct {
	// Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
	Day *ScheduleDay

	// Occurrence of the week within the month. Must be between 1 and 5
	Occurrence *int32
}

AdvancedScheduleMonthlyOccurrence - The properties of the create advanced schedule monthly occurrence.

func (AdvancedScheduleMonthlyOccurrence) MarshalJSON added in v0.7.0

func (a AdvancedScheduleMonthlyOccurrence) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AdvancedScheduleMonthlyOccurrence.

func (*AdvancedScheduleMonthlyOccurrence) UnmarshalJSON added in v0.7.0

func (a *AdvancedScheduleMonthlyOccurrence) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AdvancedScheduleMonthlyOccurrence.

type AgentRegistration

type AgentRegistration struct {
	// Gets or sets the dsc meta configuration.
	DscMetaConfiguration *string

	// Gets or sets the dsc server endpoint.
	Endpoint *string

	// Gets or sets the id.
	ID *string

	// Gets or sets the agent registration keys.
	Keys *AgentRegistrationKeys
}

AgentRegistration - Definition of the agent registration information type.

func (AgentRegistration) MarshalJSON added in v0.7.0

func (a AgentRegistration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AgentRegistration.

func (*AgentRegistration) UnmarshalJSON added in v0.7.0

func (a *AgentRegistration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AgentRegistration.

type AgentRegistrationInformationClient

type AgentRegistrationInformationClient struct {
	// contains filtered or unexported fields
}

AgentRegistrationInformationClient contains the methods for the AgentRegistrationInformation group. Don't use this type directly, use NewAgentRegistrationInformationClient() instead.

func NewAgentRegistrationInformationClient

func NewAgentRegistrationInformationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AgentRegistrationInformationClient, error)

NewAgentRegistrationInformationClient creates a new instance of AgentRegistrationInformationClient 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 (*AgentRegistrationInformationClient) Get

Get - Retrieve the automation agent registration information. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - AgentRegistrationInformationClientGetOptions contains the optional parameters for the AgentRegistrationInformationClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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=="),
	// 	},
	// }
}
Output:

func (*AgentRegistrationInformationClient) RegenerateKey

RegenerateKey - Regenerate a primary or secondary agent registration key If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • parameters - The name of the agent registration key to be regenerated
  • options - AgentRegistrationInformationClientRegenerateKeyOptions contains the optional parameters for the AgentRegistrationInformationClient.RegenerateKey method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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=="),
	// 	},
	// }
}
Output:

type AgentRegistrationInformationClientGetOptions added in v0.3.0

type AgentRegistrationInformationClientGetOptions struct {
}

AgentRegistrationInformationClientGetOptions contains the optional parameters for the AgentRegistrationInformationClient.Get method.

type AgentRegistrationInformationClientGetResponse added in v0.3.0

type AgentRegistrationInformationClientGetResponse struct {
	// Definition of the agent registration information type.
	AgentRegistration
}

AgentRegistrationInformationClientGetResponse contains the response from method AgentRegistrationInformationClient.Get.

type AgentRegistrationInformationClientRegenerateKeyOptions added in v0.3.0

type AgentRegistrationInformationClientRegenerateKeyOptions struct {
}

AgentRegistrationInformationClientRegenerateKeyOptions contains the optional parameters for the AgentRegistrationInformationClient.RegenerateKey method.

type AgentRegistrationInformationClientRegenerateKeyResponse added in v0.3.0

type AgentRegistrationInformationClientRegenerateKeyResponse struct {
	// Definition of the agent registration information type.
	AgentRegistration
}

AgentRegistrationInformationClientRegenerateKeyResponse contains the response from method AgentRegistrationInformationClient.RegenerateKey.

type AgentRegistrationKeyName

type AgentRegistrationKeyName string

AgentRegistrationKeyName - Gets or sets the agent registration key name - primary or secondary.

const (
	AgentRegistrationKeyNamePrimary   AgentRegistrationKeyName = "primary"
	AgentRegistrationKeyNameSecondary AgentRegistrationKeyName = "secondary"
)

func PossibleAgentRegistrationKeyNameValues

func PossibleAgentRegistrationKeyNameValues() []AgentRegistrationKeyName

PossibleAgentRegistrationKeyNameValues returns the possible values for the AgentRegistrationKeyName const type.

type AgentRegistrationKeys

type AgentRegistrationKeys struct {
	// Gets or sets the primary key.
	Primary *string

	// Gets or sets the secondary key.
	Secondary *string
}

AgentRegistrationKeys - Definition of the agent registration keys.

func (AgentRegistrationKeys) MarshalJSON added in v0.7.0

func (a AgentRegistrationKeys) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AgentRegistrationKeys.

func (*AgentRegistrationKeys) UnmarshalJSON added in v0.7.0

func (a *AgentRegistrationKeys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AgentRegistrationKeys.

type AgentRegistrationRegenerateKeyParameter

type AgentRegistrationRegenerateKeyParameter struct {
	// REQUIRED; Gets or sets the agent registration key name - primary or secondary.
	KeyName *AgentRegistrationKeyName
}

AgentRegistrationRegenerateKeyParameter - The parameters supplied to the regenerate keys operation.

func (AgentRegistrationRegenerateKeyParameter) MarshalJSON added in v0.7.0

func (a AgentRegistrationRegenerateKeyParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AgentRegistrationRegenerateKeyParameter.

func (*AgentRegistrationRegenerateKeyParameter) UnmarshalJSON added in v0.7.0

func (a *AgentRegistrationRegenerateKeyParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AgentRegistrationRegenerateKeyParameter.

type AutomationAccountState

type AutomationAccountState string

AutomationAccountState - Gets status of account.

const (
	AutomationAccountStateOk          AutomationAccountState = "Ok"
	AutomationAccountStateSuspended   AutomationAccountState = "Suspended"
	AutomationAccountStateUnavailable AutomationAccountState = "Unavailable"
)

func PossibleAutomationAccountStateValues

func PossibleAutomationAccountStateValues() []AutomationAccountState

PossibleAutomationAccountStateValues returns the possible values for the AutomationAccountState const type.

type AutomationKeyName

type AutomationKeyName string

AutomationKeyName - Automation key name.

const (
	AutomationKeyNamePrimary   AutomationKeyName = "Primary"
	AutomationKeyNameSecondary AutomationKeyName = "Secondary"
)

func PossibleAutomationKeyNameValues

func PossibleAutomationKeyNameValues() []AutomationKeyName

PossibleAutomationKeyNameValues returns the possible values for the AutomationKeyName const type.

type AutomationKeyPermissions

type AutomationKeyPermissions string

AutomationKeyPermissions - Automation key permissions.

const (
	AutomationKeyPermissionsFull AutomationKeyPermissions = "Full"
	AutomationKeyPermissionsRead AutomationKeyPermissions = "Read"
)

func PossibleAutomationKeyPermissionsValues

func PossibleAutomationKeyPermissionsValues() []AutomationKeyPermissions

PossibleAutomationKeyPermissionsValues returns the possible values for the AutomationKeyPermissions const type.

type AzureQueryProperties

type AzureQueryProperties struct {
	// List of locations to scope the query to.
	Locations []*string

	// List of Subscription or Resource Group ARM Ids.
	Scope []*string

	// Tag settings for the VM.
	TagSettings *TagSettingsProperties
}

AzureQueryProperties - Azure query for the update configuration.

func (AzureQueryProperties) MarshalJSON

func (a AzureQueryProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureQueryProperties.

func (*AzureQueryProperties) UnmarshalJSON added in v0.7.0

func (a *AzureQueryProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureQueryProperties.

type Certificate

type Certificate struct {
	// Gets or sets the properties of the certificate.
	Properties *CertificateProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Certificate - Definition of the certificate.

func (Certificate) MarshalJSON

func (c Certificate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Certificate.

func (*Certificate) UnmarshalJSON added in v0.7.0

func (c *Certificate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Certificate.

type CertificateClient

type CertificateClient struct {
	// contains filtered or unexported fields
}

CertificateClient contains the methods for the Certificate group. Don't use this type directly, use NewCertificateClient() instead.

func NewCertificateClient

func NewCertificateClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificateClient, error)

NewCertificateClient creates a new instance of CertificateClient 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 (*CertificateClient) CreateOrUpdate

func (client *CertificateClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateCreateOrUpdateParameters, options *CertificateClientCreateOrUpdateOptions) (CertificateClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create a certificate. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • 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.
  • parameters - The parameters supplied to the create or update certificate operation.
  • options - CertificateClientCreateOrUpdateOptions contains the optional parameters for the CertificateClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

func (*CertificateClient) Delete

func (client *CertificateClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, options *CertificateClientDeleteOptions) (CertificateClientDeleteResponse, error)

Delete - Delete the certificate. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • certificateName - The name of certificate.
  • options - CertificateClientDeleteOptions contains the optional parameters for the CertificateClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*CertificateClient) Get

func (client *CertificateClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, options *CertificateClientGetOptions) (CertificateClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • certificateName - The name of certificate.
  • options - CertificateClientGetOptions contains the optional parameters for the CertificateClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

func (*CertificateClient) NewListByAutomationAccountPager added in v0.5.0

func (client *CertificateClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *CertificateClientListByAutomationAccountOptions) *runtime.Pager[CertificateClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of certificates.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - CertificateClientListByAutomationAccountOptions contains the optional parameters for the CertificateClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*CertificateClient) Update

func (client *CertificateClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateUpdateParameters, options *CertificateClientUpdateOptions) (CertificateClientUpdateResponse, error)

Update - Update a certificate. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • certificateName - The parameters supplied to the update certificate operation.
  • parameters - The parameters supplied to the update certificate operation.
  • options - CertificateClientUpdateOptions contains the optional parameters for the CertificateClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

type CertificateClientCreateOrUpdateOptions added in v0.3.0

type CertificateClientCreateOrUpdateOptions struct {
}

CertificateClientCreateOrUpdateOptions contains the optional parameters for the CertificateClient.CreateOrUpdate method.

type CertificateClientCreateOrUpdateResponse added in v0.3.0

type CertificateClientCreateOrUpdateResponse struct {
	// Definition of the certificate.
	Certificate
}

CertificateClientCreateOrUpdateResponse contains the response from method CertificateClient.CreateOrUpdate.

type CertificateClientDeleteOptions added in v0.3.0

type CertificateClientDeleteOptions struct {
}

CertificateClientDeleteOptions contains the optional parameters for the CertificateClient.Delete method.

type CertificateClientDeleteResponse added in v0.3.0

type CertificateClientDeleteResponse struct {
}

CertificateClientDeleteResponse contains the response from method CertificateClient.Delete.

type CertificateClientGetOptions added in v0.3.0

type CertificateClientGetOptions struct {
}

CertificateClientGetOptions contains the optional parameters for the CertificateClient.Get method.

type CertificateClientGetResponse added in v0.3.0

type CertificateClientGetResponse struct {
	// Definition of the certificate.
	Certificate
}

CertificateClientGetResponse contains the response from method CertificateClient.Get.

type CertificateClientListByAutomationAccountOptions added in v0.3.0

type CertificateClientListByAutomationAccountOptions struct {
}

CertificateClientListByAutomationAccountOptions contains the optional parameters for the CertificateClient.NewListByAutomationAccountPager method.

type CertificateClientListByAutomationAccountResponse added in v0.3.0

type CertificateClientListByAutomationAccountResponse struct {
	// The response model for the list certificate operation.
	CertificateListResult
}

CertificateClientListByAutomationAccountResponse contains the response from method CertificateClient.NewListByAutomationAccountPager.

type CertificateClientUpdateOptions added in v0.3.0

type CertificateClientUpdateOptions struct {
}

CertificateClientUpdateOptions contains the optional parameters for the CertificateClient.Update method.

type CertificateClientUpdateResponse added in v0.3.0

type CertificateClientUpdateResponse struct {
	// Definition of the certificate.
	Certificate
}

CertificateClientUpdateResponse contains the response from method CertificateClient.Update.

type CertificateCreateOrUpdateParameters

type CertificateCreateOrUpdateParameters struct {
	// REQUIRED; Gets or sets the name of the certificate.
	Name *string

	// REQUIRED; Gets or sets the properties of the certificate.
	Properties *CertificateCreateOrUpdateProperties
}

CertificateCreateOrUpdateParameters - The parameters supplied to the create or update or replace certificate operation.

func (CertificateCreateOrUpdateParameters) MarshalJSON added in v0.7.0

func (c CertificateCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CertificateCreateOrUpdateParameters.

func (*CertificateCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (c *CertificateCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateCreateOrUpdateParameters.

type CertificateCreateOrUpdateProperties

type CertificateCreateOrUpdateProperties struct {
	// REQUIRED; Gets or sets the base64 encoded value of the certificate.
	Base64Value *string

	// Gets or sets the description of the certificate.
	Description *string

	// Gets or sets the is exportable flag of the certificate.
	IsExportable *bool

	// Gets or sets the thumbprint of the certificate.
	Thumbprint *string
}

CertificateCreateOrUpdateProperties - The properties of the create certificate operation.

func (CertificateCreateOrUpdateProperties) MarshalJSON added in v0.7.0

func (c CertificateCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CertificateCreateOrUpdateProperties.

func (*CertificateCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

func (c *CertificateCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateCreateOrUpdateProperties.

type CertificateListResult

type CertificateListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of certificates.
	Value []*Certificate
}

CertificateListResult - The response model for the list certificate operation.

func (CertificateListResult) MarshalJSON

func (c CertificateListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CertificateListResult.

func (*CertificateListResult) UnmarshalJSON added in v0.7.0

func (c *CertificateListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateListResult.

type CertificateProperties

type CertificateProperties struct {
	// Gets or sets the description.
	Description *string

	// READ-ONLY; Gets the creation time.
	CreationTime *time.Time

	// READ-ONLY; Gets the expiry time of the certificate.
	ExpiryTime *time.Time

	// READ-ONLY; Gets the is exportable flag of the certificate.
	IsExportable *bool

	// READ-ONLY; Gets the last modified time.
	LastModifiedTime *time.Time

	// READ-ONLY; Gets the thumbprint of the certificate.
	Thumbprint *string
}

CertificateProperties - Properties of the certificate.

func (CertificateProperties) MarshalJSON

func (c CertificateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CertificateProperties.

func (*CertificateProperties) UnmarshalJSON

func (c *CertificateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateProperties.

type CertificateUpdateParameters

type CertificateUpdateParameters struct {
	// Gets or sets the name of the certificate.
	Name *string

	// Gets or sets the properties of the certificate.
	Properties *CertificateUpdateProperties
}

CertificateUpdateParameters - The parameters supplied to the update certificate operation.

func (CertificateUpdateParameters) MarshalJSON

func (c CertificateUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CertificateUpdateParameters.

func (*CertificateUpdateParameters) UnmarshalJSON added in v0.7.0

func (c *CertificateUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateUpdateParameters.

type CertificateUpdateProperties

type CertificateUpdateProperties struct {
	// Gets or sets the description of the certificate.
	Description *string
}

CertificateUpdateProperties - The properties of the update certificate operation

func (CertificateUpdateProperties) MarshalJSON added in v0.7.0

func (c CertificateUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CertificateUpdateProperties.

func (*CertificateUpdateProperties) UnmarshalJSON added in v0.7.0

func (c *CertificateUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CertificateUpdateProperties.

type Client added in v0.3.0

type Client struct {
	// contains filtered or unexported fields
}

Client contains the methods for the AutomationClient group. Don't use this type directly, use NewClient() instead.

func NewClient added in v0.3.0

func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error)

NewClient creates a new instance of Client 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 (*Client) ConvertGraphRunbookContent added in v0.3.0

func (client *Client) ConvertGraphRunbookContent(ctx context.Context, resourceGroupName string, automationAccountName string, parameters GraphicalRunbookContent, options *ClientConvertGraphRunbookContentOptions) (ClientConvertGraphRunbookContentResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • parameters - Input data describing the graphical runbook.
  • options - ClientConvertGraphRunbookContentOptions contains the optional parameters for the Client.ConvertGraphRunbookContent method.
Example (GetGraphicalRawRunbookContentFromGraphicalRunbookJsonObject)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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("<GraphRunbookJSON>"),
	}, 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("<GraphRunbookJSON>"),
	// 	RawContent: &armautomation.RawGraphicalRunbookContent{
	// 		RunbookDefinition: to.Ptr("AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR...."),
	// 		RunbookType: to.Ptr(armautomation.GraphRunbookTypeGraphPowerShell),
	// 		SchemaVersion: to.Ptr("1.10"),
	// 	},
	// }
}
Output:

Example (GetGraphicalRunbookContentFromRawContent)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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("<GraphRunbookJSON>"),
	// 	RawContent: &armautomation.RawGraphicalRunbookContent{
	// 		RunbookDefinition: to.Ptr("AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR...."),
	// 		RunbookType: to.Ptr(armautomation.GraphRunbookTypeGraphPowerShell),
	// 		SchemaVersion: to.Ptr("1.10"),
	// 	},
	// }
}
Output:

type ClientConvertGraphRunbookContentOptions added in v0.3.0

type ClientConvertGraphRunbookContentOptions struct {
}

ClientConvertGraphRunbookContentOptions contains the optional parameters for the Client.ConvertGraphRunbookContent method.

type ClientConvertGraphRunbookContentResponse added in v0.3.0

type ClientConvertGraphRunbookContentResponse struct {
	// Graphical Runbook Content
	GraphicalRunbookContent
}

ClientConvertGraphRunbookContentResponse contains the response from method Client.ConvertGraphRunbookContent.

type ClientFactory added in v0.8.0

type ClientFactory struct {
	// contains filtered or unexported fields
}

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory added in v0.8.0

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • 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 (*ClientFactory) NewAccountClient added in v0.8.0

func (c *ClientFactory) NewAccountClient() *AccountClient

NewAccountClient creates a new instance of AccountClient.

func (*ClientFactory) NewActivityClient added in v0.8.0

func (c *ClientFactory) NewActivityClient() *ActivityClient

NewActivityClient creates a new instance of ActivityClient.

func (*ClientFactory) NewAgentRegistrationInformationClient added in v0.8.0

func (c *ClientFactory) NewAgentRegistrationInformationClient() *AgentRegistrationInformationClient

NewAgentRegistrationInformationClient creates a new instance of AgentRegistrationInformationClient.

func (*ClientFactory) NewCertificateClient added in v0.8.0

func (c *ClientFactory) NewCertificateClient() *CertificateClient

NewCertificateClient creates a new instance of CertificateClient.

func (*ClientFactory) NewClient added in v0.8.0

func (c *ClientFactory) NewClient() *Client

NewClient creates a new instance of Client.

func (*ClientFactory) NewConnectionClient added in v0.8.0

func (c *ClientFactory) NewConnectionClient() *ConnectionClient

NewConnectionClient creates a new instance of ConnectionClient.

func (*ClientFactory) NewConnectionTypeClient added in v0.8.0

func (c *ClientFactory) NewConnectionTypeClient() *ConnectionTypeClient

NewConnectionTypeClient creates a new instance of ConnectionTypeClient.

func (*ClientFactory) NewCredentialClient added in v0.8.0

func (c *ClientFactory) NewCredentialClient() *CredentialClient

NewCredentialClient creates a new instance of CredentialClient.

func (*ClientFactory) NewDeletedAutomationAccountsClient added in v0.8.0

func (c *ClientFactory) NewDeletedAutomationAccountsClient() *DeletedAutomationAccountsClient

NewDeletedAutomationAccountsClient creates a new instance of DeletedAutomationAccountsClient.

func (*ClientFactory) NewDscCompilationJobClient added in v0.8.0

func (c *ClientFactory) NewDscCompilationJobClient() *DscCompilationJobClient

NewDscCompilationJobClient creates a new instance of DscCompilationJobClient.

func (*ClientFactory) NewDscCompilationJobStreamClient added in v0.8.0

func (c *ClientFactory) NewDscCompilationJobStreamClient() *DscCompilationJobStreamClient

NewDscCompilationJobStreamClient creates a new instance of DscCompilationJobStreamClient.

func (*ClientFactory) NewDscConfigurationClient added in v0.8.0

func (c *ClientFactory) NewDscConfigurationClient() *DscConfigurationClient

NewDscConfigurationClient creates a new instance of DscConfigurationClient.

func (*ClientFactory) NewDscNodeClient added in v0.8.0

func (c *ClientFactory) NewDscNodeClient() *DscNodeClient

NewDscNodeClient creates a new instance of DscNodeClient.

func (*ClientFactory) NewDscNodeConfigurationClient added in v0.8.0

func (c *ClientFactory) NewDscNodeConfigurationClient() *DscNodeConfigurationClient

NewDscNodeConfigurationClient creates a new instance of DscNodeConfigurationClient.

func (*ClientFactory) NewFieldsClient added in v0.8.0

func (c *ClientFactory) NewFieldsClient() *FieldsClient

NewFieldsClient creates a new instance of FieldsClient.

func (*ClientFactory) NewHybridRunbookWorkerGroupClient added in v0.8.0

func (c *ClientFactory) NewHybridRunbookWorkerGroupClient() *HybridRunbookWorkerGroupClient

NewHybridRunbookWorkerGroupClient creates a new instance of HybridRunbookWorkerGroupClient.

func (*ClientFactory) NewHybridRunbookWorkersClient added in v0.8.0

func (c *ClientFactory) NewHybridRunbookWorkersClient() *HybridRunbookWorkersClient

NewHybridRunbookWorkersClient creates a new instance of HybridRunbookWorkersClient.

func (*ClientFactory) NewJobClient added in v0.8.0

func (c *ClientFactory) NewJobClient() *JobClient

NewJobClient creates a new instance of JobClient.

func (*ClientFactory) NewJobScheduleClient added in v0.8.0

func (c *ClientFactory) NewJobScheduleClient() *JobScheduleClient

NewJobScheduleClient creates a new instance of JobScheduleClient.

func (*ClientFactory) NewJobStreamClient added in v0.8.0

func (c *ClientFactory) NewJobStreamClient() *JobStreamClient

NewJobStreamClient creates a new instance of JobStreamClient.

func (*ClientFactory) NewKeysClient added in v0.8.0

func (c *ClientFactory) NewKeysClient() *KeysClient

NewKeysClient creates a new instance of KeysClient.

func (*ClientFactory) NewLinkedWorkspaceClient added in v0.8.0

func (c *ClientFactory) NewLinkedWorkspaceClient() *LinkedWorkspaceClient

NewLinkedWorkspaceClient creates a new instance of LinkedWorkspaceClient.

func (*ClientFactory) NewModuleClient added in v0.8.0

func (c *ClientFactory) NewModuleClient() *ModuleClient

NewModuleClient creates a new instance of ModuleClient.

func (*ClientFactory) NewNodeCountInformationClient added in v0.8.0

func (c *ClientFactory) NewNodeCountInformationClient() *NodeCountInformationClient

NewNodeCountInformationClient creates a new instance of NodeCountInformationClient.

func (*ClientFactory) NewNodeReportsClient added in v0.8.0

func (c *ClientFactory) NewNodeReportsClient() *NodeReportsClient

NewNodeReportsClient creates a new instance of NodeReportsClient.

func (*ClientFactory) NewObjectDataTypesClient added in v0.8.0

func (c *ClientFactory) NewObjectDataTypesClient() *ObjectDataTypesClient

NewObjectDataTypesClient creates a new instance of ObjectDataTypesClient.

func (*ClientFactory) NewOperationsClient added in v0.8.0

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewPrivateEndpointConnectionsClient added in v0.8.0

func (c *ClientFactory) NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient.

func (*ClientFactory) NewPrivateLinkResourcesClient added in v0.8.0

func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient

NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient.

func (*ClientFactory) NewPython2PackageClient added in v0.8.0

func (c *ClientFactory) NewPython2PackageClient() *Python2PackageClient

NewPython2PackageClient creates a new instance of Python2PackageClient.

func (*ClientFactory) NewRunbookClient added in v0.8.0

func (c *ClientFactory) NewRunbookClient() *RunbookClient

NewRunbookClient creates a new instance of RunbookClient.

func (*ClientFactory) NewRunbookDraftClient added in v0.8.0

func (c *ClientFactory) NewRunbookDraftClient() *RunbookDraftClient

NewRunbookDraftClient creates a new instance of RunbookDraftClient.

func (*ClientFactory) NewScheduleClient added in v0.8.0

func (c *ClientFactory) NewScheduleClient() *ScheduleClient

NewScheduleClient creates a new instance of ScheduleClient.

func (*ClientFactory) NewSoftwareUpdateConfigurationMachineRunsClient added in v0.8.0

func (c *ClientFactory) NewSoftwareUpdateConfigurationMachineRunsClient() *SoftwareUpdateConfigurationMachineRunsClient

NewSoftwareUpdateConfigurationMachineRunsClient creates a new instance of SoftwareUpdateConfigurationMachineRunsClient.

func (*ClientFactory) NewSoftwareUpdateConfigurationRunsClient added in v0.8.0

func (c *ClientFactory) NewSoftwareUpdateConfigurationRunsClient() *SoftwareUpdateConfigurationRunsClient

NewSoftwareUpdateConfigurationRunsClient creates a new instance of SoftwareUpdateConfigurationRunsClient.

func (*ClientFactory) NewSoftwareUpdateConfigurationsClient added in v0.8.0

func (c *ClientFactory) NewSoftwareUpdateConfigurationsClient() *SoftwareUpdateConfigurationsClient

NewSoftwareUpdateConfigurationsClient creates a new instance of SoftwareUpdateConfigurationsClient.

func (*ClientFactory) NewSourceControlClient added in v0.8.0

func (c *ClientFactory) NewSourceControlClient() *SourceControlClient

NewSourceControlClient creates a new instance of SourceControlClient.

func (*ClientFactory) NewSourceControlSyncJobClient added in v0.8.0

func (c *ClientFactory) NewSourceControlSyncJobClient() *SourceControlSyncJobClient

NewSourceControlSyncJobClient creates a new instance of SourceControlSyncJobClient.

func (*ClientFactory) NewSourceControlSyncJobStreamsClient added in v0.8.0

func (c *ClientFactory) NewSourceControlSyncJobStreamsClient() *SourceControlSyncJobStreamsClient

NewSourceControlSyncJobStreamsClient creates a new instance of SourceControlSyncJobStreamsClient.

func (*ClientFactory) NewStatisticsClient added in v0.8.0

func (c *ClientFactory) NewStatisticsClient() *StatisticsClient

NewStatisticsClient creates a new instance of StatisticsClient.

func (*ClientFactory) NewTestJobClient added in v0.8.0

func (c *ClientFactory) NewTestJobClient() *TestJobClient

NewTestJobClient creates a new instance of TestJobClient.

func (*ClientFactory) NewTestJobStreamsClient added in v0.8.0

func (c *ClientFactory) NewTestJobStreamsClient() *TestJobStreamsClient

NewTestJobStreamsClient creates a new instance of TestJobStreamsClient.

func (*ClientFactory) NewUsagesClient added in v0.8.0

func (c *ClientFactory) NewUsagesClient() *UsagesClient

NewUsagesClient creates a new instance of UsagesClient.

func (*ClientFactory) NewVariableClient added in v0.8.0

func (c *ClientFactory) NewVariableClient() *VariableClient

NewVariableClient creates a new instance of VariableClient.

func (*ClientFactory) NewWatcherClient added in v0.8.0

func (c *ClientFactory) NewWatcherClient() *WatcherClient

NewWatcherClient creates a new instance of WatcherClient.

func (*ClientFactory) NewWebhookClient added in v0.8.0

func (c *ClientFactory) NewWebhookClient() *WebhookClient

NewWebhookClient creates a new instance of WebhookClient.

type ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties

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
}

func (ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties) MarshalJSON added in v0.7.0

MarshalJSON implements the json.Marshaller interface for type ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties.

func (*ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties) UnmarshalJSON added in v0.7.0

UnmarshalJSON implements the json.Unmarshaller interface for type ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties.

type Connection

type Connection struct {
	// Gets or sets the properties of the connection.
	Properties *ConnectionProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Connection - Definition of the connection.

func (Connection) MarshalJSON

func (c Connection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Connection.

func (*Connection) UnmarshalJSON added in v0.7.0

func (c *Connection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Connection.

type ConnectionClient

type ConnectionClient struct {
	// contains filtered or unexported fields
}

ConnectionClient contains the methods for the Connection group. Don't use this type directly, use NewConnectionClient() instead.

func NewConnectionClient

func NewConnectionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConnectionClient, error)

NewConnectionClient creates a new instance of ConnectionClient 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 (*ConnectionClient) CreateOrUpdate

func (client *ConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, parameters ConnectionCreateOrUpdateParameters, options *ConnectionClientCreateOrUpdateOptions) (ConnectionClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create or update a connection. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • 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.
  • parameters - The parameters supplied to the create or update connection operation.
  • options - ConnectionClientCreateOrUpdateOptions contains the optional parameters for the ConnectionClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
	// 	},
	// }
}
Output:

func (*ConnectionClient) Delete

func (client *ConnectionClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, options *ConnectionClientDeleteOptions) (ConnectionClientDeleteResponse, error)

Delete - Delete the connection. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • connectionName - The name of connection.
  • options - ConnectionClientDeleteOptions contains the optional parameters for the ConnectionClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*ConnectionClient) Get

func (client *ConnectionClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, options *ConnectionClientGetOptions) (ConnectionClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • connectionName - The name of connection.
  • options - ConnectionClientGetOptions contains the optional parameters for the ConnectionClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
	// 	},
	// }
}
Output:

func (*ConnectionClient) NewListByAutomationAccountPager added in v0.5.0

func (client *ConnectionClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *ConnectionClientListByAutomationAccountOptions) *runtime.Pager[ConnectionClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of connections.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - ConnectionClientListByAutomationAccountOptions contains the optional parameters for the ConnectionClient.NewListByAutomationAccountPager method.
Example (ListConnectionsByAutomationAccountFirst100)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListConnectionsByAutomationAccountNext100)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*ConnectionClient) Update

func (client *ConnectionClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, parameters ConnectionUpdateParameters, options *ConnectionClientUpdateOptions) (ConnectionClientUpdateResponse, error)

Update - Update a connection. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • connectionName - The parameters supplied to the update a connection operation.
  • parameters - The parameters supplied to the update a connection operation.
  • options - ConnectionClientUpdateOptions contains the optional parameters for the ConnectionClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
	// 	},
	// }
}
Output:

type ConnectionClientCreateOrUpdateOptions added in v0.3.0

type ConnectionClientCreateOrUpdateOptions struct {
}

ConnectionClientCreateOrUpdateOptions contains the optional parameters for the ConnectionClient.CreateOrUpdate method.

type ConnectionClientCreateOrUpdateResponse added in v0.3.0

type ConnectionClientCreateOrUpdateResponse struct {
	// Definition of the connection.
	Connection
}

ConnectionClientCreateOrUpdateResponse contains the response from method ConnectionClient.CreateOrUpdate.

type ConnectionClientDeleteOptions added in v0.3.0

type ConnectionClientDeleteOptions struct {
}

ConnectionClientDeleteOptions contains the optional parameters for the ConnectionClient.Delete method.

type ConnectionClientDeleteResponse added in v0.3.0

type ConnectionClientDeleteResponse struct {
}

ConnectionClientDeleteResponse contains the response from method ConnectionClient.Delete.

type ConnectionClientGetOptions added in v0.3.0

type ConnectionClientGetOptions struct {
}

ConnectionClientGetOptions contains the optional parameters for the ConnectionClient.Get method.

type ConnectionClientGetResponse added in v0.3.0

type ConnectionClientGetResponse struct {
	// Definition of the connection.
	Connection
}

ConnectionClientGetResponse contains the response from method ConnectionClient.Get.

type ConnectionClientListByAutomationAccountOptions added in v0.3.0

type ConnectionClientListByAutomationAccountOptions struct {
}

ConnectionClientListByAutomationAccountOptions contains the optional parameters for the ConnectionClient.NewListByAutomationAccountPager method.

type ConnectionClientListByAutomationAccountResponse added in v0.3.0

type ConnectionClientListByAutomationAccountResponse struct {
	// The response model for the list connection operation.
	ConnectionListResult
}

ConnectionClientListByAutomationAccountResponse contains the response from method ConnectionClient.NewListByAutomationAccountPager.

type ConnectionClientUpdateOptions added in v0.3.0

type ConnectionClientUpdateOptions struct {
}

ConnectionClientUpdateOptions contains the optional parameters for the ConnectionClient.Update method.

type ConnectionClientUpdateResponse added in v0.3.0

type ConnectionClientUpdateResponse struct {
	// Definition of the connection.
	Connection
}

ConnectionClientUpdateResponse contains the response from method ConnectionClient.Update.

type ConnectionCreateOrUpdateParameters

type ConnectionCreateOrUpdateParameters struct {
	// REQUIRED; Gets or sets the name of the connection.
	Name *string

	// REQUIRED; Gets or sets the properties of the connection.
	Properties *ConnectionCreateOrUpdateProperties
}

ConnectionCreateOrUpdateParameters - The parameters supplied to the create or update connection operation.

func (ConnectionCreateOrUpdateParameters) MarshalJSON added in v0.7.0

func (c ConnectionCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionCreateOrUpdateParameters.

func (*ConnectionCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (c *ConnectionCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionCreateOrUpdateParameters.

type ConnectionCreateOrUpdateProperties

type ConnectionCreateOrUpdateProperties struct {
	// REQUIRED; Gets or sets the connectionType of the connection.
	ConnectionType *ConnectionTypeAssociationProperty

	// Gets or sets the description of the connection.
	Description *string

	// Gets or sets the field definition properties of the connection.
	FieldDefinitionValues map[string]*string
}

ConnectionCreateOrUpdateProperties - The properties of the create connection properties

func (ConnectionCreateOrUpdateProperties) MarshalJSON

func (c ConnectionCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionCreateOrUpdateProperties.

func (*ConnectionCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

func (c *ConnectionCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionCreateOrUpdateProperties.

type ConnectionListResult

type ConnectionListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of connection.
	Value []*Connection
}

ConnectionListResult - The response model for the list connection operation.

func (ConnectionListResult) MarshalJSON

func (c ConnectionListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionListResult.

func (*ConnectionListResult) UnmarshalJSON added in v0.7.0

func (c *ConnectionListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionListResult.

type ConnectionProperties

type ConnectionProperties struct {
	// Gets or sets the connectionType of the connection.
	ConnectionType *ConnectionTypeAssociationProperty

	// Gets or sets the description.
	Description *string

	// READ-ONLY; Gets the creation time.
	CreationTime *time.Time

	// READ-ONLY; Gets the field definition values of the connection.
	FieldDefinitionValues map[string]*string

	// READ-ONLY; Gets the last modified time.
	LastModifiedTime *time.Time
}

ConnectionProperties - Definition of the connection properties.

func (ConnectionProperties) MarshalJSON

func (c ConnectionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionProperties.

func (*ConnectionProperties) UnmarshalJSON

func (c *ConnectionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionProperties.

type ConnectionType

type ConnectionType struct {
	// Gets or sets the properties of the connection type.
	Properties *ConnectionTypeProperties

	// READ-ONLY; Gets the id of the resource.
	ID *string

	// READ-ONLY; Gets the name of the connection type.
	Name *string

	// READ-ONLY; Resource type
	Type *string
}

ConnectionType - Definition of the connection type.

func (ConnectionType) MarshalJSON added in v0.7.0

func (c ConnectionType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionType.

func (*ConnectionType) UnmarshalJSON added in v0.7.0

func (c *ConnectionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionType.

type ConnectionTypeAssociationProperty

type ConnectionTypeAssociationProperty struct {
	// Gets or sets the name of the connection type.
	Name *string
}

ConnectionTypeAssociationProperty - The connection type property associated with the entity.

func (ConnectionTypeAssociationProperty) MarshalJSON added in v0.7.0

func (c ConnectionTypeAssociationProperty) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionTypeAssociationProperty.

func (*ConnectionTypeAssociationProperty) UnmarshalJSON added in v0.7.0

func (c *ConnectionTypeAssociationProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionTypeAssociationProperty.

type ConnectionTypeClient

type ConnectionTypeClient struct {
	// contains filtered or unexported fields
}

ConnectionTypeClient contains the methods for the ConnectionType group. Don't use this type directly, use NewConnectionTypeClient() instead.

func NewConnectionTypeClient

func NewConnectionTypeClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConnectionTypeClient, error)

NewConnectionTypeClient creates a new instance of ConnectionTypeClient 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 (*ConnectionTypeClient) CreateOrUpdate

func (client *ConnectionTypeClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string, parameters ConnectionTypeCreateOrUpdateParameters, options *ConnectionTypeClientCreateOrUpdateOptions) (ConnectionTypeClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create a connection type. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • 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.
  • parameters - The parameters supplied to the create or update connection type operation.
  • options - ConnectionTypeClientCreateOrUpdateOptions contains the optional parameters for the ConnectionTypeClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*ConnectionTypeClient) Delete

func (client *ConnectionTypeClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string, options *ConnectionTypeClientDeleteOptions) (ConnectionTypeClientDeleteResponse, error)

Delete - Delete the connection type. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • connectionTypeName - The name of connection type.
  • options - ConnectionTypeClientDeleteOptions contains the optional parameters for the ConnectionTypeClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*ConnectionTypeClient) Get

func (client *ConnectionTypeClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string, options *ConnectionTypeClientGetOptions) (ConnectionTypeClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • connectionTypeName - The name of connection type.
  • options - ConnectionTypeClientGetOptions contains the optional parameters for the ConnectionTypeClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
	// 	},
	// }
}
Output:

func (*ConnectionTypeClient) NewListByAutomationAccountPager added in v0.5.0

func (client *ConnectionTypeClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *ConnectionTypeClientListByAutomationAccountOptions) *runtime.Pager[ConnectionTypeClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of connection types.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - ConnectionTypeClientListByAutomationAccountOptions contains the optional parameters for the ConnectionTypeClient.NewListByAutomationAccountPager method.
Example (GetConnectionTypesFirst100)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (GetConnectionTypesNext100)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
		// 			},
		// 	}},
		// }
	}
}
Output:

type ConnectionTypeClientCreateOrUpdateOptions added in v0.3.0

type ConnectionTypeClientCreateOrUpdateOptions struct {
}

ConnectionTypeClientCreateOrUpdateOptions contains the optional parameters for the ConnectionTypeClient.CreateOrUpdate method.

type ConnectionTypeClientCreateOrUpdateResponse added in v0.3.0

type ConnectionTypeClientCreateOrUpdateResponse struct {
	// Definition of the connection type.
	ConnectionType
}

ConnectionTypeClientCreateOrUpdateResponse contains the response from method ConnectionTypeClient.CreateOrUpdate.

type ConnectionTypeClientDeleteOptions added in v0.3.0

type ConnectionTypeClientDeleteOptions struct {
}

ConnectionTypeClientDeleteOptions contains the optional parameters for the ConnectionTypeClient.Delete method.

type ConnectionTypeClientDeleteResponse added in v0.3.0

type ConnectionTypeClientDeleteResponse struct {
}

ConnectionTypeClientDeleteResponse contains the response from method ConnectionTypeClient.Delete.

type ConnectionTypeClientGetOptions added in v0.3.0

type ConnectionTypeClientGetOptions struct {
}

ConnectionTypeClientGetOptions contains the optional parameters for the ConnectionTypeClient.Get method.

type ConnectionTypeClientGetResponse added in v0.3.0

type ConnectionTypeClientGetResponse struct {
	// Definition of the connection type.
	ConnectionType
}

ConnectionTypeClientGetResponse contains the response from method ConnectionTypeClient.Get.

type ConnectionTypeClientListByAutomationAccountOptions added in v0.3.0

type ConnectionTypeClientListByAutomationAccountOptions struct {
}

ConnectionTypeClientListByAutomationAccountOptions contains the optional parameters for the ConnectionTypeClient.NewListByAutomationAccountPager method.

type ConnectionTypeClientListByAutomationAccountResponse added in v0.3.0

type ConnectionTypeClientListByAutomationAccountResponse struct {
	// The response model for the list connection type operation.
	ConnectionTypeListResult
}

ConnectionTypeClientListByAutomationAccountResponse contains the response from method ConnectionTypeClient.NewListByAutomationAccountPager.

type ConnectionTypeCreateOrUpdateParameters

type ConnectionTypeCreateOrUpdateParameters struct {
	// REQUIRED; Gets or sets the name of the connection type.
	Name *string

	// REQUIRED; Gets or sets the value of the connection type.
	Properties *ConnectionTypeCreateOrUpdateProperties
}

ConnectionTypeCreateOrUpdateParameters - The parameters supplied to the create or update connection type operation.

func (ConnectionTypeCreateOrUpdateParameters) MarshalJSON added in v0.7.0

func (c ConnectionTypeCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionTypeCreateOrUpdateParameters.

func (*ConnectionTypeCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (c *ConnectionTypeCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionTypeCreateOrUpdateParameters.

type ConnectionTypeCreateOrUpdateProperties

type ConnectionTypeCreateOrUpdateProperties struct {
	// REQUIRED; Gets or sets the field definitions of the connection type.
	FieldDefinitions map[string]*FieldDefinition

	// Gets or sets a Boolean value to indicate if the connection type is global.
	IsGlobal *bool
}

ConnectionTypeCreateOrUpdateProperties - The properties of the create connection type.

func (ConnectionTypeCreateOrUpdateProperties) MarshalJSON

func (c ConnectionTypeCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionTypeCreateOrUpdateProperties.

func (*ConnectionTypeCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

func (c *ConnectionTypeCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionTypeCreateOrUpdateProperties.

type ConnectionTypeListResult

type ConnectionTypeListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of connection types.
	Value []*ConnectionType
}

ConnectionTypeListResult - The response model for the list connection type operation.

func (ConnectionTypeListResult) MarshalJSON

func (c ConnectionTypeListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionTypeListResult.

func (*ConnectionTypeListResult) UnmarshalJSON added in v0.7.0

func (c *ConnectionTypeListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionTypeListResult.

type ConnectionTypeProperties

type ConnectionTypeProperties struct {
	// Gets or sets the description.
	Description *string

	// Gets or sets a Boolean value to indicate if the connection type is global.
	IsGlobal *bool

	// Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// READ-ONLY; Gets the creation time.
	CreationTime *time.Time

	// READ-ONLY; Gets the field definitions of the connection type.
	FieldDefinitions map[string]*FieldDefinition
}

ConnectionTypeProperties - Properties of the connection type.

func (ConnectionTypeProperties) MarshalJSON

func (c ConnectionTypeProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionTypeProperties.

func (*ConnectionTypeProperties) UnmarshalJSON

func (c *ConnectionTypeProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionTypeProperties.

type ConnectionUpdateParameters

type ConnectionUpdateParameters struct {
	// Gets or sets the name of the connection.
	Name *string

	// Gets or sets the properties of the connection.
	Properties *ConnectionUpdateProperties
}

ConnectionUpdateParameters - The parameters supplied to the update connection operation.

func (ConnectionUpdateParameters) MarshalJSON

func (c ConnectionUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionUpdateParameters.

func (*ConnectionUpdateParameters) UnmarshalJSON added in v0.7.0

func (c *ConnectionUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionUpdateParameters.

type ConnectionUpdateProperties

type ConnectionUpdateProperties struct {
	// Gets or sets the description of the connection.
	Description *string

	// Gets or sets the field definition values of the connection.
	FieldDefinitionValues map[string]*string
}

ConnectionUpdateProperties - The properties of the update connection operation.

func (ConnectionUpdateProperties) MarshalJSON

func (c ConnectionUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionUpdateProperties.

func (*ConnectionUpdateProperties) UnmarshalJSON added in v0.7.0

func (c *ConnectionUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionUpdateProperties.

type ContentHash

type ContentHash struct {
	// REQUIRED; Gets or sets the content hash algorithm used to hash the content.
	Algorithm *string

	// REQUIRED; Gets or sets expected hash value of the content.
	Value *string
}

ContentHash - Definition of the runbook property type.

func (ContentHash) MarshalJSON added in v0.7.0

func (c ContentHash) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ContentHash.

func (*ContentHash) UnmarshalJSON added in v0.7.0

func (c *ContentHash) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ContentHash.

type ContentLink struct {
	// Gets or sets the hash.
	ContentHash *ContentHash

	// Gets or sets the uri of the runbook content.
	URI *string

	// Gets or sets the version of the content.
	Version *string
}

ContentLink - Definition of the content link.

func (ContentLink) MarshalJSON added in v0.7.0

func (c ContentLink) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ContentLink.

func (*ContentLink) UnmarshalJSON added in v0.7.0

func (c *ContentLink) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ContentLink.

type ContentSource

type ContentSource struct {
	// Gets or sets the hash.
	Hash *ContentHash

	// Gets or sets the content source type.
	Type *ContentSourceType

	// Gets or sets the value of the content. This is based on the content source type.
	Value *string

	// Gets or sets the version of the content.
	Version *string
}

ContentSource - Definition of the content source.

func (ContentSource) MarshalJSON added in v0.7.0

func (c ContentSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ContentSource.

func (*ContentSource) UnmarshalJSON added in v0.7.0

func (c *ContentSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ContentSource.

type ContentSourceType

type ContentSourceType string

ContentSourceType - Gets or sets the content source type.

const (
	ContentSourceTypeEmbeddedContent ContentSourceType = "embeddedContent"
	ContentSourceTypeURI             ContentSourceType = "uri"
)

func PossibleContentSourceTypeValues

func PossibleContentSourceTypeValues() []ContentSourceType

PossibleContentSourceTypeValues returns the possible values for the ContentSourceType const type.

type CountType

type CountType string
const (
	CountTypeNodeconfiguration CountType = "nodeconfiguration"
	CountTypeStatus            CountType = "status"
)

func PossibleCountTypeValues

func PossibleCountTypeValues() []CountType

PossibleCountTypeValues returns the possible values for the CountType const type.

type CreatedByType

type CreatedByType string

CreatedByType - The type of identity that created the resource.

const (
	CreatedByTypeApplication     CreatedByType = "Application"
	CreatedByTypeKey             CreatedByType = "Key"
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	CreatedByTypeUser            CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.

type Credential

type Credential struct {
	// Gets or sets the properties of the credential.
	Properties *CredentialProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Credential - Definition of the credential.

func (Credential) MarshalJSON

func (c Credential) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Credential.

func (*Credential) UnmarshalJSON added in v0.7.0

func (c *Credential) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Credential.

type CredentialClient

type CredentialClient struct {
	// contains filtered or unexported fields
}

CredentialClient contains the methods for the Credential group. Don't use this type directly, use NewCredentialClient() instead.

func NewCredentialClient

func NewCredentialClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CredentialClient, error)

NewCredentialClient creates a new instance of CredentialClient 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 (*CredentialClient) CreateOrUpdate

func (client *CredentialClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, parameters CredentialCreateOrUpdateParameters, options *CredentialClientCreateOrUpdateOptions) (CredentialClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create a credential. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • 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.
  • parameters - The parameters supplied to the create or update credential operation.
  • options - CredentialClientCreateOrUpdateOptions contains the optional parameters for the CredentialClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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("<password>"),
			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"),
	// 	},
	// }
}
Output:

func (*CredentialClient) Delete

func (client *CredentialClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, options *CredentialClientDeleteOptions) (CredentialClientDeleteResponse, error)

Delete - Delete the credential. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • credentialName - The name of credential.
  • options - CredentialClientDeleteOptions contains the optional parameters for the CredentialClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*CredentialClient) Get

func (client *CredentialClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, options *CredentialClientGetOptions) (CredentialClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • credentialName - The name of credential.
  • options - CredentialClientGetOptions contains the optional parameters for the CredentialClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

func (*CredentialClient) NewListByAutomationAccountPager added in v0.5.0

func (client *CredentialClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *CredentialClientListByAutomationAccountOptions) *runtime.Pager[CredentialClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of credentials.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - CredentialClientListByAutomationAccountOptions contains the optional parameters for the CredentialClient.NewListByAutomationAccountPager method.
Example (ListCredentialsByAutomationAccountFirst100)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListCredentialsByAutomationAccountNext100)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*CredentialClient) Update

func (client *CredentialClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, parameters CredentialUpdateParameters, options *CredentialClientUpdateOptions) (CredentialClientUpdateResponse, error)

Update - Update a credential. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • credentialName - The parameters supplied to the Update credential operation.
  • parameters - The parameters supplied to the Update credential operation.
  • options - CredentialClientUpdateOptions contains the optional parameters for the CredentialClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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("<password>"),
			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"),
	// 	},
	// }
}
Output:

type CredentialClientCreateOrUpdateOptions added in v0.3.0

type CredentialClientCreateOrUpdateOptions struct {
}

CredentialClientCreateOrUpdateOptions contains the optional parameters for the CredentialClient.CreateOrUpdate method.

type CredentialClientCreateOrUpdateResponse added in v0.3.0

type CredentialClientCreateOrUpdateResponse struct {
	// Definition of the credential.
	Credential
}

CredentialClientCreateOrUpdateResponse contains the response from method CredentialClient.CreateOrUpdate.

type CredentialClientDeleteOptions added in v0.3.0

type CredentialClientDeleteOptions struct {
}

CredentialClientDeleteOptions contains the optional parameters for the CredentialClient.Delete method.

type CredentialClientDeleteResponse added in v0.3.0

type CredentialClientDeleteResponse struct {
}

CredentialClientDeleteResponse contains the response from method CredentialClient.Delete.

type CredentialClientGetOptions added in v0.3.0

type CredentialClientGetOptions struct {
}

CredentialClientGetOptions contains the optional parameters for the CredentialClient.Get method.

type CredentialClientGetResponse added in v0.3.0

type CredentialClientGetResponse struct {
	// Definition of the credential.
	Credential
}

CredentialClientGetResponse contains the response from method CredentialClient.Get.

type CredentialClientListByAutomationAccountOptions added in v0.3.0

type CredentialClientListByAutomationAccountOptions struct {
}

CredentialClientListByAutomationAccountOptions contains the optional parameters for the CredentialClient.NewListByAutomationAccountPager method.

type CredentialClientListByAutomationAccountResponse added in v0.3.0

type CredentialClientListByAutomationAccountResponse struct {
	// The response model for the list credential operation.
	CredentialListResult
}

CredentialClientListByAutomationAccountResponse contains the response from method CredentialClient.NewListByAutomationAccountPager.

type CredentialClientUpdateOptions added in v0.3.0

type CredentialClientUpdateOptions struct {
}

CredentialClientUpdateOptions contains the optional parameters for the CredentialClient.Update method.

type CredentialClientUpdateResponse added in v0.3.0

type CredentialClientUpdateResponse struct {
	// Definition of the credential.
	Credential
}

CredentialClientUpdateResponse contains the response from method CredentialClient.Update.

type CredentialCreateOrUpdateParameters

type CredentialCreateOrUpdateParameters struct {
	// REQUIRED; Gets or sets the name of the credential.
	Name *string

	// REQUIRED; Gets or sets the properties of the credential.
	Properties *CredentialCreateOrUpdateProperties
}

CredentialCreateOrUpdateParameters - The parameters supplied to the create or update credential operation.

func (CredentialCreateOrUpdateParameters) MarshalJSON added in v0.7.0

func (c CredentialCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CredentialCreateOrUpdateParameters.

func (*CredentialCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (c *CredentialCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CredentialCreateOrUpdateParameters.

type CredentialCreateOrUpdateProperties

type CredentialCreateOrUpdateProperties struct {
	// REQUIRED; Gets or sets the password of the credential.
	Password *string

	// REQUIRED; Gets or sets the user name of the credential.
	UserName *string

	// Gets or sets the description of the credential.
	Description *string
}

CredentialCreateOrUpdateProperties - The properties of the create credential operation.

func (CredentialCreateOrUpdateProperties) MarshalJSON added in v0.7.0

func (c CredentialCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CredentialCreateOrUpdateProperties.

func (*CredentialCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

func (c *CredentialCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CredentialCreateOrUpdateProperties.

type CredentialListResult

type CredentialListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of credentials.
	Value []*Credential
}

CredentialListResult - The response model for the list credential operation.

func (CredentialListResult) MarshalJSON

func (c CredentialListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CredentialListResult.

func (*CredentialListResult) UnmarshalJSON added in v0.7.0

func (c *CredentialListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CredentialListResult.

type CredentialProperties

type CredentialProperties struct {
	// Gets or sets the description.
	Description *string

	// READ-ONLY; Gets the creation time.
	CreationTime *time.Time

	// READ-ONLY; Gets the last modified time.
	LastModifiedTime *time.Time

	// READ-ONLY; Gets the user name of the credential.
	UserName *string
}

CredentialProperties - Definition of the credential properties

func (CredentialProperties) MarshalJSON

func (c CredentialProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CredentialProperties.

func (*CredentialProperties) UnmarshalJSON

func (c *CredentialProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CredentialProperties.

type CredentialUpdateParameters

type CredentialUpdateParameters struct {
	// Gets or sets the name of the credential.
	Name *string

	// Gets or sets the properties of the variable.
	Properties *CredentialUpdateProperties
}

CredentialUpdateParameters - The parameters supplied to the Update credential operation.

func (CredentialUpdateParameters) MarshalJSON

func (c CredentialUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CredentialUpdateParameters.

func (*CredentialUpdateParameters) UnmarshalJSON added in v0.7.0

func (c *CredentialUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CredentialUpdateParameters.

type CredentialUpdateProperties

type CredentialUpdateProperties struct {
	// Gets or sets the description of the credential.
	Description *string

	// Gets or sets the password of the credential.
	Password *string

	// Gets or sets the user name of the credential.
	UserName *string
}

CredentialUpdateProperties - The properties of the Update credential

func (CredentialUpdateProperties) MarshalJSON added in v0.7.0

func (c CredentialUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CredentialUpdateProperties.

func (*CredentialUpdateProperties) UnmarshalJSON added in v0.7.0

func (c *CredentialUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CredentialUpdateProperties.

type DeletedAutomationAccount added in v0.7.0

type DeletedAutomationAccount struct {
	// The resource id.
	ID *string

	// Gets or sets the location of the resource.
	Location *string

	// Gets or sets name of the resource.
	Name *string

	// Gets or sets the automation account properties.
	Properties *DeletedAutomationAccountProperties

	// The resource type.
	Type *string
}

DeletedAutomationAccount - Definition of the deleted automation account type.

func (DeletedAutomationAccount) MarshalJSON added in v0.7.0

func (d DeletedAutomationAccount) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DeletedAutomationAccount.

func (*DeletedAutomationAccount) UnmarshalJSON added in v0.7.0

func (d *DeletedAutomationAccount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeletedAutomationAccount.

type DeletedAutomationAccountListResult added in v0.7.0

type DeletedAutomationAccountListResult struct {
	// Gets or sets the list of deleted automation accounts.
	Value []*DeletedAutomationAccount
}

DeletedAutomationAccountListResult - The response model for the list deleted automation account.

func (DeletedAutomationAccountListResult) MarshalJSON added in v0.7.0

func (d DeletedAutomationAccountListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DeletedAutomationAccountListResult.

func (*DeletedAutomationAccountListResult) UnmarshalJSON added in v0.7.0

func (d *DeletedAutomationAccountListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeletedAutomationAccountListResult.

type DeletedAutomationAccountProperties added in v0.7.0

type DeletedAutomationAccountProperties struct {
	// Gets or sets the Automation Account Id.
	AutomationAccountID *string

	// Gets or sets the Automation Account Resource Id.
	AutomationAccountResourceID *string

	// Gets or sets the location of the resource.
	Location *string

	// READ-ONLY; Gets the deletion time.
	DeletionTime *time.Time
}

DeletedAutomationAccountProperties - Definition of the deleted automation account properties.

func (DeletedAutomationAccountProperties) MarshalJSON added in v0.7.0

func (d DeletedAutomationAccountProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DeletedAutomationAccountProperties.

func (*DeletedAutomationAccountProperties) UnmarshalJSON added in v0.7.0

func (d *DeletedAutomationAccountProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeletedAutomationAccountProperties.

type DeletedAutomationAccountsClient added in v0.7.0

type DeletedAutomationAccountsClient struct {
	// contains filtered or unexported fields
}

DeletedAutomationAccountsClient contains the methods for the DeletedAutomationAccounts group. Don't use this type directly, use NewDeletedAutomationAccountsClient() instead.

func NewDeletedAutomationAccountsClient added in v0.7.0

func NewDeletedAutomationAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeletedAutomationAccountsClient, error)

NewDeletedAutomationAccountsClient creates a new instance of DeletedAutomationAccountsClient 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 (*DeletedAutomationAccountsClient) ListBySubscription added in v0.7.0

ListBySubscription - Retrieve deleted automation account. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2022-01-31

  • options - DeletedAutomationAccountsClientListBySubscriptionOptions contains the optional parameters for the DeletedAutomationAccountsClient.ListBySubscription method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 			},
	// 	}},
	// }
}
Output:

type DeletedAutomationAccountsClientListBySubscriptionOptions added in v0.7.0

type DeletedAutomationAccountsClientListBySubscriptionOptions struct {
}

DeletedAutomationAccountsClientListBySubscriptionOptions contains the optional parameters for the DeletedAutomationAccountsClient.ListBySubscription method.

type DeletedAutomationAccountsClientListBySubscriptionResponse added in v0.7.0

type DeletedAutomationAccountsClientListBySubscriptionResponse struct {
	// The response model for the list deleted automation account.
	DeletedAutomationAccountListResult
}

DeletedAutomationAccountsClientListBySubscriptionResponse contains the response from method DeletedAutomationAccountsClient.ListBySubscription.

type DscCompilationJob

type DscCompilationJob struct {
	// Gets or sets the properties of the Dsc Compilation job.
	Properties *DscCompilationJobProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

DscCompilationJob - Definition of the Dsc Compilation job.

func (DscCompilationJob) MarshalJSON

func (d DscCompilationJob) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscCompilationJob.

func (*DscCompilationJob) UnmarshalJSON added in v0.7.0

func (d *DscCompilationJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscCompilationJob.

type DscCompilationJobClient

type DscCompilationJobClient struct {
	// contains filtered or unexported fields
}

DscCompilationJobClient contains the methods for the DscCompilationJob group. Don't use this type directly, use NewDscCompilationJobClient() instead.

func NewDscCompilationJobClient

func NewDscCompilationJobClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DscCompilationJobClient, error)

NewDscCompilationJobClient creates a new instance of DscCompilationJobClient 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 (*DscCompilationJobClient) BeginCreate

func (client *DscCompilationJobClient) BeginCreate(ctx context.Context, resourceGroupName string, automationAccountName string, compilationJobName string, parameters DscCompilationJobCreateParameters, options *DscCompilationJobClientBeginCreateOptions) (*runtime.Poller[DscCompilationJobClientCreateResponse], error)

BeginCreate - Creates the Dsc compilation job of the configuration. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • compilationJobName - The DSC configuration Id.
  • parameters - The parameters supplied to the create compilation job operation.
  • options - DscCompilationJobClientBeginCreateOptions contains the optional parameters for the DscCompilationJobClient.BeginCreate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*DscCompilationJobClient) Get

func (client *DscCompilationJobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, compilationJobName string, options *DscCompilationJobClientGetOptions) (DscCompilationJobClientGetResponse, error)

Get - Retrieve the Dsc configuration compilation job identified by job id. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • compilationJobName - The DSC configuration Id.
  • options - DscCompilationJobClientGetOptions contains the optional parameters for the DscCompilationJobClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

func (*DscCompilationJobClient) GetStream

func (client *DscCompilationJobClient) GetStream(ctx context.Context, resourceGroupName string, automationAccountName string, jobID string, jobStreamID string, options *DscCompilationJobClientGetStreamOptions) (DscCompilationJobClientGetStreamResponse, error)

GetStream - Retrieve the job stream identified by job stream id. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobID - The job id.
  • jobStreamID - The job stream id.
  • options - DscCompilationJobClientGetStreamOptions contains the optional parameters for the DscCompilationJobClient.GetStream method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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": "",
	// 		},
	// 	},
	// }
}
Output:

func (*DscCompilationJobClient) NewListByAutomationAccountPager added in v0.5.0

func (client *DscCompilationJobClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *DscCompilationJobClientListByAutomationAccountOptions) *runtime.Pager[DscCompilationJobClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of dsc compilation jobs.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - DscCompilationJobClientListByAutomationAccountOptions contains the optional parameters for the DscCompilationJobClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

type DscCompilationJobClientBeginCreateOptions added in v0.3.0

type DscCompilationJobClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DscCompilationJobClientBeginCreateOptions contains the optional parameters for the DscCompilationJobClient.BeginCreate method.

type DscCompilationJobClientCreateResponse added in v0.3.0

type DscCompilationJobClientCreateResponse struct {
	// Definition of the Dsc Compilation job.
	DscCompilationJob
}

DscCompilationJobClientCreateResponse contains the response from method DscCompilationJobClient.BeginCreate.

type DscCompilationJobClientGetOptions added in v0.3.0

type DscCompilationJobClientGetOptions struct {
}

DscCompilationJobClientGetOptions contains the optional parameters for the DscCompilationJobClient.Get method.

type DscCompilationJobClientGetResponse added in v0.3.0

type DscCompilationJobClientGetResponse struct {
	// Definition of the Dsc Compilation job.
	DscCompilationJob
}

DscCompilationJobClientGetResponse contains the response from method DscCompilationJobClient.Get.

type DscCompilationJobClientGetStreamOptions added in v0.3.0

type DscCompilationJobClientGetStreamOptions struct {
}

DscCompilationJobClientGetStreamOptions contains the optional parameters for the DscCompilationJobClient.GetStream method.

type DscCompilationJobClientGetStreamResponse added in v0.3.0

type DscCompilationJobClientGetStreamResponse struct {
	// Definition of the job stream.
	JobStream
}

DscCompilationJobClientGetStreamResponse contains the response from method DscCompilationJobClient.GetStream.

type DscCompilationJobClientListByAutomationAccountOptions added in v0.3.0

type DscCompilationJobClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

DscCompilationJobClientListByAutomationAccountOptions contains the optional parameters for the DscCompilationJobClient.NewListByAutomationAccountPager method.

type DscCompilationJobClientListByAutomationAccountResponse added in v0.3.0

type DscCompilationJobClientListByAutomationAccountResponse struct {
	// The response model for the list job operation.
	DscCompilationJobListResult
}

DscCompilationJobClientListByAutomationAccountResponse contains the response from method DscCompilationJobClient.NewListByAutomationAccountPager.

type DscCompilationJobCreateParameters

type DscCompilationJobCreateParameters struct {
	// REQUIRED; Gets or sets the list of compilation job properties.
	Properties *DscCompilationJobCreateProperties

	// Gets or sets the location of the resource.
	Location *string

	// Gets or sets name of the resource.
	Name *string

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

DscCompilationJobCreateParameters - The parameters supplied to the create compilation job operation.

func (DscCompilationJobCreateParameters) MarshalJSON

func (d DscCompilationJobCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscCompilationJobCreateParameters.

func (*DscCompilationJobCreateParameters) UnmarshalJSON added in v0.7.0

func (d *DscCompilationJobCreateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscCompilationJobCreateParameters.

type DscCompilationJobCreateProperties

type DscCompilationJobCreateProperties struct {
	// REQUIRED; Gets or sets the configuration.
	Configuration *DscConfigurationAssociationProperty

	// If a new build version of NodeConfiguration is required.
	IncrementNodeConfigurationBuild *bool

	// Gets or sets the parameters of the job.
	Parameters map[string]*string
}

DscCompilationJobCreateProperties - The parameters supplied to the create compilation job operation.

func (DscCompilationJobCreateProperties) MarshalJSON

func (d DscCompilationJobCreateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscCompilationJobCreateProperties.

func (*DscCompilationJobCreateProperties) UnmarshalJSON added in v0.7.0

func (d *DscCompilationJobCreateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscCompilationJobCreateProperties.

type DscCompilationJobListResult

type DscCompilationJobListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of Dsc Compilation jobs.
	Value []*DscCompilationJob
}

DscCompilationJobListResult - The response model for the list job operation.

func (DscCompilationJobListResult) MarshalJSON

func (d DscCompilationJobListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscCompilationJobListResult.

func (*DscCompilationJobListResult) UnmarshalJSON added in v0.7.0

func (d *DscCompilationJobListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscCompilationJobListResult.

type DscCompilationJobProperties

type DscCompilationJobProperties struct {
	// Gets or sets the configuration.
	Configuration *DscConfigurationAssociationProperty

	// Gets or sets the parameters of the job.
	Parameters map[string]*string

	// The current provisioning state of the job.
	ProvisioningState *JobProvisioningState

	// Gets or sets the runOn which specifies the group name where the job is to be executed.
	RunOn *string

	// Gets or sets the status of the job.
	Status *JobStatus

	// Gets or sets the status details of the job.
	StatusDetails *string

	// READ-ONLY; Gets the creation time of the job.
	CreationTime *time.Time

	// READ-ONLY; Gets the end time of the job.
	EndTime *time.Time

	// READ-ONLY; Gets the exception of the job.
	Exception *string

	// READ-ONLY; Gets the id of the job.
	JobID *string

	// READ-ONLY; Gets the last modified time of the job.
	LastModifiedTime *time.Time

	// READ-ONLY; Gets the last status modified time of the job.
	LastStatusModifiedTime *time.Time

	// READ-ONLY; Gets the start time of the job.
	StartTime *time.Time

	// READ-ONLY; Gets the compilation job started by.
	StartedBy *string
}

DscCompilationJobProperties - Definition of Dsc Compilation job properties.

func (DscCompilationJobProperties) MarshalJSON

func (d DscCompilationJobProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscCompilationJobProperties.

func (*DscCompilationJobProperties) UnmarshalJSON

func (d *DscCompilationJobProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscCompilationJobProperties.

type DscCompilationJobStreamClient

type DscCompilationJobStreamClient struct {
	// contains filtered or unexported fields
}

DscCompilationJobStreamClient contains the methods for the DscCompilationJobStream group. Don't use this type directly, use NewDscCompilationJobStreamClient() instead.

func NewDscCompilationJobStreamClient

func NewDscCompilationJobStreamClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DscCompilationJobStreamClient, error)

NewDscCompilationJobStreamClient creates a new instance of DscCompilationJobStreamClient 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 (*DscCompilationJobStreamClient) ListByJob

ListByJob - Retrieve all the job streams for the compilation Job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobID - The job id.
  • options - DscCompilationJobStreamClientListByJobOptions contains the optional parameters for the DscCompilationJobStreamClient.ListByJob method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
	// 			},
	// 	}},
	// }
}
Output:

type DscCompilationJobStreamClientListByJobOptions added in v0.3.0

type DscCompilationJobStreamClientListByJobOptions struct {
}

DscCompilationJobStreamClientListByJobOptions contains the optional parameters for the DscCompilationJobStreamClient.ListByJob method.

type DscCompilationJobStreamClientListByJobResponse added in v0.3.0

type DscCompilationJobStreamClientListByJobResponse struct {
	// The response model for the list job stream operation.
	JobStreamListResult
}

DscCompilationJobStreamClientListByJobResponse contains the response from method DscCompilationJobStreamClient.ListByJob.

type DscConfiguration

type DscConfiguration struct {
	// Gets or sets the etag of the resource.
	Etag *string

	// The Azure Region where the resource lives
	Location *string

	// Gets or sets the configuration properties.
	Properties *DscConfigurationProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

DscConfiguration - Definition of the configuration type.

func (DscConfiguration) MarshalJSON

func (d DscConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscConfiguration.

func (*DscConfiguration) UnmarshalJSON added in v0.7.0

func (d *DscConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscConfiguration.

type DscConfigurationAssociationProperty

type DscConfigurationAssociationProperty struct {
	// Gets or sets the name of the Dsc configuration.
	Name *string
}

DscConfigurationAssociationProperty - The Dsc configuration property associated with the entity.

func (DscConfigurationAssociationProperty) MarshalJSON added in v0.7.0

func (d DscConfigurationAssociationProperty) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscConfigurationAssociationProperty.

func (*DscConfigurationAssociationProperty) UnmarshalJSON added in v0.7.0

func (d *DscConfigurationAssociationProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscConfigurationAssociationProperty.

type DscConfigurationClient

type DscConfigurationClient struct {
	// contains filtered or unexported fields
}

DscConfigurationClient contains the methods for the DscConfiguration group. Don't use this type directly, use NewDscConfigurationClient() instead.

func NewDscConfigurationClient

func NewDscConfigurationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DscConfigurationClient, error)

NewDscConfigurationClient creates a new instance of DscConfigurationClient 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 (*DscConfigurationClient) CreateOrUpdateWithJSON added in v0.3.0

func (client *DscConfigurationClient) CreateOrUpdateWithJSON(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, parameters DscConfigurationCreateOrUpdateParameters, options *DscConfigurationClientCreateOrUpdateWithJSONOptions) (DscConfigurationClientCreateOrUpdateWithJSONResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • configurationName - The create or update parameters for configuration.
  • parameters - The create or update parameters for configuration.
  • options - DscConfigurationClientCreateOrUpdateWithJSONOptions contains the optional parameters for the DscConfigurationClient.CreateOrUpdateWithJSON method.

func (*DscConfigurationClient) CreateOrUpdateWithText added in v0.3.0

func (client *DscConfigurationClient) CreateOrUpdateWithText(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, parameters string, options *DscConfigurationClientCreateOrUpdateWithTextOptions) (DscConfigurationClientCreateOrUpdateWithTextResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • configurationName - The create or update parameters for configuration.
  • parameters - The create or update parameters for configuration.
  • options - DscConfigurationClientCreateOrUpdateWithTextOptions contains the optional parameters for the DscConfigurationClient.CreateOrUpdateWithText method.

func (*DscConfigurationClient) Delete

func (client *DscConfigurationClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, options *DscConfigurationClientDeleteOptions) (DscConfigurationClientDeleteResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • configurationName - The configuration name.
  • options - DscConfigurationClientDeleteOptions contains the optional parameters for the DscConfigurationClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*DscConfigurationClient) Get

func (client *DscConfigurationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, options *DscConfigurationClientGetOptions) (DscConfigurationClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • configurationName - The configuration name.
  • options - DscConfigurationClientGetOptions contains the optional parameters for the DscConfigurationClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*DscConfigurationClient) GetContent

func (client *DscConfigurationClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, options *DscConfigurationClientGetContentOptions) (DscConfigurationClientGetContentResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • configurationName - The configuration name.
  • options - DscConfigurationClientGetContentOptions contains the optional parameters for the DscConfigurationClient.GetContent method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}"
}
Output:

func (*DscConfigurationClient) NewListByAutomationAccountPager added in v0.5.0

func (client *DscConfigurationClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *DscConfigurationClientListByAutomationAccountOptions) *runtime.Pager[DscConfigurationClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of configurations.

Generated from API version 2019-06-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 method.
Example (GetDscConfiguration)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscConfigurationsWithNameFilter)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscConfigurationsWithNoFilter)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*DscConfigurationClient) UpdateWithJSON added in v0.3.0

func (client *DscConfigurationClient) UpdateWithJSON(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, options *DscConfigurationClientUpdateWithJSONOptions) (DscConfigurationClientUpdateWithJSONResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • configurationName - The create or update parameters for configuration.
  • options - DscConfigurationClientUpdateWithJSONOptions contains the optional parameters for the DscConfigurationClient.UpdateWithJSON method.

func (*DscConfigurationClient) UpdateWithText added in v0.3.0

func (client *DscConfigurationClient) UpdateWithText(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, options *DscConfigurationClientUpdateWithTextOptions) (DscConfigurationClientUpdateWithTextResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • configurationName - The create or update parameters for configuration.
  • options - DscConfigurationClientUpdateWithTextOptions contains the optional parameters for the DscConfigurationClient.UpdateWithText method.

type DscConfigurationClientCreateOrUpdateWithJSONOptions added in v0.3.0

type DscConfigurationClientCreateOrUpdateWithJSONOptions struct {
}

DscConfigurationClientCreateOrUpdateWithJSONOptions contains the optional parameters for the DscConfigurationClient.CreateOrUpdateWithJSON method.

type DscConfigurationClientCreateOrUpdateWithJSONResponse added in v0.3.0

type DscConfigurationClientCreateOrUpdateWithJSONResponse struct {
	// Definition of the configuration type.
	DscConfiguration
}

DscConfigurationClientCreateOrUpdateWithJSONResponse contains the response from method DscConfigurationClient.CreateOrUpdateWithJSON.

type DscConfigurationClientCreateOrUpdateWithTextOptions added in v0.3.0

type DscConfigurationClientCreateOrUpdateWithTextOptions struct {
}

DscConfigurationClientCreateOrUpdateWithTextOptions contains the optional parameters for the DscConfigurationClient.CreateOrUpdateWithText method.

type DscConfigurationClientCreateOrUpdateWithTextResponse added in v0.3.0

type DscConfigurationClientCreateOrUpdateWithTextResponse struct {
	// Definition of the configuration type.
	DscConfiguration
}

DscConfigurationClientCreateOrUpdateWithTextResponse contains the response from method DscConfigurationClient.CreateOrUpdateWithText.

type DscConfigurationClientDeleteOptions added in v0.3.0

type DscConfigurationClientDeleteOptions struct {
}

DscConfigurationClientDeleteOptions contains the optional parameters for the DscConfigurationClient.Delete method.

type DscConfigurationClientDeleteResponse added in v0.3.0

type DscConfigurationClientDeleteResponse struct {
}

DscConfigurationClientDeleteResponse contains the response from method DscConfigurationClient.Delete.

type DscConfigurationClientGetContentOptions added in v0.3.0

type DscConfigurationClientGetContentOptions struct {
}

DscConfigurationClientGetContentOptions contains the optional parameters for the DscConfigurationClient.GetContent method.

type DscConfigurationClientGetContentResponse added in v0.3.0

type DscConfigurationClientGetContentResponse struct {
	Value *string
}

DscConfigurationClientGetContentResponse contains the response from method DscConfigurationClient.GetContent.

type DscConfigurationClientGetOptions added in v0.3.0

type DscConfigurationClientGetOptions struct {
}

DscConfigurationClientGetOptions contains the optional parameters for the DscConfigurationClient.Get method.

type DscConfigurationClientGetResponse added in v0.3.0

type DscConfigurationClientGetResponse struct {
	// Definition of the configuration type.
	DscConfiguration
}

DscConfigurationClientGetResponse contains the response from method DscConfigurationClient.Get.

type DscConfigurationClientListByAutomationAccountOptions added in v0.3.0

type DscConfigurationClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string

	// Return total rows.
	Inlinecount *string

	// The number of rows to skip.
	Skip *int32

	// The number of rows to take.
	Top *int32
}

DscConfigurationClientListByAutomationAccountOptions contains the optional parameters for the DscConfigurationClient.NewListByAutomationAccountPager method.

type DscConfigurationClientListByAutomationAccountResponse added in v0.3.0

type DscConfigurationClientListByAutomationAccountResponse struct {
	// The response model for the list configuration operation.
	DscConfigurationListResult
}

DscConfigurationClientListByAutomationAccountResponse contains the response from method DscConfigurationClient.NewListByAutomationAccountPager.

type DscConfigurationClientUpdateWithJSONOptions added in v0.3.0

type DscConfigurationClientUpdateWithJSONOptions struct {
	// The create or update parameters for configuration.
	Parameters *DscConfigurationUpdateParameters
}

DscConfigurationClientUpdateWithJSONOptions contains the optional parameters for the DscConfigurationClient.UpdateWithJSON method.

type DscConfigurationClientUpdateWithJSONResponse added in v0.3.0

type DscConfigurationClientUpdateWithJSONResponse struct {
	// Definition of the configuration type.
	DscConfiguration
}

DscConfigurationClientUpdateWithJSONResponse contains the response from method DscConfigurationClient.UpdateWithJSON.

type DscConfigurationClientUpdateWithTextOptions added in v0.3.0

type DscConfigurationClientUpdateWithTextOptions struct {
	// The create or update parameters for configuration.
	Parameters *string
}

DscConfigurationClientUpdateWithTextOptions contains the optional parameters for the DscConfigurationClient.UpdateWithText method.

type DscConfigurationClientUpdateWithTextResponse added in v0.3.0

type DscConfigurationClientUpdateWithTextResponse struct {
	// Definition of the configuration type.
	DscConfiguration
}

DscConfigurationClientUpdateWithTextResponse contains the response from method DscConfigurationClient.UpdateWithText.

type DscConfigurationCreateOrUpdateParameters

type DscConfigurationCreateOrUpdateParameters struct {
	// REQUIRED; Gets or sets configuration create or update properties.
	Properties *DscConfigurationCreateOrUpdateProperties

	// Gets or sets the location of the resource.
	Location *string

	// Gets or sets name of the resource.
	Name *string

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

DscConfigurationCreateOrUpdateParameters - The parameters supplied to the create or update configuration operation.

func (DscConfigurationCreateOrUpdateParameters) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type DscConfigurationCreateOrUpdateParameters.

func (*DscConfigurationCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (d *DscConfigurationCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscConfigurationCreateOrUpdateParameters.

type DscConfigurationCreateOrUpdateProperties

type DscConfigurationCreateOrUpdateProperties struct {
	// REQUIRED; Gets or sets the source.
	Source *ContentSource

	// Gets or sets the description of the configuration.
	Description *string

	// Gets or sets progress log option.
	LogProgress *bool

	// Gets or sets verbose log option.
	LogVerbose *bool

	// Gets or sets the configuration parameters.
	Parameters map[string]*DscConfigurationParameter
}

DscConfigurationCreateOrUpdateProperties - The properties to create or update configuration.

func (DscConfigurationCreateOrUpdateProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type DscConfigurationCreateOrUpdateProperties.

func (*DscConfigurationCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

func (d *DscConfigurationCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscConfigurationCreateOrUpdateProperties.

type DscConfigurationListResult

type DscConfigurationListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets the total number of configurations matching filter criteria.
	TotalCount *int32

	// Gets or sets a list of configurations.
	Value []*DscConfiguration
}

DscConfigurationListResult - The response model for the list configuration operation.

func (DscConfigurationListResult) MarshalJSON

func (d DscConfigurationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscConfigurationListResult.

func (*DscConfigurationListResult) UnmarshalJSON added in v0.7.0

func (d *DscConfigurationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscConfigurationListResult.

type DscConfigurationParameter

type DscConfigurationParameter struct {
	// Gets or sets the default value of parameter.
	DefaultValue *string

	// Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
	IsMandatory *bool

	// Get or sets the position of the parameter.
	Position *int32

	// Gets or sets the type of the parameter.
	Type *string
}

DscConfigurationParameter - Definition of the configuration parameter type.

func (DscConfigurationParameter) MarshalJSON added in v0.7.0

func (d DscConfigurationParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscConfigurationParameter.

func (*DscConfigurationParameter) UnmarshalJSON added in v0.7.0

func (d *DscConfigurationParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscConfigurationParameter.

type DscConfigurationProperties

type DscConfigurationProperties struct {
	// Gets or sets the creation time.
	CreationTime *time.Time

	// Gets or sets the description.
	Description *string

	// Gets or sets the job count of the configuration.
	JobCount *int32

	// Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// Gets or sets verbose log option.
	LogVerbose *bool

	// Gets the number of compiled node configurations.
	NodeConfigurationCount *int32

	// Gets or sets the configuration parameters.
	Parameters map[string]*DscConfigurationParameter

	// Gets or sets the provisioning state of the configuration.
	ProvisioningState *string

	// Gets or sets the source.
	Source *ContentSource

	// Gets or sets the state of the configuration.
	State *DscConfigurationState
}

DscConfigurationProperties - Definition of the configuration property type.

func (DscConfigurationProperties) MarshalJSON

func (d DscConfigurationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscConfigurationProperties.

func (*DscConfigurationProperties) UnmarshalJSON

func (d *DscConfigurationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscConfigurationProperties.

type DscConfigurationState

type DscConfigurationState string

DscConfigurationState - Gets or sets the state of the configuration.

const (
	DscConfigurationStateEdit      DscConfigurationState = "Edit"
	DscConfigurationStateNew       DscConfigurationState = "New"
	DscConfigurationStatePublished DscConfigurationState = "Published"
)

func PossibleDscConfigurationStateValues

func PossibleDscConfigurationStateValues() []DscConfigurationState

PossibleDscConfigurationStateValues returns the possible values for the DscConfigurationState const type.

type DscConfigurationUpdateParameters

type DscConfigurationUpdateParameters struct {
	// Gets or sets name of the resource.
	Name *string

	// Gets or sets configuration create or update properties.
	Properties *DscConfigurationCreateOrUpdateProperties

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

DscConfigurationUpdateParameters - The parameters supplied to the create or update configuration operation.

func (DscConfigurationUpdateParameters) MarshalJSON

func (d DscConfigurationUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscConfigurationUpdateParameters.

func (*DscConfigurationUpdateParameters) UnmarshalJSON added in v0.7.0

func (d *DscConfigurationUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscConfigurationUpdateParameters.

type DscMetaConfiguration

type DscMetaConfiguration struct {
	// Gets or sets the ActionAfterReboot value of the meta configuration.
	ActionAfterReboot *string

	// Gets or sets the AllowModuleOverwrite value of the meta configuration.
	AllowModuleOverwrite *bool

	// Gets or sets the CertificateId value of the meta configuration.
	CertificateID *string

	// Gets or sets the ConfigurationMode value of the meta configuration.
	ConfigurationMode *string

	// Gets or sets the ConfigurationModeFrequencyMins value of the meta configuration.
	ConfigurationModeFrequencyMins *int32

	// Gets or sets the RebootNodeIfNeeded value of the meta configuration.
	RebootNodeIfNeeded *bool

	// Gets or sets the RefreshFrequencyMins value of the meta configuration.
	RefreshFrequencyMins *int32
}

DscMetaConfiguration - Definition of the DSC Meta Configuration.

func (DscMetaConfiguration) MarshalJSON added in v0.7.0

func (d DscMetaConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscMetaConfiguration.

func (*DscMetaConfiguration) UnmarshalJSON added in v0.7.0

func (d *DscMetaConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscMetaConfiguration.

type DscNode

type DscNode struct {
	// The properties of a DscNode.
	Properties *DscNodeProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

DscNode - Definition of a DscNode

func (DscNode) MarshalJSON

func (d DscNode) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNode.

func (*DscNode) UnmarshalJSON added in v0.7.0

func (d *DscNode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNode.

type DscNodeClient

type DscNodeClient struct {
	// contains filtered or unexported fields
}

DscNodeClient contains the methods for the DscNode group. Don't use this type directly, use NewDscNodeClient() instead.

func NewDscNodeClient

func NewDscNodeClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DscNodeClient, error)

NewDscNodeClient creates a new instance of DscNodeClient 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 (*DscNodeClient) Delete

func (client *DscNodeClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, options *DscNodeClientDeleteOptions) (DscNodeClientDeleteResponse, error)

Delete - Delete the dsc node identified by node id. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • nodeID - The node id.
  • options - DscNodeClientDeleteOptions contains the optional parameters for the DscNodeClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*DscNodeClient) Get

func (client *DscNodeClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, options *DscNodeClientGetOptions) (DscNodeClientGetResponse, error)

Get - Retrieve the dsc node identified by node id. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • nodeID - The node id.
  • options - DscNodeClientGetOptions contains the optional parameters for the DscNodeClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

func (*DscNodeClient) NewListByAutomationAccountPager added in v0.5.0

func (client *DscNodeClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *DscNodeClientListByAutomationAccountOptions) *runtime.Pager[DscNodeClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of dsc nodes.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - DscNodeClientListByAutomationAccountOptions contains the optional parameters for the DscNodeClient.NewListByAutomationAccountPager method.
Example (ListDscNodesByAutomationAccount)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscNodesByAutomationAccountWhereNodeConfigurationsAreNotAssignedFilter)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscNodesByAutomationAccountWithNameFilter)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscNodesByAutomationAccountWithNoFilters)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscNodesByAutomationAccountWithNodeConfigurationCustomFilter)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscNodesByAutomationAccountWithNodeStatusFilter)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscNodesByAutomationAccountWithVersionFilter)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscNodesWithFiltersSeparatedByAnd)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*DscNodeClient) Update

func (client *DscNodeClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, dscNodeUpdateParameters DscNodeUpdateParameters, options *DscNodeClientUpdateOptions) (DscNodeClientUpdateResponse, error)

Update - Update the dsc node. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • nodeID - Parameters supplied to the update dsc node.
  • dscNodeUpdateParameters - Parameters supplied to the update dsc node.
  • options - DscNodeClientUpdateOptions contains the optional parameters for the DscNodeClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

type DscNodeClientDeleteOptions added in v0.3.0

type DscNodeClientDeleteOptions struct {
}

DscNodeClientDeleteOptions contains the optional parameters for the DscNodeClient.Delete method.

type DscNodeClientDeleteResponse added in v0.3.0

type DscNodeClientDeleteResponse struct {
}

DscNodeClientDeleteResponse contains the response from method DscNodeClient.Delete.

type DscNodeClientGetOptions added in v0.3.0

type DscNodeClientGetOptions struct {
}

DscNodeClientGetOptions contains the optional parameters for the DscNodeClient.Get method.

type DscNodeClientGetResponse added in v0.3.0

type DscNodeClientGetResponse struct {
	// Definition of a DscNode
	DscNode
}

DscNodeClientGetResponse contains the response from method DscNodeClient.Get.

type DscNodeClientListByAutomationAccountOptions added in v0.3.0

type DscNodeClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string

	// Return total rows.
	Inlinecount *string

	// The number of rows to skip.
	Skip *int32

	// The number of rows to take.
	Top *int32
}

DscNodeClientListByAutomationAccountOptions contains the optional parameters for the DscNodeClient.NewListByAutomationAccountPager method.

type DscNodeClientListByAutomationAccountResponse added in v0.3.0

type DscNodeClientListByAutomationAccountResponse struct {
	// The response model for the list dsc nodes operation.
	DscNodeListResult
}

DscNodeClientListByAutomationAccountResponse contains the response from method DscNodeClient.NewListByAutomationAccountPager.

type DscNodeClientUpdateOptions added in v0.3.0

type DscNodeClientUpdateOptions struct {
}

DscNodeClientUpdateOptions contains the optional parameters for the DscNodeClient.Update method.

type DscNodeClientUpdateResponse added in v0.3.0

type DscNodeClientUpdateResponse struct {
	// Definition of a DscNode
	DscNode
}

DscNodeClientUpdateResponse contains the response from method DscNodeClient.Update.

type DscNodeConfiguration

type DscNodeConfiguration struct {
	// Gets or sets the configuration properties.
	Properties *DscNodeConfigurationProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

DscNodeConfiguration - Definition of the dsc node configuration.

func (DscNodeConfiguration) MarshalJSON

func (d DscNodeConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNodeConfiguration.

func (*DscNodeConfiguration) UnmarshalJSON added in v0.7.0

func (d *DscNodeConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeConfiguration.

type DscNodeConfigurationAssociationProperty

type DscNodeConfigurationAssociationProperty struct {
	// Gets or sets the name of the dsc node configuration.
	Name *string
}

DscNodeConfigurationAssociationProperty - The dsc node configuration property associated with the entity.

func (DscNodeConfigurationAssociationProperty) MarshalJSON added in v0.7.0

func (d DscNodeConfigurationAssociationProperty) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNodeConfigurationAssociationProperty.

func (*DscNodeConfigurationAssociationProperty) UnmarshalJSON added in v0.7.0

func (d *DscNodeConfigurationAssociationProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeConfigurationAssociationProperty.

type DscNodeConfigurationClient

type DscNodeConfigurationClient struct {
	// contains filtered or unexported fields
}

DscNodeConfigurationClient contains the methods for the DscNodeConfiguration group. Don't use this type directly, use NewDscNodeConfigurationClient() instead.

func NewDscNodeConfigurationClient

func NewDscNodeConfigurationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DscNodeConfigurationClient, error)

NewDscNodeConfigurationClient creates a new instance of DscNodeConfigurationClient 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 (*DscNodeConfigurationClient) BeginCreateOrUpdate

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • nodeConfigurationName - The Dsc node configuration name.
  • parameters - The create or update parameters for configuration.
  • options - DscNodeConfigurationClientBeginCreateOrUpdateOptions contains the optional parameters for the DscNodeConfigurationClient.BeginCreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*DscNodeConfigurationClient) Delete

func (client *DscNodeConfigurationClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string, options *DscNodeConfigurationClientDeleteOptions) (DscNodeConfigurationClientDeleteResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • nodeConfigurationName - The Dsc node configuration name.
  • options - DscNodeConfigurationClientDeleteOptions contains the optional parameters for the DscNodeConfigurationClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*DscNodeConfigurationClient) Get

func (client *DscNodeConfigurationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string, options *DscNodeConfigurationClientGetOptions) (DscNodeConfigurationClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • nodeConfigurationName - The Dsc node configuration name.
  • options - DscNodeConfigurationClientGetOptions contains the optional parameters for the DscNodeConfigurationClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*DscNodeConfigurationClient) NewListByAutomationAccountPager added in v0.5.0

func (client *DscNodeConfigurationClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *DscNodeConfigurationClientListByAutomationAccountOptions) *runtime.Pager[DscNodeConfigurationClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of dsc node configurations.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - DscNodeConfigurationClientListByAutomationAccountOptions contains the optional parameters for the DscNodeConfigurationClient.NewListByAutomationAccountPager method.
Example (ListDscNodeConfigurationsByAutomationAccount)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscNodeConfigurationsByAutomationAccountWithNameFilter)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscNodeConfigurationsByAutomationAccountWithNoFilter)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

type DscNodeConfigurationClientBeginCreateOrUpdateOptions added in v0.3.0

type DscNodeConfigurationClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DscNodeConfigurationClientBeginCreateOrUpdateOptions contains the optional parameters for the DscNodeConfigurationClient.BeginCreateOrUpdate method.

type DscNodeConfigurationClientCreateOrUpdateResponse added in v0.3.0

type DscNodeConfigurationClientCreateOrUpdateResponse struct {
	// Definition of the dsc node configuration.
	DscNodeConfiguration
}

DscNodeConfigurationClientCreateOrUpdateResponse contains the response from method DscNodeConfigurationClient.BeginCreateOrUpdate.

type DscNodeConfigurationClientDeleteOptions added in v0.3.0

type DscNodeConfigurationClientDeleteOptions struct {
}

DscNodeConfigurationClientDeleteOptions contains the optional parameters for the DscNodeConfigurationClient.Delete method.

type DscNodeConfigurationClientDeleteResponse added in v0.3.0

type DscNodeConfigurationClientDeleteResponse struct {
}

DscNodeConfigurationClientDeleteResponse contains the response from method DscNodeConfigurationClient.Delete.

type DscNodeConfigurationClientGetOptions added in v0.3.0

type DscNodeConfigurationClientGetOptions struct {
}

DscNodeConfigurationClientGetOptions contains the optional parameters for the DscNodeConfigurationClient.Get method.

type DscNodeConfigurationClientGetResponse added in v0.3.0

type DscNodeConfigurationClientGetResponse struct {
	// Definition of the dsc node configuration.
	DscNodeConfiguration
}

DscNodeConfigurationClientGetResponse contains the response from method DscNodeConfigurationClient.Get.

type DscNodeConfigurationClientListByAutomationAccountOptions added in v0.3.0

type DscNodeConfigurationClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string

	// Return total rows.
	Inlinecount *string

	// The number of rows to skip.
	Skip *int32

	// The number of rows to take.
	Top *int32
}

DscNodeConfigurationClientListByAutomationAccountOptions contains the optional parameters for the DscNodeConfigurationClient.NewListByAutomationAccountPager method.

type DscNodeConfigurationClientListByAutomationAccountResponse added in v0.3.0

type DscNodeConfigurationClientListByAutomationAccountResponse struct {
	// The response model for the list job operation.
	DscNodeConfigurationListResult
}

DscNodeConfigurationClientListByAutomationAccountResponse contains the response from method DscNodeConfigurationClient.NewListByAutomationAccountPager.

type DscNodeConfigurationCreateOrUpdateParameters

type DscNodeConfigurationCreateOrUpdateParameters struct {
	// Name of the node configuration.
	Name *string

	// Node configuration properties
	Properties *DscNodeConfigurationCreateOrUpdateParametersProperties

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

DscNodeConfigurationCreateOrUpdateParameters - The parameters supplied to the create or update node configuration operation.

func (DscNodeConfigurationCreateOrUpdateParameters) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type DscNodeConfigurationCreateOrUpdateParameters.

func (*DscNodeConfigurationCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (d *DscNodeConfigurationCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeConfigurationCreateOrUpdateParameters.

type DscNodeConfigurationCreateOrUpdateParametersProperties

type DscNodeConfigurationCreateOrUpdateParametersProperties struct {
	// REQUIRED; Gets or sets the configuration of the node.
	Configuration *DscConfigurationAssociationProperty

	// REQUIRED; Gets or sets the source.
	Source *ContentSource

	// If a new build version of NodeConfiguration is required.
	IncrementNodeConfigurationBuild *bool
}

DscNodeConfigurationCreateOrUpdateParametersProperties - The parameter properties supplied to the create or update node configuration operation.

func (DscNodeConfigurationCreateOrUpdateParametersProperties) MarshalJSON added in v0.7.0

MarshalJSON implements the json.Marshaller interface for type DscNodeConfigurationCreateOrUpdateParametersProperties.

func (*DscNodeConfigurationCreateOrUpdateParametersProperties) UnmarshalJSON added in v0.7.0

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeConfigurationCreateOrUpdateParametersProperties.

type DscNodeConfigurationListResult

type DscNodeConfigurationListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets the total rows in query.
	TotalCount *int32

	// Gets or sets a list of Dsc node configurations.
	Value []*DscNodeConfiguration
}

DscNodeConfigurationListResult - The response model for the list job operation.

func (DscNodeConfigurationListResult) MarshalJSON

func (d DscNodeConfigurationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNodeConfigurationListResult.

func (*DscNodeConfigurationListResult) UnmarshalJSON added in v0.7.0

func (d *DscNodeConfigurationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeConfigurationListResult.

type DscNodeConfigurationProperties

type DscNodeConfigurationProperties struct {
	// Gets or sets the configuration of the node.
	Configuration *DscConfigurationAssociationProperty

	// Gets or sets creation time.
	CreationTime *time.Time

	// If a new build version of NodeConfiguration is required.
	IncrementNodeConfigurationBuild *bool

	// Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// Number of nodes with this node configuration assigned
	NodeCount *int64

	// Source of node configuration.
	Source *string
}

DscNodeConfigurationProperties - Properties for the DscNodeConfiguration

func (DscNodeConfigurationProperties) MarshalJSON

func (d DscNodeConfigurationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNodeConfigurationProperties.

func (*DscNodeConfigurationProperties) UnmarshalJSON

func (d *DscNodeConfigurationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeConfigurationProperties.

type DscNodeExtensionHandlerAssociationProperty

type DscNodeExtensionHandlerAssociationProperty struct {
	// Gets or sets the name of the extension handler.
	Name *string

	// Gets or sets the version of the extension handler.
	Version *string
}

DscNodeExtensionHandlerAssociationProperty - The dsc extensionHandler property associated with the node

func (DscNodeExtensionHandlerAssociationProperty) MarshalJSON added in v0.7.0

MarshalJSON implements the json.Marshaller interface for type DscNodeExtensionHandlerAssociationProperty.

func (*DscNodeExtensionHandlerAssociationProperty) UnmarshalJSON added in v0.7.0

func (d *DscNodeExtensionHandlerAssociationProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeExtensionHandlerAssociationProperty.

type DscNodeListResult

type DscNodeListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets the total number of nodes matching filter criteria.
	TotalCount *int32

	// Gets or sets a list of dsc nodes.
	Value []*DscNode
}

DscNodeListResult - The response model for the list dsc nodes operation.

func (DscNodeListResult) MarshalJSON

func (d DscNodeListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNodeListResult.

func (*DscNodeListResult) UnmarshalJSON added in v0.7.0

func (d *DscNodeListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeListResult.

type DscNodeProperties

type DscNodeProperties struct {
	// Gets or sets the account id of the node.
	AccountID *string

	// Gets or sets the etag of the resource.
	Etag *string

	// Gets or sets the list of extensionHandler properties for a Node.
	ExtensionHandler []*DscNodeExtensionHandlerAssociationProperty

	// Gets or sets the ip of the node.
	IP *string

	// Gets or sets the last seen time of the node.
	LastSeen *time.Time

	// Gets or sets the configuration of the node.
	NodeConfiguration *DscNodeConfigurationAssociationProperty

	// Gets or sets the node id.
	NodeID *string

	// Gets or sets the registration time of the node.
	RegistrationTime *time.Time

	// Gets or sets the status of the node.
	Status *string

	// Gets the total number of records matching filter criteria.
	TotalCount *int32
}

DscNodeProperties - The properties of a DscNode

func (DscNodeProperties) MarshalJSON

func (d DscNodeProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNodeProperties.

func (*DscNodeProperties) UnmarshalJSON

func (d *DscNodeProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeProperties.

type DscNodeReport

type DscNodeReport struct {
	// Gets or sets the configurationVersion of the node report.
	ConfigurationVersion *string

	// Gets or sets the end time of the node report.
	EndTime *time.Time

	// Gets or sets the errors for the node report.
	Errors []*DscReportError

	// Gets or sets the hostname of the node that sent the report.
	HostName *string

	// Gets or sets the id.
	ID *string

	// Gets or sets the IPv4 address of the node that sent the report.
	IPV4Addresses []*string

	// Gets or sets the IPv6 address of the node that sent the report.
	IPV6Addresses []*string

	// Gets or sets the lastModifiedTime of the node report.
	LastModifiedTime *time.Time

	// Gets or sets the metaConfiguration of the node at the time of the report.
	MetaConfiguration *DscMetaConfiguration

	// Gets or sets the number of resource in the node report.
	NumberOfResources *int32

	// Gets or sets the unparsed errors for the node report.
	RawErrors *string

	// Gets or sets the rebootRequested of the node report.
	RebootRequested *string

	// Gets or sets the refreshMode of the node report.
	RefreshMode *string

	// Gets or sets the reportFormatVersion of the node report.
	ReportFormatVersion *string

	// Gets or sets the id of the node report.
	ReportID *string

	// Gets or sets the resource for the node report.
	Resources []*DscReportResource

	// Gets or sets the start time of the node report.
	StartTime *time.Time

	// Gets or sets the status of the node report.
	Status *string

	// Gets or sets the type of the node report.
	Type *string
}

DscNodeReport - Definition of the dsc node report type.

func (DscNodeReport) MarshalJSON

func (d DscNodeReport) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNodeReport.

func (*DscNodeReport) UnmarshalJSON

func (d *DscNodeReport) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeReport.

type DscNodeReportListResult

type DscNodeReportListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of dsc node reports.
	Value []*DscNodeReport
}

DscNodeReportListResult - The response model for the list dsc nodes operation.

func (DscNodeReportListResult) MarshalJSON

func (d DscNodeReportListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNodeReportListResult.

func (*DscNodeReportListResult) UnmarshalJSON added in v0.7.0

func (d *DscNodeReportListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeReportListResult.

type DscNodeUpdateParameters

type DscNodeUpdateParameters struct {
	// Gets or sets the id of the dsc node.
	NodeID     *string
	Properties *DscNodeUpdateParametersProperties
}

DscNodeUpdateParameters - The parameters supplied to the update dsc node operation.

func (DscNodeUpdateParameters) MarshalJSON

func (d DscNodeUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNodeUpdateParameters.

func (*DscNodeUpdateParameters) UnmarshalJSON added in v0.7.0

func (d *DscNodeUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeUpdateParameters.

type DscNodeUpdateParametersProperties

type DscNodeUpdateParametersProperties struct {
	// Gets or sets the configuration of the node.
	NodeConfiguration *DscNodeConfigurationAssociationProperty
}

func (DscNodeUpdateParametersProperties) MarshalJSON added in v0.7.0

func (d DscNodeUpdateParametersProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscNodeUpdateParametersProperties.

func (*DscNodeUpdateParametersProperties) UnmarshalJSON added in v0.7.0

func (d *DscNodeUpdateParametersProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscNodeUpdateParametersProperties.

type DscReportError

type DscReportError struct {
	// Gets or sets the error code.
	ErrorCode *string

	// Gets or sets the error details.
	ErrorDetails *string

	// Gets or sets the error message.
	ErrorMessage *string

	// Gets or sets the source of the error.
	ErrorSource *string

	// Gets or sets the locale of the error.
	Locale *string

	// Gets or sets the resource ID which generated the error.
	ResourceID *string
}

DscReportError - Definition of the dsc node report error type.

func (DscReportError) MarshalJSON added in v0.7.0

func (d DscReportError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscReportError.

func (*DscReportError) UnmarshalJSON added in v0.7.0

func (d *DscReportError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscReportError.

type DscReportResource

type DscReportResource struct {
	// Gets or sets the Resource Navigation values for resources the resource depends on.
	DependsOn []*DscReportResourceNavigation

	// Gets or sets the duration in seconds for the resource.
	DurationInSeconds *float64

	// Gets or sets the error of the resource.
	Error *string

	// Gets or sets the module name of the resource.
	ModuleName *string

	// Gets or sets the module version of the resource.
	ModuleVersion *string

	// Gets or sets the ID of the resource.
	ResourceID *string

	// Gets or sets the name of the resource.
	ResourceName *string

	// Gets or sets the source info of the resource.
	SourceInfo *string

	// Gets or sets the start date of the resource.
	StartDate *time.Time

	// Gets or sets the status of the resource.
	Status *string
}

DscReportResource - Definition of the DSC Report Resource.

func (DscReportResource) MarshalJSON

func (d DscReportResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscReportResource.

func (*DscReportResource) UnmarshalJSON

func (d *DscReportResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscReportResource.

type DscReportResourceNavigation

type DscReportResourceNavigation struct {
	// Gets or sets the ID of the resource to navigate to.
	ResourceID *string
}

DscReportResourceNavigation - Navigation for DSC Report Resource.

func (DscReportResourceNavigation) MarshalJSON added in v0.7.0

func (d DscReportResourceNavigation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DscReportResourceNavigation.

func (*DscReportResourceNavigation) UnmarshalJSON added in v0.7.0

func (d *DscReportResourceNavigation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DscReportResourceNavigation.

type EncryptionKeySourceType

type EncryptionKeySourceType string

EncryptionKeySourceType - Encryption Key Source

const (
	EncryptionKeySourceTypeMicrosoftAutomation EncryptionKeySourceType = "Microsoft.Automation"
	EncryptionKeySourceTypeMicrosoftKeyvault   EncryptionKeySourceType = "Microsoft.Keyvault"
)

func PossibleEncryptionKeySourceTypeValues

func PossibleEncryptionKeySourceTypeValues() []EncryptionKeySourceType

PossibleEncryptionKeySourceTypeValues returns the possible values for the EncryptionKeySourceType const type.

type EncryptionProperties

type EncryptionProperties struct {
	// User identity used for CMK.
	Identity *EncryptionPropertiesIdentity

	// Encryption Key Source
	KeySource *EncryptionKeySourceType

	// Key vault properties.
	KeyVaultProperties *KeyVaultProperties
}

EncryptionProperties - The encryption settings for automation account

func (EncryptionProperties) MarshalJSON added in v0.7.0

func (e EncryptionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EncryptionProperties.

func (*EncryptionProperties) UnmarshalJSON added in v0.7.0

func (e *EncryptionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionProperties.

type EncryptionPropertiesIdentity

type EncryptionPropertiesIdentity struct {
	// The user identity used for CMK. It will be an ARM resource id in the form:
	// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
	UserAssignedIdentity any
}

EncryptionPropertiesIdentity - User identity used for CMK.

func (EncryptionPropertiesIdentity) MarshalJSON added in v0.7.0

func (e EncryptionPropertiesIdentity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EncryptionPropertiesIdentity.

func (*EncryptionPropertiesIdentity) UnmarshalJSON added in v0.7.0

func (e *EncryptionPropertiesIdentity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionPropertiesIdentity.

type ErrorResponse

type ErrorResponse struct {
	// Error code
	Code *string

	// Error message indicating why the operation failed.
	Message *string
}

ErrorResponse - Error response of an operation failure

func (ErrorResponse) MarshalJSON added in v0.7.0

func (e ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON added in v0.7.0

func (e *ErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.

type FieldDefinition

type FieldDefinition struct {
	// REQUIRED; Gets or sets the type of the connection field definition.
	Type *string

	// Gets or sets the isEncrypted flag of the connection field definition.
	IsEncrypted *bool

	// Gets or sets the isOptional flag of the connection field definition.
	IsOptional *bool
}

FieldDefinition - Definition of the connection fields.

func (FieldDefinition) MarshalJSON added in v0.7.0

func (f FieldDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FieldDefinition.

func (*FieldDefinition) UnmarshalJSON added in v0.7.0

func (f *FieldDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FieldDefinition.

type FieldsClient

type FieldsClient struct {
	// contains filtered or unexported fields
}

FieldsClient contains the methods for the Fields group. Don't use this type directly, use NewFieldsClient() instead.

func NewFieldsClient

func NewFieldsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FieldsClient, error)

NewFieldsClient creates a new instance of FieldsClient 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 (*FieldsClient) NewListByTypePager added in v0.5.0

func (client *FieldsClient) NewListByTypePager(resourceGroupName string, automationAccountName string, moduleName string, typeName string, options *FieldsClientListByTypeOptions) *runtime.Pager[FieldsClientListByTypeResponse]

NewListByTypePager - Retrieve a list of fields of a given type identified by module name.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • moduleName - The name of module.
  • typeName - The name of type.
  • options - FieldsClientListByTypeOptions contains the optional parameters for the FieldsClient.NewListByTypePager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 	}},
		// }
	}
}
Output:

type FieldsClientListByTypeOptions added in v0.3.0

type FieldsClientListByTypeOptions struct {
}

FieldsClientListByTypeOptions contains the optional parameters for the FieldsClient.NewListByTypePager method.

type FieldsClientListByTypeResponse added in v0.3.0

type FieldsClientListByTypeResponse struct {
	// The response model for the list fields operation.
	TypeFieldListResult
}

FieldsClientListByTypeResponse contains the response from method FieldsClient.NewListByTypePager.

type GraphRunbookType

type GraphRunbookType string

GraphRunbookType - Runbook Type

const (
	GraphRunbookTypeGraphPowerShell         GraphRunbookType = "GraphPowerShell"
	GraphRunbookTypeGraphPowerShellWorkflow GraphRunbookType = "GraphPowerShellWorkflow"
)

func PossibleGraphRunbookTypeValues

func PossibleGraphRunbookTypeValues() []GraphRunbookType

PossibleGraphRunbookTypeValues returns the possible values for the GraphRunbookType const type.

type GraphicalRunbookContent

type GraphicalRunbookContent struct {
	// Graphical Runbook content as JSON
	GraphRunbookJSON *string

	// Raw graphical Runbook content.
	RawContent *RawGraphicalRunbookContent
}

GraphicalRunbookContent - Graphical Runbook Content

func (GraphicalRunbookContent) MarshalJSON added in v0.7.0

func (g GraphicalRunbookContent) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GraphicalRunbookContent.

func (*GraphicalRunbookContent) UnmarshalJSON added in v0.7.0

func (g *GraphicalRunbookContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GraphicalRunbookContent.

type GroupTypeEnum

type GroupTypeEnum string

GroupTypeEnum - Type of the HybridWorkerGroup.

const (
	GroupTypeEnumSystem GroupTypeEnum = "System"
	GroupTypeEnumUser   GroupTypeEnum = "User"
)

func PossibleGroupTypeEnumValues

func PossibleGroupTypeEnumValues() []GroupTypeEnum

PossibleGroupTypeEnumValues returns the possible values for the GroupTypeEnum const type.

type HTTPStatusCode

type HTTPStatusCode string
const (
	HTTPStatusCodeAccepted                     HTTPStatusCode = "Accepted"
	HTTPStatusCodeAmbiguous                    HTTPStatusCode = "Ambiguous"
	HTTPStatusCodeBadGateway                   HTTPStatusCode = "BadGateway"
	HTTPStatusCodeBadRequest                   HTTPStatusCode = "BadRequest"
	HTTPStatusCodeConflict                     HTTPStatusCode = "Conflict"
	HTTPStatusCodeContinue                     HTTPStatusCode = "Continue"
	HTTPStatusCodeCreated                      HTTPStatusCode = "Created"
	HTTPStatusCodeExpectationFailed            HTTPStatusCode = "ExpectationFailed"
	HTTPStatusCodeForbidden                    HTTPStatusCode = "Forbidden"
	HTTPStatusCodeFound                        HTTPStatusCode = "Found"
	HTTPStatusCodeGatewayTimeout               HTTPStatusCode = "GatewayTimeout"
	HTTPStatusCodeGone                         HTTPStatusCode = "Gone"
	HTTPStatusCodeHTTPVersionNotSupported      HTTPStatusCode = "HttpVersionNotSupported"
	HTTPStatusCodeInternalServerError          HTTPStatusCode = "InternalServerError"
	HTTPStatusCodeLengthRequired               HTTPStatusCode = "LengthRequired"
	HTTPStatusCodeMethodNotAllowed             HTTPStatusCode = "MethodNotAllowed"
	HTTPStatusCodeMoved                        HTTPStatusCode = "Moved"
	HTTPStatusCodeMovedPermanently             HTTPStatusCode = "MovedPermanently"
	HTTPStatusCodeMultipleChoices              HTTPStatusCode = "MultipleChoices"
	HTTPStatusCodeNoContent                    HTTPStatusCode = "NoContent"
	HTTPStatusCodeNonAuthoritativeInformation  HTTPStatusCode = "NonAuthoritativeInformation"
	HTTPStatusCodeNotAcceptable                HTTPStatusCode = "NotAcceptable"
	HTTPStatusCodeNotFound                     HTTPStatusCode = "NotFound"
	HTTPStatusCodeNotImplemented               HTTPStatusCode = "NotImplemented"
	HTTPStatusCodeNotModified                  HTTPStatusCode = "NotModified"
	HTTPStatusCodeOK                           HTTPStatusCode = "OK"
	HTTPStatusCodePartialContent               HTTPStatusCode = "PartialContent"
	HTTPStatusCodePaymentRequired              HTTPStatusCode = "PaymentRequired"
	HTTPStatusCodePreconditionFailed           HTTPStatusCode = "PreconditionFailed"
	HTTPStatusCodeProxyAuthenticationRequired  HTTPStatusCode = "ProxyAuthenticationRequired"
	HTTPStatusCodeRedirect                     HTTPStatusCode = "Redirect"
	HTTPStatusCodeRedirectKeepVerb             HTTPStatusCode = "RedirectKeepVerb"
	HTTPStatusCodeRedirectMethod               HTTPStatusCode = "RedirectMethod"
	HTTPStatusCodeRequestEntityTooLarge        HTTPStatusCode = "RequestEntityTooLarge"
	HTTPStatusCodeRequestTimeout               HTTPStatusCode = "RequestTimeout"
	HTTPStatusCodeRequestURITooLong            HTTPStatusCode = "RequestUriTooLong"
	HTTPStatusCodeRequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable"
	HTTPStatusCodeResetContent                 HTTPStatusCode = "ResetContent"
	HTTPStatusCodeSeeOther                     HTTPStatusCode = "SeeOther"
	HTTPStatusCodeServiceUnavailable           HTTPStatusCode = "ServiceUnavailable"
	HTTPStatusCodeSwitchingProtocols           HTTPStatusCode = "SwitchingProtocols"
	HTTPStatusCodeTemporaryRedirect            HTTPStatusCode = "TemporaryRedirect"
	HTTPStatusCodeUnauthorized                 HTTPStatusCode = "Unauthorized"
	HTTPStatusCodeUnsupportedMediaType         HTTPStatusCode = "UnsupportedMediaType"
	HTTPStatusCodeUnused                       HTTPStatusCode = "Unused"
	HTTPStatusCodeUpgradeRequired              HTTPStatusCode = "UpgradeRequired"
	HTTPStatusCodeUseProxy                     HTTPStatusCode = "UseProxy"
)

func PossibleHTTPStatusCodeValues

func PossibleHTTPStatusCodeValues() []HTTPStatusCode

PossibleHTTPStatusCodeValues returns the possible values for the HTTPStatusCode const type.

type HybridRunbookWorker

type HybridRunbookWorker struct {
	// Gets or sets the hybrid worker group properties.
	Properties *HybridRunbookWorkerProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Resource system metadata.
	SystemData *SystemData

	// READ-ONLY; The type of the resource.
	Type *string
}

HybridRunbookWorker - Definition of hybrid runbook worker.

func (HybridRunbookWorker) MarshalJSON

func (h HybridRunbookWorker) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorker.

func (*HybridRunbookWorker) UnmarshalJSON added in v0.7.0

func (h *HybridRunbookWorker) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorker.

type HybridRunbookWorkerCreateOrUpdateParameters

type HybridRunbookWorkerCreateOrUpdateParameters struct {
	// Azure Resource Manager Id for a virtual machine.
	VMResourceID *string
}

HybridRunbookWorkerCreateOrUpdateParameters - The parameters supplied to the create or update hybrid runbook worker operation.

func (HybridRunbookWorkerCreateOrUpdateParameters) MarshalJSON added in v0.7.0

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorkerCreateOrUpdateParameters.

func (*HybridRunbookWorkerCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (h *HybridRunbookWorkerCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorkerCreateOrUpdateParameters.

type HybridRunbookWorkerCreateParameters

type HybridRunbookWorkerCreateParameters struct {
	// REQUIRED; Gets or sets hybrid runbook worker group create or update properties.
	Properties *HybridRunbookWorkerCreateOrUpdateParameters

	// Gets or sets the name of the resource.
	Name *string
}

HybridRunbookWorkerCreateParameters - The parameters supplied to the create hybrid runbook worker operation.

func (HybridRunbookWorkerCreateParameters) MarshalJSON added in v0.7.0

func (h HybridRunbookWorkerCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorkerCreateParameters.

func (*HybridRunbookWorkerCreateParameters) UnmarshalJSON added in v0.7.0

func (h *HybridRunbookWorkerCreateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorkerCreateParameters.

type HybridRunbookWorkerGroup

type HybridRunbookWorkerGroup struct {
	// Gets or sets the hybrid worker group properties.
	Properties *HybridRunbookWorkerGroupProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Resource system metadata.
	SystemData *SystemData

	// READ-ONLY; The type of the resource.
	Type *string
}

HybridRunbookWorkerGroup - Definition of hybrid runbook worker group.

func (HybridRunbookWorkerGroup) MarshalJSON

func (h HybridRunbookWorkerGroup) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorkerGroup.

func (*HybridRunbookWorkerGroup) UnmarshalJSON added in v0.7.0

func (h *HybridRunbookWorkerGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorkerGroup.

type HybridRunbookWorkerGroupClient

type HybridRunbookWorkerGroupClient struct {
	// contains filtered or unexported fields
}

HybridRunbookWorkerGroupClient contains the methods for the HybridRunbookWorkerGroup group. Don't use this type directly, use NewHybridRunbookWorkerGroupClient() instead.

func NewHybridRunbookWorkerGroupClient

func NewHybridRunbookWorkerGroupClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*HybridRunbookWorkerGroupClient, error)

NewHybridRunbookWorkerGroupClient creates a new instance of HybridRunbookWorkerGroupClient 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 (*HybridRunbookWorkerGroupClient) Create

func (client *HybridRunbookWorkerGroupClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerGroupCreationParameters HybridRunbookWorkerGroupCreateOrUpdateParameters, options *HybridRunbookWorkerGroupClientCreateOptions) (HybridRunbookWorkerGroupClientCreateResponse, error)

Create - Create a hybrid runbook worker group. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2022-02-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • hybridRunbookWorkerGroupName - The hybrid runbook worker group name
  • hybridRunbookWorkerGroupCreationParameters - The create or update parameters for hybrid runbook worker group.
  • options - HybridRunbookWorkerGroupClientCreateOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.Create method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*HybridRunbookWorkerGroupClient) Delete

func (client *HybridRunbookWorkerGroupClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, options *HybridRunbookWorkerGroupClientDeleteOptions) (HybridRunbookWorkerGroupClientDeleteResponse, error)

Delete - Delete a hybrid runbook worker group. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2022-02-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • hybridRunbookWorkerGroupName - The hybrid runbook worker group name
  • options - HybridRunbookWorkerGroupClientDeleteOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*HybridRunbookWorkerGroupClient) Get

func (client *HybridRunbookWorkerGroupClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, options *HybridRunbookWorkerGroupClientGetOptions) (HybridRunbookWorkerGroupClientGetResponse, error)

Get - Retrieve a hybrid runbook worker group. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2022-02-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • hybridRunbookWorkerGroupName - The hybrid runbook worker group name
  • options - HybridRunbookWorkerGroupClientGetOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*HybridRunbookWorkerGroupClient) NewListByAutomationAccountPager added in v0.5.0

NewListByAutomationAccountPager - Retrieve a list of hybrid runbook worker groups.

Generated from API version 2022-02-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - HybridRunbookWorkerGroupClientListByAutomationAccountOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*HybridRunbookWorkerGroupClient) Update

func (client *HybridRunbookWorkerGroupClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerGroupUpdationParameters HybridRunbookWorkerGroupCreateOrUpdateParameters, options *HybridRunbookWorkerGroupClientUpdateOptions) (HybridRunbookWorkerGroupClientUpdateResponse, error)

Update - Update a hybrid runbook worker group. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2022-02-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • hybridRunbookWorkerGroupName - The hybrid runbook worker group name
  • hybridRunbookWorkerGroupUpdationParameters - The hybrid runbook worker group
  • options - HybridRunbookWorkerGroupClientUpdateOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

type HybridRunbookWorkerGroupClientCreateOptions added in v0.3.0

type HybridRunbookWorkerGroupClientCreateOptions struct {
}

HybridRunbookWorkerGroupClientCreateOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.Create method.

type HybridRunbookWorkerGroupClientCreateResponse added in v0.3.0

type HybridRunbookWorkerGroupClientCreateResponse struct {
	// Definition of hybrid runbook worker group.
	HybridRunbookWorkerGroup
}

HybridRunbookWorkerGroupClientCreateResponse contains the response from method HybridRunbookWorkerGroupClient.Create.

type HybridRunbookWorkerGroupClientDeleteOptions added in v0.3.0

type HybridRunbookWorkerGroupClientDeleteOptions struct {
}

HybridRunbookWorkerGroupClientDeleteOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.Delete method.

type HybridRunbookWorkerGroupClientDeleteResponse added in v0.3.0

type HybridRunbookWorkerGroupClientDeleteResponse struct {
}

HybridRunbookWorkerGroupClientDeleteResponse contains the response from method HybridRunbookWorkerGroupClient.Delete.

type HybridRunbookWorkerGroupClientGetOptions added in v0.3.0

type HybridRunbookWorkerGroupClientGetOptions struct {
}

HybridRunbookWorkerGroupClientGetOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.Get method.

type HybridRunbookWorkerGroupClientGetResponse added in v0.3.0

type HybridRunbookWorkerGroupClientGetResponse struct {
	// Definition of hybrid runbook worker group.
	HybridRunbookWorkerGroup
}

HybridRunbookWorkerGroupClientGetResponse contains the response from method HybridRunbookWorkerGroupClient.Get.

type HybridRunbookWorkerGroupClientListByAutomationAccountOptions added in v0.3.0

type HybridRunbookWorkerGroupClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

HybridRunbookWorkerGroupClientListByAutomationAccountOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.NewListByAutomationAccountPager method.

type HybridRunbookWorkerGroupClientListByAutomationAccountResponse added in v0.3.0

type HybridRunbookWorkerGroupClientListByAutomationAccountResponse struct {
	// The response model for the list hybrid runbook worker groups.
	HybridRunbookWorkerGroupsListResult
}

HybridRunbookWorkerGroupClientListByAutomationAccountResponse contains the response from method HybridRunbookWorkerGroupClient.NewListByAutomationAccountPager.

type HybridRunbookWorkerGroupClientUpdateOptions added in v0.3.0

type HybridRunbookWorkerGroupClientUpdateOptions struct {
}

HybridRunbookWorkerGroupClientUpdateOptions contains the optional parameters for the HybridRunbookWorkerGroupClient.Update method.

type HybridRunbookWorkerGroupClientUpdateResponse added in v0.3.0

type HybridRunbookWorkerGroupClientUpdateResponse struct {
	// Definition of hybrid runbook worker group.
	HybridRunbookWorkerGroup
}

HybridRunbookWorkerGroupClientUpdateResponse contains the response from method HybridRunbookWorkerGroupClient.Update.

type HybridRunbookWorkerGroupCreateOrUpdateParameters

type HybridRunbookWorkerGroupCreateOrUpdateParameters struct {
	// Gets or sets the name of the resource.
	Name *string

	// Gets or sets hybrid runbook worker group create or update properties.
	Properties *HybridRunbookWorkerGroupCreateOrUpdateProperties
}

HybridRunbookWorkerGroupCreateOrUpdateParameters - The parameters supplied to the create hybrid runbook worker group operation.

func (HybridRunbookWorkerGroupCreateOrUpdateParameters) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorkerGroupCreateOrUpdateParameters.

func (*HybridRunbookWorkerGroupCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorkerGroupCreateOrUpdateParameters.

type HybridRunbookWorkerGroupCreateOrUpdateProperties added in v0.7.0

type HybridRunbookWorkerGroupCreateOrUpdateProperties struct {
	// Sets the credential of a worker group.
	Credential *RunAsCredentialAssociationProperty
}

HybridRunbookWorkerGroupCreateOrUpdateProperties - The hybrid runbook worker group properties.

func (HybridRunbookWorkerGroupCreateOrUpdateProperties) MarshalJSON added in v0.7.0

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorkerGroupCreateOrUpdateProperties.

func (*HybridRunbookWorkerGroupCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorkerGroupCreateOrUpdateProperties.

type HybridRunbookWorkerGroupProperties added in v0.7.0

type HybridRunbookWorkerGroupProperties struct {
	// Sets the credential of a worker group.
	Credential *RunAsCredentialAssociationProperty

	// Type of the HybridWorkerGroup.
	GroupType *GroupTypeEnum
}

HybridRunbookWorkerGroupProperties - Definition of hybrid runbook worker group property.

func (HybridRunbookWorkerGroupProperties) MarshalJSON added in v0.7.0

func (h HybridRunbookWorkerGroupProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorkerGroupProperties.

func (*HybridRunbookWorkerGroupProperties) UnmarshalJSON added in v0.7.0

func (h *HybridRunbookWorkerGroupProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorkerGroupProperties.

type HybridRunbookWorkerGroupsListResult

type HybridRunbookWorkerGroupsListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of hybrid runbook worker groups.
	Value []*HybridRunbookWorkerGroup
}

HybridRunbookWorkerGroupsListResult - The response model for the list hybrid runbook worker groups.

func (HybridRunbookWorkerGroupsListResult) MarshalJSON

func (h HybridRunbookWorkerGroupsListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorkerGroupsListResult.

func (*HybridRunbookWorkerGroupsListResult) UnmarshalJSON added in v0.7.0

func (h *HybridRunbookWorkerGroupsListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorkerGroupsListResult.

type HybridRunbookWorkerMoveParameters

type HybridRunbookWorkerMoveParameters struct {
	// Gets or sets the target hybrid runbook worker group.
	HybridRunbookWorkerGroupName *string
}

HybridRunbookWorkerMoveParameters - Parameters supplied to move hybrid worker operation.

func (HybridRunbookWorkerMoveParameters) MarshalJSON added in v0.7.0

func (h HybridRunbookWorkerMoveParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorkerMoveParameters.

func (*HybridRunbookWorkerMoveParameters) UnmarshalJSON added in v0.7.0

func (h *HybridRunbookWorkerMoveParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorkerMoveParameters.

type HybridRunbookWorkerProperties

type HybridRunbookWorkerProperties struct {
	// Gets or sets the assigned machine IP address.
	IP *string

	// Last Heartbeat from the Worker
	LastSeenDateTime *time.Time

	// Gets or sets the registration time of the worker machine.
	RegisteredDateTime *time.Time

	// Azure Resource Manager Id for a virtual machine.
	VMResourceID *string

	// Name of the HybridWorker.
	WorkerName *string

	// Type of the HybridWorker.
	WorkerType *WorkerType
}

HybridRunbookWorkerProperties - Definition of hybrid runbook worker property.

func (HybridRunbookWorkerProperties) MarshalJSON

func (h HybridRunbookWorkerProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorkerProperties.

func (*HybridRunbookWorkerProperties) UnmarshalJSON

func (h *HybridRunbookWorkerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorkerProperties.

type HybridRunbookWorkersClient

type HybridRunbookWorkersClient struct {
	// contains filtered or unexported fields
}

HybridRunbookWorkersClient contains the methods for the HybridRunbookWorkers group. Don't use this type directly, use NewHybridRunbookWorkersClient() instead.

func NewHybridRunbookWorkersClient

func NewHybridRunbookWorkersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*HybridRunbookWorkersClient, error)

NewHybridRunbookWorkersClient creates a new instance of HybridRunbookWorkersClient 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 (*HybridRunbookWorkersClient) Create

func (client *HybridRunbookWorkersClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string, hybridRunbookWorkerCreationParameters HybridRunbookWorkerCreateParameters, options *HybridRunbookWorkersClientCreateOptions) (HybridRunbookWorkersClientCreateResponse, error)

Create - Create a hybrid runbook worker. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • hybridRunbookWorkerGroupName - The hybrid runbook worker group name
  • hybridRunbookWorkerID - The hybrid runbook worker id
  • hybridRunbookWorkerCreationParameters - The create or update parameters for hybrid runbook worker.
  • options - HybridRunbookWorkersClientCreateOptions contains the optional parameters for the HybridRunbookWorkersClient.Create method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*HybridRunbookWorkersClient) Delete

func (client *HybridRunbookWorkersClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string, options *HybridRunbookWorkersClientDeleteOptions) (HybridRunbookWorkersClientDeleteResponse, error)

Delete - Delete a hybrid runbook worker. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • hybridRunbookWorkerGroupName - The hybrid runbook worker group name
  • hybridRunbookWorkerID - The hybrid runbook worker id
  • options - HybridRunbookWorkersClientDeleteOptions contains the optional parameters for the HybridRunbookWorkersClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*HybridRunbookWorkersClient) Get

func (client *HybridRunbookWorkersClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string, options *HybridRunbookWorkersClientGetOptions) (HybridRunbookWorkersClientGetResponse, error)

Get - Retrieve a hybrid runbook worker. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • hybridRunbookWorkerGroupName - The hybrid runbook worker group name
  • hybridRunbookWorkerID - The hybrid runbook worker id
  • options - HybridRunbookWorkersClientGetOptions contains the optional parameters for the HybridRunbookWorkersClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*HybridRunbookWorkersClient) Move

func (client *HybridRunbookWorkersClient) Move(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string, hybridRunbookWorkerMoveParameters HybridRunbookWorkerMoveParameters, options *HybridRunbookWorkersClientMoveOptions) (HybridRunbookWorkersClientMoveResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • hybridRunbookWorkerGroupName - The hybrid runbook worker group name
  • hybridRunbookWorkerID - The hybrid runbook worker id
  • hybridRunbookWorkerMoveParameters - The hybrid runbook worker move parameters
  • options - HybridRunbookWorkersClientMoveOptions contains the optional parameters for the HybridRunbookWorkersClient.Move method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*HybridRunbookWorkersClient) NewListByHybridRunbookWorkerGroupPager added in v0.5.0

func (client *HybridRunbookWorkersClient) NewListByHybridRunbookWorkerGroupPager(resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, options *HybridRunbookWorkersClientListByHybridRunbookWorkerGroupOptions) *runtime.Pager[HybridRunbookWorkersClientListByHybridRunbookWorkerGroupResponse]

NewListByHybridRunbookWorkerGroupPager - Retrieve a list of hybrid runbook workers.

Generated from API version 2021-06-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • hybridRunbookWorkerGroupName - The hybrid runbook worker group name
  • options - HybridRunbookWorkersClientListByHybridRunbookWorkerGroupOptions contains the optional parameters for the HybridRunbookWorkersClient.NewListByHybridRunbookWorkerGroupPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

type HybridRunbookWorkersClientCreateOptions added in v0.3.0

type HybridRunbookWorkersClientCreateOptions struct {
}

HybridRunbookWorkersClientCreateOptions contains the optional parameters for the HybridRunbookWorkersClient.Create method.

type HybridRunbookWorkersClientCreateResponse added in v0.3.0

type HybridRunbookWorkersClientCreateResponse struct {
	// Definition of hybrid runbook worker.
	HybridRunbookWorker
}

HybridRunbookWorkersClientCreateResponse contains the response from method HybridRunbookWorkersClient.Create.

type HybridRunbookWorkersClientDeleteOptions added in v0.3.0

type HybridRunbookWorkersClientDeleteOptions struct {
}

HybridRunbookWorkersClientDeleteOptions contains the optional parameters for the HybridRunbookWorkersClient.Delete method.

type HybridRunbookWorkersClientDeleteResponse added in v0.3.0

type HybridRunbookWorkersClientDeleteResponse struct {
}

HybridRunbookWorkersClientDeleteResponse contains the response from method HybridRunbookWorkersClient.Delete.

type HybridRunbookWorkersClientGetOptions added in v0.3.0

type HybridRunbookWorkersClientGetOptions struct {
}

HybridRunbookWorkersClientGetOptions contains the optional parameters for the HybridRunbookWorkersClient.Get method.

type HybridRunbookWorkersClientGetResponse added in v0.3.0

type HybridRunbookWorkersClientGetResponse struct {
	// Definition of hybrid runbook worker.
	HybridRunbookWorker
}

HybridRunbookWorkersClientGetResponse contains the response from method HybridRunbookWorkersClient.Get.

type HybridRunbookWorkersClientListByHybridRunbookWorkerGroupOptions added in v0.3.0

type HybridRunbookWorkersClientListByHybridRunbookWorkerGroupOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

HybridRunbookWorkersClientListByHybridRunbookWorkerGroupOptions contains the optional parameters for the HybridRunbookWorkersClient.NewListByHybridRunbookWorkerGroupPager method.

type HybridRunbookWorkersClientListByHybridRunbookWorkerGroupResponse added in v0.3.0

type HybridRunbookWorkersClientListByHybridRunbookWorkerGroupResponse struct {
	// The response model for the list hybrid runbook workers.
	HybridRunbookWorkersListResult
}

HybridRunbookWorkersClientListByHybridRunbookWorkerGroupResponse contains the response from method HybridRunbookWorkersClient.NewListByHybridRunbookWorkerGroupPager.

type HybridRunbookWorkersClientMoveOptions added in v0.3.0

type HybridRunbookWorkersClientMoveOptions struct {
}

HybridRunbookWorkersClientMoveOptions contains the optional parameters for the HybridRunbookWorkersClient.Move method.

type HybridRunbookWorkersClientMoveResponse added in v0.3.0

type HybridRunbookWorkersClientMoveResponse struct {
}

HybridRunbookWorkersClientMoveResponse contains the response from method HybridRunbookWorkersClient.Move.

type HybridRunbookWorkersListResult

type HybridRunbookWorkersListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of hybrid runbook workers.
	Value []*HybridRunbookWorker
}

HybridRunbookWorkersListResult - The response model for the list hybrid runbook workers.

func (HybridRunbookWorkersListResult) MarshalJSON

func (h HybridRunbookWorkersListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HybridRunbookWorkersListResult.

func (*HybridRunbookWorkersListResult) UnmarshalJSON added in v0.7.0

func (h *HybridRunbookWorkersListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HybridRunbookWorkersListResult.

type Identity

type Identity struct {
	// The identity type.
	Type *ResourceIdentityType

	// 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

	// READ-ONLY; The principal ID of resource identity.
	PrincipalID *string

	// READ-ONLY; The tenant ID of resource.
	TenantID *string
}

Identity for the resource.

func (Identity) MarshalJSON

func (i Identity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Identity.

func (*Identity) UnmarshalJSON added in v0.7.0

func (i *Identity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Identity.

type Job

type Job struct {
	// The properties of the job.
	Properties *JobProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Job - Definition of the job.

func (Job) MarshalJSON

func (j Job) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Job.

func (*Job) UnmarshalJSON added in v0.7.0

func (j *Job) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Job.

type JobClient

type JobClient struct {
	// contains filtered or unexported fields
}

JobClient contains the methods for the Job group. Don't use this type directly, use NewJobClient() instead.

func NewJobClient

func NewJobClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobClient, error)

NewJobClient creates a new instance of JobClient 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 (*JobClient) Create

func (client *JobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, parameters JobCreateParameters, options *JobClientCreateOptions) (JobClientCreateResponse, error)

Create - Create a job of the runbook. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-06-01

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobName - The job name.
  • parameters - The parameters supplied to the create job operation.
  • options - JobClientCreateOptions contains the optional parameters for the JobClient.Create method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*JobClient) Get

func (client *JobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, options *JobClientGetOptions) (JobClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobName - The job name.
  • options - JobClientGetOptions contains the optional parameters for the JobClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

func (*JobClient) GetOutput

func (client *JobClient) GetOutput(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, options *JobClientGetOutputOptions) (JobClientGetOutputResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobName - The name of the job to be created.
  • options - JobClientGetOutputOptions contains the optional parameters for the JobClient.GetOutput method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"
}
Output:

func (*JobClient) GetRunbookContent

func (client *JobClient) GetRunbookContent(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, options *JobClientGetRunbookContentOptions) (JobClientGetRunbookContentResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobName - The job name.
  • options - JobClientGetRunbookContentOptions contains the optional parameters for the JobClient.GetRunbookContent method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"
}
Output:

func (*JobClient) NewListByAutomationAccountPager added in v0.5.0

func (client *JobClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *JobClientListByAutomationAccountOptions) *runtime.Pager[JobClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of jobs.

Generated from API version 2019-06-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 method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*JobClient) Resume

func (client *JobClient) Resume(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, options *JobClientResumeOptions) (JobClientResumeResponse, error)

Resume - Resume the job identified by jobName. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-06-01

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobName - The job name.
  • options - JobClientResumeOptions contains the optional parameters for the JobClient.Resume method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*JobClient) Stop

func (client *JobClient) Stop(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, options *JobClientStopOptions) (JobClientStopResponse, error)

Stop - Stop the job identified by jobName. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-06-01

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobName - The job name.
  • options - JobClientStopOptions contains the optional parameters for the JobClient.Stop method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*JobClient) Suspend

func (client *JobClient) Suspend(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, options *JobClientSuspendOptions) (JobClientSuspendResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobName - The job name.
  • options - JobClientSuspendOptions contains the optional parameters for the JobClient.Suspend method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

type JobClientCreateOptions added in v0.3.0

type JobClientCreateOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

JobClientCreateOptions contains the optional parameters for the JobClient.Create method.

type JobClientCreateResponse added in v0.3.0

type JobClientCreateResponse struct {
	// Definition of the job.
	Job
}

JobClientCreateResponse contains the response from method JobClient.Create.

type JobClientGetOptions added in v0.3.0

type JobClientGetOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

JobClientGetOptions contains the optional parameters for the JobClient.Get method.

type JobClientGetOutputOptions added in v0.3.0

type JobClientGetOutputOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

JobClientGetOutputOptions contains the optional parameters for the JobClient.GetOutput method.

type JobClientGetOutputResponse added in v0.3.0

type JobClientGetOutputResponse struct {
	Value *string
}

JobClientGetOutputResponse contains the response from method JobClient.GetOutput.

type JobClientGetResponse added in v0.3.0

type JobClientGetResponse struct {
	// Definition of the job.
	Job
}

JobClientGetResponse contains the response from method JobClient.Get.

type JobClientGetRunbookContentOptions added in v0.3.0

type JobClientGetRunbookContentOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

JobClientGetRunbookContentOptions contains the optional parameters for the JobClient.GetRunbookContent method.

type JobClientGetRunbookContentResponse added in v0.3.0

type JobClientGetRunbookContentResponse struct {
	Value *string
}

JobClientGetRunbookContentResponse contains the response from method JobClient.GetRunbookContent.

type JobClientListByAutomationAccountOptions added in v0.3.0

type JobClientListByAutomationAccountOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string

	// The filter to apply on the operation.
	Filter *string
}

JobClientListByAutomationAccountOptions contains the optional parameters for the JobClient.NewListByAutomationAccountPager method.

type JobClientListByAutomationAccountResponse added in v0.3.0

type JobClientListByAutomationAccountResponse struct {
	// The response model for the list job operation.
	JobListResultV2
}

JobClientListByAutomationAccountResponse contains the response from method JobClient.NewListByAutomationAccountPager.

type JobClientResumeOptions added in v0.3.0

type JobClientResumeOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

JobClientResumeOptions contains the optional parameters for the JobClient.Resume method.

type JobClientResumeResponse added in v0.3.0

type JobClientResumeResponse struct {
}

JobClientResumeResponse contains the response from method JobClient.Resume.

type JobClientStopOptions added in v0.3.0

type JobClientStopOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

JobClientStopOptions contains the optional parameters for the JobClient.Stop method.

type JobClientStopResponse added in v0.3.0

type JobClientStopResponse struct {
}

JobClientStopResponse contains the response from method JobClient.Stop.

type JobClientSuspendOptions added in v0.3.0

type JobClientSuspendOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

JobClientSuspendOptions contains the optional parameters for the JobClient.Suspend method.

type JobClientSuspendResponse added in v0.3.0

type JobClientSuspendResponse struct {
}

JobClientSuspendResponse contains the response from method JobClient.Suspend.

type JobCollectionItem

type JobCollectionItem struct {
	// REQUIRED; Job properties.
	Properties *JobCollectionItemProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

JobCollectionItem - Job collection item properties.

func (JobCollectionItem) MarshalJSON

func (j JobCollectionItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobCollectionItem.

func (*JobCollectionItem) UnmarshalJSON added in v0.7.0

func (j *JobCollectionItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobCollectionItem.

type JobCollectionItemProperties

type JobCollectionItemProperties struct {
	// Specifies the runOn group name where the job was executed.
	RunOn *string

	// READ-ONLY; The creation time of the job.
	CreationTime *time.Time

	// READ-ONLY; The end time of the job.
	EndTime *time.Time

	// READ-ONLY; The id of the job.
	JobID *string

	// READ-ONLY; The last modified time of the job.
	LastModifiedTime *time.Time

	// READ-ONLY; The provisioning state of a resource.
	ProvisioningState *string

	// READ-ONLY; The runbook association.
	Runbook *RunbookAssociationProperty

	// READ-ONLY; The start time of the job.
	StartTime *time.Time

	// READ-ONLY; The status of the job.
	Status *JobStatus
}

JobCollectionItemProperties - Job collection item properties.

func (JobCollectionItemProperties) MarshalJSON

func (j JobCollectionItemProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobCollectionItemProperties.

func (*JobCollectionItemProperties) UnmarshalJSON

func (j *JobCollectionItemProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobCollectionItemProperties.

type JobCreateParameters

type JobCreateParameters struct {
	// REQUIRED; Gets or sets the list of job properties.
	Properties *JobCreateProperties
}

JobCreateParameters - The parameters supplied to the create job operation.

func (JobCreateParameters) MarshalJSON added in v0.7.0

func (j JobCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobCreateParameters.

func (*JobCreateParameters) UnmarshalJSON added in v0.7.0

func (j *JobCreateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobCreateParameters.

type JobCreateProperties

type JobCreateProperties struct {
	// Gets or sets the parameters of the job.
	Parameters map[string]*string

	// Gets or sets the runOn which specifies the group name where the job is to be executed.
	RunOn *string

	// Gets or sets the runbook.
	Runbook *RunbookAssociationProperty
}

func (JobCreateProperties) MarshalJSON

func (j JobCreateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobCreateProperties.

func (*JobCreateProperties) UnmarshalJSON added in v0.7.0

func (j *JobCreateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobCreateProperties.

type JobListResultV2

type JobListResultV2 struct {
	// List of jobs.
	Value []*JobCollectionItem

	// READ-ONLY; The link to the next page.
	NextLink *string
}

JobListResultV2 - The response model for the list job operation.

func (JobListResultV2) MarshalJSON

func (j JobListResultV2) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobListResultV2.

func (*JobListResultV2) UnmarshalJSON added in v0.7.0

func (j *JobListResultV2) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobListResultV2.

type JobNavigation

type JobNavigation struct {
	// READ-ONLY; Id of the job associated with the software update configuration run
	ID *string
}

JobNavigation - Software update configuration machine run job navigation properties.

func (JobNavigation) MarshalJSON added in v0.7.0

func (j JobNavigation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobNavigation.

func (*JobNavigation) UnmarshalJSON added in v0.7.0

func (j *JobNavigation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobNavigation.

type JobProperties

type JobProperties struct {
	// Gets or sets the creation time of the job.
	CreationTime *time.Time

	// Gets or sets the end time of the job.
	EndTime *time.Time

	// Gets or sets the exception of the job.
	Exception *string

	// Gets or sets the id of the job.
	JobID *string

	// Gets or sets the last modified time of the job.
	LastModifiedTime *time.Time

	// Gets or sets the last status modified time of the job.
	LastStatusModifiedTime *time.Time

	// Gets or sets the parameters of the job.
	Parameters map[string]*string

	// The current provisioning state of the job.
	ProvisioningState *JobProvisioningState

	// Gets or sets the runOn which specifies the group name where the job is to be executed.
	RunOn *string

	// Gets or sets the runbook.
	Runbook *RunbookAssociationProperty

	// Gets or sets the start time of the job.
	StartTime *time.Time

	// Gets or sets the job started by.
	StartedBy *string

	// Gets or sets the status of the job.
	Status *JobStatus

	// Gets or sets the status details of the job.
	StatusDetails *string
}

JobProperties - Definition of job properties.

func (JobProperties) MarshalJSON

func (j JobProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobProperties.

func (*JobProperties) UnmarshalJSON

func (j *JobProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobProperties.

type JobProvisioningState

type JobProvisioningState string

JobProvisioningState - The provisioning state of the resource.

const (
	JobProvisioningStateFailed     JobProvisioningState = "Failed"
	JobProvisioningStateProcessing JobProvisioningState = "Processing"
	JobProvisioningStateSucceeded  JobProvisioningState = "Succeeded"
	JobProvisioningStateSuspended  JobProvisioningState = "Suspended"
)

func PossibleJobProvisioningStateValues

func PossibleJobProvisioningStateValues() []JobProvisioningState

PossibleJobProvisioningStateValues returns the possible values for the JobProvisioningState const type.

type JobSchedule

type JobSchedule struct {
	// Gets or sets the properties of the job schedule.
	Properties *JobScheduleProperties

	// READ-ONLY; Gets the id of the resource.
	ID *string

	// READ-ONLY; Gets the name of the variable.
	Name *string

	// READ-ONLY; Resource type
	Type *string
}

JobSchedule - Definition of the job schedule.

func (JobSchedule) MarshalJSON added in v0.7.0

func (j JobSchedule) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobSchedule.

func (*JobSchedule) UnmarshalJSON added in v0.7.0

func (j *JobSchedule) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobSchedule.

type JobScheduleClient

type JobScheduleClient struct {
	// contains filtered or unexported fields
}

JobScheduleClient contains the methods for the JobSchedule group. Don't use this type directly, use NewJobScheduleClient() instead.

func NewJobScheduleClient

func NewJobScheduleClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobScheduleClient, error)

NewJobScheduleClient creates a new instance of JobScheduleClient 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 (*JobScheduleClient) Create

func (client *JobScheduleClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID string, parameters JobScheduleCreateParameters, options *JobScheduleClientCreateOptions) (JobScheduleClientCreateResponse, error)

Create - Create a job schedule. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobScheduleID - The job schedule name.
  • parameters - The parameters supplied to the create job schedule operation.
  • options - JobScheduleClientCreateOptions contains the optional parameters for the JobScheduleClient.Create method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*JobScheduleClient) Delete

func (client *JobScheduleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID string, options *JobScheduleClientDeleteOptions) (JobScheduleClientDeleteResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobScheduleID - The job schedule name.
  • options - JobScheduleClientDeleteOptions contains the optional parameters for the JobScheduleClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*JobScheduleClient) Get

func (client *JobScheduleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID string, options *JobScheduleClientGetOptions) (JobScheduleClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobScheduleID - The job schedule name.
  • options - JobScheduleClientGetOptions contains the optional parameters for the JobScheduleClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 		},
	// 	},
	// }
}
Output:

func (*JobScheduleClient) NewListByAutomationAccountPager added in v0.5.0

func (client *JobScheduleClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *JobScheduleClientListByAutomationAccountOptions) *runtime.Pager[JobScheduleClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of job schedules.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - JobScheduleClientListByAutomationAccountOptions contains the optional parameters for the JobScheduleClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 				},
		// 			},
		// 	}},
		// }
	}
}
Output:

type JobScheduleClientCreateOptions added in v0.3.0

type JobScheduleClientCreateOptions struct {
}

JobScheduleClientCreateOptions contains the optional parameters for the JobScheduleClient.Create method.

type JobScheduleClientCreateResponse added in v0.3.0

type JobScheduleClientCreateResponse struct {
	// Definition of the job schedule.
	JobSchedule
}

JobScheduleClientCreateResponse contains the response from method JobScheduleClient.Create.

type JobScheduleClientDeleteOptions added in v0.3.0

type JobScheduleClientDeleteOptions struct {
}

JobScheduleClientDeleteOptions contains the optional parameters for the JobScheduleClient.Delete method.

type JobScheduleClientDeleteResponse added in v0.3.0

type JobScheduleClientDeleteResponse struct {
}

JobScheduleClientDeleteResponse contains the response from method JobScheduleClient.Delete.

type JobScheduleClientGetOptions added in v0.3.0

type JobScheduleClientGetOptions struct {
}

JobScheduleClientGetOptions contains the optional parameters for the JobScheduleClient.Get method.

type JobScheduleClientGetResponse added in v0.3.0

type JobScheduleClientGetResponse struct {
	// Definition of the job schedule.
	JobSchedule
}

JobScheduleClientGetResponse contains the response from method JobScheduleClient.Get.

type JobScheduleClientListByAutomationAccountOptions added in v0.3.0

type JobScheduleClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

JobScheduleClientListByAutomationAccountOptions contains the optional parameters for the JobScheduleClient.NewListByAutomationAccountPager method.

type JobScheduleClientListByAutomationAccountResponse added in v0.3.0

type JobScheduleClientListByAutomationAccountResponse struct {
	// The response model for the list job schedule operation.
	JobScheduleListResult
}

JobScheduleClientListByAutomationAccountResponse contains the response from method JobScheduleClient.NewListByAutomationAccountPager.

type JobScheduleCreateParameters

type JobScheduleCreateParameters struct {
	// REQUIRED; Gets or sets the list of job schedule properties.
	Properties *JobScheduleCreateProperties
}

JobScheduleCreateParameters - The parameters supplied to the create job schedule operation.

func (JobScheduleCreateParameters) MarshalJSON added in v0.7.0

func (j JobScheduleCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobScheduleCreateParameters.

func (*JobScheduleCreateParameters) UnmarshalJSON added in v0.7.0

func (j *JobScheduleCreateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobScheduleCreateParameters.

type JobScheduleCreateProperties

type JobScheduleCreateProperties struct {
	// REQUIRED; Gets or sets the runbook.
	Runbook *RunbookAssociationProperty

	// REQUIRED; Gets or sets the schedule.
	Schedule *ScheduleAssociationProperty

	// Gets or sets a list of job properties.
	Parameters map[string]*string

	// Gets or sets the hybrid worker group that the scheduled job should run on.
	RunOn *string
}

JobScheduleCreateProperties - The parameters supplied to the create job schedule operation.

func (JobScheduleCreateProperties) MarshalJSON

func (j JobScheduleCreateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobScheduleCreateProperties.

func (*JobScheduleCreateProperties) UnmarshalJSON added in v0.7.0

func (j *JobScheduleCreateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobScheduleCreateProperties.

type JobScheduleListResult

type JobScheduleListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of job schedules.
	Value []*JobSchedule
}

JobScheduleListResult - The response model for the list job schedule operation.

func (JobScheduleListResult) MarshalJSON

func (j JobScheduleListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobScheduleListResult.

func (*JobScheduleListResult) UnmarshalJSON added in v0.7.0

func (j *JobScheduleListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobScheduleListResult.

type JobScheduleProperties

type JobScheduleProperties struct {
	// Gets or sets the id of job schedule.
	JobScheduleID *string

	// Gets or sets the parameters of the job schedule.
	Parameters map[string]*string

	// Gets or sets the hybrid worker group that the scheduled job should run on.
	RunOn *string

	// Gets or sets the runbook.
	Runbook *RunbookAssociationProperty

	// Gets or sets the schedule.
	Schedule *ScheduleAssociationProperty
}

JobScheduleProperties - Definition of job schedule parameters.

func (JobScheduleProperties) MarshalJSON

func (j JobScheduleProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobScheduleProperties.

func (*JobScheduleProperties) UnmarshalJSON added in v0.7.0

func (j *JobScheduleProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobScheduleProperties.

type JobStatus

type JobStatus string

JobStatus - Gets or sets the status of the job.

const (
	JobStatusActivating   JobStatus = "Activating"
	JobStatusBlocked      JobStatus = "Blocked"
	JobStatusCompleted    JobStatus = "Completed"
	JobStatusDisconnected JobStatus = "Disconnected"
	JobStatusFailed       JobStatus = "Failed"
	JobStatusNew          JobStatus = "New"
	JobStatusRemoving     JobStatus = "Removing"
	JobStatusResuming     JobStatus = "Resuming"
	JobStatusRunning      JobStatus = "Running"
	JobStatusStopped      JobStatus = "Stopped"
	JobStatusStopping     JobStatus = "Stopping"
	JobStatusSuspended    JobStatus = "Suspended"
	JobStatusSuspending   JobStatus = "Suspending"
)

func PossibleJobStatusValues

func PossibleJobStatusValues() []JobStatus

PossibleJobStatusValues returns the possible values for the JobStatus const type.

type JobStream

type JobStream struct {
	// Gets or sets the id of the resource.
	ID *string

	// Gets or sets the id of the job stream.
	Properties *JobStreamProperties
}

JobStream - Definition of the job stream.

func (JobStream) MarshalJSON added in v0.7.0

func (j JobStream) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobStream.

func (*JobStream) UnmarshalJSON added in v0.7.0

func (j *JobStream) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobStream.

type JobStreamClient

type JobStreamClient struct {
	// contains filtered or unexported fields
}

JobStreamClient contains the methods for the JobStream group. Don't use this type directly, use NewJobStreamClient() instead.

func NewJobStreamClient

func NewJobStreamClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobStreamClient, error)

NewJobStreamClient creates a new instance of JobStreamClient 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 (*JobStreamClient) Get

func (client *JobStreamClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, jobStreamID string, options *JobStreamClientGetOptions) (JobStreamClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobName - The job name.
  • jobStreamID - The job stream id.
  • options - JobStreamClientGetOptions contains the optional parameters for the JobStreamClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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{
	// 		},
	// 	},
	// }
}
Output:

func (*JobStreamClient) NewListByJobPager added in v0.5.0

func (client *JobStreamClient) NewListByJobPager(resourceGroupName string, automationAccountName string, jobName string, options *JobStreamClientListByJobOptions) *runtime.Pager[JobStreamClientListByJobResponse]

NewListByJobPager - Retrieve a list of jobs streams identified by job name.

Generated from API version 2019-06-01

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • jobName - The job name.
  • options - JobStreamClientListByJobOptions contains the optional parameters for the JobStreamClient.NewListByJobPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
		// 			},
		// 	}},
		// }
	}
}
Output:

type JobStreamClientGetOptions added in v0.3.0

type JobStreamClientGetOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

JobStreamClientGetOptions contains the optional parameters for the JobStreamClient.Get method.

type JobStreamClientGetResponse added in v0.3.0

type JobStreamClientGetResponse struct {
	// Definition of the job stream.
	JobStream
}

JobStreamClientGetResponse contains the response from method JobStreamClient.Get.

type JobStreamClientListByJobOptions added in v0.3.0

type JobStreamClientListByJobOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string

	// The filter to apply on the operation.
	Filter *string
}

JobStreamClientListByJobOptions contains the optional parameters for the JobStreamClient.NewListByJobPager method.

type JobStreamClientListByJobResponse added in v0.3.0

type JobStreamClientListByJobResponse struct {
	// The response model for the list job stream operation.
	JobStreamListResult
}

JobStreamClientListByJobResponse contains the response from method JobStreamClient.NewListByJobPager.

type JobStreamListResult

type JobStreamListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// A list of job streams.
	Value []*JobStream
}

JobStreamListResult - The response model for the list job stream operation.

func (JobStreamListResult) MarshalJSON

func (j JobStreamListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobStreamListResult.

func (*JobStreamListResult) UnmarshalJSON added in v0.7.0

func (j *JobStreamListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobStreamListResult.

type JobStreamProperties

type JobStreamProperties struct {
	// Gets or sets the id of the job stream.
	JobStreamID *string

	// Gets or sets the stream text.
	StreamText *string

	// Gets or sets the stream type.
	StreamType *JobStreamType

	// Gets or sets the summary.
	Summary *string

	// Gets or sets the creation time of the job.
	Time *time.Time

	// Gets or sets the values of the job stream.
	Value map[string]any
}

JobStreamProperties - Definition of the job stream.

func (JobStreamProperties) MarshalJSON

func (j JobStreamProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobStreamProperties.

func (*JobStreamProperties) UnmarshalJSON

func (j *JobStreamProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobStreamProperties.

type JobStreamType

type JobStreamType string

JobStreamType - Gets or sets the stream type.

const (
	JobStreamTypeAny      JobStreamType = "Any"
	JobStreamTypeDebug    JobStreamType = "Debug"
	JobStreamTypeError    JobStreamType = "Error"
	JobStreamTypeOutput   JobStreamType = "Output"
	JobStreamTypeProgress JobStreamType = "Progress"
	JobStreamTypeVerbose  JobStreamType = "Verbose"
	JobStreamTypeWarning  JobStreamType = "Warning"
)

func PossibleJobStreamTypeValues

func PossibleJobStreamTypeValues() []JobStreamType

PossibleJobStreamTypeValues returns the possible values for the JobStreamType const type.

type Key

type Key struct {
	// READ-ONLY; Automation key name.
	KeyName *AutomationKeyName

	// READ-ONLY; Automation key permissions.
	Permissions *AutomationKeyPermissions

	// READ-ONLY; Value of the Automation Key used for registration.
	Value *string
}

Key - Automation key which is used to register a DSC Node

func (Key) MarshalJSON added in v0.7.0

func (k Key) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Key.

func (*Key) UnmarshalJSON added in v0.7.0

func (k *Key) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Key.

type KeyListResult

type KeyListResult struct {
	// Lists the automation keys.
	Keys []*Key
}

func (KeyListResult) MarshalJSON

func (k KeyListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type KeyListResult.

func (*KeyListResult) UnmarshalJSON added in v0.7.0

func (k *KeyListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type KeyListResult.

type KeyVaultProperties

type KeyVaultProperties struct {
	// The name of key used to encrypt data.
	KeyName *string

	// The key version of the key used to encrypt data.
	KeyVersion *string

	// The URI of the key vault key used to encrypt data.
	KeyvaultURI *string
}

KeyVaultProperties - Settings concerning key vault encryption for a configuration store.

func (KeyVaultProperties) MarshalJSON added in v0.7.0

func (k KeyVaultProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties.

func (*KeyVaultProperties) UnmarshalJSON added in v0.7.0

func (k *KeyVaultProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultProperties.

type KeysClient

type KeysClient struct {
	// contains filtered or unexported fields
}

KeysClient contains the methods for the Keys group. Don't use this type directly, use NewKeysClient() instead.

func NewKeysClient

func NewKeysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KeysClient, error)

NewKeysClient creates a new instance of KeysClient 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 (*KeysClient) ListByAutomationAccount

func (client *KeysClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, options *KeysClientListByAutomationAccountOptions) (KeysClientListByAutomationAccountResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - KeysClientListByAutomationAccountOptions contains the optional parameters for the KeysClient.ListByAutomationAccount method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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("**************************************************************"),
	// 	}},
	// }
}
Output:

type KeysClientListByAutomationAccountOptions added in v0.3.0

type KeysClientListByAutomationAccountOptions struct {
}

KeysClientListByAutomationAccountOptions contains the optional parameters for the KeysClient.ListByAutomationAccount method.

type KeysClientListByAutomationAccountResponse added in v0.3.0

type KeysClientListByAutomationAccountResponse struct {
	KeyListResult
}

KeysClientListByAutomationAccountResponse contains the response from method KeysClient.ListByAutomationAccount.

type LinkedWorkspace

type LinkedWorkspace struct {
	// READ-ONLY; Gets the id of the linked workspace.
	ID *string
}

LinkedWorkspace - Definition of the linked workspace.

func (LinkedWorkspace) MarshalJSON added in v0.7.0

func (l LinkedWorkspace) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LinkedWorkspace.

func (*LinkedWorkspace) UnmarshalJSON added in v0.7.0

func (l *LinkedWorkspace) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LinkedWorkspace.

type LinkedWorkspaceClient

type LinkedWorkspaceClient struct {
	// contains filtered or unexported fields
}

LinkedWorkspaceClient contains the methods for the LinkedWorkspace group. Don't use this type directly, use NewLinkedWorkspaceClient() instead.

func NewLinkedWorkspaceClient

func NewLinkedWorkspaceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LinkedWorkspaceClient, error)

NewLinkedWorkspaceClient creates a new instance of LinkedWorkspaceClient 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 (*LinkedWorkspaceClient) Get

func (client *LinkedWorkspaceClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, options *LinkedWorkspaceClientGetOptions) (LinkedWorkspaceClientGetResponse, error)

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

  • 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.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// }
}
Output:

type LinkedWorkspaceClientGetOptions added in v0.3.0

type LinkedWorkspaceClientGetOptions struct {
}

LinkedWorkspaceClientGetOptions contains the optional parameters for the LinkedWorkspaceClient.Get method.

type LinkedWorkspaceClientGetResponse added in v0.3.0

type LinkedWorkspaceClientGetResponse struct {
	// Definition of the linked workspace.
	LinkedWorkspace
}

LinkedWorkspaceClientGetResponse contains the response from method LinkedWorkspaceClient.Get.

type LinuxProperties

type LinuxProperties struct {
	// packages excluded from the software update configuration.
	ExcludedPackageNameMasks []*string

	// Update classifications included in the software update configuration.
	IncludedPackageClassifications *LinuxUpdateClasses

	// packages included from the software update configuration.
	IncludedPackageNameMasks []*string

	// Reboot setting for the software update configuration.
	RebootSetting *string
}

LinuxProperties - Linux specific update configuration.

func (LinuxProperties) MarshalJSON

func (l LinuxProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LinuxProperties.

func (*LinuxProperties) UnmarshalJSON added in v0.7.0

func (l *LinuxProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LinuxProperties.

type LinuxUpdateClasses

type LinuxUpdateClasses string

LinuxUpdateClasses - Update classifications included in the software update configuration.

const (
	LinuxUpdateClassesCritical     LinuxUpdateClasses = "Critical"
	LinuxUpdateClassesOther        LinuxUpdateClasses = "Other"
	LinuxUpdateClassesSecurity     LinuxUpdateClasses = "Security"
	LinuxUpdateClassesUnclassified LinuxUpdateClasses = "Unclassified"
)

func PossibleLinuxUpdateClassesValues

func PossibleLinuxUpdateClassesValues() []LinuxUpdateClasses

PossibleLinuxUpdateClassesValues returns the possible values for the LinuxUpdateClasses const type.

type Module

type Module struct {
	// Gets or sets the etag of the resource.
	Etag *string

	// The Azure Region where the resource lives
	Location *string

	// Gets or sets the module properties.
	Properties *ModuleProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Module - Definition of the module type.

func (Module) MarshalJSON

func (m Module) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Module.

func (*Module) UnmarshalJSON added in v0.7.0

func (m *Module) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Module.

type ModuleClient

type ModuleClient struct {
	// contains filtered or unexported fields
}

ModuleClient contains the methods for the Module group. Don't use this type directly, use NewModuleClient() instead.

func NewModuleClient

func NewModuleClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ModuleClient, error)

NewModuleClient creates a new instance of ModuleClient 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 (*ModuleClient) CreateOrUpdate

func (client *ModuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters, options *ModuleClientCreateOrUpdateOptions) (ModuleClientCreateOrUpdateResponse, error)

CreateOrUpdate - 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

  • 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.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*ModuleClient) Delete

func (client *ModuleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, options *ModuleClientDeleteOptions) (ModuleClientDeleteResponse, error)

Delete - Delete the module by name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • moduleName - The module name.
  • options - ModuleClientDeleteOptions contains the optional parameters for the ModuleClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*ModuleClient) Get

func (client *ModuleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, options *ModuleClientGetOptions) (ModuleClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • moduleName - The module name.
  • options - ModuleClientGetOptions contains the optional parameters for the ModuleClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*ModuleClient) NewListByAutomationAccountPager added in v0.5.0

func (client *ModuleClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *ModuleClientListByAutomationAccountOptions) *runtime.Pager[ModuleClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of modules.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - ModuleClientListByAutomationAccountOptions contains the optional parameters for the ModuleClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*ModuleClient) Update

func (client *ModuleClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleUpdateParameters, options *ModuleClientUpdateOptions) (ModuleClientUpdateResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • moduleName - The name of module.
  • parameters - The update parameters for module.
  • options - ModuleClientUpdateOptions contains the optional parameters for the ModuleClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

type ModuleClientCreateOrUpdateOptions added in v0.3.0

type ModuleClientCreateOrUpdateOptions struct {
}

ModuleClientCreateOrUpdateOptions contains the optional parameters for the ModuleClient.CreateOrUpdate method.

type ModuleClientCreateOrUpdateResponse added in v0.3.0

type ModuleClientCreateOrUpdateResponse struct {
	// Definition of the module type.
	Module
}

ModuleClientCreateOrUpdateResponse contains the response from method ModuleClient.CreateOrUpdate.

type ModuleClientDeleteOptions added in v0.3.0

type ModuleClientDeleteOptions struct {
}

ModuleClientDeleteOptions contains the optional parameters for the ModuleClient.Delete method.

type ModuleClientDeleteResponse added in v0.3.0

type ModuleClientDeleteResponse struct {
}

ModuleClientDeleteResponse contains the response from method ModuleClient.Delete.

type ModuleClientGetOptions added in v0.3.0

type ModuleClientGetOptions struct {
}

ModuleClientGetOptions contains the optional parameters for the ModuleClient.Get method.

type ModuleClientGetResponse added in v0.3.0

type ModuleClientGetResponse struct {
	// Definition of the module type.
	Module
}

ModuleClientGetResponse contains the response from method ModuleClient.Get.

type ModuleClientListByAutomationAccountOptions added in v0.3.0

type ModuleClientListByAutomationAccountOptions struct {
}

ModuleClientListByAutomationAccountOptions contains the optional parameters for the ModuleClient.NewListByAutomationAccountPager method.

type ModuleClientListByAutomationAccountResponse added in v0.3.0

type ModuleClientListByAutomationAccountResponse struct {
	// The response model for the list module operation.
	ModuleListResult
}

ModuleClientListByAutomationAccountResponse contains the response from method ModuleClient.NewListByAutomationAccountPager.

type ModuleClientUpdateOptions added in v0.3.0

type ModuleClientUpdateOptions struct {
}

ModuleClientUpdateOptions contains the optional parameters for the ModuleClient.Update method.

type ModuleClientUpdateResponse added in v0.3.0

type ModuleClientUpdateResponse struct {
	// Definition of the module type.
	Module
}

ModuleClientUpdateResponse contains the response from method ModuleClient.Update.

type ModuleCreateOrUpdateParameters

type ModuleCreateOrUpdateParameters struct {
	// REQUIRED; Gets or sets the module create properties.
	Properties *ModuleCreateOrUpdateProperties

	// Gets or sets the location of the resource.
	Location *string

	// Gets or sets name of the resource.
	Name *string

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

ModuleCreateOrUpdateParameters - The parameters supplied to the create or update module operation.

func (ModuleCreateOrUpdateParameters) MarshalJSON

func (m ModuleCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ModuleCreateOrUpdateParameters.

func (*ModuleCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (m *ModuleCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ModuleCreateOrUpdateParameters.

type ModuleCreateOrUpdateProperties

type ModuleCreateOrUpdateProperties struct {
	// REQUIRED; Gets or sets the module content link.
	ContentLink *ContentLink
}

ModuleCreateOrUpdateProperties - The parameters supplied to the create or update module properties.

func (ModuleCreateOrUpdateProperties) MarshalJSON added in v0.7.0

func (m ModuleCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ModuleCreateOrUpdateProperties.

func (*ModuleCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

func (m *ModuleCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ModuleCreateOrUpdateProperties.

type ModuleErrorInfo

type ModuleErrorInfo struct {
	// Gets or sets the error code.
	Code *string

	// Gets or sets the error message.
	Message *string
}

ModuleErrorInfo - Definition of the module error info type.

func (ModuleErrorInfo) MarshalJSON added in v0.7.0

func (m ModuleErrorInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ModuleErrorInfo.

func (*ModuleErrorInfo) UnmarshalJSON added in v0.7.0

func (m *ModuleErrorInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ModuleErrorInfo.

type ModuleListResult

type ModuleListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of modules.
	Value []*Module
}

ModuleListResult - The response model for the list module operation.

func (ModuleListResult) MarshalJSON

func (m ModuleListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ModuleListResult.

func (*ModuleListResult) UnmarshalJSON added in v0.7.0

func (m *ModuleListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ModuleListResult.

type ModuleProperties

type ModuleProperties struct {
	// Gets or sets the activity count of the module.
	ActivityCount *int32

	// Gets or sets the contentLink of the module.
	ContentLink *ContentLink

	// Gets or sets the creation time.
	CreationTime *time.Time

	// Gets or sets the description.
	Description *string

	// Gets or sets the error info of the module.
	Error *ModuleErrorInfo

	// Gets or sets type of module, if its composite or not.
	IsComposite *bool

	// Gets or sets the isGlobal flag of the module.
	IsGlobal *bool

	// Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// Gets or sets the provisioning state of the module.
	ProvisioningState *ModuleProvisioningState

	// Gets or sets the size in bytes of the module.
	SizeInBytes *int64

	// Gets or sets the version of the module.
	Version *string
}

ModuleProperties - Definition of the module property type.

func (ModuleProperties) MarshalJSON

func (m ModuleProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ModuleProperties.

func (*ModuleProperties) UnmarshalJSON

func (m *ModuleProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ModuleProperties.

type ModuleProvisioningState

type ModuleProvisioningState string

ModuleProvisioningState - Gets or sets the provisioning state of the module.

const (
	ModuleProvisioningStateActivitiesStored            ModuleProvisioningState = "ActivitiesStored"
	ModuleProvisioningStateCancelled                   ModuleProvisioningState = "Cancelled"
	ModuleProvisioningStateConnectionTypeImported      ModuleProvisioningState = "ConnectionTypeImported"
	ModuleProvisioningStateContentDownloaded           ModuleProvisioningState = "ContentDownloaded"
	ModuleProvisioningStateContentRetrieved            ModuleProvisioningState = "ContentRetrieved"
	ModuleProvisioningStateContentStored               ModuleProvisioningState = "ContentStored"
	ModuleProvisioningStateContentValidated            ModuleProvisioningState = "ContentValidated"
	ModuleProvisioningStateCreated                     ModuleProvisioningState = "Created"
	ModuleProvisioningStateCreating                    ModuleProvisioningState = "Creating"
	ModuleProvisioningStateFailed                      ModuleProvisioningState = "Failed"
	ModuleProvisioningStateModuleDataStored            ModuleProvisioningState = "ModuleDataStored"
	ModuleProvisioningStateModuleImportRunbookComplete ModuleProvisioningState = "ModuleImportRunbookComplete"
	ModuleProvisioningStateRunningImportModuleRunbook  ModuleProvisioningState = "RunningImportModuleRunbook"
	ModuleProvisioningStateStartingImportModuleRunbook ModuleProvisioningState = "StartingImportModuleRunbook"
	ModuleProvisioningStateSucceeded                   ModuleProvisioningState = "Succeeded"
	ModuleProvisioningStateUpdating                    ModuleProvisioningState = "Updating"
)

func PossibleModuleProvisioningStateValues

func PossibleModuleProvisioningStateValues() []ModuleProvisioningState

PossibleModuleProvisioningStateValues returns the possible values for the ModuleProvisioningState const type.

type ModuleUpdateParameters

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.
	Properties *ModuleUpdateProperties

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

ModuleUpdateParameters - The parameters supplied to the update module operation.

func (ModuleUpdateParameters) MarshalJSON

func (m ModuleUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ModuleUpdateParameters.

func (*ModuleUpdateParameters) UnmarshalJSON added in v0.7.0

func (m *ModuleUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ModuleUpdateParameters.

type ModuleUpdateProperties

type ModuleUpdateProperties struct {
	// Gets or sets the module content link.
	ContentLink *ContentLink
}

ModuleUpdateProperties - The parameters supplied to the update properties.

func (ModuleUpdateProperties) MarshalJSON added in v0.7.0

func (m ModuleUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ModuleUpdateProperties.

func (*ModuleUpdateProperties) UnmarshalJSON added in v0.7.0

func (m *ModuleUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ModuleUpdateProperties.

type NodeCount

type NodeCount struct {
	// Gets the name of a count type
	Name       *string
	Properties *NodeCountProperties
}

NodeCount - Number of nodes based on the Filter

func (NodeCount) MarshalJSON added in v0.7.0

func (n NodeCount) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NodeCount.

func (*NodeCount) UnmarshalJSON added in v0.7.0

func (n *NodeCount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NodeCount.

type NodeCountInformationClient

type NodeCountInformationClient struct {
	// contains filtered or unexported fields
}

NodeCountInformationClient contains the methods for the NodeCountInformation group. Don't use this type directly, use NewNodeCountInformationClient() instead.

func NewNodeCountInformationClient

func NewNodeCountInformationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NodeCountInformationClient, error)

NewNodeCountInformationClient creates a new instance of NodeCountInformationClient 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 (*NodeCountInformationClient) Get

func (client *NodeCountInformationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, countType CountType, options *NodeCountInformationClientGetOptions) (NodeCountInformationClientGetResponse, error)

Get - Retrieve counts for Dsc Nodes. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • countType - The type of counts to retrieve
  • options - NodeCountInformationClientGetOptions contains the optional parameters for the NodeCountInformationClient.Get method.
Example (GetNodesNodeConfigurationCounts)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 			},
	// 	}},
	// }
}
Output:

Example (GetNodesStatusCounts)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 			},
	// 	}},
	// }
}
Output:

type NodeCountInformationClientGetOptions added in v0.3.0

type NodeCountInformationClientGetOptions struct {
}

NodeCountInformationClientGetOptions contains the optional parameters for the NodeCountInformationClient.Get method.

type NodeCountInformationClientGetResponse added in v0.3.0

type NodeCountInformationClientGetResponse struct {
	// Gets the count of nodes by count type
	NodeCounts
}

NodeCountInformationClientGetResponse contains the response from method NodeCountInformationClient.Get.

type NodeCountProperties

type NodeCountProperties struct {
	// Gets the count for the name
	Count *int32
}

func (NodeCountProperties) MarshalJSON added in v0.7.0

func (n NodeCountProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NodeCountProperties.

func (*NodeCountProperties) UnmarshalJSON added in v0.7.0

func (n *NodeCountProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NodeCountProperties.

type NodeCounts

type NodeCounts struct {
	// Gets the total number of records matching countType criteria.
	TotalCount *int32

	// Gets an array of counts
	Value []*NodeCount
}

NodeCounts - Gets the count of nodes by count type

func (NodeCounts) MarshalJSON

func (n NodeCounts) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NodeCounts.

func (*NodeCounts) UnmarshalJSON added in v0.7.0

func (n *NodeCounts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NodeCounts.

type NodeReportsClient

type NodeReportsClient struct {
	// contains filtered or unexported fields
}

NodeReportsClient contains the methods for the NodeReports group. Don't use this type directly, use NewNodeReportsClient() instead.

func NewNodeReportsClient

func NewNodeReportsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NodeReportsClient, error)

NewNodeReportsClient creates a new instance of NodeReportsClient 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 (*NodeReportsClient) Get

func (client *NodeReportsClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, reportID string, options *NodeReportsClientGetOptions) (NodeReportsClientGetResponse, error)

Get - Retrieve the Dsc node report data by node id and report id. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • nodeID - The Dsc node id.
  • reportID - The report id.
  • options - NodeReportsClientGetOptions contains the optional parameters for the NodeReportsClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 		}
}
Output:

func (*NodeReportsClient) GetContent

func (client *NodeReportsClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, reportID string, options *NodeReportsClientGetContentOptions) (NodeReportsClientGetContentResponse, error)

GetContent - Retrieve the Dsc node reports by node id and report id. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • nodeID - The Dsc node id.
  • reportID - The report id.
  • options - NodeReportsClientGetContentOptions contains the optional parameters for the NodeReportsClient.GetContent method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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\"]}",
	// 	},
	// }
}
Output:

func (*NodeReportsClient) NewListByNodePager added in v0.5.0

func (client *NodeReportsClient) NewListByNodePager(resourceGroupName string, automationAccountName string, nodeID string, options *NodeReportsClientListByNodeOptions) *runtime.Pager[NodeReportsClientListByNodeResponse]

NewListByNodePager - Retrieve the Dsc node report list by node id.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • nodeID - The parameters supplied to the list operation.
  • options - NodeReportsClientListByNodeOptions contains the optional parameters for the NodeReportsClient.NewListByNodePager method.
Example (ListDscReportsByNodeId)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 	}},
		// }
	}
}
Output:

Example (ListPagedDscReportsByNodeId)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 	}},
		// }
	}
}
Output:

type NodeReportsClientGetContentOptions added in v0.3.0

type NodeReportsClientGetContentOptions struct {
}

NodeReportsClientGetContentOptions contains the optional parameters for the NodeReportsClient.GetContent method.

type NodeReportsClientGetContentResponse added in v0.3.0

type NodeReportsClientGetContentResponse struct {
	// Anything
	Interface any
}

NodeReportsClientGetContentResponse contains the response from method NodeReportsClient.GetContent.

type NodeReportsClientGetOptions added in v0.3.0

type NodeReportsClientGetOptions struct {
}

NodeReportsClientGetOptions contains the optional parameters for the NodeReportsClient.Get method.

type NodeReportsClientGetResponse added in v0.3.0

type NodeReportsClientGetResponse struct {
	// Definition of the dsc node report type.
	DscNodeReport
}

NodeReportsClientGetResponse contains the response from method NodeReportsClient.Get.

type NodeReportsClientListByNodeOptions added in v0.3.0

type NodeReportsClientListByNodeOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

NodeReportsClientListByNodeOptions contains the optional parameters for the NodeReportsClient.NewListByNodePager method.

type NodeReportsClientListByNodeResponse added in v0.3.0

type NodeReportsClientListByNodeResponse struct {
	// The response model for the list dsc nodes operation.
	DscNodeReportListResult
}

NodeReportsClientListByNodeResponse contains the response from method NodeReportsClient.NewListByNodePager.

type NonAzureQueryProperties

type NonAzureQueryProperties struct {
	// Log Analytics Saved Search name.
	FunctionAlias *string

	// Workspace Id for Log Analytics in which the saved Search is resided.
	WorkspaceID *string
}

NonAzureQueryProperties - Non Azure query for the update configuration.

func (NonAzureQueryProperties) MarshalJSON added in v0.7.0

func (n NonAzureQueryProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NonAzureQueryProperties.

func (*NonAzureQueryProperties) UnmarshalJSON added in v0.7.0

func (n *NonAzureQueryProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NonAzureQueryProperties.

type ObjectDataTypesClient

type ObjectDataTypesClient struct {
	// contains filtered or unexported fields
}

ObjectDataTypesClient contains the methods for the ObjectDataTypes group. Don't use this type directly, use NewObjectDataTypesClient() instead.

func NewObjectDataTypesClient

func NewObjectDataTypesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ObjectDataTypesClient, error)

NewObjectDataTypesClient creates a new instance of ObjectDataTypesClient 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 (*ObjectDataTypesClient) NewListFieldsByModuleAndTypePager added in v0.5.0

func (client *ObjectDataTypesClient) NewListFieldsByModuleAndTypePager(resourceGroupName string, automationAccountName string, moduleName string, typeName string, options *ObjectDataTypesClientListFieldsByModuleAndTypeOptions) *runtime.Pager[ObjectDataTypesClientListFieldsByModuleAndTypeResponse]

NewListFieldsByModuleAndTypePager - Retrieve a list of fields of a given type identified by module name.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • moduleName - The name of module.
  • typeName - The name of type.
  • options - ObjectDataTypesClientListFieldsByModuleAndTypeOptions contains the optional parameters for the ObjectDataTypesClient.NewListFieldsByModuleAndTypePager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 	}},
		// }
	}
}
Output:

func (*ObjectDataTypesClient) NewListFieldsByTypePager added in v0.5.0

func (client *ObjectDataTypesClient) NewListFieldsByTypePager(resourceGroupName string, automationAccountName string, typeName string, options *ObjectDataTypesClientListFieldsByTypeOptions) *runtime.Pager[ObjectDataTypesClientListFieldsByTypeResponse]

NewListFieldsByTypePager - Retrieve a list of fields of a given type across all accessible modules.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • typeName - The name of type.
  • options - ObjectDataTypesClientListFieldsByTypeOptions contains the optional parameters for the ObjectDataTypesClient.NewListFieldsByTypePager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 	}},
		// }
	}
}
Output:

type ObjectDataTypesClientListFieldsByModuleAndTypeOptions added in v0.3.0

type ObjectDataTypesClientListFieldsByModuleAndTypeOptions struct {
}

ObjectDataTypesClientListFieldsByModuleAndTypeOptions contains the optional parameters for the ObjectDataTypesClient.NewListFieldsByModuleAndTypePager method.

type ObjectDataTypesClientListFieldsByModuleAndTypeResponse added in v0.3.0

type ObjectDataTypesClientListFieldsByModuleAndTypeResponse struct {
	// The response model for the list fields operation.
	TypeFieldListResult
}

ObjectDataTypesClientListFieldsByModuleAndTypeResponse contains the response from method ObjectDataTypesClient.NewListFieldsByModuleAndTypePager.

type ObjectDataTypesClientListFieldsByTypeOptions added in v0.3.0

type ObjectDataTypesClientListFieldsByTypeOptions struct {
}

ObjectDataTypesClientListFieldsByTypeOptions contains the optional parameters for the ObjectDataTypesClient.NewListFieldsByTypePager method.

type ObjectDataTypesClientListFieldsByTypeResponse added in v0.3.0

type ObjectDataTypesClientListFieldsByTypeResponse struct {
	// The response model for the list fields operation.
	TypeFieldListResult
}

ObjectDataTypesClientListFieldsByTypeResponse contains the response from method ObjectDataTypesClient.NewListFieldsByTypePager.

type OperatingSystemType

type OperatingSystemType string

OperatingSystemType - Target operating system for the software update configuration.

const (
	OperatingSystemTypeLinux   OperatingSystemType = "Linux"
	OperatingSystemTypeWindows OperatingSystemType = "Windows"
)

func PossibleOperatingSystemTypeValues

func PossibleOperatingSystemTypeValues() []OperatingSystemType

PossibleOperatingSystemTypeValues returns the possible values for the OperatingSystemType const type.

type Operation

type Operation struct {
	// Provider, Resource and Operation values
	Display *OperationDisplay

	// Operation name: {provider}/{resource}/{operation}
	Name *string
}

Operation - Automation REST API operation

func (Operation) MarshalJSON added in v0.7.0

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON added in v0.7.0

func (o *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Operation.

type OperationDisplay

type OperationDisplay struct {
	// Operation type: Read, write, delete, etc.
	Operation *string

	// Service provider: Microsoft.Automation
	Provider *string

	// Resource on which the operation is performed: Runbooks, Jobs etc.
	Resource *string
}

OperationDisplay - Provider, Resource and Operation values

func (OperationDisplay) MarshalJSON added in v0.7.0

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationDisplay.

func (*OperationDisplay) UnmarshalJSON added in v0.7.0

func (o *OperationDisplay) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.

type OperationListResult

type OperationListResult struct {
	// List of Automation operations supported by the Automation resource provider.
	Value []*Operation
}

OperationListResult - The response model for the list of Automation operations

func (OperationListResult) MarshalJSON

func (o OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON added in v0.7.0

func (o *OperationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OperationsClient) NewListPager added in v0.5.0

NewListPager - Lists all of the available Automation REST API operations.

Generated from API version 2021-06-22

  • options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListOptions added in v0.3.0

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListResponse added in v0.3.0

type OperationsClientListResponse struct {
	// The response model for the list of Automation operations
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.NewListPager.

type PrivateEndpointConnection

type PrivateEndpointConnection struct {
	// Resource properties.
	Properties *PrivateEndpointConnectionProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

PrivateEndpointConnection - A private endpoint connection

func (PrivateEndpointConnection) MarshalJSON

func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection.

func (*PrivateEndpointConnection) UnmarshalJSON added in v0.7.0

func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection.

type PrivateEndpointConnectionListResult

type PrivateEndpointConnectionListResult struct {
	// Array of private endpoint connections
	Value []*PrivateEndpointConnection
}

PrivateEndpointConnectionListResult - A list of private endpoint connections

func (PrivateEndpointConnectionListResult) MarshalJSON

func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.

func (*PrivateEndpointConnectionListResult) UnmarshalJSON added in v0.7.0

func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResult.

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	// Gets the groupIds.
	GroupIDs []*string

	// Private endpoint which the connection belongs to.
	PrivateEndpoint *PrivateEndpointProperty

	// Connection State of the Private Endpoint Connection.
	PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionStateProperty
}

PrivateEndpointConnectionProperties - Properties of a private endpoint connection.

func (PrivateEndpointConnectionProperties) MarshalJSON added in v0.6.0

func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties.

func (*PrivateEndpointConnectionProperties) UnmarshalJSON added in v0.7.0

func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties.

type PrivateEndpointConnectionsClient

type PrivateEndpointConnectionsClient struct {
	// contains filtered or unexported fields
}

PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group. Don't use this type directly, use NewPrivateEndpointConnectionsClient() instead.

func NewPrivateEndpointConnectionsClient

func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error)

NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient 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 (*PrivateEndpointConnectionsClient) BeginCreateOrUpdate

func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Approve or reject a private endpoint connection with a given name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • privateEndpointConnectionName - The name of the private endpoint connection.
  • options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 			},
	// 		},
	// 	}
}
Output:

func (*PrivateEndpointConnectionsClient) BeginDelete

func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, automationAccountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)

BeginDelete - Deletes a private endpoint connection with a given name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • privateEndpointConnectionName - The name of the private endpoint connection.
  • options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*PrivateEndpointConnectionsClient) Get

func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error)

Get - Gets a private endpoint connection. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • privateEndpointConnectionName - The name of the private endpoint connection.
  • options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 			},
	// 		},
	// 	}
}
Output:

func (*PrivateEndpointConnectionsClient) NewListByAutomationAccountPager added in v0.5.0

NewListByAutomationAccountPager - List all private endpoint connections on a Automation account.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - PrivateEndpointConnectionsClientListByAutomationAccountOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 						},
		// 					},
		// 			}},
		// 		}
	}
}
Output:

type PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions added in v0.3.0

type PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate method.

type PrivateEndpointConnectionsClientBeginDeleteOptions added in v0.3.0

type PrivateEndpointConnectionsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.

type PrivateEndpointConnectionsClientCreateOrUpdateResponse added in v0.3.0

type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct {
	// A private endpoint connection
	PrivateEndpointConnection
}

PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.BeginCreateOrUpdate.

type PrivateEndpointConnectionsClientDeleteResponse added in v0.3.0

type PrivateEndpointConnectionsClientDeleteResponse struct {
}

PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.BeginDelete.

type PrivateEndpointConnectionsClientGetOptions added in v0.3.0

type PrivateEndpointConnectionsClientGetOptions struct {
}

PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.

type PrivateEndpointConnectionsClientGetResponse added in v0.3.0

type PrivateEndpointConnectionsClientGetResponse struct {
	// A private endpoint connection
	PrivateEndpointConnection
}

PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get.

type PrivateEndpointConnectionsClientListByAutomationAccountOptions added in v0.3.0

type PrivateEndpointConnectionsClientListByAutomationAccountOptions struct {
}

PrivateEndpointConnectionsClientListByAutomationAccountOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByAutomationAccountPager method.

type PrivateEndpointConnectionsClientListByAutomationAccountResponse added in v0.3.0

type PrivateEndpointConnectionsClientListByAutomationAccountResponse struct {
	// A list of private endpoint connections
	PrivateEndpointConnectionListResult
}

PrivateEndpointConnectionsClientListByAutomationAccountResponse contains the response from method PrivateEndpointConnectionsClient.NewListByAutomationAccountPager.

type PrivateEndpointProperty

type PrivateEndpointProperty struct {
	// Resource id of the private endpoint.
	ID *string
}

PrivateEndpointProperty - Private endpoint which the connection belongs to.

func (PrivateEndpointProperty) MarshalJSON added in v0.7.0

func (p PrivateEndpointProperty) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateEndpointProperty.

func (*PrivateEndpointProperty) UnmarshalJSON added in v0.7.0

func (p *PrivateEndpointProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointProperty.

type PrivateLinkResource

type PrivateLinkResource struct {
	// Resource properties.
	Properties *PrivateLinkResourceProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

PrivateLinkResource - A private link resource

func (PrivateLinkResource) MarshalJSON

func (p PrivateLinkResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource.

func (*PrivateLinkResource) UnmarshalJSON added in v0.7.0

func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource.

type PrivateLinkResourceListResult

type PrivateLinkResourceListResult struct {
	// Array of private link resources
	Value []*PrivateLinkResource
}

PrivateLinkResourceListResult - A list of private link resources

func (PrivateLinkResourceListResult) MarshalJSON

func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult.

func (*PrivateLinkResourceListResult) UnmarshalJSON added in v0.7.0

func (p *PrivateLinkResourceListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceListResult.

type PrivateLinkResourceProperties

type PrivateLinkResourceProperties struct {
	// READ-ONLY; The private link resource group id.
	GroupID *string

	// READ-ONLY; The private link resource required member names.
	RequiredMembers []*string
}

PrivateLinkResourceProperties - Properties of a private link resource.

func (PrivateLinkResourceProperties) MarshalJSON

func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.

func (*PrivateLinkResourceProperties) UnmarshalJSON added in v0.7.0

func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties.

type PrivateLinkResourcesClient

type PrivateLinkResourcesClient struct {
	// contains filtered or unexported fields
}

PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. Don't use this type directly, use NewPrivateLinkResourcesClient() instead.

func NewPrivateLinkResourcesClient

func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error)

NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient 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 (*PrivateLinkResourcesClient) NewAutomationPager added in v0.5.0

func (client *PrivateLinkResourcesClient) NewAutomationPager(resourceGroupName string, automationAccountName string, options *PrivateLinkResourcesClientAutomationOptions) *runtime.Pager[PrivateLinkResourcesClientAutomationResponse]

NewAutomationPager - Gets the private link resources that need to be created for Automation account.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - PrivateLinkResourcesClientAutomationOptions contains the optional parameters for the PrivateLinkResourcesClient.NewAutomationPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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")},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

type PrivateLinkResourcesClientAutomationOptions added in v0.3.0

type PrivateLinkResourcesClientAutomationOptions struct {
}

PrivateLinkResourcesClientAutomationOptions contains the optional parameters for the PrivateLinkResourcesClient.NewAutomationPager method.

type PrivateLinkResourcesClientAutomationResponse added in v0.3.0

type PrivateLinkResourcesClientAutomationResponse struct {
	// A list of private link resources
	PrivateLinkResourceListResult
}

PrivateLinkResourcesClientAutomationResponse contains the response from method PrivateLinkResourcesClient.NewAutomationPager.

type PrivateLinkServiceConnectionStateProperty

type PrivateLinkServiceConnectionStateProperty struct {
	// The private link service connection description.
	Description *string

	// The private link service connection status.
	Status *string

	// READ-ONLY; Any action that is required beyond basic workflow (approve/ reject/ disconnect)
	ActionsRequired *string
}

PrivateLinkServiceConnectionStateProperty - Connection State of the Private Endpoint Connection.

func (PrivateLinkServiceConnectionStateProperty) MarshalJSON added in v0.7.0

MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionStateProperty.

func (*PrivateLinkServiceConnectionStateProperty) UnmarshalJSON added in v0.7.0

func (p *PrivateLinkServiceConnectionStateProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionStateProperty.

type ProvisioningState

type ProvisioningState string

ProvisioningState - The provisioning state of the job.

const (
	ProvisioningStateCompleted ProvisioningState = "Completed"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateRunning   ProvisioningState = "Running"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.

type ProxyResource

type ProxyResource struct {
	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

ProxyResource - ARM proxy resource.

func (ProxyResource) MarshalJSON added in v0.7.0

func (p ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProxyResource.

func (*ProxyResource) UnmarshalJSON added in v0.7.0

func (p *ProxyResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.

type Python2PackageClient

type Python2PackageClient struct {
	// contains filtered or unexported fields
}

Python2PackageClient contains the methods for the Python2Package group. Don't use this type directly, use NewPython2PackageClient() instead.

func NewPython2PackageClient

func NewPython2PackageClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Python2PackageClient, error)

NewPython2PackageClient creates a new instance of Python2PackageClient 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 (*Python2PackageClient) CreateOrUpdate

func (client *Python2PackageClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageCreateParameters, options *Python2PackageClientCreateOrUpdateOptions) (Python2PackageClientCreateOrUpdateResponse, error)

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

  • 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 - Python2PackageClientCreateOrUpdateOptions contains the optional parameters for the Python2PackageClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*Python2PackageClient) Delete

func (client *Python2PackageClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, options *Python2PackageClientDeleteOptions) (Python2PackageClientDeleteResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • packageName - The python package name.
  • options - Python2PackageClientDeleteOptions contains the optional parameters for the Python2PackageClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*Python2PackageClient) Get

func (client *Python2PackageClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, options *Python2PackageClientGetOptions) (Python2PackageClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • packageName - The python package name.
  • options - Python2PackageClientGetOptions contains the optional parameters for the Python2PackageClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*Python2PackageClient) NewListByAutomationAccountPager added in v0.5.0

func (client *Python2PackageClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *Python2PackageClientListByAutomationAccountOptions) *runtime.Pager[Python2PackageClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of python 2 packages.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - Python2PackageClientListByAutomationAccountOptions contains the optional parameters for the Python2PackageClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*Python2PackageClient) Update

func (client *Python2PackageClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageUpdateParameters, options *Python2PackageClientUpdateOptions) (Python2PackageClientUpdateResponse, error)

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

  • 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 - Python2PackageClientUpdateOptions contains the optional parameters for the Python2PackageClient.Update method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

type Python2PackageClientCreateOrUpdateOptions added in v0.3.0

type Python2PackageClientCreateOrUpdateOptions struct {
}

Python2PackageClientCreateOrUpdateOptions contains the optional parameters for the Python2PackageClient.CreateOrUpdate method.

type Python2PackageClientCreateOrUpdateResponse added in v0.3.0

type Python2PackageClientCreateOrUpdateResponse struct {
	// Definition of the module type.
	Module
}

Python2PackageClientCreateOrUpdateResponse contains the response from method Python2PackageClient.CreateOrUpdate.

type Python2PackageClientDeleteOptions added in v0.3.0

type Python2PackageClientDeleteOptions struct {
}

Python2PackageClientDeleteOptions contains the optional parameters for the Python2PackageClient.Delete method.

type Python2PackageClientDeleteResponse added in v0.3.0

type Python2PackageClientDeleteResponse struct {
}

Python2PackageClientDeleteResponse contains the response from method Python2PackageClient.Delete.

type Python2PackageClientGetOptions added in v0.3.0

type Python2PackageClientGetOptions struct {
}

Python2PackageClientGetOptions contains the optional parameters for the Python2PackageClient.Get method.

type Python2PackageClientGetResponse added in v0.3.0

type Python2PackageClientGetResponse struct {
	// Definition of the module type.
	Module
}

Python2PackageClientGetResponse contains the response from method Python2PackageClient.Get.

type Python2PackageClientListByAutomationAccountOptions added in v0.3.0

type Python2PackageClientListByAutomationAccountOptions struct {
}

Python2PackageClientListByAutomationAccountOptions contains the optional parameters for the Python2PackageClient.NewListByAutomationAccountPager method.

type Python2PackageClientListByAutomationAccountResponse added in v0.3.0

type Python2PackageClientListByAutomationAccountResponse struct {
	// The response model for the list module operation.
	ModuleListResult
}

Python2PackageClientListByAutomationAccountResponse contains the response from method Python2PackageClient.NewListByAutomationAccountPager.

type Python2PackageClientUpdateOptions added in v0.3.0

type Python2PackageClientUpdateOptions struct {
}

Python2PackageClientUpdateOptions contains the optional parameters for the Python2PackageClient.Update method.

type Python2PackageClientUpdateResponse added in v0.3.0

type Python2PackageClientUpdateResponse struct {
	// Definition of the module type.
	Module
}

Python2PackageClientUpdateResponse contains the response from method Python2PackageClient.Update.

type PythonPackageCreateParameters

type PythonPackageCreateParameters struct {
	// REQUIRED; Gets or sets the module create properties.
	Properties *PythonPackageCreateProperties

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

PythonPackageCreateParameters - The parameters supplied to the create or update module operation.

func (PythonPackageCreateParameters) MarshalJSON

func (p PythonPackageCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PythonPackageCreateParameters.

func (*PythonPackageCreateParameters) UnmarshalJSON added in v0.7.0

func (p *PythonPackageCreateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PythonPackageCreateParameters.

type PythonPackageCreateProperties

type PythonPackageCreateProperties struct {
	// REQUIRED; Gets or sets the module content link.
	ContentLink *ContentLink
}

PythonPackageCreateProperties - The parameters supplied to the create or update module properties.

func (PythonPackageCreateProperties) MarshalJSON added in v0.7.0

func (p PythonPackageCreateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PythonPackageCreateProperties.

func (*PythonPackageCreateProperties) UnmarshalJSON added in v0.7.0

func (p *PythonPackageCreateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PythonPackageCreateProperties.

type PythonPackageUpdateParameters

type PythonPackageUpdateParameters struct {
	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

PythonPackageUpdateParameters - The parameters supplied to the update module operation.

func (PythonPackageUpdateParameters) MarshalJSON

func (p PythonPackageUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PythonPackageUpdateParameters.

func (*PythonPackageUpdateParameters) UnmarshalJSON added in v0.7.0

func (p *PythonPackageUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PythonPackageUpdateParameters.

type RawGraphicalRunbookContent

type RawGraphicalRunbookContent struct {
	// Serialized Graphical runbook
	RunbookDefinition *string

	// Runbook Type
	RunbookType *GraphRunbookType

	// Schema version of the serializer.
	SchemaVersion *string
}

RawGraphicalRunbookContent - Raw Graphical Runbook content

func (RawGraphicalRunbookContent) MarshalJSON added in v0.7.0

func (r RawGraphicalRunbookContent) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RawGraphicalRunbookContent.

func (*RawGraphicalRunbookContent) UnmarshalJSON added in v0.7.0

func (r *RawGraphicalRunbookContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RawGraphicalRunbookContent.

type Resource

type Resource struct {
	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Resource - The core properties of ARM resources

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON added in v0.7.0

func (r *Resource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Resource.

type ResourceIdentityType

type ResourceIdentityType string

ResourceIdentityType - The identity type.

const (
	ResourceIdentityTypeNone                       ResourceIdentityType = "None"
	ResourceIdentityTypeSystemAssigned             ResourceIdentityType = "SystemAssigned"
	ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned"
	ResourceIdentityTypeUserAssigned               ResourceIdentityType = "UserAssigned"
)

func PossibleResourceIdentityTypeValues

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.

type RunAsCredentialAssociationProperty

type RunAsCredentialAssociationProperty struct {
	// Gets or sets the name of the credential.
	Name *string
}

RunAsCredentialAssociationProperty - Definition of RunAs credential to use for hybrid worker.

func (RunAsCredentialAssociationProperty) MarshalJSON added in v0.7.0

func (r RunAsCredentialAssociationProperty) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunAsCredentialAssociationProperty.

func (*RunAsCredentialAssociationProperty) UnmarshalJSON added in v0.7.0

func (r *RunAsCredentialAssociationProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunAsCredentialAssociationProperty.

type Runbook

type Runbook struct {
	// Gets or sets the etag of the resource.
	Etag *string

	// The Azure Region where the resource lives
	Location *string

	// Gets or sets the runbook properties.
	Properties *RunbookProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Runbook - Definition of the runbook type.

func (Runbook) MarshalJSON

func (r Runbook) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Runbook.

func (*Runbook) UnmarshalJSON added in v0.7.0

func (r *Runbook) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Runbook.

type RunbookAssociationProperty

type RunbookAssociationProperty struct {
	// Gets or sets the name of the runbook.
	Name *string
}

RunbookAssociationProperty - The runbook property associated with the entity.

func (RunbookAssociationProperty) MarshalJSON added in v0.7.0

func (r RunbookAssociationProperty) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookAssociationProperty.

func (*RunbookAssociationProperty) UnmarshalJSON added in v0.7.0

func (r *RunbookAssociationProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookAssociationProperty.

type RunbookClient

type RunbookClient struct {
	// contains filtered or unexported fields
}

RunbookClient contains the methods for the Runbook group. Don't use this type directly, use NewRunbookClient() instead.

func NewRunbookClient

func NewRunbookClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RunbookClient, error)

NewRunbookClient creates a new instance of RunbookClient 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 (*RunbookClient) BeginPublish

func (client *RunbookClient) BeginPublish(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *RunbookClientBeginPublishOptions) (*runtime.Poller[RunbookClientPublishResponse], error)

BeginPublish - Publish runbook draft. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2018-06-30

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The parameters supplied to the publish runbook operation.
  • options - RunbookClientBeginPublishOptions contains the optional parameters for the RunbookClient.BeginPublish method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*RunbookClient) CreateOrUpdate

func (client *RunbookClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookCreateOrUpdateParameters, options *RunbookClientCreateOrUpdateOptions) (RunbookClientCreateOrUpdateResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • parameters - The create or update parameters for runbook. Provide either content link for a published runbook or draft, not both.
  • options - RunbookClientCreateOrUpdateOptions contains the optional parameters for the RunbookClient.CreateOrUpdate method.
Example (CreateOrUpdateRunbookAndPublishIt)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

Example (CreateRunbookAsDraft)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*RunbookClient) Delete

func (client *RunbookClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *RunbookClientDeleteOptions) (RunbookClientDeleteResponse, error)

Delete - Delete the runbook by name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2018-06-30

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - RunbookClientDeleteOptions contains the optional parameters for the RunbookClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*RunbookClient) Get

func (client *RunbookClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *RunbookClientGetOptions) (RunbookClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - RunbookClientGetOptions contains the optional parameters for the RunbookClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*RunbookClient) GetContent

func (client *RunbookClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *RunbookClientGetContentOptions) (RunbookClientGetContentResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - RunbookClientGetContentOptions contains the optional parameters for the RunbookClient.GetContent method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*RunbookClient) NewListByAutomationAccountPager added in v0.5.0

func (client *RunbookClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *RunbookClientListByAutomationAccountOptions) *runtime.Pager[RunbookClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of runbooks.

Generated from API version 2018-06-30

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - RunbookClientListByAutomationAccountOptions contains the optional parameters for the RunbookClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*RunbookClient) Update

func (client *RunbookClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookUpdateParameters, options *RunbookClientUpdateOptions) (RunbookClientUpdateResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • parameters - The update parameters for runbook.
  • options - RunbookClientUpdateOptions contains the optional parameters for the RunbookClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

type RunbookClientBeginPublishOptions added in v0.3.0

type RunbookClientBeginPublishOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

RunbookClientBeginPublishOptions contains the optional parameters for the RunbookClient.BeginPublish method.

type RunbookClientCreateOrUpdateOptions added in v0.3.0

type RunbookClientCreateOrUpdateOptions struct {
}

RunbookClientCreateOrUpdateOptions contains the optional parameters for the RunbookClient.CreateOrUpdate method.

type RunbookClientCreateOrUpdateResponse added in v0.3.0

type RunbookClientCreateOrUpdateResponse struct {
	// Definition of the runbook type.
	Runbook
}

RunbookClientCreateOrUpdateResponse contains the response from method RunbookClient.CreateOrUpdate.

type RunbookClientDeleteOptions added in v0.3.0

type RunbookClientDeleteOptions struct {
}

RunbookClientDeleteOptions contains the optional parameters for the RunbookClient.Delete method.

type RunbookClientDeleteResponse added in v0.3.0

type RunbookClientDeleteResponse struct {
}

RunbookClientDeleteResponse contains the response from method RunbookClient.Delete.

type RunbookClientGetContentOptions added in v0.3.0

type RunbookClientGetContentOptions struct {
}

RunbookClientGetContentOptions contains the optional parameters for the RunbookClient.GetContent method.

type RunbookClientGetContentResponse added in v0.3.0

type RunbookClientGetContentResponse struct {
}

RunbookClientGetContentResponse contains the response from method RunbookClient.GetContent.

type RunbookClientGetOptions added in v0.3.0

type RunbookClientGetOptions struct {
}

RunbookClientGetOptions contains the optional parameters for the RunbookClient.Get method.

type RunbookClientGetResponse added in v0.3.0

type RunbookClientGetResponse struct {
	// Definition of the runbook type.
	Runbook
}

RunbookClientGetResponse contains the response from method RunbookClient.Get.

type RunbookClientListByAutomationAccountOptions added in v0.3.0

type RunbookClientListByAutomationAccountOptions struct {
}

RunbookClientListByAutomationAccountOptions contains the optional parameters for the RunbookClient.NewListByAutomationAccountPager method.

type RunbookClientListByAutomationAccountResponse added in v0.3.0

type RunbookClientListByAutomationAccountResponse struct {
	// The response model for the list runbook operation.
	RunbookListResult
}

RunbookClientListByAutomationAccountResponse contains the response from method RunbookClient.NewListByAutomationAccountPager.

type RunbookClientPublishResponse added in v0.3.0

type RunbookClientPublishResponse struct {
}

RunbookClientPublishResponse contains the response from method RunbookClient.BeginPublish.

type RunbookClientUpdateOptions added in v0.3.0

type RunbookClientUpdateOptions struct {
}

RunbookClientUpdateOptions contains the optional parameters for the RunbookClient.Update method.

type RunbookClientUpdateResponse added in v0.3.0

type RunbookClientUpdateResponse struct {
	// Definition of the runbook type.
	Runbook
}

RunbookClientUpdateResponse contains the response from method RunbookClient.Update.

type RunbookCreateOrUpdateDraftParameters

type RunbookCreateOrUpdateDraftParameters struct {
	// REQUIRED; Content of the Runbook.
	RunbookContent *string
}

RunbookCreateOrUpdateDraftParameters - The parameters supplied to the create or update runbook operation.

func (RunbookCreateOrUpdateDraftParameters) MarshalJSON added in v0.7.0

func (r RunbookCreateOrUpdateDraftParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookCreateOrUpdateDraftParameters.

func (*RunbookCreateOrUpdateDraftParameters) UnmarshalJSON added in v0.7.0

func (r *RunbookCreateOrUpdateDraftParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookCreateOrUpdateDraftParameters.

type RunbookCreateOrUpdateDraftProperties

type RunbookCreateOrUpdateDraftProperties struct {
	// REQUIRED; Gets or sets the draft runbook properties.
	Draft *RunbookDraft

	// REQUIRED; Gets or sets the type of the runbook.
	RunbookType *RunbookTypeEnum

	// Gets or sets the description of the runbook.
	Description *string

	// Gets or sets the activity-level tracing options of the runbook.
	LogActivityTrace *int32

	// Gets or sets progress log option.
	LogProgress *bool

	// Gets or sets verbose log option.
	LogVerbose *bool
}

RunbookCreateOrUpdateDraftProperties - The parameters supplied to the create or update draft runbook properties.

func (RunbookCreateOrUpdateDraftProperties) MarshalJSON added in v0.7.0

func (r RunbookCreateOrUpdateDraftProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookCreateOrUpdateDraftProperties.

func (*RunbookCreateOrUpdateDraftProperties) UnmarshalJSON added in v0.7.0

func (r *RunbookCreateOrUpdateDraftProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookCreateOrUpdateDraftProperties.

type RunbookCreateOrUpdateParameters

type RunbookCreateOrUpdateParameters struct {
	// REQUIRED; Gets or sets runbook create or update properties.
	Properties *RunbookCreateOrUpdateProperties

	// Gets or sets the location of the resource.
	Location *string

	// Gets or sets the name of the resource.
	Name *string

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

RunbookCreateOrUpdateParameters - The parameters supplied to the create or update runbook operation.

func (RunbookCreateOrUpdateParameters) MarshalJSON

func (r RunbookCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookCreateOrUpdateParameters.

func (*RunbookCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (r *RunbookCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookCreateOrUpdateParameters.

type RunbookCreateOrUpdateProperties

type RunbookCreateOrUpdateProperties struct {
	// REQUIRED; Gets or sets the type of the runbook.
	RunbookType *RunbookTypeEnum

	// Gets or sets the description of the runbook.
	Description *string

	// Gets or sets the draft runbook properties.
	Draft *RunbookDraft

	// Gets or sets the activity-level tracing options of the runbook.
	LogActivityTrace *int32

	// Gets or sets progress log option.
	LogProgress *bool

	// Gets or sets verbose log option.
	LogVerbose *bool

	// Gets or sets the published runbook content link.
	PublishContentLink *ContentLink
}

RunbookCreateOrUpdateProperties - The parameters supplied to the create or update runbook properties.

func (RunbookCreateOrUpdateProperties) MarshalJSON added in v0.7.0

func (r RunbookCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookCreateOrUpdateProperties.

func (*RunbookCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

func (r *RunbookCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookCreateOrUpdateProperties.

type RunbookDraft

type RunbookDraft struct {
	// Gets or sets the creation time of the runbook draft.
	CreationTime *time.Time

	// Gets or sets the draft runbook content link.
	DraftContentLink *ContentLink

	// Gets or sets whether runbook is in edit mode.
	InEdit *bool

	// Gets or sets the last modified time of the runbook draft.
	LastModifiedTime *time.Time

	// Gets or sets the runbook output types.
	OutputTypes []*string

	// Gets or sets the runbook draft parameters.
	Parameters map[string]*RunbookParameter
}

func (RunbookDraft) MarshalJSON

func (r RunbookDraft) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookDraft.

func (*RunbookDraft) UnmarshalJSON

func (r *RunbookDraft) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookDraft.

type RunbookDraftClient

type RunbookDraftClient struct {
	// contains filtered or unexported fields
}

RunbookDraftClient contains the methods for the RunbookDraft group. Don't use this type directly, use NewRunbookDraftClient() instead.

func NewRunbookDraftClient

func NewRunbookDraftClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RunbookDraftClient, error)

NewRunbookDraftClient creates a new instance of RunbookDraftClient 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 (*RunbookDraftClient) BeginReplaceContent

func (client *RunbookDraftClient) BeginReplaceContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, runbookContent io.ReadSeekCloser, options *RunbookDraftClientBeginReplaceContentOptions) (*runtime.Poller[RunbookDraftClientReplaceContentResponse], error)

BeginReplaceContent - Replaces the runbook draft content. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2018-06-30

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • runbookContent - The runbook draft content.
  • options - RunbookDraftClientBeginReplaceContentOptions contains the optional parameters for the RunbookDraftClient.BeginReplaceContent method.

func (*RunbookDraftClient) Get

func (client *RunbookDraftClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *RunbookDraftClientGetOptions) (RunbookDraftClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - RunbookDraftClientGetOptions contains the optional parameters for the RunbookDraftClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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{
	// 	},
	// }
}
Output:

func (*RunbookDraftClient) GetContent

func (client *RunbookDraftClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *RunbookDraftClientGetContentOptions) (RunbookDraftClientGetContentResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - RunbookDraftClientGetContentOptions contains the optional parameters for the RunbookDraftClient.GetContent method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*RunbookDraftClient) UndoEdit

func (client *RunbookDraftClient) UndoEdit(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *RunbookDraftClientUndoEditOptions) (RunbookDraftClientUndoEditResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - RunbookDraftClientUndoEditOptions contains the optional parameters for the RunbookDraftClient.UndoEdit method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

type RunbookDraftClientBeginReplaceContentOptions added in v0.3.0

type RunbookDraftClientBeginReplaceContentOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

RunbookDraftClientBeginReplaceContentOptions contains the optional parameters for the RunbookDraftClient.BeginReplaceContent method.

type RunbookDraftClientGetContentOptions added in v0.3.0

type RunbookDraftClientGetContentOptions struct {
}

RunbookDraftClientGetContentOptions contains the optional parameters for the RunbookDraftClient.GetContent method.

type RunbookDraftClientGetContentResponse added in v0.3.0

type RunbookDraftClientGetContentResponse struct {
}

RunbookDraftClientGetContentResponse contains the response from method RunbookDraftClient.GetContent.

type RunbookDraftClientGetOptions added in v0.3.0

type RunbookDraftClientGetOptions struct {
}

RunbookDraftClientGetOptions contains the optional parameters for the RunbookDraftClient.Get method.

type RunbookDraftClientGetResponse added in v0.3.0

type RunbookDraftClientGetResponse struct {
	RunbookDraft
}

RunbookDraftClientGetResponse contains the response from method RunbookDraftClient.Get.

type RunbookDraftClientReplaceContentResponse added in v0.3.0

type RunbookDraftClientReplaceContentResponse struct {
	// Body contains the streaming response.
	Body io.ReadCloser
}

RunbookDraftClientReplaceContentResponse contains the response from method RunbookDraftClient.BeginReplaceContent.

type RunbookDraftClientUndoEditOptions added in v0.3.0

type RunbookDraftClientUndoEditOptions struct {
}

RunbookDraftClientUndoEditOptions contains the optional parameters for the RunbookDraftClient.UndoEdit method.

type RunbookDraftClientUndoEditResponse added in v0.3.0

type RunbookDraftClientUndoEditResponse struct {
	// The response model for the undo edit runbook operation.
	RunbookDraftUndoEditResult
}

RunbookDraftClientUndoEditResponse contains the response from method RunbookDraftClient.UndoEdit.

type RunbookDraftUndoEditResult

type RunbookDraftUndoEditResult struct {
	RequestID  *string
	StatusCode *HTTPStatusCode
}

RunbookDraftUndoEditResult - The response model for the undo edit runbook operation.

func (RunbookDraftUndoEditResult) MarshalJSON added in v0.7.0

func (r RunbookDraftUndoEditResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookDraftUndoEditResult.

func (*RunbookDraftUndoEditResult) UnmarshalJSON added in v0.7.0

func (r *RunbookDraftUndoEditResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookDraftUndoEditResult.

type RunbookListResult

type RunbookListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of runbooks.
	Value []*Runbook
}

RunbookListResult - The response model for the list runbook operation.

func (RunbookListResult) MarshalJSON

func (r RunbookListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookListResult.

func (*RunbookListResult) UnmarshalJSON added in v0.7.0

func (r *RunbookListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookListResult.

type RunbookParameter

type RunbookParameter struct {
	// Gets or sets the default value of parameter.
	DefaultValue *string

	// Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
	IsMandatory *bool

	// Get or sets the position of the parameter.
	Position *int32

	// Gets or sets the type of the parameter.
	Type *string
}

RunbookParameter - Definition of the runbook parameter type.

func (RunbookParameter) MarshalJSON added in v0.7.0

func (r RunbookParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookParameter.

func (*RunbookParameter) UnmarshalJSON added in v0.7.0

func (r *RunbookParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookParameter.

type RunbookProperties

type RunbookProperties struct {
	// Gets or sets the creation time.
	CreationTime *time.Time

	// Gets or sets the description.
	Description *string

	// Gets or sets the draft runbook properties.
	Draft *RunbookDraft

	// Gets or sets the job count of the runbook.
	JobCount *int32

	// Gets or sets the last modified by.
	LastModifiedBy *string

	// Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// Gets or sets the option to log activity trace of the runbook.
	LogActivityTrace *int32

	// Gets or sets progress log option.
	LogProgress *bool

	// Gets or sets verbose log option.
	LogVerbose *bool

	// Gets or sets the runbook output types.
	OutputTypes []*string

	// Gets or sets the runbook parameters.
	Parameters map[string]*RunbookParameter

	// Gets or sets the provisioning state of the runbook.
	ProvisioningState *string

	// Gets or sets the published runbook content link.
	PublishContentLink *ContentLink

	// Gets or sets the type of the runbook.
	RunbookType *RunbookTypeEnum

	// Gets or sets the state of the runbook.
	State *RunbookState
}

RunbookProperties - Definition of the runbook property type.

func (RunbookProperties) MarshalJSON

func (r RunbookProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookProperties.

func (*RunbookProperties) UnmarshalJSON

func (r *RunbookProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookProperties.

type RunbookState

type RunbookState string

RunbookState - Gets or sets the state of the runbook.

const (
	RunbookStateEdit      RunbookState = "Edit"
	RunbookStateNew       RunbookState = "New"
	RunbookStatePublished RunbookState = "Published"
)

func PossibleRunbookStateValues

func PossibleRunbookStateValues() []RunbookState

PossibleRunbookStateValues returns the possible values for the RunbookState const type.

type RunbookTypeEnum

type RunbookTypeEnum string

RunbookTypeEnum - Gets or sets the type of the runbook.

const (
	RunbookTypeEnumGraph                   RunbookTypeEnum = "Graph"
	RunbookTypeEnumGraphPowerShell         RunbookTypeEnum = "GraphPowerShell"
	RunbookTypeEnumGraphPowerShellWorkflow RunbookTypeEnum = "GraphPowerShellWorkflow"
	RunbookTypeEnumPowerShell              RunbookTypeEnum = "PowerShell"
	RunbookTypeEnumPowerShellWorkflow      RunbookTypeEnum = "PowerShellWorkflow"
	RunbookTypeEnumPython2                 RunbookTypeEnum = "Python2"
	RunbookTypeEnumPython3                 RunbookTypeEnum = "Python3"
	RunbookTypeEnumScript                  RunbookTypeEnum = "Script"
)

func PossibleRunbookTypeEnumValues

func PossibleRunbookTypeEnumValues() []RunbookTypeEnum

PossibleRunbookTypeEnumValues returns the possible values for the RunbookTypeEnum const type.

type RunbookUpdateParameters

type RunbookUpdateParameters struct {
	// Gets or sets the location of the resource.
	Location *string

	// Gets or sets the name of the resource.
	Name *string

	// Gets or sets the runbook update properties.
	Properties *RunbookUpdateProperties

	// Gets or sets the tags attached to the resource.
	Tags map[string]*string
}

RunbookUpdateParameters - The parameters supplied to the update runbook operation.

func (RunbookUpdateParameters) MarshalJSON

func (r RunbookUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookUpdateParameters.

func (*RunbookUpdateParameters) UnmarshalJSON added in v0.7.0

func (r *RunbookUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookUpdateParameters.

type RunbookUpdateProperties

type RunbookUpdateProperties struct {
	// Gets or sets the description of the runbook.
	Description *string

	// Gets or sets the activity-level tracing options of the runbook.
	LogActivityTrace *int32

	// Gets or sets progress log option.
	LogProgress *bool

	// Gets or sets verbose log option.
	LogVerbose *bool
}

RunbookUpdateProperties - The parameters supplied to the update runbook properties.

func (RunbookUpdateProperties) MarshalJSON added in v0.7.0

func (r RunbookUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunbookUpdateProperties.

func (*RunbookUpdateProperties) UnmarshalJSON added in v0.7.0

func (r *RunbookUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunbookUpdateProperties.

type SKU

type SKU struct {
	// REQUIRED; Gets or sets the SKU name of the account.
	Name *SKUNameEnum

	// Gets or sets the SKU capacity.
	Capacity *int32

	// Gets or sets the SKU family.
	Family *string
}

SKU - The account SKU.

func (SKU) MarshalJSON added in v0.7.0

func (s SKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SKU.

func (*SKU) UnmarshalJSON added in v0.7.0

func (s *SKU) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SKU.

type SKUNameEnum

type SKUNameEnum string

SKUNameEnum - Gets or sets the SKU name of the account.

const (
	SKUNameEnumBasic SKUNameEnum = "Basic"
	SKUNameEnumFree  SKUNameEnum = "Free"
)

func PossibleSKUNameEnumValues

func PossibleSKUNameEnumValues() []SKUNameEnum

PossibleSKUNameEnumValues returns the possible values for the SKUNameEnum const type.

type SUCScheduleProperties

type SUCScheduleProperties struct {
	// Gets or sets the advanced schedule.
	AdvancedSchedule *AdvancedSchedule

	// Gets or sets the creation time.
	CreationTime *time.Time

	// Gets or sets the description.
	Description *string

	// Gets or sets the end time of the schedule.
	ExpiryTime *time.Time

	// Gets or sets the expiry time's offset in minutes.
	ExpiryTimeOffsetMinutes *float64

	// Gets or sets the frequency of the schedule.
	Frequency *ScheduleFrequency

	// Gets or sets the interval of the schedule.
	Interval *int64

	// Gets or sets a value indicating whether this schedule is enabled.
	IsEnabled *bool

	// Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// Gets or sets the next run time of the schedule.
	NextRun *time.Time

	// Gets or sets the next run time's offset in minutes.
	NextRunOffsetMinutes *float64

	// Gets or sets the start time of the schedule.
	StartTime *time.Time

	// Gets or sets the time zone of the schedule.
	TimeZone *string

	// READ-ONLY; Gets the start time's offset in minutes.
	StartTimeOffsetMinutes *float64
}

SUCScheduleProperties - Definition of schedule parameters.

func (SUCScheduleProperties) MarshalJSON

func (s SUCScheduleProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SUCScheduleProperties.

func (*SUCScheduleProperties) UnmarshalJSON

func (s *SUCScheduleProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SUCScheduleProperties.

type Schedule

type Schedule struct {
	// Gets or sets the properties of the schedule.
	Properties *ScheduleProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Schedule - Definition of the schedule.

func (Schedule) MarshalJSON

func (s Schedule) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Schedule.

func (*Schedule) UnmarshalJSON added in v0.7.0

func (s *Schedule) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Schedule.

type ScheduleAssociationProperty

type ScheduleAssociationProperty struct {
	// Gets or sets the name of the Schedule.
	Name *string
}

ScheduleAssociationProperty - The schedule property associated with the entity.

func (ScheduleAssociationProperty) MarshalJSON added in v0.7.0

func (s ScheduleAssociationProperty) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScheduleAssociationProperty.

func (*ScheduleAssociationProperty) UnmarshalJSON added in v0.7.0

func (s *ScheduleAssociationProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleAssociationProperty.

type ScheduleClient

type ScheduleClient struct {
	// contains filtered or unexported fields
}

ScheduleClient contains the methods for the Schedule group. Don't use this type directly, use NewScheduleClient() instead.

func NewScheduleClient

func NewScheduleClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ScheduleClient, error)

NewScheduleClient creates a new instance of ScheduleClient 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 (*ScheduleClient) CreateOrUpdate

func (client *ScheduleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, parameters ScheduleCreateOrUpdateParameters, options *ScheduleClientCreateOrUpdateOptions) (ScheduleClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create a schedule. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • scheduleName - The schedule name.
  • parameters - The parameters supplied to the create or update schedule operation.
  • options - ScheduleClientCreateOrUpdateOptions contains the optional parameters for the ScheduleClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

func (*ScheduleClient) Delete

func (client *ScheduleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, options *ScheduleClientDeleteOptions) (ScheduleClientDeleteResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • scheduleName - The schedule name.
  • options - ScheduleClientDeleteOptions contains the optional parameters for the ScheduleClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*ScheduleClient) Get

func (client *ScheduleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, options *ScheduleClientGetOptions) (ScheduleClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • scheduleName - The schedule name.
  • options - ScheduleClientGetOptions contains the optional parameters for the ScheduleClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

func (*ScheduleClient) NewListByAutomationAccountPager added in v0.5.0

func (client *ScheduleClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *ScheduleClientListByAutomationAccountOptions) *runtime.Pager[ScheduleClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of schedules.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - ScheduleClientListByAutomationAccountOptions contains the optional parameters for the ScheduleClient.NewListByAutomationAccountPager method.
Example (ListSchedulesByAutomationAccountFirst100)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListSchedulesByAutomationAccountNext100)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*ScheduleClient) Update

func (client *ScheduleClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, parameters ScheduleUpdateParameters, options *ScheduleClientUpdateOptions) (ScheduleClientUpdateResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • scheduleName - The schedule name.
  • parameters - The parameters supplied to the update schedule operation.
  • options - ScheduleClientUpdateOptions contains the optional parameters for the ScheduleClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

type ScheduleClientCreateOrUpdateOptions added in v0.3.0

type ScheduleClientCreateOrUpdateOptions struct {
}

ScheduleClientCreateOrUpdateOptions contains the optional parameters for the ScheduleClient.CreateOrUpdate method.

type ScheduleClientCreateOrUpdateResponse added in v0.3.0

type ScheduleClientCreateOrUpdateResponse struct {
	// Definition of the schedule.
	Schedule
}

ScheduleClientCreateOrUpdateResponse contains the response from method ScheduleClient.CreateOrUpdate.

type ScheduleClientDeleteOptions added in v0.3.0

type ScheduleClientDeleteOptions struct {
}

ScheduleClientDeleteOptions contains the optional parameters for the ScheduleClient.Delete method.

type ScheduleClientDeleteResponse added in v0.3.0

type ScheduleClientDeleteResponse struct {
}

ScheduleClientDeleteResponse contains the response from method ScheduleClient.Delete.

type ScheduleClientGetOptions added in v0.3.0

type ScheduleClientGetOptions struct {
}

ScheduleClientGetOptions contains the optional parameters for the ScheduleClient.Get method.

type ScheduleClientGetResponse added in v0.3.0

type ScheduleClientGetResponse struct {
	// Definition of the schedule.
	Schedule
}

ScheduleClientGetResponse contains the response from method ScheduleClient.Get.

type ScheduleClientListByAutomationAccountOptions added in v0.3.0

type ScheduleClientListByAutomationAccountOptions struct {
}

ScheduleClientListByAutomationAccountOptions contains the optional parameters for the ScheduleClient.NewListByAutomationAccountPager method.

type ScheduleClientListByAutomationAccountResponse added in v0.3.0

type ScheduleClientListByAutomationAccountResponse struct {
	// The response model for the list schedule operation.
	ScheduleListResult
}

ScheduleClientListByAutomationAccountResponse contains the response from method ScheduleClient.NewListByAutomationAccountPager.

type ScheduleClientUpdateOptions added in v0.3.0

type ScheduleClientUpdateOptions struct {
}

ScheduleClientUpdateOptions contains the optional parameters for the ScheduleClient.Update method.

type ScheduleClientUpdateResponse added in v0.3.0

type ScheduleClientUpdateResponse struct {
	// Definition of the schedule.
	Schedule
}

ScheduleClientUpdateResponse contains the response from method ScheduleClient.Update.

type ScheduleCreateOrUpdateParameters

type ScheduleCreateOrUpdateParameters struct {
	// REQUIRED; Gets or sets the name of the Schedule.
	Name *string

	// REQUIRED; Gets or sets the list of schedule properties.
	Properties *ScheduleCreateOrUpdateProperties
}

ScheduleCreateOrUpdateParameters - The parameters supplied to the create or update schedule operation.

func (ScheduleCreateOrUpdateParameters) MarshalJSON added in v0.7.0

func (s ScheduleCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScheduleCreateOrUpdateParameters.

func (*ScheduleCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (s *ScheduleCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleCreateOrUpdateParameters.

type ScheduleCreateOrUpdateProperties

type ScheduleCreateOrUpdateProperties struct {
	// REQUIRED; Gets or sets the frequency of the schedule.
	Frequency *ScheduleFrequency

	// REQUIRED; Gets or sets the start time of the schedule.
	StartTime *time.Time

	// Gets or sets the AdvancedSchedule.
	AdvancedSchedule *AdvancedSchedule

	// Gets or sets the description of the schedule.
	Description *string

	// Gets or sets the end time of the schedule.
	ExpiryTime *time.Time

	// Gets or sets the interval of the schedule.
	Interval any

	// Gets or sets the time zone of the schedule.
	TimeZone *string
}

ScheduleCreateOrUpdateProperties - The parameters supplied to the create or update schedule operation.

func (ScheduleCreateOrUpdateProperties) MarshalJSON

func (s ScheduleCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScheduleCreateOrUpdateProperties.

func (*ScheduleCreateOrUpdateProperties) UnmarshalJSON

func (s *ScheduleCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleCreateOrUpdateProperties.

type ScheduleDay

type ScheduleDay string

ScheduleDay - Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.

const (
	ScheduleDayFriday    ScheduleDay = "Friday"
	ScheduleDayMonday    ScheduleDay = "Monday"
	ScheduleDaySaturday  ScheduleDay = "Saturday"
	ScheduleDaySunday    ScheduleDay = "Sunday"
	ScheduleDayThursday  ScheduleDay = "Thursday"
	ScheduleDayTuesday   ScheduleDay = "Tuesday"
	ScheduleDayWednesday ScheduleDay = "Wednesday"
)

func PossibleScheduleDayValues

func PossibleScheduleDayValues() []ScheduleDay

PossibleScheduleDayValues returns the possible values for the ScheduleDay const type.

type ScheduleFrequency

type ScheduleFrequency string

ScheduleFrequency - Gets or sets the frequency of the schedule.

const (
	ScheduleFrequencyDay  ScheduleFrequency = "Day"
	ScheduleFrequencyHour ScheduleFrequency = "Hour"
	// ScheduleFrequencyMinute - The minimum allowed interval for Minute schedules is 15 minutes.
	ScheduleFrequencyMinute  ScheduleFrequency = "Minute"
	ScheduleFrequencyMonth   ScheduleFrequency = "Month"
	ScheduleFrequencyOneTime ScheduleFrequency = "OneTime"
	ScheduleFrequencyWeek    ScheduleFrequency = "Week"
)

func PossibleScheduleFrequencyValues

func PossibleScheduleFrequencyValues() []ScheduleFrequency

PossibleScheduleFrequencyValues returns the possible values for the ScheduleFrequency const type.

type ScheduleListResult

type ScheduleListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of schedules.
	Value []*Schedule
}

ScheduleListResult - The response model for the list schedule operation.

func (ScheduleListResult) MarshalJSON

func (s ScheduleListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScheduleListResult.

func (*ScheduleListResult) UnmarshalJSON added in v0.7.0

func (s *ScheduleListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleListResult.

type ScheduleProperties

type ScheduleProperties struct {
	// Gets or sets the advanced schedule.
	AdvancedSchedule *AdvancedSchedule

	// Gets or sets the creation time.
	CreationTime *time.Time

	// Gets or sets the description.
	Description *string

	// Gets or sets the end time of the schedule.
	ExpiryTime *time.Time

	// Gets or sets the expiry time's offset in minutes.
	ExpiryTimeOffsetMinutes *float64

	// Gets or sets the frequency of the schedule.
	Frequency *ScheduleFrequency

	// Gets or sets the interval of the schedule.
	Interval any

	// Gets or sets a value indicating whether this schedule is enabled.
	IsEnabled *bool

	// Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// Gets or sets the next run time of the schedule.
	NextRun *time.Time

	// Gets or sets the next run time's offset in minutes.
	NextRunOffsetMinutes *float64

	// Gets or sets the start time of the schedule.
	StartTime *time.Time

	// Gets or sets the time zone of the schedule.
	TimeZone *string

	// READ-ONLY; Gets the start time's offset in minutes.
	StartTimeOffsetMinutes *float64
}

ScheduleProperties - Definition of schedule parameters.

func (ScheduleProperties) MarshalJSON

func (s ScheduleProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScheduleProperties.

func (*ScheduleProperties) UnmarshalJSON

func (s *ScheduleProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleProperties.

type ScheduleUpdateParameters

type ScheduleUpdateParameters struct {
	// Gets or sets the name of the Schedule.
	Name *string

	// Gets or sets the list of schedule properties.
	Properties *ScheduleUpdateProperties
}

ScheduleUpdateParameters - The parameters supplied to the update schedule operation.

func (ScheduleUpdateParameters) MarshalJSON

func (s ScheduleUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScheduleUpdateParameters.

func (*ScheduleUpdateParameters) UnmarshalJSON added in v0.7.0

func (s *ScheduleUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleUpdateParameters.

type ScheduleUpdateProperties

type ScheduleUpdateProperties struct {
	// Gets or sets the description of the schedule.
	Description *string

	// Gets or sets a value indicating whether this schedule is enabled.
	IsEnabled *bool
}

ScheduleUpdateProperties - The parameters supplied to the update schedule operation.

func (ScheduleUpdateProperties) MarshalJSON added in v0.7.0

func (s ScheduleUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScheduleUpdateProperties.

func (*ScheduleUpdateProperties) UnmarshalJSON added in v0.7.0

func (s *ScheduleUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleUpdateProperties.

type SoftwareUpdateConfiguration

type SoftwareUpdateConfiguration struct {
	// REQUIRED; Software update configuration properties.
	Properties *SoftwareUpdateConfigurationProperties

	// READ-ONLY; Resource Id.
	ID *string

	// READ-ONLY; Resource name.
	Name *string

	// READ-ONLY; Resource type
	Type *string
}

SoftwareUpdateConfiguration - Software update configuration properties.

func (SoftwareUpdateConfiguration) MarshalJSON added in v0.7.0

func (s SoftwareUpdateConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfiguration.

func (*SoftwareUpdateConfiguration) UnmarshalJSON added in v0.7.0

func (s *SoftwareUpdateConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfiguration.

type SoftwareUpdateConfigurationCollectionItem

type SoftwareUpdateConfigurationCollectionItem struct {
	// REQUIRED; Software update configuration properties.
	Properties *SoftwareUpdateConfigurationCollectionItemProperties

	// READ-ONLY; Resource Id of the software update configuration
	ID *string

	// READ-ONLY; Name of the software update configuration.
	Name *string
}

SoftwareUpdateConfigurationCollectionItem - Software update configuration collection item properties.

func (SoftwareUpdateConfigurationCollectionItem) MarshalJSON added in v0.7.0

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationCollectionItem.

func (*SoftwareUpdateConfigurationCollectionItem) UnmarshalJSON added in v0.7.0

func (s *SoftwareUpdateConfigurationCollectionItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationCollectionItem.

type SoftwareUpdateConfigurationCollectionItemProperties

type SoftwareUpdateConfigurationCollectionItemProperties struct {
	// execution frequency of the schedule associated with the software update configuration
	Frequency *ScheduleFrequency

	// ext run time of the update.
	NextRun *time.Time

	// the start time of the update.
	StartTime *time.Time

	// Pre and Post Tasks defined
	Tasks *SoftwareUpdateConfigurationTasks

	// Update specific properties of the software update configuration.
	UpdateConfiguration *UpdateConfiguration

	// READ-ONLY; Creation time of the software update configuration, which only appears in the response.
	CreationTime *time.Time

	// READ-ONLY; Last time software update configuration was modified, which only appears in the response.
	LastModifiedTime *time.Time

	// READ-ONLY; Provisioning state for the software update configuration, which only appears in the response.
	ProvisioningState *string
}

SoftwareUpdateConfigurationCollectionItemProperties - Software update configuration collection item properties.

func (SoftwareUpdateConfigurationCollectionItemProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationCollectionItemProperties.

func (*SoftwareUpdateConfigurationCollectionItemProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationCollectionItemProperties.

type SoftwareUpdateConfigurationListResult

type SoftwareUpdateConfigurationListResult struct {
	// outer object returned when listing all software update configurations
	Value []*SoftwareUpdateConfigurationCollectionItem
}

SoftwareUpdateConfigurationListResult - result of listing all software update configuration

func (SoftwareUpdateConfigurationListResult) MarshalJSON

func (s SoftwareUpdateConfigurationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationListResult.

func (*SoftwareUpdateConfigurationListResult) UnmarshalJSON added in v0.7.0

func (s *SoftwareUpdateConfigurationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationListResult.

type SoftwareUpdateConfigurationMachineRun

type SoftwareUpdateConfigurationMachineRun struct {
	// Software update configuration machine run properties.
	Properties *UpdateConfigurationMachineRunProperties

	// READ-ONLY; Resource Id of the software update configuration machine run
	ID *string

	// READ-ONLY; Name of the software update configuration machine run
	Name *string
}

SoftwareUpdateConfigurationMachineRun - Software update configuration machine run model.

func (SoftwareUpdateConfigurationMachineRun) MarshalJSON added in v0.7.0

func (s SoftwareUpdateConfigurationMachineRun) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationMachineRun.

func (*SoftwareUpdateConfigurationMachineRun) UnmarshalJSON added in v0.7.0

func (s *SoftwareUpdateConfigurationMachineRun) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationMachineRun.

type SoftwareUpdateConfigurationMachineRunListResult

type SoftwareUpdateConfigurationMachineRunListResult struct {
	// link to next page of results.
	NextLink *string

	// outer object returned when listing all software update configuration machine runs
	Value []*SoftwareUpdateConfigurationMachineRun
}

SoftwareUpdateConfigurationMachineRunListResult - result of listing all software update configuration machine runs

func (SoftwareUpdateConfigurationMachineRunListResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationMachineRunListResult.

func (*SoftwareUpdateConfigurationMachineRunListResult) UnmarshalJSON added in v0.7.0

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationMachineRunListResult.

type SoftwareUpdateConfigurationMachineRunsClient

type SoftwareUpdateConfigurationMachineRunsClient struct {
	// contains filtered or unexported fields
}

SoftwareUpdateConfigurationMachineRunsClient contains the methods for the SoftwareUpdateConfigurationMachineRuns group. Don't use this type directly, use NewSoftwareUpdateConfigurationMachineRunsClient() instead.

func NewSoftwareUpdateConfigurationMachineRunsClient

func NewSoftwareUpdateConfigurationMachineRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SoftwareUpdateConfigurationMachineRunsClient, error)

NewSoftwareUpdateConfigurationMachineRunsClient creates a new instance of SoftwareUpdateConfigurationMachineRunsClient 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 (*SoftwareUpdateConfigurationMachineRunsClient) GetByID

func (client *SoftwareUpdateConfigurationMachineRunsClient) GetByID(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationMachineRunID string, options *SoftwareUpdateConfigurationMachineRunsClientGetByIDOptions) (SoftwareUpdateConfigurationMachineRunsClientGetByIDResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • softwareUpdateConfigurationMachineRunID - The Id of the software update configuration machine run.
  • options - SoftwareUpdateConfigurationMachineRunsClientGetByIDOptions contains the optional parameters for the SoftwareUpdateConfigurationMachineRunsClient.GetByID method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 	},
	// }
}
Output:

func (*SoftwareUpdateConfigurationMachineRunsClient) List

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - SoftwareUpdateConfigurationMachineRunsClientListOptions contains the optional parameters for the SoftwareUpdateConfigurationMachineRunsClient.List method.
Example (ListSoftwareUpdateConfigurationMachineRuns)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 			},
	// 	}},
	// }
}
Output:

Example (ListSoftwareUpdateConfigurationMachineRunsForASpecificSoftwareUpdateConfigurationRun)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 			},
	// 	}},
	// }
}
Output:

type SoftwareUpdateConfigurationMachineRunsClientGetByIDOptions added in v0.3.0

type SoftwareUpdateConfigurationMachineRunsClientGetByIDOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

SoftwareUpdateConfigurationMachineRunsClientGetByIDOptions contains the optional parameters for the SoftwareUpdateConfigurationMachineRunsClient.GetByID method.

type SoftwareUpdateConfigurationMachineRunsClientGetByIDResponse added in v0.3.0

type SoftwareUpdateConfigurationMachineRunsClientGetByIDResponse struct {
	// Software update configuration machine run model.
	SoftwareUpdateConfigurationMachineRun
}

SoftwareUpdateConfigurationMachineRunsClientGetByIDResponse contains the response from method SoftwareUpdateConfigurationMachineRunsClient.GetByID.

type SoftwareUpdateConfigurationMachineRunsClientListOptions added in v0.3.0

type SoftwareUpdateConfigurationMachineRunsClientListOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string

	// The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime',
	// and 'properties/softwareUpdateConfiguration/name'
	Filter *string

	// number of entries you skip before returning results
	Skip *string

	// Maximum number of entries returned in the results collection
	Top *string
}

SoftwareUpdateConfigurationMachineRunsClientListOptions contains the optional parameters for the SoftwareUpdateConfigurationMachineRunsClient.List method.

type SoftwareUpdateConfigurationMachineRunsClientListResponse added in v0.3.0

type SoftwareUpdateConfigurationMachineRunsClientListResponse struct {
	// result of listing all software update configuration machine runs
	SoftwareUpdateConfigurationMachineRunListResult
}

SoftwareUpdateConfigurationMachineRunsClientListResponse contains the response from method SoftwareUpdateConfigurationMachineRunsClient.List.

type SoftwareUpdateConfigurationProperties

type SoftwareUpdateConfigurationProperties struct {
	// REQUIRED; Schedule information for the Software update configuration
	ScheduleInfo *SUCScheduleProperties

	// REQUIRED; update specific properties for the Software update configuration
	UpdateConfiguration *UpdateConfiguration

	// Details of provisioning error
	Error *ErrorResponse

	// Tasks information for the Software update configuration.
	Tasks *SoftwareUpdateConfigurationTasks

	// READ-ONLY; CreatedBy property, which only appears in the response.
	CreatedBy *string

	// READ-ONLY; Creation time of the resource, which only appears in the response.
	CreationTime *time.Time

	// READ-ONLY; LastModifiedBy property, which only appears in the response.
	LastModifiedBy *string

	// READ-ONLY; Last time resource was modified, which only appears in the response.
	LastModifiedTime *time.Time

	// READ-ONLY; Provisioning state for the software update configuration, which only appears in the response.
	ProvisioningState *string
}

SoftwareUpdateConfigurationProperties - Software update configuration properties.

func (SoftwareUpdateConfigurationProperties) MarshalJSON

func (s SoftwareUpdateConfigurationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationProperties.

func (*SoftwareUpdateConfigurationProperties) UnmarshalJSON

func (s *SoftwareUpdateConfigurationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationProperties.

type SoftwareUpdateConfigurationRun

type SoftwareUpdateConfigurationRun struct {
	// Software update configuration Run properties.
	Properties *SoftwareUpdateConfigurationRunProperties

	// READ-ONLY; Resource Id of the software update configuration run
	ID *string

	// READ-ONLY; Name of the software update configuration run.
	Name *string
}

SoftwareUpdateConfigurationRun - Software update configuration Run properties.

func (SoftwareUpdateConfigurationRun) MarshalJSON added in v0.7.0

func (s SoftwareUpdateConfigurationRun) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationRun.

func (*SoftwareUpdateConfigurationRun) UnmarshalJSON added in v0.7.0

func (s *SoftwareUpdateConfigurationRun) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationRun.

type SoftwareUpdateConfigurationRunListResult

type SoftwareUpdateConfigurationRunListResult struct {
	// link to next page of results.
	NextLink *string

	// outer object returned when listing all software update configuration runs
	Value []*SoftwareUpdateConfigurationRun
}

SoftwareUpdateConfigurationRunListResult - result of listing all software update configuration runs

func (SoftwareUpdateConfigurationRunListResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationRunListResult.

func (*SoftwareUpdateConfigurationRunListResult) UnmarshalJSON added in v0.7.0

func (s *SoftwareUpdateConfigurationRunListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationRunListResult.

type SoftwareUpdateConfigurationRunProperties

type SoftwareUpdateConfigurationRunProperties struct {
	// software update configuration triggered this run
	SoftwareUpdateConfiguration *UpdateConfigurationNavigation

	// Software update configuration tasks triggered in this run
	Tasks *SoftwareUpdateConfigurationRunTasks

	// READ-ONLY; Number of computers in the software update configuration run.
	ComputerCount *int32

	// READ-ONLY; Configured duration for the software update configuration run.
	ConfiguredDuration *string

	// READ-ONLY; CreatedBy property, which only appears in the response.
	CreatedBy *string

	// READ-ONLY; Creation time of the resource, which only appears in the response.
	CreationTime *time.Time

	// READ-ONLY; End time of the software update configuration run.
	EndTime *time.Time

	// READ-ONLY; Number of computers with failed status.
	FailedCount *int32

	// READ-ONLY; LastModifiedBy property, which only appears in the response.
	LastModifiedBy *string

	// READ-ONLY; Last time resource was modified, which only appears in the response.
	LastModifiedTime *time.Time

	// READ-ONLY; Operating system target of the software update configuration triggered this run
	OSType *string

	// READ-ONLY; Start time of the software update configuration run.
	StartTime *time.Time

	// READ-ONLY; Status of the software update configuration run.
	Status *string
}

SoftwareUpdateConfigurationRunProperties - Software update configuration properties.

func (SoftwareUpdateConfigurationRunProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationRunProperties.

func (*SoftwareUpdateConfigurationRunProperties) UnmarshalJSON

func (s *SoftwareUpdateConfigurationRunProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationRunProperties.

type SoftwareUpdateConfigurationRunTaskProperties

type SoftwareUpdateConfigurationRunTaskProperties struct {
	// The job id of the task.
	JobID *string

	// The name of the source of the task.
	Source *string

	// The status of the task.
	Status *string
}

SoftwareUpdateConfigurationRunTaskProperties - Task properties of the software update configuration.

func (SoftwareUpdateConfigurationRunTaskProperties) MarshalJSON added in v0.7.0

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationRunTaskProperties.

func (*SoftwareUpdateConfigurationRunTaskProperties) UnmarshalJSON added in v0.7.0

func (s *SoftwareUpdateConfigurationRunTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationRunTaskProperties.

type SoftwareUpdateConfigurationRunTasks

type SoftwareUpdateConfigurationRunTasks struct {
	// Post task properties.
	PostTask *SoftwareUpdateConfigurationRunTaskProperties

	// Pre task properties.
	PreTask *SoftwareUpdateConfigurationRunTaskProperties
}

SoftwareUpdateConfigurationRunTasks - Software update configuration run tasks model.

func (SoftwareUpdateConfigurationRunTasks) MarshalJSON added in v0.7.0

func (s SoftwareUpdateConfigurationRunTasks) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationRunTasks.

func (*SoftwareUpdateConfigurationRunTasks) UnmarshalJSON added in v0.7.0

func (s *SoftwareUpdateConfigurationRunTasks) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationRunTasks.

type SoftwareUpdateConfigurationRunsClient

type SoftwareUpdateConfigurationRunsClient struct {
	// contains filtered or unexported fields
}

SoftwareUpdateConfigurationRunsClient contains the methods for the SoftwareUpdateConfigurationRuns group. Don't use this type directly, use NewSoftwareUpdateConfigurationRunsClient() instead.

func NewSoftwareUpdateConfigurationRunsClient

func NewSoftwareUpdateConfigurationRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SoftwareUpdateConfigurationRunsClient, error)

NewSoftwareUpdateConfigurationRunsClient creates a new instance of SoftwareUpdateConfigurationRunsClient 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 (*SoftwareUpdateConfigurationRunsClient) GetByID

func (client *SoftwareUpdateConfigurationRunsClient) GetByID(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationRunID string, options *SoftwareUpdateConfigurationRunsClientGetByIDOptions) (SoftwareUpdateConfigurationRunsClientGetByIDResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • softwareUpdateConfigurationRunID - The Id of the software update configuration run.
  • options - SoftwareUpdateConfigurationRunsClientGetByIDOptions contains the optional parameters for the SoftwareUpdateConfigurationRunsClient.GetByID method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 			},
	// 		},
	// 	},
	// }
}
Output:

func (*SoftwareUpdateConfigurationRunsClient) List

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - SoftwareUpdateConfigurationRunsClientListOptions contains the optional parameters for the SoftwareUpdateConfigurationRunsClient.List method.
Example (ListSoftwareUpdateConfigurationMachineRunWithStatusEqualToFailed)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 					},
	// 				},
	// 			},
	// 	}},
	// }
}
Output:

Example (ListSoftwareUpdateConfigurationMachineRuns)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// 					},
	// 				},
	// 			},
	// 	}},
	// }
}
Output:

type SoftwareUpdateConfigurationRunsClientGetByIDOptions added in v0.3.0

type SoftwareUpdateConfigurationRunsClientGetByIDOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

SoftwareUpdateConfigurationRunsClientGetByIDOptions contains the optional parameters for the SoftwareUpdateConfigurationRunsClient.GetByID method.

type SoftwareUpdateConfigurationRunsClientGetByIDResponse added in v0.3.0

type SoftwareUpdateConfigurationRunsClientGetByIDResponse struct {
	// Software update configuration Run properties.
	SoftwareUpdateConfigurationRun
}

SoftwareUpdateConfigurationRunsClientGetByIDResponse contains the response from method SoftwareUpdateConfigurationRunsClient.GetByID.

type SoftwareUpdateConfigurationRunsClientListOptions added in v0.3.0

type SoftwareUpdateConfigurationRunsClientListOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string

	// The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime',
	// and 'properties/softwareUpdateConfiguration/name'
	Filter *string

	// Number of entries you skip before returning results
	Skip *string

	// Maximum number of entries returned in the results collection
	Top *string
}

SoftwareUpdateConfigurationRunsClientListOptions contains the optional parameters for the SoftwareUpdateConfigurationRunsClient.List method.

type SoftwareUpdateConfigurationRunsClientListResponse added in v0.3.0

type SoftwareUpdateConfigurationRunsClientListResponse struct {
	// result of listing all software update configuration runs
	SoftwareUpdateConfigurationRunListResult
}

SoftwareUpdateConfigurationRunsClientListResponse contains the response from method SoftwareUpdateConfigurationRunsClient.List.

type SoftwareUpdateConfigurationTasks

type SoftwareUpdateConfigurationTasks struct {
	// Post task properties.
	PostTask *TaskProperties

	// Pre task properties.
	PreTask *TaskProperties
}

SoftwareUpdateConfigurationTasks - Task properties of the software update configuration.

func (SoftwareUpdateConfigurationTasks) MarshalJSON added in v0.7.0

func (s SoftwareUpdateConfigurationTasks) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SoftwareUpdateConfigurationTasks.

func (*SoftwareUpdateConfigurationTasks) UnmarshalJSON added in v0.7.0

func (s *SoftwareUpdateConfigurationTasks) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SoftwareUpdateConfigurationTasks.

type SoftwareUpdateConfigurationsClient

type SoftwareUpdateConfigurationsClient struct {
	// contains filtered or unexported fields
}

SoftwareUpdateConfigurationsClient contains the methods for the SoftwareUpdateConfigurations group. Don't use this type directly, use NewSoftwareUpdateConfigurationsClient() instead.

func NewSoftwareUpdateConfigurationsClient

func NewSoftwareUpdateConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SoftwareUpdateConfigurationsClient, error)

NewSoftwareUpdateConfigurationsClient creates a new instance of SoftwareUpdateConfigurationsClient 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 (*SoftwareUpdateConfigurationsClient) Create

func (client *SoftwareUpdateConfigurationsClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationName string, parameters SoftwareUpdateConfiguration, options *SoftwareUpdateConfigurationsClientCreateOptions) (SoftwareUpdateConfigurationsClientCreateResponse, error)

Create - Create a new software update configuration with the name given in the URI. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-06-01

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • softwareUpdateConfigurationName - The name of the software update configuration to be created.
  • parameters - Request body.
  • options - SoftwareUpdateConfigurationsClientCreateOptions contains the optional parameters for the SoftwareUpdateConfigurationsClient.Create method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 										},
	// 									},
	// 								},
	// 							}
}
Output:

func (*SoftwareUpdateConfigurationsClient) Delete

func (client *SoftwareUpdateConfigurationsClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationName string, options *SoftwareUpdateConfigurationsClientDeleteOptions) (SoftwareUpdateConfigurationsClientDeleteResponse, error)

Delete - delete a specific software update configuration. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-06-01

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • softwareUpdateConfigurationName - The name of the software update configuration to be created.
  • options - SoftwareUpdateConfigurationsClientDeleteOptions contains the optional parameters for the SoftwareUpdateConfigurationsClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*SoftwareUpdateConfigurationsClient) GetByName

func (client *SoftwareUpdateConfigurationsClient) GetByName(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationName string, options *SoftwareUpdateConfigurationsClientGetByNameOptions) (SoftwareUpdateConfigurationsClientGetByNameResponse, error)

GetByName - Get a single software update configuration by name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-06-01

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • softwareUpdateConfigurationName - The name of the software update configuration to be created.
  • options - SoftwareUpdateConfigurationsClientGetByNameOptions contains the optional parameters for the SoftwareUpdateConfigurationsClient.GetByName method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 									},
	// 								},
	// 							},
	// 						}
}
Output:

func (*SoftwareUpdateConfigurationsClient) List

List - Get all software update configurations for the account. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2019-06-01

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - SoftwareUpdateConfigurationsClientListOptions contains the optional parameters for the SoftwareUpdateConfigurationsClient.List method.
Example (ListSoftwareUpdateConfigurations)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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")),
	// 														},
	// 													},
	// 												},
	// 										}},
	// 									}
}
Output:

Example (ListSoftwareUpdateConfigurationsTargetingASpecificAzureVirtualMachine)

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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")),
	// 							},
	// 						},
	// 					},
	// 			}},
	// 		}
}
Output:

type SoftwareUpdateConfigurationsClientCreateOptions added in v0.3.0

type SoftwareUpdateConfigurationsClientCreateOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

SoftwareUpdateConfigurationsClientCreateOptions contains the optional parameters for the SoftwareUpdateConfigurationsClient.Create method.

type SoftwareUpdateConfigurationsClientCreateResponse added in v0.3.0

type SoftwareUpdateConfigurationsClientCreateResponse struct {
	// Software update configuration properties.
	SoftwareUpdateConfiguration
}

SoftwareUpdateConfigurationsClientCreateResponse contains the response from method SoftwareUpdateConfigurationsClient.Create.

type SoftwareUpdateConfigurationsClientDeleteOptions added in v0.3.0

type SoftwareUpdateConfigurationsClientDeleteOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

SoftwareUpdateConfigurationsClientDeleteOptions contains the optional parameters for the SoftwareUpdateConfigurationsClient.Delete method.

type SoftwareUpdateConfigurationsClientDeleteResponse added in v0.3.0

type SoftwareUpdateConfigurationsClientDeleteResponse struct {
}

SoftwareUpdateConfigurationsClientDeleteResponse contains the response from method SoftwareUpdateConfigurationsClient.Delete.

type SoftwareUpdateConfigurationsClientGetByNameOptions added in v0.3.0

type SoftwareUpdateConfigurationsClientGetByNameOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string
}

SoftwareUpdateConfigurationsClientGetByNameOptions contains the optional parameters for the SoftwareUpdateConfigurationsClient.GetByName method.

type SoftwareUpdateConfigurationsClientGetByNameResponse added in v0.3.0

type SoftwareUpdateConfigurationsClientGetByNameResponse struct {
	// Software update configuration properties.
	SoftwareUpdateConfiguration
}

SoftwareUpdateConfigurationsClientGetByNameResponse contains the response from method SoftwareUpdateConfigurationsClient.GetByName.

type SoftwareUpdateConfigurationsClientListOptions added in v0.3.0

type SoftwareUpdateConfigurationsClientListOptions struct {
	// Identifies this specific client request.
	ClientRequestID *string

	// The filter to apply on the operation.
	Filter *string
}

SoftwareUpdateConfigurationsClientListOptions contains the optional parameters for the SoftwareUpdateConfigurationsClient.List method.

type SoftwareUpdateConfigurationsClientListResponse added in v0.3.0

type SoftwareUpdateConfigurationsClientListResponse struct {
	// result of listing all software update configuration
	SoftwareUpdateConfigurationListResult
}

SoftwareUpdateConfigurationsClientListResponse contains the response from method SoftwareUpdateConfigurationsClient.List.

type SourceControl

type SourceControl struct {
	// The properties of the source control.
	Properties *SourceControlProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

SourceControl - Definition of the source control.

func (SourceControl) MarshalJSON

func (s SourceControl) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControl.

func (*SourceControl) UnmarshalJSON added in v0.7.0

func (s *SourceControl) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControl.

type SourceControlClient

type SourceControlClient struct {
	// contains filtered or unexported fields
}

SourceControlClient contains the methods for the SourceControl group. Don't use this type directly, use NewSourceControlClient() instead.

func NewSourceControlClient

func NewSourceControlClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SourceControlClient, error)

NewSourceControlClient creates a new instance of SourceControlClient 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 (*SourceControlClient) CreateOrUpdate

func (client *SourceControlClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, parameters SourceControlCreateOrUpdateParameters, options *SourceControlClientCreateOrUpdateOptions) (SourceControlClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create a source control. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • sourceControlName - The source control name.
  • parameters - The parameters supplied to the create or update source control operation.
  • options - SourceControlClientCreateOrUpdateOptions contains the optional parameters for the SourceControlClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*SourceControlClient) Delete

func (client *SourceControlClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, options *SourceControlClientDeleteOptions) (SourceControlClientDeleteResponse, error)

Delete - Delete the source control. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • sourceControlName - The name of source control.
  • options - SourceControlClientDeleteOptions contains the optional parameters for the SourceControlClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*SourceControlClient) Get

func (client *SourceControlClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, options *SourceControlClientGetOptions) (SourceControlClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • sourceControlName - The name of source control.
  • options - SourceControlClientGetOptions contains the optional parameters for the SourceControlClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*SourceControlClient) NewListByAutomationAccountPager added in v0.5.0

func (client *SourceControlClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *SourceControlClientListByAutomationAccountOptions) *runtime.Pager[SourceControlClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of source controls.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - SourceControlClientListByAutomationAccountOptions contains the optional parameters for the SourceControlClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*SourceControlClient) Update

func (client *SourceControlClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, parameters SourceControlUpdateParameters, options *SourceControlClientUpdateOptions) (SourceControlClientUpdateResponse, error)

Update - Update a source control. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • sourceControlName - The source control name.
  • parameters - The parameters supplied to the update source control operation.
  • options - SourceControlClientUpdateOptions contains the optional parameters for the SourceControlClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

type SourceControlClientCreateOrUpdateOptions added in v0.3.0

type SourceControlClientCreateOrUpdateOptions struct {
}

SourceControlClientCreateOrUpdateOptions contains the optional parameters for the SourceControlClient.CreateOrUpdate method.

type SourceControlClientCreateOrUpdateResponse added in v0.3.0

type SourceControlClientCreateOrUpdateResponse struct {
	// Definition of the source control.
	SourceControl
}

SourceControlClientCreateOrUpdateResponse contains the response from method SourceControlClient.CreateOrUpdate.

type SourceControlClientDeleteOptions added in v0.3.0

type SourceControlClientDeleteOptions struct {
}

SourceControlClientDeleteOptions contains the optional parameters for the SourceControlClient.Delete method.

type SourceControlClientDeleteResponse added in v0.3.0

type SourceControlClientDeleteResponse struct {
}

SourceControlClientDeleteResponse contains the response from method SourceControlClient.Delete.

type SourceControlClientGetOptions added in v0.3.0

type SourceControlClientGetOptions struct {
}

SourceControlClientGetOptions contains the optional parameters for the SourceControlClient.Get method.

type SourceControlClientGetResponse added in v0.3.0

type SourceControlClientGetResponse struct {
	// Definition of the source control.
	SourceControl
}

SourceControlClientGetResponse contains the response from method SourceControlClient.Get.

type SourceControlClientListByAutomationAccountOptions added in v0.3.0

type SourceControlClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

SourceControlClientListByAutomationAccountOptions contains the optional parameters for the SourceControlClient.NewListByAutomationAccountPager method.

type SourceControlClientListByAutomationAccountResponse added in v0.3.0

type SourceControlClientListByAutomationAccountResponse struct {
	// The response model for the list source controls operation.
	SourceControlListResult
}

SourceControlClientListByAutomationAccountResponse contains the response from method SourceControlClient.NewListByAutomationAccountPager.

type SourceControlClientUpdateOptions added in v0.3.0

type SourceControlClientUpdateOptions struct {
}

SourceControlClientUpdateOptions contains the optional parameters for the SourceControlClient.Update method.

type SourceControlClientUpdateResponse added in v0.3.0

type SourceControlClientUpdateResponse struct {
	// Definition of the source control.
	SourceControl
}

SourceControlClientUpdateResponse contains the response from method SourceControlClient.Update.

type SourceControlCreateOrUpdateParameters

type SourceControlCreateOrUpdateParameters struct {
	// REQUIRED; The properties of the source control.
	Properties *SourceControlCreateOrUpdateProperties
}

SourceControlCreateOrUpdateParameters - The parameters supplied to the create or update source control operation.

func (SourceControlCreateOrUpdateParameters) MarshalJSON added in v0.7.0

func (s SourceControlCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlCreateOrUpdateParameters.

func (*SourceControlCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (s *SourceControlCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlCreateOrUpdateParameters.

type SourceControlCreateOrUpdateProperties

type SourceControlCreateOrUpdateProperties struct {
	// The auto async of the source control. Default is false.
	AutoSync *bool

	// The repo branch of the source control. Include branch as empty string for VsoTfvc.
	Branch *string

	// The user description of the source control.
	Description *string

	// The folder path of the source control. Path must be relative.
	FolderPath *string

	// The auto publish of the source control. Default is true.
	PublishRunbook *bool

	// The repo url of the source control.
	RepoURL *string

	// The authorization token for the repo of the source control.
	SecurityToken *SourceControlSecurityTokenProperties

	// The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.
	SourceType *SourceType
}

SourceControlCreateOrUpdateProperties - The properties of the create source control operation.

func (SourceControlCreateOrUpdateProperties) MarshalJSON added in v0.7.0

func (s SourceControlCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlCreateOrUpdateProperties.

func (*SourceControlCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

func (s *SourceControlCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlCreateOrUpdateProperties.

type SourceControlListResult

type SourceControlListResult struct {
	// The next link.
	NextLink *string

	// The list of source controls.
	Value []*SourceControl
}

SourceControlListResult - The response model for the list source controls operation.

func (SourceControlListResult) MarshalJSON

func (s SourceControlListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlListResult.

func (*SourceControlListResult) UnmarshalJSON added in v0.7.0

func (s *SourceControlListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlListResult.

type SourceControlProperties

type SourceControlProperties struct {
	// The auto sync of the source control. Default is false.
	AutoSync *bool

	// The repo branch of the source control. Include branch as empty string for VsoTfvc.
	Branch *string

	// The creation time.
	CreationTime *time.Time

	// The description.
	Description *string

	// The folder path of the source control.
	FolderPath *string

	// The last modified time.
	LastModifiedTime *time.Time

	// The auto publish of the source control. Default is true.
	PublishRunbook *bool

	// The repo url of the source control.
	RepoURL *string

	// The source type. Must be one of VsoGit, VsoTfvc, GitHub.
	SourceType *SourceType
}

SourceControlProperties - Definition of the source control properties

func (SourceControlProperties) MarshalJSON

func (s SourceControlProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlProperties.

func (*SourceControlProperties) UnmarshalJSON

func (s *SourceControlProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlProperties.

type SourceControlSecurityTokenProperties

type SourceControlSecurityTokenProperties struct {
	// The access token.
	AccessToken *string

	// The refresh token.
	RefreshToken *string

	// The token type. Must be either PersonalAccessToken or Oauth.
	TokenType *TokenType
}

func (SourceControlSecurityTokenProperties) MarshalJSON added in v0.7.0

func (s SourceControlSecurityTokenProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSecurityTokenProperties.

func (*SourceControlSecurityTokenProperties) UnmarshalJSON added in v0.7.0

func (s *SourceControlSecurityTokenProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSecurityTokenProperties.

type SourceControlSyncJob

type SourceControlSyncJob struct {
	// The properties of the source control sync job.
	Properties *SourceControlSyncJobProperties

	// READ-ONLY; Resource id.
	ID *string

	// READ-ONLY; Resource name.
	Name *string

	// READ-ONLY; Resource type.
	Type *string
}

SourceControlSyncJob - Definition of the source control sync job.

func (SourceControlSyncJob) MarshalJSON added in v0.7.0

func (s SourceControlSyncJob) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJob.

func (*SourceControlSyncJob) UnmarshalJSON added in v0.7.0

func (s *SourceControlSyncJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJob.

type SourceControlSyncJobByID

type SourceControlSyncJobByID struct {
	// The id of the job.
	ID *string

	// The properties of the source control sync job.
	Properties *SourceControlSyncJobByIDProperties
}

SourceControlSyncJobByID - Definition of the source control sync job.

func (SourceControlSyncJobByID) MarshalJSON added in v0.7.0

func (s SourceControlSyncJobByID) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobByID.

func (*SourceControlSyncJobByID) UnmarshalJSON added in v0.7.0

func (s *SourceControlSyncJobByID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobByID.

type SourceControlSyncJobByIDProperties

type SourceControlSyncJobByIDProperties struct {
	// The exceptions that occurred while running the sync job.
	Exception *string

	// The provisioning state of the job.
	ProvisioningState *ProvisioningState

	// The source control sync job id.
	SourceControlSyncJobID *string

	// The sync type.
	SyncType *SyncType

	// READ-ONLY; The creation time of the job.
	CreationTime *time.Time

	// READ-ONLY; The end time of the job.
	EndTime *time.Time

	// READ-ONLY; The start time of the job.
	StartTime *time.Time
}

SourceControlSyncJobByIDProperties - Definition of source control sync job properties.

func (SourceControlSyncJobByIDProperties) MarshalJSON

func (s SourceControlSyncJobByIDProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobByIDProperties.

func (*SourceControlSyncJobByIDProperties) UnmarshalJSON

func (s *SourceControlSyncJobByIDProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobByIDProperties.

type SourceControlSyncJobClient

type SourceControlSyncJobClient struct {
	// contains filtered or unexported fields
}

SourceControlSyncJobClient contains the methods for the SourceControlSyncJob group. Don't use this type directly, use NewSourceControlSyncJobClient() instead.

func NewSourceControlSyncJobClient

func NewSourceControlSyncJobClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SourceControlSyncJobClient, error)

NewSourceControlSyncJobClient creates a new instance of SourceControlSyncJobClient 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 (*SourceControlSyncJobClient) Create

func (client *SourceControlSyncJobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID string, parameters SourceControlSyncJobCreateParameters, options *SourceControlSyncJobClientCreateOptions) (SourceControlSyncJobClientCreateResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • sourceControlName - The source control name.
  • sourceControlSyncJobID - The source control sync job id.
  • parameters - The parameters supplied to the create source control sync job operation.
  • options - SourceControlSyncJobClientCreateOptions contains the optional parameters for the SourceControlSyncJobClient.Create method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*SourceControlSyncJobClient) Get

func (client *SourceControlSyncJobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID string, options *SourceControlSyncJobClientGetOptions) (SourceControlSyncJobClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • sourceControlName - The source control name.
  • sourceControlSyncJobID - The source control sync job id.
  • options - SourceControlSyncJobClientGetOptions contains the optional parameters for the SourceControlSyncJobClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
	// 	},
	// }
}
Output:

func (*SourceControlSyncJobClient) NewListByAutomationAccountPager added in v0.5.0

func (client *SourceControlSyncJobClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, sourceControlName string, options *SourceControlSyncJobClientListByAutomationAccountOptions) *runtime.Pager[SourceControlSyncJobClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of source control sync jobs.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • sourceControlName - The source control name.
  • options - SourceControlSyncJobClientListByAutomationAccountOptions contains the optional parameters for the SourceControlSyncJobClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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),
		// 			},
		// 	}},
		// }
	}
}
Output:

type SourceControlSyncJobClientCreateOptions added in v0.3.0

type SourceControlSyncJobClientCreateOptions struct {
}

SourceControlSyncJobClientCreateOptions contains the optional parameters for the SourceControlSyncJobClient.Create method.

type SourceControlSyncJobClientCreateResponse added in v0.3.0

type SourceControlSyncJobClientCreateResponse struct {
	// Definition of the source control sync job.
	SourceControlSyncJob
}

SourceControlSyncJobClientCreateResponse contains the response from method SourceControlSyncJobClient.Create.

type SourceControlSyncJobClientGetOptions added in v0.3.0

type SourceControlSyncJobClientGetOptions struct {
}

SourceControlSyncJobClientGetOptions contains the optional parameters for the SourceControlSyncJobClient.Get method.

type SourceControlSyncJobClientGetResponse added in v0.3.0

type SourceControlSyncJobClientGetResponse struct {
	// Definition of the source control sync job.
	SourceControlSyncJobByID
}

SourceControlSyncJobClientGetResponse contains the response from method SourceControlSyncJobClient.Get.

type SourceControlSyncJobClientListByAutomationAccountOptions added in v0.3.0

type SourceControlSyncJobClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

SourceControlSyncJobClientListByAutomationAccountOptions contains the optional parameters for the SourceControlSyncJobClient.NewListByAutomationAccountPager method.

type SourceControlSyncJobClientListByAutomationAccountResponse added in v0.3.0

type SourceControlSyncJobClientListByAutomationAccountResponse struct {
	// The response model for the list source control sync jobs operation.
	SourceControlSyncJobListResult
}

SourceControlSyncJobClientListByAutomationAccountResponse contains the response from method SourceControlSyncJobClient.NewListByAutomationAccountPager.

type SourceControlSyncJobCreateParameters

type SourceControlSyncJobCreateParameters struct {
	// REQUIRED; The properties of the source control sync job.
	Properties *SourceControlSyncJobCreateProperties
}

SourceControlSyncJobCreateParameters - The parameters supplied to the create source control sync job operation.

func (SourceControlSyncJobCreateParameters) MarshalJSON added in v0.7.0

func (s SourceControlSyncJobCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobCreateParameters.

func (*SourceControlSyncJobCreateParameters) UnmarshalJSON added in v0.7.0

func (s *SourceControlSyncJobCreateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobCreateParameters.

type SourceControlSyncJobCreateProperties

type SourceControlSyncJobCreateProperties struct {
	// REQUIRED; The commit id of the source control sync job. If not syncing to a commitId, enter an empty string.
	CommitID *string
}

SourceControlSyncJobCreateProperties - Definition of create source control sync job properties.

func (SourceControlSyncJobCreateProperties) MarshalJSON added in v0.7.0

func (s SourceControlSyncJobCreateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobCreateProperties.

func (*SourceControlSyncJobCreateProperties) UnmarshalJSON added in v0.7.0

func (s *SourceControlSyncJobCreateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobCreateProperties.

type SourceControlSyncJobListResult

type SourceControlSyncJobListResult struct {
	// The next link.
	NextLink *string

	// The list of source control sync jobs.
	Value []*SourceControlSyncJob
}

SourceControlSyncJobListResult - The response model for the list source control sync jobs operation.

func (SourceControlSyncJobListResult) MarshalJSON

func (s SourceControlSyncJobListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobListResult.

func (*SourceControlSyncJobListResult) UnmarshalJSON added in v0.7.0

func (s *SourceControlSyncJobListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobListResult.

type SourceControlSyncJobProperties

type SourceControlSyncJobProperties struct {
	// The provisioning state of the job.
	ProvisioningState *ProvisioningState

	// The source control sync job id.
	SourceControlSyncJobID *string

	// The sync type.
	SyncType *SyncType

	// READ-ONLY; The creation time of the job.
	CreationTime *time.Time

	// READ-ONLY; The end time of the job.
	EndTime *time.Time

	// READ-ONLY; The start time of the job.
	StartTime *time.Time
}

SourceControlSyncJobProperties - Definition of source control sync job properties.

func (SourceControlSyncJobProperties) MarshalJSON

func (s SourceControlSyncJobProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobProperties.

func (*SourceControlSyncJobProperties) UnmarshalJSON

func (s *SourceControlSyncJobProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobProperties.

type SourceControlSyncJobStream

type SourceControlSyncJobStream struct {
	// The properties of the source control sync job stream.
	Properties *SourceControlSyncJobStreamProperties

	// READ-ONLY; Resource id.
	ID *string
}

SourceControlSyncJobStream - Definition of the source control sync job stream.

func (SourceControlSyncJobStream) MarshalJSON added in v0.7.0

func (s SourceControlSyncJobStream) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobStream.

func (*SourceControlSyncJobStream) UnmarshalJSON added in v0.7.0

func (s *SourceControlSyncJobStream) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobStream.

type SourceControlSyncJobStreamByID

type SourceControlSyncJobStreamByID struct {
	// The properties of the source control sync job stream.
	Properties *SourceControlSyncJobStreamByIDProperties

	// READ-ONLY; Resource id.
	ID *string
}

SourceControlSyncJobStreamByID - Definition of the source control sync job stream by id.

func (SourceControlSyncJobStreamByID) MarshalJSON added in v0.7.0

func (s SourceControlSyncJobStreamByID) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobStreamByID.

func (*SourceControlSyncJobStreamByID) UnmarshalJSON added in v0.7.0

func (s *SourceControlSyncJobStreamByID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobStreamByID.

type SourceControlSyncJobStreamByIDProperties

type SourceControlSyncJobStreamByIDProperties struct {
	// The sync job stream id.
	SourceControlSyncJobStreamID *string

	// The text of the sync job stream.
	StreamText *string

	// The type of the sync job stream.
	StreamType *StreamType

	// The summary of the sync job stream.
	Summary *string

	// The values of the job stream.
	Value map[string]any

	// READ-ONLY; The time of the sync job stream.
	Time *time.Time
}

SourceControlSyncJobStreamByIDProperties - Definition of source control sync job stream by id properties.

func (SourceControlSyncJobStreamByIDProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobStreamByIDProperties.

func (*SourceControlSyncJobStreamByIDProperties) UnmarshalJSON

func (s *SourceControlSyncJobStreamByIDProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobStreamByIDProperties.

type SourceControlSyncJobStreamProperties

type SourceControlSyncJobStreamProperties struct {
	// The sync job stream id.
	SourceControlSyncJobStreamID *string

	// The type of the sync job stream.
	StreamType *StreamType

	// The summary of the sync job stream.
	Summary *string

	// READ-ONLY; The time of the sync job stream.
	Time *time.Time
}

SourceControlSyncJobStreamProperties - Definition of source control sync job stream properties.

func (SourceControlSyncJobStreamProperties) MarshalJSON

func (s SourceControlSyncJobStreamProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobStreamProperties.

func (*SourceControlSyncJobStreamProperties) UnmarshalJSON

func (s *SourceControlSyncJobStreamProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobStreamProperties.

type SourceControlSyncJobStreamsClient

type SourceControlSyncJobStreamsClient struct {
	// contains filtered or unexported fields
}

SourceControlSyncJobStreamsClient contains the methods for the SourceControlSyncJobStreams group. Don't use this type directly, use NewSourceControlSyncJobStreamsClient() instead.

func NewSourceControlSyncJobStreamsClient

func NewSourceControlSyncJobStreamsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SourceControlSyncJobStreamsClient, error)

NewSourceControlSyncJobStreamsClient creates a new instance of SourceControlSyncJobStreamsClient 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 (*SourceControlSyncJobStreamsClient) Get

func (client *SourceControlSyncJobStreamsClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID string, streamID string, options *SourceControlSyncJobStreamsClientGetOptions) (SourceControlSyncJobStreamsClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • sourceControlName - The source control name.
  • sourceControlSyncJobID - The source control sync job id.
  • streamID - The id of the sync job stream.
  • options - SourceControlSyncJobStreamsClientGetOptions contains the optional parameters for the SourceControlSyncJobStreamsClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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 . . .} }",
	// 			},
	// 		},
	// 	},
	// }
}
Output:

func (*SourceControlSyncJobStreamsClient) NewListBySyncJobPager added in v0.5.0

func (client *SourceControlSyncJobStreamsClient) NewListBySyncJobPager(resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID string, options *SourceControlSyncJobStreamsClientListBySyncJobOptions) *runtime.Pager[SourceControlSyncJobStreamsClientListBySyncJobResponse]

NewListBySyncJobPager - Retrieve a list of sync job streams identified by sync job id.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • sourceControlName - The source control name.
  • sourceControlSyncJobID - The source control sync job id.
  • options - SourceControlSyncJobStreamsClientListBySyncJobOptions contains the optional parameters for the SourceControlSyncJobStreamsClient.NewListBySyncJobPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
		// 			},
		// 	}},
		// }
	}
}
Output:

type SourceControlSyncJobStreamsClientGetOptions added in v0.3.0

type SourceControlSyncJobStreamsClientGetOptions struct {
}

SourceControlSyncJobStreamsClientGetOptions contains the optional parameters for the SourceControlSyncJobStreamsClient.Get method.

type SourceControlSyncJobStreamsClientGetResponse added in v0.3.0

type SourceControlSyncJobStreamsClientGetResponse struct {
	// Definition of the source control sync job stream by id.
	SourceControlSyncJobStreamByID
}

SourceControlSyncJobStreamsClientGetResponse contains the response from method SourceControlSyncJobStreamsClient.Get.

type SourceControlSyncJobStreamsClientListBySyncJobOptions added in v0.3.0

type SourceControlSyncJobStreamsClientListBySyncJobOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

SourceControlSyncJobStreamsClientListBySyncJobOptions contains the optional parameters for the SourceControlSyncJobStreamsClient.NewListBySyncJobPager method.

type SourceControlSyncJobStreamsClientListBySyncJobResponse added in v0.3.0

type SourceControlSyncJobStreamsClientListBySyncJobResponse struct {
	// The response model for the list source control sync job streams operation.
	SourceControlSyncJobStreamsListBySyncJob
}

SourceControlSyncJobStreamsClientListBySyncJobResponse contains the response from method SourceControlSyncJobStreamsClient.NewListBySyncJobPager.

type SourceControlSyncJobStreamsListBySyncJob

type SourceControlSyncJobStreamsListBySyncJob struct {
	// The list of source control sync job streams.
	Value []*SourceControlSyncJobStream

	// READ-ONLY; The next link.
	NextLink *string
}

SourceControlSyncJobStreamsListBySyncJob - The response model for the list source control sync job streams operation.

func (SourceControlSyncJobStreamsListBySyncJob) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type SourceControlSyncJobStreamsListBySyncJob.

func (*SourceControlSyncJobStreamsListBySyncJob) UnmarshalJSON added in v0.7.0

func (s *SourceControlSyncJobStreamsListBySyncJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlSyncJobStreamsListBySyncJob.

type SourceControlUpdateParameters

type SourceControlUpdateParameters struct {
	// The value of the source control.
	Properties *SourceControlUpdateProperties
}

SourceControlUpdateParameters - The parameters supplied to the update source control operation.

func (SourceControlUpdateParameters) MarshalJSON

func (s SourceControlUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlUpdateParameters.

func (*SourceControlUpdateParameters) UnmarshalJSON added in v0.7.0

func (s *SourceControlUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlUpdateParameters.

type SourceControlUpdateProperties

type SourceControlUpdateProperties struct {
	// The auto sync of the source control. Default is false.
	AutoSync *bool

	// The repo branch of the source control.
	Branch *string

	// The user description of the source control.
	Description *string

	// The folder path of the source control. Path must be relative.
	FolderPath *string

	// The auto publish of the source control. Default is true.
	PublishRunbook *bool

	// The authorization token for the repo of the source control.
	SecurityToken *SourceControlSecurityTokenProperties
}

SourceControlUpdateProperties - The properties of the update source control

func (SourceControlUpdateProperties) MarshalJSON added in v0.7.0

func (s SourceControlUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SourceControlUpdateProperties.

func (*SourceControlUpdateProperties) UnmarshalJSON added in v0.7.0

func (s *SourceControlUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceControlUpdateProperties.

type SourceType

type SourceType string

SourceType - The source type. Must be one of VsoGit, VsoTfvc, GitHub.

const (
	SourceTypeGitHub  SourceType = "GitHub"
	SourceTypeVsoGit  SourceType = "VsoGit"
	SourceTypeVsoTfvc SourceType = "VsoTfvc"
)

func PossibleSourceTypeValues

func PossibleSourceTypeValues() []SourceType

PossibleSourceTypeValues returns the possible values for the SourceType const type.

type Statistics

type Statistics struct {
	// READ-ONLY; Gets the property value of the statistic.
	CounterProperty *string

	// READ-ONLY; Gets the value of the statistic.
	CounterValue *int64

	// READ-ONLY; Gets the endTime of the statistic.
	EndTime *time.Time

	// READ-ONLY; Gets the id.
	ID *string

	// READ-ONLY; Gets the startTime of the statistic.
	StartTime *time.Time
}

Statistics - Definition of the statistic.

func (Statistics) MarshalJSON

func (s Statistics) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Statistics.

func (*Statistics) UnmarshalJSON

func (s *Statistics) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Statistics.

type StatisticsClient

type StatisticsClient struct {
	// contains filtered or unexported fields
}

StatisticsClient contains the methods for the Statistics group. Don't use this type directly, use NewStatisticsClient() instead.

func NewStatisticsClient

func NewStatisticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StatisticsClient, error)

NewStatisticsClient creates a new instance of StatisticsClient 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 (*StatisticsClient) NewListByAutomationAccountPager added in v0.5.0

func (client *StatisticsClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *StatisticsClientListByAutomationAccountOptions) *runtime.Pager[StatisticsClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve the statistics for the account.

Generated from API version 2021-06-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - StatisticsClientListByAutomationAccountOptions contains the optional parameters for the StatisticsClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
		// 	}},
		// }
	}
}
Output:

type StatisticsClientListByAutomationAccountOptions added in v0.3.0

type StatisticsClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

StatisticsClientListByAutomationAccountOptions contains the optional parameters for the StatisticsClient.NewListByAutomationAccountPager method.

type StatisticsClientListByAutomationAccountResponse added in v0.3.0

type StatisticsClientListByAutomationAccountResponse struct {
	// The response model for the list statistics operation.
	StatisticsListResult
}

StatisticsClientListByAutomationAccountResponse contains the response from method StatisticsClient.NewListByAutomationAccountPager.

type StatisticsListResult

type StatisticsListResult struct {
	// Gets or sets a list of statistics.
	Value []*Statistics
}

StatisticsListResult - The response model for the list statistics operation.

func (StatisticsListResult) MarshalJSON

func (s StatisticsListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StatisticsListResult.

func (*StatisticsListResult) UnmarshalJSON added in v0.7.0

func (s *StatisticsListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StatisticsListResult.

type StreamType

type StreamType string

StreamType - The type of the sync job stream.

const (
	StreamTypeError  StreamType = "Error"
	StreamTypeOutput StreamType = "Output"
)

func PossibleStreamTypeValues

func PossibleStreamTypeValues() []StreamType

PossibleStreamTypeValues returns the possible values for the StreamType const type.

type SyncType

type SyncType string

SyncType - The sync type.

const (
	SyncTypeFullSync    SyncType = "FullSync"
	SyncTypePartialSync SyncType = "PartialSync"
)

func PossibleSyncTypeValues

func PossibleSyncTypeValues() []SyncType

PossibleSyncTypeValues returns the possible values for the SyncType const type.

type SystemData

type SystemData struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time

	// The identity that created the resource.
	CreatedBy *string

	// The type of identity that created the resource.
	CreatedByType *CreatedByType

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time

	// The identity that last modified the resource.
	LastModifiedBy *string

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType
}

SystemData - Metadata pertaining to creation and last modification of the resource.

func (SystemData) MarshalJSON

func (s SystemData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemData.

func (*SystemData) UnmarshalJSON

func (s *SystemData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.

type TagOperators

type TagOperators string

TagOperators - Filter VMs by Any or All specified tags.

const (
	TagOperatorsAll TagOperators = "All"
	TagOperatorsAny TagOperators = "Any"
)

func PossibleTagOperatorsValues

func PossibleTagOperatorsValues() []TagOperators

PossibleTagOperatorsValues returns the possible values for the TagOperators const type.

type TagSettingsProperties

type TagSettingsProperties struct {
	// Filter VMs by Any or All specified tags.
	FilterOperator *TagOperators

	// Dictionary of tags with its list of values.
	Tags map[string][]*string
}

TagSettingsProperties - Tag filter information for the VM.

func (TagSettingsProperties) MarshalJSON

func (t TagSettingsProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TagSettingsProperties.

func (*TagSettingsProperties) UnmarshalJSON added in v0.7.0

func (t *TagSettingsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TagSettingsProperties.

type TargetProperties

type TargetProperties struct {
	// List of Azure queries in the software update configuration.
	AzureQueries []*AzureQueryProperties

	// List of non Azure queries in the software update configuration.
	NonAzureQueries []*NonAzureQueryProperties
}

TargetProperties - Group specific to the update configuration.

func (TargetProperties) MarshalJSON

func (t TargetProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TargetProperties.

func (*TargetProperties) UnmarshalJSON added in v0.7.0

func (t *TargetProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TargetProperties.

type TaskProperties

type TaskProperties struct {
	// Gets or sets the parameters of the task.
	Parameters map[string]*string

	// Gets or sets the name of the runbook.
	Source *string
}

TaskProperties - Task properties of the software update configuration.

func (TaskProperties) MarshalJSON

func (t TaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TaskProperties.

func (*TaskProperties) UnmarshalJSON added in v0.7.0

func (t *TaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TaskProperties.

type TestJob

type TestJob struct {
	// Gets or sets the creation time of the test job.
	CreationTime *time.Time

	// Gets or sets the end time of the test job.
	EndTime *time.Time

	// Gets or sets the exception of the test job.
	Exception *string

	// Gets or sets the last modified time of the test job.
	LastModifiedTime *time.Time

	// Gets or sets the last status modified time of the test job.
	LastStatusModifiedTime *time.Time

	// The activity-level tracing options of the runbook.
	LogActivityTrace *int32

	// Gets or sets the parameters of the test job.
	Parameters map[string]*string

	// Gets or sets the runOn which specifies the group name where the job is to be executed.
	RunOn *string

	// Gets or sets the start time of the test job.
	StartTime *time.Time

	// Gets or sets the status of the test job.
	Status *string

	// Gets or sets the status details of the test job.
	StatusDetails *string
}

TestJob - Definition of the test job.

func (TestJob) MarshalJSON

func (t TestJob) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestJob.

func (*TestJob) UnmarshalJSON

func (t *TestJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestJob.

type TestJobClient

type TestJobClient struct {
	// contains filtered or unexported fields
}

TestJobClient contains the methods for the TestJob group. Don't use this type directly, use NewTestJobClient() instead.

func NewTestJobClient

func NewTestJobClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TestJobClient, error)

NewTestJobClient creates a new instance of TestJobClient 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 (*TestJobClient) Create

func (client *TestJobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters TestJobCreateParameters, options *TestJobClientCreateOptions) (TestJobClientCreateResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The parameters supplied to the create test job operation.
  • parameters - The parameters supplied to the create test job operation.
  • options - TestJobClientCreateOptions contains the optional parameters for the TestJobClient.Create method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*TestJobClient) Get

func (client *TestJobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *TestJobClientGetOptions) (TestJobClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - TestJobClientGetOptions contains the optional parameters for the TestJobClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
	// }
}
Output:

func (*TestJobClient) Resume

func (client *TestJobClient) Resume(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *TestJobClientResumeOptions) (TestJobClientResumeResponse, error)

Resume - Resume the test job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2018-06-30

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - TestJobClientResumeOptions contains the optional parameters for the TestJobClient.Resume method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*TestJobClient) Stop

func (client *TestJobClient) Stop(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *TestJobClientStopOptions) (TestJobClientStopResponse, error)

Stop - Stop the test job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2018-06-30

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - TestJobClientStopOptions contains the optional parameters for the TestJobClient.Stop method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*TestJobClient) Suspend

func (client *TestJobClient) Suspend(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, options *TestJobClientSuspendOptions) (TestJobClientSuspendResponse, error)

Suspend - Suspend the test job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2018-06-30

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - TestJobClientSuspendOptions contains the optional parameters for the TestJobClient.Suspend method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

type TestJobClientCreateOptions added in v0.3.0

type TestJobClientCreateOptions struct {
}

TestJobClientCreateOptions contains the optional parameters for the TestJobClient.Create method.

type TestJobClientCreateResponse added in v0.3.0

type TestJobClientCreateResponse struct {
	// Definition of the test job.
	TestJob
}

TestJobClientCreateResponse contains the response from method TestJobClient.Create.

type TestJobClientGetOptions added in v0.3.0

type TestJobClientGetOptions struct {
}

TestJobClientGetOptions contains the optional parameters for the TestJobClient.Get method.

type TestJobClientGetResponse added in v0.3.0

type TestJobClientGetResponse struct {
	// Definition of the test job.
	TestJob
}

TestJobClientGetResponse contains the response from method TestJobClient.Get.

type TestJobClientResumeOptions added in v0.3.0

type TestJobClientResumeOptions struct {
}

TestJobClientResumeOptions contains the optional parameters for the TestJobClient.Resume method.

type TestJobClientResumeResponse added in v0.3.0

type TestJobClientResumeResponse struct {
}

TestJobClientResumeResponse contains the response from method TestJobClient.Resume.

type TestJobClientStopOptions added in v0.3.0

type TestJobClientStopOptions struct {
}

TestJobClientStopOptions contains the optional parameters for the TestJobClient.Stop method.

type TestJobClientStopResponse added in v0.3.0

type TestJobClientStopResponse struct {
}

TestJobClientStopResponse contains the response from method TestJobClient.Stop.

type TestJobClientSuspendOptions added in v0.3.0

type TestJobClientSuspendOptions struct {
}

TestJobClientSuspendOptions contains the optional parameters for the TestJobClient.Suspend method.

type TestJobClientSuspendResponse added in v0.3.0

type TestJobClientSuspendResponse struct {
}

TestJobClientSuspendResponse contains the response from method TestJobClient.Suspend.

type TestJobCreateParameters

type TestJobCreateParameters struct {
	// Gets or sets the parameters of the test job.
	Parameters map[string]*string

	// Gets or sets the runOn which specifies the group name where the job is to be executed.
	RunOn *string
}

TestJobCreateParameters - The parameters supplied to the create test job operation.

func (TestJobCreateParameters) MarshalJSON

func (t TestJobCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestJobCreateParameters.

func (*TestJobCreateParameters) UnmarshalJSON added in v0.7.0

func (t *TestJobCreateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestJobCreateParameters.

type TestJobStreamsClient

type TestJobStreamsClient struct {
	// contains filtered or unexported fields
}

TestJobStreamsClient contains the methods for the TestJobStreams group. Don't use this type directly, use NewTestJobStreamsClient() instead.

func NewTestJobStreamsClient

func NewTestJobStreamsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TestJobStreamsClient, error)

NewTestJobStreamsClient creates a new instance of TestJobStreamsClient 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 (*TestJobStreamsClient) Get

func (client *TestJobStreamsClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, jobStreamID string, options *TestJobStreamsClientGetOptions) (TestJobStreamsClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • jobStreamID - The job stream id.
  • options - TestJobStreamsClientGetOptions contains the optional parameters for the TestJobStreamsClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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{
	// 		},
	// 	},
	// }
}
Output:

func (*TestJobStreamsClient) NewListByTestJobPager added in v0.5.0

func (client *TestJobStreamsClient) NewListByTestJobPager(resourceGroupName string, automationAccountName string, runbookName string, options *TestJobStreamsClientListByTestJobOptions) *runtime.Pager[TestJobStreamsClientListByTestJobResponse]

NewListByTestJobPager - Retrieve a list of test job streams identified by runbook name.

Generated from API version 2018-06-30

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • runbookName - The runbook name.
  • options - TestJobStreamsClientListByTestJobOptions contains the optional parameters for the TestJobStreamsClient.NewListByTestJobPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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}()),
		// 			},
		// 	}},
		// }
	}
}
Output:

type TestJobStreamsClientGetOptions added in v0.3.0

type TestJobStreamsClientGetOptions struct {
}

TestJobStreamsClientGetOptions contains the optional parameters for the TestJobStreamsClient.Get method.

type TestJobStreamsClientGetResponse added in v0.3.0

type TestJobStreamsClientGetResponse struct {
	// Definition of the job stream.
	JobStream
}

TestJobStreamsClientGetResponse contains the response from method TestJobStreamsClient.Get.

type TestJobStreamsClientListByTestJobOptions added in v0.3.0

type TestJobStreamsClientListByTestJobOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

TestJobStreamsClientListByTestJobOptions contains the optional parameters for the TestJobStreamsClient.NewListByTestJobPager method.

type TestJobStreamsClientListByTestJobResponse added in v0.3.0

type TestJobStreamsClientListByTestJobResponse struct {
	// The response model for the list job stream operation.
	JobStreamListResult
}

TestJobStreamsClientListByTestJobResponse contains the response from method TestJobStreamsClient.NewListByTestJobPager.

type TokenType

type TokenType string

TokenType - The token type. Must be either PersonalAccessToken or Oauth.

const (
	TokenTypeOauth               TokenType = "Oauth"
	TokenTypePersonalAccessToken TokenType = "PersonalAccessToken"
)

func PossibleTokenTypeValues

func PossibleTokenTypeValues() []TokenType

PossibleTokenTypeValues returns the possible values for the TokenType const type.

type TrackedResource

type TrackedResource struct {
	// The Azure Region where the resource lives
	Location *string

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

TrackedResource - The resource model definition for a ARM tracked top level resource

func (TrackedResource) MarshalJSON

func (t TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TrackedResource.

func (*TrackedResource) UnmarshalJSON added in v0.7.0

func (t *TrackedResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.

type TypeField

type TypeField struct {
	// Gets or sets the name of the field.
	Name *string

	// Gets or sets the type of the field.
	Type *string
}

TypeField - Information about a field of a type.

func (TypeField) MarshalJSON added in v0.7.0

func (t TypeField) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TypeField.

func (*TypeField) UnmarshalJSON added in v0.7.0

func (t *TypeField) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TypeField.

type TypeFieldListResult

type TypeFieldListResult struct {
	// Gets or sets a list of fields.
	Value []*TypeField
}

TypeFieldListResult - The response model for the list fields operation.

func (TypeFieldListResult) MarshalJSON

func (t TypeFieldListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TypeFieldListResult.

func (*TypeFieldListResult) UnmarshalJSON added in v0.7.0

func (t *TypeFieldListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TypeFieldListResult.

type UpdateConfiguration

type UpdateConfiguration struct {
	// REQUIRED; operating system of target machines
	OperatingSystem *OperatingSystemType

	// List of azure resource Ids for azure virtual machines targeted by the software update configuration.
	AzureVirtualMachines []*string

	// Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S
	// as per ISO8601
	Duration *string

	// Linux specific update configuration.
	Linux *LinuxProperties

	// List of names of non-azure machines targeted by the software update configuration.
	NonAzureComputerNames []*string

	// Group targets for the software update configuration.
	Targets *TargetProperties

	// Windows specific update configuration.
	Windows *WindowsProperties
}

UpdateConfiguration - Update specific properties of the software update configuration.

func (UpdateConfiguration) MarshalJSON

func (u UpdateConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateConfiguration.

func (*UpdateConfiguration) UnmarshalJSON added in v0.7.0

func (u *UpdateConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateConfiguration.

type UpdateConfigurationMachineRunProperties

type UpdateConfigurationMachineRunProperties struct {
	// Details of provisioning error
	Error *ErrorResponse

	// Job associated with the software update configuration machine run
	Job *JobNavigation

	// software update configuration triggered this run
	SoftwareUpdateConfiguration *UpdateConfigurationNavigation

	// READ-ONLY; configured duration for the software update configuration run.
	ConfiguredDuration *string

	// READ-ONLY; correlation id of the software update configuration machine run
	CorrelationID *string

	// READ-ONLY; createdBy property, which only appears in the response.
	CreatedBy *string

	// READ-ONLY; Creation time of the resource, which only appears in the response.
	CreationTime *time.Time

	// READ-ONLY; End time of the software update configuration machine run.
	EndTime *time.Time

	// READ-ONLY; lastModifiedBy property, which only appears in the response.
	LastModifiedBy *string

	// READ-ONLY; Last time resource was modified, which only appears in the response.
	LastModifiedTime *time.Time

	// READ-ONLY; Operating system target of the software update configuration triggered this run
	OSType *string

	// READ-ONLY; source computer id of the software update configuration machine run
	SourceComputerID *string

	// READ-ONLY; Start time of the software update configuration machine run.
	StartTime *time.Time

	// READ-ONLY; Status of the software update configuration machine run.
	Status *string

	// READ-ONLY; name of the updated computer
	TargetComputer *string

	// READ-ONLY; type of the updated computer.
	TargetComputerType *string
}

UpdateConfigurationMachineRunProperties - Software update configuration machine run properties.

func (UpdateConfigurationMachineRunProperties) MarshalJSON

func (u UpdateConfigurationMachineRunProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateConfigurationMachineRunProperties.

func (*UpdateConfigurationMachineRunProperties) UnmarshalJSON

func (u *UpdateConfigurationMachineRunProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateConfigurationMachineRunProperties.

type UpdateConfigurationNavigation

type UpdateConfigurationNavigation struct {
	// READ-ONLY; Name of the software update configuration triggered the software update configuration run
	Name *string
}

UpdateConfigurationNavigation - Software update configuration Run Navigation model.

func (UpdateConfigurationNavigation) MarshalJSON added in v0.7.0

func (u UpdateConfigurationNavigation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateConfigurationNavigation.

func (*UpdateConfigurationNavigation) UnmarshalJSON added in v0.7.0

func (u *UpdateConfigurationNavigation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateConfigurationNavigation.

type Usage

type Usage struct {
	// Gets or sets the current usage value.
	CurrentValue *float64

	// Gets or sets the id of the resource.
	ID *string

	// Gets or sets max limit. -1 for unlimited
	Limit *int64

	// Gets or sets the usage counter name.
	Name *UsageCounterName

	// Gets or sets the throttle status.
	ThrottleStatus *string

	// Gets or sets the usage unit name.
	Unit *string
}

Usage - Definition of Usage.

func (Usage) MarshalJSON added in v0.7.0

func (u Usage) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Usage.

func (*Usage) UnmarshalJSON added in v0.7.0

func (u *Usage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Usage.

type UsageCounterName

type UsageCounterName struct {
	// Gets or sets the localized usage counter name.
	LocalizedValue *string

	// Gets or sets the usage counter name.
	Value *string
}

UsageCounterName - Definition of usage counter name.

func (UsageCounterName) MarshalJSON added in v0.7.0

func (u UsageCounterName) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UsageCounterName.

func (*UsageCounterName) UnmarshalJSON added in v0.7.0

func (u *UsageCounterName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UsageCounterName.

type UsageListResult

type UsageListResult struct {
	// Gets or sets usage.
	Value []*Usage
}

UsageListResult - The response model for the get usage operation.

func (UsageListResult) MarshalJSON

func (u UsageListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UsageListResult.

func (*UsageListResult) UnmarshalJSON added in v0.7.0

func (u *UsageListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UsageListResult.

type UsagesClient

type UsagesClient struct {
	// contains filtered or unexported fields
}

UsagesClient contains the methods for the Usages group. Don't use this type directly, use NewUsagesClient() instead.

func NewUsagesClient

func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsagesClient, error)

NewUsagesClient creates a new instance of UsagesClient 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 (*UsagesClient) NewListByAutomationAccountPager added in v0.5.0

func (client *UsagesClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *UsagesClientListByAutomationAccountOptions) *runtime.Pager[UsagesClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve the usage for the account id.

Generated from API version 2021-06-22

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - UsagesClientListByAutomationAccountOptions contains the optional parameters for the UsagesClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 	}},
		// }
	}
}
Output:

type UsagesClientListByAutomationAccountOptions added in v0.3.0

type UsagesClientListByAutomationAccountOptions struct {
}

UsagesClientListByAutomationAccountOptions contains the optional parameters for the UsagesClient.NewListByAutomationAccountPager method.

type UsagesClientListByAutomationAccountResponse added in v0.3.0

type UsagesClientListByAutomationAccountResponse struct {
	// The response model for the get usage operation.
	UsageListResult
}

UsagesClientListByAutomationAccountResponse contains the response from method UsagesClient.NewListByAutomationAccountPager.

type Variable

type Variable struct {
	// Gets or sets the properties of the variable.
	Properties *VariableProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Variable - Definition of the variable.

func (Variable) MarshalJSON

func (v Variable) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Variable.

func (*Variable) UnmarshalJSON added in v0.7.0

func (v *Variable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Variable.

type VariableClient

type VariableClient struct {
	// contains filtered or unexported fields
}

VariableClient contains the methods for the Variable group. Don't use this type directly, use NewVariableClient() instead.

func NewVariableClient

func NewVariableClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VariableClient, error)

NewVariableClient creates a new instance of VariableClient 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 (*VariableClient) CreateOrUpdate

func (client *VariableClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string, parameters VariableCreateOrUpdateParameters, options *VariableClientCreateOrUpdateOptions) (VariableClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create a variable. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • variableName - The variable name.
  • parameters - The parameters supplied to the create or update variable operation.
  • options - VariableClientCreateOrUpdateOptions contains the optional parameters for the VariableClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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\""),
	// 	},
	// }
}
Output:

func (*VariableClient) Delete

func (client *VariableClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string, options *VariableClientDeleteOptions) (VariableClientDeleteResponse, error)

Delete - Delete the variable. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • variableName - The name of variable.
  • options - VariableClientDeleteOptions contains the optional parameters for the VariableClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*VariableClient) Get

func (client *VariableClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string, options *VariableClientGetOptions) (VariableClientGetResponse, error)

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

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • variableName - The name of variable.
  • options - VariableClientGetOptions contains the optional parameters for the VariableClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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\""),
	// 	},
	// }
}
Output:

func (*VariableClient) NewListByAutomationAccountPager added in v0.5.0

func (client *VariableClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *VariableClientListByAutomationAccountOptions) *runtime.Pager[VariableClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of variables.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - VariableClientListByAutomationAccountOptions contains the optional parameters for the VariableClient.NewListByAutomationAccountPager method.
Example (ListVariablesFirst100)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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\""),
		// 			},
		// 	}},
		// }
	}
}
Output:

Example (ListVariablesNext100)

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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\""),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*VariableClient) Update

func (client *VariableClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string, parameters VariableUpdateParameters, options *VariableClientUpdateOptions) (VariableClientUpdateResponse, error)

Update - Update a variable. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • variableName - The variable name.
  • parameters - The parameters supplied to the update variable operation.
  • options - VariableClientUpdateOptions contains the optional parameters for the VariableClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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\""),
	// 	},
	// }
}
Output:

type VariableClientCreateOrUpdateOptions added in v0.3.0

type VariableClientCreateOrUpdateOptions struct {
}

VariableClientCreateOrUpdateOptions contains the optional parameters for the VariableClient.CreateOrUpdate method.

type VariableClientCreateOrUpdateResponse added in v0.3.0

type VariableClientCreateOrUpdateResponse struct {
	// Definition of the variable.
	Variable
}

VariableClientCreateOrUpdateResponse contains the response from method VariableClient.CreateOrUpdate.

type VariableClientDeleteOptions added in v0.3.0

type VariableClientDeleteOptions struct {
}

VariableClientDeleteOptions contains the optional parameters for the VariableClient.Delete method.

type VariableClientDeleteResponse added in v0.3.0

type VariableClientDeleteResponse struct {
}

VariableClientDeleteResponse contains the response from method VariableClient.Delete.

type VariableClientGetOptions added in v0.3.0

type VariableClientGetOptions struct {
}

VariableClientGetOptions contains the optional parameters for the VariableClient.Get method.

type VariableClientGetResponse added in v0.3.0

type VariableClientGetResponse struct {
	// Definition of the variable.
	Variable
}

VariableClientGetResponse contains the response from method VariableClient.Get.

type VariableClientListByAutomationAccountOptions added in v0.3.0

type VariableClientListByAutomationAccountOptions struct {
}

VariableClientListByAutomationAccountOptions contains the optional parameters for the VariableClient.NewListByAutomationAccountPager method.

type VariableClientListByAutomationAccountResponse added in v0.3.0

type VariableClientListByAutomationAccountResponse struct {
	// The response model for the list variables operation.
	VariableListResult
}

VariableClientListByAutomationAccountResponse contains the response from method VariableClient.NewListByAutomationAccountPager.

type VariableClientUpdateOptions added in v0.3.0

type VariableClientUpdateOptions struct {
}

VariableClientUpdateOptions contains the optional parameters for the VariableClient.Update method.

type VariableClientUpdateResponse added in v0.3.0

type VariableClientUpdateResponse struct {
	// Definition of the variable.
	Variable
}

VariableClientUpdateResponse contains the response from method VariableClient.Update.

type VariableCreateOrUpdateParameters

type VariableCreateOrUpdateParameters struct {
	// REQUIRED; Gets or sets the name of the variable.
	Name *string

	// REQUIRED; Gets or sets the properties of the variable.
	Properties *VariableCreateOrUpdateProperties
}

VariableCreateOrUpdateParameters - The parameters supplied to the create or update variable operation.

func (VariableCreateOrUpdateParameters) MarshalJSON added in v0.7.0

func (v VariableCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VariableCreateOrUpdateParameters.

func (*VariableCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (v *VariableCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VariableCreateOrUpdateParameters.

type VariableCreateOrUpdateProperties

type VariableCreateOrUpdateProperties struct {
	// Gets or sets the description of the variable.
	Description *string

	// Gets or sets the encrypted flag of the variable.
	IsEncrypted *bool

	// Gets or sets the value of the variable.
	Value *string
}

VariableCreateOrUpdateProperties - The properties of the create variable operation.

func (VariableCreateOrUpdateProperties) MarshalJSON added in v0.7.0

func (v VariableCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VariableCreateOrUpdateProperties.

func (*VariableCreateOrUpdateProperties) UnmarshalJSON added in v0.7.0

func (v *VariableCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VariableCreateOrUpdateProperties.

type VariableListResult

type VariableListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of variables.
	Value []*Variable
}

VariableListResult - The response model for the list variables operation.

func (VariableListResult) MarshalJSON

func (v VariableListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VariableListResult.

func (*VariableListResult) UnmarshalJSON added in v0.7.0

func (v *VariableListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VariableListResult.

type VariableProperties

type VariableProperties struct {
	// Gets or sets the creation time.
	CreationTime *time.Time

	// Gets or sets the description.
	Description *string

	// Gets or sets the encrypted flag of the variable.
	IsEncrypted *bool

	// Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// Gets or sets the value of the variable.
	Value *string
}

VariableProperties - Definition of the variable properties

func (VariableProperties) MarshalJSON

func (v VariableProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VariableProperties.

func (*VariableProperties) UnmarshalJSON

func (v *VariableProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VariableProperties.

type VariableUpdateParameters

type VariableUpdateParameters struct {
	// Gets or sets the name of the variable.
	Name *string

	// Gets or sets the value of the variable.
	Properties *VariableUpdateProperties
}

VariableUpdateParameters - The parameters supplied to the update variable operation.

func (VariableUpdateParameters) MarshalJSON

func (v VariableUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VariableUpdateParameters.

func (*VariableUpdateParameters) UnmarshalJSON added in v0.7.0

func (v *VariableUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VariableUpdateParameters.

type VariableUpdateProperties

type VariableUpdateProperties struct {
	// Gets or sets the description of the variable.
	Description *string

	// Gets or sets the value of the variable.
	Value *string
}

VariableUpdateProperties - The properties of the update variable

func (VariableUpdateProperties) MarshalJSON added in v0.7.0

func (v VariableUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VariableUpdateProperties.

func (*VariableUpdateProperties) UnmarshalJSON added in v0.7.0

func (v *VariableUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VariableUpdateProperties.

type Watcher

type Watcher struct {
	// Gets or sets the etag of the resource.
	Etag *string

	// The geo-location where the resource lives
	Location *string

	// Gets or sets the watcher properties.
	Properties *WatcherProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Watcher - Definition of the watcher type.

func (Watcher) MarshalJSON

func (w Watcher) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Watcher.

func (*Watcher) UnmarshalJSON added in v0.7.0

func (w *Watcher) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Watcher.

type WatcherClient

type WatcherClient struct {
	// contains filtered or unexported fields
}

WatcherClient contains the methods for the Watcher group. Don't use this type directly, use NewWatcherClient() instead.

func NewWatcherClient

func NewWatcherClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WatcherClient, error)

NewWatcherClient creates a new instance of WatcherClient 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 (*WatcherClient) CreateOrUpdate

func (client *WatcherClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string, parameters Watcher, options *WatcherClientCreateOrUpdateOptions) (WatcherClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create the watcher identified by watcher name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • watcherName - The watcher name.
  • parameters - The create or update parameters for watcher.
  • options - WatcherClientCreateOrUpdateOptions contains the optional parameters for the WatcherClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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{
	// 	},
	// }
}
Output:

func (*WatcherClient) Delete

func (client *WatcherClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string, options *WatcherClientDeleteOptions) (WatcherClientDeleteResponse, error)

Delete - Delete the watcher by name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • watcherName - The watcher name.
  • options - WatcherClientDeleteOptions contains the optional parameters for the WatcherClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*WatcherClient) Get

func (client *WatcherClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string, options *WatcherClientGetOptions) (WatcherClientGetResponse, error)

Get - Retrieve the watcher identified by watcher name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • watcherName - The watcher name.
  • options - WatcherClientGetOptions contains the optional parameters for the WatcherClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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{
	// 	},
	// }
}
Output:

func (*WatcherClient) NewListByAutomationAccountPager added in v0.5.0

func (client *WatcherClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *WatcherClientListByAutomationAccountOptions) *runtime.Pager[WatcherClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of watchers.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - WatcherClientListByAutomationAccountOptions contains the optional parameters for the WatcherClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*WatcherClient) Start

func (client *WatcherClient) Start(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string, options *WatcherClientStartOptions) (WatcherClientStartResponse, error)

Start - Resume the watcher identified by watcher name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • watcherName - The watcher name.
  • options - WatcherClientStartOptions contains the optional parameters for the WatcherClient.Start method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*WatcherClient) Stop

func (client *WatcherClient) Stop(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string, options *WatcherClientStopOptions) (WatcherClientStopResponse, error)

Stop - Resume the watcher identified by watcher name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • watcherName - The watcher name.
  • options - WatcherClientStopOptions contains the optional parameters for the WatcherClient.Stop method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*WatcherClient) Update

func (client *WatcherClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string, parameters WatcherUpdateParameters, options *WatcherClientUpdateOptions) (WatcherClientUpdateResponse, error)

Update - Update the watcher identified by watcher name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-01-13-preview

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • watcherName - The watcher name.
  • parameters - The update parameters for watcher.
  • options - WatcherClientUpdateOptions contains the optional parameters for the WatcherClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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{
	// 	},
	// }
}
Output:

type WatcherClientCreateOrUpdateOptions added in v0.3.0

type WatcherClientCreateOrUpdateOptions struct {
}

WatcherClientCreateOrUpdateOptions contains the optional parameters for the WatcherClient.CreateOrUpdate method.

type WatcherClientCreateOrUpdateResponse added in v0.3.0

type WatcherClientCreateOrUpdateResponse struct {
	// Definition of the watcher type.
	Watcher
}

WatcherClientCreateOrUpdateResponse contains the response from method WatcherClient.CreateOrUpdate.

type WatcherClientDeleteOptions added in v0.3.0

type WatcherClientDeleteOptions struct {
}

WatcherClientDeleteOptions contains the optional parameters for the WatcherClient.Delete method.

type WatcherClientDeleteResponse added in v0.3.0

type WatcherClientDeleteResponse struct {
}

WatcherClientDeleteResponse contains the response from method WatcherClient.Delete.

type WatcherClientGetOptions added in v0.3.0

type WatcherClientGetOptions struct {
}

WatcherClientGetOptions contains the optional parameters for the WatcherClient.Get method.

type WatcherClientGetResponse added in v0.3.0

type WatcherClientGetResponse struct {
	// Definition of the watcher type.
	Watcher
}

WatcherClientGetResponse contains the response from method WatcherClient.Get.

type WatcherClientListByAutomationAccountOptions added in v0.3.0

type WatcherClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

WatcherClientListByAutomationAccountOptions contains the optional parameters for the WatcherClient.NewListByAutomationAccountPager method.

type WatcherClientListByAutomationAccountResponse added in v0.3.0

type WatcherClientListByAutomationAccountResponse struct {
	// The response model for the list watcher operation.
	WatcherListResult
}

WatcherClientListByAutomationAccountResponse contains the response from method WatcherClient.NewListByAutomationAccountPager.

type WatcherClientStartOptions added in v0.3.0

type WatcherClientStartOptions struct {
}

WatcherClientStartOptions contains the optional parameters for the WatcherClient.Start method.

type WatcherClientStartResponse added in v0.3.0

type WatcherClientStartResponse struct {
}

WatcherClientStartResponse contains the response from method WatcherClient.Start.

type WatcherClientStopOptions added in v0.3.0

type WatcherClientStopOptions struct {
}

WatcherClientStopOptions contains the optional parameters for the WatcherClient.Stop method.

type WatcherClientStopResponse added in v0.3.0

type WatcherClientStopResponse struct {
}

WatcherClientStopResponse contains the response from method WatcherClient.Stop.

type WatcherClientUpdateOptions added in v0.3.0

type WatcherClientUpdateOptions struct {
}

WatcherClientUpdateOptions contains the optional parameters for the WatcherClient.Update method.

type WatcherClientUpdateResponse added in v0.3.0

type WatcherClientUpdateResponse struct {
	// Definition of the watcher type.
	Watcher
}

WatcherClientUpdateResponse contains the response from method WatcherClient.Update.

type WatcherListResult

type WatcherListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of watchers.
	Value []*Watcher
}

WatcherListResult - The response model for the list watcher operation.

func (WatcherListResult) MarshalJSON

func (w WatcherListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WatcherListResult.

func (*WatcherListResult) UnmarshalJSON added in v0.7.0

func (w *WatcherListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WatcherListResult.

type WatcherProperties

type WatcherProperties struct {
	// Gets or sets the description.
	Description *string

	// Gets or sets the frequency at which the watcher is invoked.
	ExecutionFrequencyInSeconds *int64

	// Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
	ScriptName *string

	// Gets or sets the parameters of the script.
	ScriptParameters map[string]*string

	// Gets or sets the name of the hybrid worker group the watcher will run on.
	ScriptRunOn *string

	// READ-ONLY; Gets or sets the creation time.
	CreationTime *time.Time

	// READ-ONLY; Details of the user who last modified the watcher.
	LastModifiedBy *string

	// READ-ONLY; Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// READ-ONLY; Gets the current status of the watcher.
	Status *string
}

WatcherProperties - Definition of the watcher properties

func (WatcherProperties) MarshalJSON

func (w WatcherProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WatcherProperties.

func (*WatcherProperties) UnmarshalJSON

func (w *WatcherProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WatcherProperties.

type WatcherUpdateParameters

type WatcherUpdateParameters struct {
	// Gets or sets the name of the resource.
	Name *string

	// Gets or sets the watcher update properties.
	Properties *WatcherUpdateProperties
}

func (WatcherUpdateParameters) MarshalJSON

func (w WatcherUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WatcherUpdateParameters.

func (*WatcherUpdateParameters) UnmarshalJSON added in v0.7.0

func (w *WatcherUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WatcherUpdateParameters.

type WatcherUpdateProperties

type WatcherUpdateProperties struct {
	// Gets or sets the frequency at which the watcher is invoked.
	ExecutionFrequencyInSeconds *int64
}

WatcherUpdateProperties - The properties of the update watcher operation.

func (WatcherUpdateProperties) MarshalJSON added in v0.7.0

func (w WatcherUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WatcherUpdateProperties.

func (*WatcherUpdateProperties) UnmarshalJSON added in v0.7.0

func (w *WatcherUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WatcherUpdateProperties.

type Webhook

type Webhook struct {
	// Gets or sets the webhook properties.
	Properties *WebhookProperties

	// READ-ONLY; Fully qualified resource Id for the resource
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource.
	Type *string
}

Webhook - Definition of the webhook type.

func (Webhook) MarshalJSON

func (w Webhook) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Webhook.

func (*Webhook) UnmarshalJSON added in v0.7.0

func (w *Webhook) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Webhook.

type WebhookClient

type WebhookClient struct {
	// contains filtered or unexported fields
}

WebhookClient contains the methods for the Webhook group. Don't use this type directly, use NewWebhookClient() instead.

func NewWebhookClient

func NewWebhookClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WebhookClient, error)

NewWebhookClient creates a new instance of WebhookClient 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 (*WebhookClient) CreateOrUpdate

func (client *WebhookClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string, parameters WebhookCreateOrUpdateParameters, options *WebhookClientCreateOrUpdateOptions) (WebhookClientCreateOrUpdateResponse, error)

CreateOrUpdate - Create the webhook identified by webhook name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2015-10-31

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • webhookName - The webhook name.
  • parameters - The create or update parameters for webhook.
  • options - WebhookClientCreateOrUpdateOptions contains the optional parameters for the WebhookClient.CreateOrUpdate method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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("<uri>"),
		},
	}, 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(""),
	// 	},
	// }
}
Output:

func (*WebhookClient) Delete

func (client *WebhookClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string, options *WebhookClientDeleteOptions) (WebhookClientDeleteResponse, error)

Delete - Delete the webhook by name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2015-10-31

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • webhookName - The webhook name.
  • options - WebhookClientDeleteOptions contains the optional parameters for the WebhookClient.Delete method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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)
	}
}
Output:

func (*WebhookClient) GenerateURI

func (client *WebhookClient) GenerateURI(ctx context.Context, resourceGroupName string, automationAccountName string, options *WebhookClientGenerateURIOptions) (WebhookClientGenerateURIResponse, error)

GenerateURI - Generates a Uri for use in creating a webhook. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2015-10-31

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - WebhookClientGenerateURIOptions contains the optional parameters for the WebhookClient.GenerateURI method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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 = "<body>"
}
Output:

func (*WebhookClient) Get

func (client *WebhookClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string, options *WebhookClientGetOptions) (WebhookClientGetResponse, error)

Get - Retrieve the webhook identified by webhook name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2015-10-31

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • webhookName - The webhook name.
  • options - WebhookClientGetOptions contains the optional parameters for the WebhookClient.Get method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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(""),
	// 	},
	// }
}
Output:

func (*WebhookClient) NewListByAutomationAccountPager added in v0.5.0

func (client *WebhookClient) NewListByAutomationAccountPager(resourceGroupName string, automationAccountName string, options *WebhookClientListByAutomationAccountOptions) *runtime.Pager[WebhookClientListByAutomationAccountResponse]

NewListByAutomationAccountPager - Retrieve a list of webhooks.

Generated from API version 2015-10-31

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • options - WebhookClientListByAutomationAccountOptions contains the optional parameters for the WebhookClient.NewListByAutomationAccountPager method.
Example

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

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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"),
		// 				},
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*WebhookClient) Update

func (client *WebhookClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string, parameters WebhookUpdateParameters, options *WebhookClientUpdateOptions) (WebhookClientUpdateResponse, error)

Update - Update the webhook identified by webhook name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2015-10-31

  • resourceGroupName - Name of an Azure Resource group.
  • automationAccountName - The name of the automation account.
  • webhookName - The webhook name.
  • parameters - The update parameters for webhook.
  • options - WebhookClientUpdateOptions contains the optional parameters for the WebhookClient.Update method.
Example

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

package main

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"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armautomation.NewClientFactory("<subscription-id>", 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(""),
	// 	},
	// }
}
Output:

type WebhookClientCreateOrUpdateOptions added in v0.3.0

type WebhookClientCreateOrUpdateOptions struct {
}

WebhookClientCreateOrUpdateOptions contains the optional parameters for the WebhookClient.CreateOrUpdate method.

type WebhookClientCreateOrUpdateResponse added in v0.3.0

type WebhookClientCreateOrUpdateResponse struct {
	// Definition of the webhook type.
	Webhook
}

WebhookClientCreateOrUpdateResponse contains the response from method WebhookClient.CreateOrUpdate.

type WebhookClientDeleteOptions added in v0.3.0

type WebhookClientDeleteOptions struct {
}

WebhookClientDeleteOptions contains the optional parameters for the WebhookClient.Delete method.

type WebhookClientDeleteResponse added in v0.3.0

type WebhookClientDeleteResponse struct {
}

WebhookClientDeleteResponse contains the response from method WebhookClient.Delete.

type WebhookClientGenerateURIOptions added in v0.3.0

type WebhookClientGenerateURIOptions struct {
}

WebhookClientGenerateURIOptions contains the optional parameters for the WebhookClient.GenerateURI method.

type WebhookClientGenerateURIResponse added in v0.3.0

type WebhookClientGenerateURIResponse struct {
	Value *string
}

WebhookClientGenerateURIResponse contains the response from method WebhookClient.GenerateURI.

type WebhookClientGetOptions added in v0.3.0

type WebhookClientGetOptions struct {
}

WebhookClientGetOptions contains the optional parameters for the WebhookClient.Get method.

type WebhookClientGetResponse added in v0.3.0

type WebhookClientGetResponse struct {
	// Definition of the webhook type.
	Webhook
}

WebhookClientGetResponse contains the response from method WebhookClient.Get.

type WebhookClientListByAutomationAccountOptions added in v0.3.0

type WebhookClientListByAutomationAccountOptions struct {
	// The filter to apply on the operation.
	Filter *string
}

WebhookClientListByAutomationAccountOptions contains the optional parameters for the WebhookClient.NewListByAutomationAccountPager method.

type WebhookClientListByAutomationAccountResponse added in v0.3.0

type WebhookClientListByAutomationAccountResponse struct {
	// The response model for the list webhook operation.
	WebhookListResult
}

WebhookClientListByAutomationAccountResponse contains the response from method WebhookClient.NewListByAutomationAccountPager.

type WebhookClientUpdateOptions added in v0.3.0

type WebhookClientUpdateOptions struct {
}

WebhookClientUpdateOptions contains the optional parameters for the WebhookClient.Update method.

type WebhookClientUpdateResponse added in v0.3.0

type WebhookClientUpdateResponse struct {
	// Definition of the webhook type.
	Webhook
}

WebhookClientUpdateResponse contains the response from method WebhookClient.Update.

type WebhookCreateOrUpdateParameters

type WebhookCreateOrUpdateParameters struct {
	// REQUIRED; Gets or sets the name of the webhook.
	Name *string

	// REQUIRED; Gets or sets the properties of the webhook.
	Properties *WebhookCreateOrUpdateProperties
}

WebhookCreateOrUpdateParameters - The parameters supplied to the create or update webhook operation.

func (WebhookCreateOrUpdateParameters) MarshalJSON added in v0.7.0

func (w WebhookCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WebhookCreateOrUpdateParameters.

func (*WebhookCreateOrUpdateParameters) UnmarshalJSON added in v0.7.0

func (w *WebhookCreateOrUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WebhookCreateOrUpdateParameters.

type WebhookCreateOrUpdateProperties

type WebhookCreateOrUpdateProperties struct {
	// Gets or sets the expiry time.
	ExpiryTime *time.Time

	// Gets or sets the value of the enabled flag of webhook.
	IsEnabled *bool

	// Gets or sets the parameters of the job.
	Parameters map[string]*string

	// Gets or sets the name of the hybrid worker group the webhook job will run on.
	RunOn *string

	// Gets or sets the runbook.
	Runbook *RunbookAssociationProperty

	// Gets or sets the uri.
	URI *string
}

WebhookCreateOrUpdateProperties - The properties of the create webhook operation.

func (WebhookCreateOrUpdateProperties) MarshalJSON

func (w WebhookCreateOrUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WebhookCreateOrUpdateProperties.

func (*WebhookCreateOrUpdateProperties) UnmarshalJSON

func (w *WebhookCreateOrUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WebhookCreateOrUpdateProperties.

type WebhookListResult

type WebhookListResult struct {
	// Gets or sets the next link.
	NextLink *string

	// Gets or sets a list of webhooks.
	Value []*Webhook
}

WebhookListResult - The response model for the list webhook operation.

func (WebhookListResult) MarshalJSON

func (w WebhookListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WebhookListResult.

func (*WebhookListResult) UnmarshalJSON added in v0.7.0

func (w *WebhookListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WebhookListResult.

type WebhookProperties

type WebhookProperties struct {
	// Gets or sets the creation time.
	CreationTime *time.Time

	// Gets or sets the description.
	Description *string

	// Gets or sets the expiry time.
	ExpiryTime *time.Time

	// Gets or sets the value of the enabled flag of the webhook.
	IsEnabled *bool

	// Gets or sets the last invoked time.
	LastInvokedTime *time.Time

	// Details of the user who last modified the Webhook
	LastModifiedBy *string

	// Gets or sets the last modified time.
	LastModifiedTime *time.Time

	// Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with.
	Parameters map[string]*string

	// Gets or sets the name of the hybrid worker group the webhook job will run on.
	RunOn *string

	// Gets or sets the runbook the webhook is associated with.
	Runbook *RunbookAssociationProperty

	// Gets or sets the webhook uri.
	URI *string
}

WebhookProperties - Definition of the webhook properties

func (WebhookProperties) MarshalJSON

func (w WebhookProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WebhookProperties.

func (*WebhookProperties) UnmarshalJSON

func (w *WebhookProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WebhookProperties.

type WebhookUpdateParameters

type WebhookUpdateParameters struct {
	// Gets or sets the name of the webhook.
	Name *string

	// Gets or sets the value of the webhook.
	Properties *WebhookUpdateProperties
}

WebhookUpdateParameters - The parameters supplied to the update webhook operation.

func (WebhookUpdateParameters) MarshalJSON

func (w WebhookUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WebhookUpdateParameters.

func (*WebhookUpdateParameters) UnmarshalJSON added in v0.7.0

func (w *WebhookUpdateParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WebhookUpdateParameters.

type WebhookUpdateProperties

type WebhookUpdateProperties struct {
	// Gets or sets the description of the webhook.
	Description *string

	// Gets or sets the value of the enabled flag of webhook.
	IsEnabled *bool

	// Gets or sets the parameters of the job.
	Parameters map[string]*string

	// Gets or sets the name of the hybrid worker group the webhook job will run on.
	RunOn *string
}

WebhookUpdateProperties - The properties of the update webhook.

func (WebhookUpdateProperties) MarshalJSON

func (w WebhookUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WebhookUpdateProperties.

func (*WebhookUpdateProperties) UnmarshalJSON added in v0.7.0

func (w *WebhookUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WebhookUpdateProperties.

type WindowsProperties

type WindowsProperties struct {
	// KB numbers excluded from the software update configuration.
	ExcludedKbNumbers []*string

	// KB numbers included from the software update configuration.
	IncludedKbNumbers []*string

	// Update classification included in the software update configuration. A comma separated string with required values
	IncludedUpdateClassifications *WindowsUpdateClasses

	// Reboot setting for the software update configuration.
	RebootSetting *string
}

WindowsProperties - Windows specific update configuration.

func (WindowsProperties) MarshalJSON

func (w WindowsProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WindowsProperties.

func (*WindowsProperties) UnmarshalJSON added in v0.7.0

func (w *WindowsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WindowsProperties.

type WindowsUpdateClasses

type WindowsUpdateClasses string

WindowsUpdateClasses - Update classification included in the software update configuration. A comma separated string with required values

const (
	WindowsUpdateClassesCritical     WindowsUpdateClasses = "Critical"
	WindowsUpdateClassesDefinition   WindowsUpdateClasses = "Definition"
	WindowsUpdateClassesFeaturePack  WindowsUpdateClasses = "FeaturePack"
	WindowsUpdateClassesSecurity     WindowsUpdateClasses = "Security"
	WindowsUpdateClassesServicePack  WindowsUpdateClasses = "ServicePack"
	WindowsUpdateClassesTools        WindowsUpdateClasses = "Tools"
	WindowsUpdateClassesUnclassified WindowsUpdateClasses = "Unclassified"
	WindowsUpdateClassesUpdateRollup WindowsUpdateClasses = "UpdateRollup"
	WindowsUpdateClassesUpdates      WindowsUpdateClasses = "Updates"
)

func PossibleWindowsUpdateClassesValues

func PossibleWindowsUpdateClassesValues() []WindowsUpdateClasses

PossibleWindowsUpdateClassesValues returns the possible values for the WindowsUpdateClasses const type.

type WorkerType

type WorkerType string

WorkerType - Type of the HybridWorker.

const (
	WorkerTypeHybridV1 WorkerType = "HybridV1"
	WorkerTypeHybridV2 WorkerType = "HybridV2"
)

func PossibleWorkerTypeValues

func PossibleWorkerTypeValues() []WorkerType

PossibleWorkerTypeValues returns the possible values for the WorkerType const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL