// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT.

package armprogrammableconnectivity_test

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/programmableconnectivity/armprogrammableconnectivity"
	"log"
)

// Generated from example definition: 2024-01-15-preview/OperatorApiConnections_Create_MaximumSet_Gen.json
func ExampleOperatorAPIConnectionsClient_BeginCreate() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armprogrammableconnectivity.NewClientFactory("B976474B-99FA-4C25-A3BD-8B05C3C3D07A", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewOperatorAPIConnectionsClient().BeginCreate(ctx, "rgopenapi", "nzsdg", armprogrammableconnectivity.OperatorAPIConnection{
		Properties: &armprogrammableconnectivity.OperatorAPIConnectionProperties{
			OperatorAPIPlanID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans/livmzrh"),
			SaasProperties: &armprogrammableconnectivity.SaasProperties{
				SaasSubscriptionID: to.Ptr("mgyusmqt"),
				SaasResourceID:     to.Ptr("pekejefyvfviabimdrmno"),
			},
			ConfiguredApplication: &armprogrammableconnectivity.ApplicationProperties{
				Name:                       to.Ptr("idzqqen"),
				ApplicationDescription:     to.Ptr("gjlwegnqvffvsc"),
				ApplicationType:            to.Ptr("f"),
				LegalName:                  to.Ptr("ar"),
				OrganizationDescription:    to.Ptr("fcueqzlxxr"),
				TaxNumber:                  to.Ptr("ngzv"),
				PrivacyContactEmailAddress: to.Ptr("l"),
			},
			AppID:       to.Ptr("czgrhbvgr"),
			GatewayID:   to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/gateways/cdvcixxcdhjqw"),
			AccountType: to.Ptr(armprogrammableconnectivity.AccountTypeAzureManaged),
			AppSecret:   to.Ptr("wtxnpes"),
			Status: &armprogrammableconnectivity.Status{
				State:  to.Ptr("rvez"),
				Reason: to.Ptr("fpteanxqzqixfmymib"),
			},
		},
		Tags: map[string]*string{
			"key5536": to.Ptr("bjhvpzsmtalqxmjjbsfdizhg"),
		},
		Location: to.Ptr("dwvzfkjoepbmksygazllqryyinn"),
	}, 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 poll 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 = armprogrammableconnectivity.OperatorAPIConnectionsClientCreateResponse{
	// 	OperatorAPIConnection: armprogrammableconnectivity.OperatorAPIConnection{
	// 		Properties: &armprogrammableconnectivity.OperatorAPIConnectionProperties{
	// 			OperatorAPIPlanID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans/livmzrh"),
	// 			SaasProperties: &armprogrammableconnectivity.SaasProperties{
	// 				SaasSubscriptionID: to.Ptr("mgyusmqt"),
	// 				SaasResourceID: to.Ptr("pekejefyvfviabimdrmno"),
	// 			},
	// 			ConfiguredApplication: &armprogrammableconnectivity.ApplicationProperties{
	// 				Name: to.Ptr("idzqqen"),
	// 				ApplicationDescription: to.Ptr("gjlwegnqvffvsc"),
	// 				ApplicationType: to.Ptr("f"),
	// 				LegalName: to.Ptr("ar"),
	// 				OrganizationDescription: to.Ptr("fcueqzlxxr"),
	// 				TaxNumber: to.Ptr("ngzv"),
	// 				PrivacyContactEmailAddress: to.Ptr("l"),
	// 			},
	// 			AppID: to.Ptr("czgrhbvgr"),
	// 			GatewayID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/gateways/cdvcixxcdhjqw"),
	// 			AccountType: to.Ptr(armprogrammableconnectivity.AccountTypeAzureManaged),
	// 			OperatorName: to.Ptr("tjisxmigbgtejdnelabhc"),
	// 			CamaraAPIName: to.Ptr("lnktvqbqcdzmkubxwblwvgwifp"),
	// 			ProvisioningState: to.Ptr(armprogrammableconnectivity.ProvisioningStateSucceeded),
	// 			Status: &armprogrammableconnectivity.Status{
	// 				State: to.Ptr("rvez"),
	// 				Reason: to.Ptr("fpteanxqzqixfmymib"),
	// 			},
	// 		},
	// 		Tags: map[string]*string{
	// 			"key5536": to.Ptr("bjhvpzsmtalqxmjjbsfdizhg"),
	// 		},
	// 		Location: to.Ptr("dwvzfkjoepbmksygazllqryyinn"),
	// 		ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/uecwablqeufseigocrwf"),
	// 		Name: to.Ptr("zsilgtpflhroamaglfbywbn"),
	// 		Type: to.Ptr("stxhhdjwawmqtep"),
	// 		SystemData: &armprogrammableconnectivity.SystemData{
	// 			CreatedBy: to.Ptr("kuprrapuolhnvju"),
	// 			CreatedByType: to.Ptr(armprogrammableconnectivity.CreatedByTypeUser),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T16:41:38.838Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("lsmrhxnvkpmrxncylgqpkr"),
	// 			LastModifiedByType: to.Ptr(armprogrammableconnectivity.CreatedByTypeUser),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T16:41:38.838Z"); return t}()),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2024-01-15-preview/OperatorApiConnections_Delete_MinimumSet_Gen.json
func ExampleOperatorAPIConnectionsClient_BeginDelete() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armprogrammableconnectivity.NewClientFactory("B976474B-99FA-4C25-A3BD-8B05C3C3D07A", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewOperatorAPIConnectionsClient().BeginDelete(ctx, "rgopenapi", "dawr", 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 poll the result: %v", err)
	}
}

// Generated from example definition: 2024-01-15-preview/OperatorApiConnections_Get_MaximumSet_Gen.json
func ExampleOperatorAPIConnectionsClient_Get() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armprogrammableconnectivity.NewClientFactory("B976474B-99FA-4C25-A3BD-8B05C3C3D07A", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewOperatorAPIConnectionsClient().Get(ctx, "rgopenapi", "uetzqjrwqtkwgcirdqy", 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 = armprogrammableconnectivity.OperatorAPIConnectionsClientGetResponse{
	// 	OperatorAPIConnection: armprogrammableconnectivity.OperatorAPIConnection{
	// 		Properties: &armprogrammableconnectivity.OperatorAPIConnectionProperties{
	// 			OperatorAPIPlanID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans/livmzrh"),
	// 			SaasProperties: &armprogrammableconnectivity.SaasProperties{
	// 				SaasSubscriptionID: to.Ptr("mgyusmqt"),
	// 				SaasResourceID: to.Ptr("pekejefyvfviabimdrmno"),
	// 			},
	// 			ConfiguredApplication: &armprogrammableconnectivity.ApplicationProperties{
	// 				Name: to.Ptr("idzqqen"),
	// 				ApplicationDescription: to.Ptr("gjlwegnqvffvsc"),
	// 				ApplicationType: to.Ptr("f"),
	// 				LegalName: to.Ptr("ar"),
	// 				OrganizationDescription: to.Ptr("fcueqzlxxr"),
	// 				TaxNumber: to.Ptr("ngzv"),
	// 				PrivacyContactEmailAddress: to.Ptr("l"),
	// 			},
	// 			AppID: to.Ptr("czgrhbvgr"),
	// 			GatewayID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/gateways/cdvcixxcdhjqw"),
	// 			AccountType: to.Ptr(armprogrammableconnectivity.AccountTypeAzureManaged),
	// 			OperatorName: to.Ptr("tjisxmigbgtejdnelabhc"),
	// 			CamaraAPIName: to.Ptr("lnktvqbqcdzmkubxwblwvgwifp"),
	// 			ProvisioningState: to.Ptr(armprogrammableconnectivity.ProvisioningStateSucceeded),
	// 			Status: &armprogrammableconnectivity.Status{
	// 				State: to.Ptr("rvez"),
	// 				Reason: to.Ptr("fpteanxqzqixfmymib"),
	// 			},
	// 		},
	// 		Tags: map[string]*string{
	// 			"key5536": to.Ptr("bjhvpzsmtalqxmjjbsfdizhg"),
	// 		},
	// 		Location: to.Ptr("dwvzfkjoepbmksygazllqryyinn"),
	// 		ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/uecwablqeufseigocrwf"),
	// 		Name: to.Ptr("zsilgtpflhroamaglfbywbn"),
	// 		Type: to.Ptr("stxhhdjwawmqtep"),
	// 		SystemData: &armprogrammableconnectivity.SystemData{
	// 			CreatedBy: to.Ptr("kuprrapuolhnvju"),
	// 			CreatedByType: to.Ptr(armprogrammableconnectivity.CreatedByTypeUser),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T16:41:38.838Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("lsmrhxnvkpmrxncylgqpkr"),
	// 			LastModifiedByType: to.Ptr(armprogrammableconnectivity.CreatedByTypeUser),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T16:41:38.838Z"); return t}()),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2024-01-15-preview/OperatorApiConnections_ListByResourceGroup_MaximumSet_Gen.json
func ExampleOperatorAPIConnectionsClient_NewListByResourceGroupPager() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armprogrammableconnectivity.NewClientFactory("B976474B-99FA-4C25-A3BD-8B05C3C3D07A", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOperatorAPIConnectionsClient().NewListByResourceGroupPager("rgopenapi", 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 = armprogrammableconnectivity.OperatorAPIConnectionsClientListByResourceGroupResponse{
		// 	OperatorAPIConnectionListResult: armprogrammableconnectivity.OperatorAPIConnectionListResult{
		// 		Value: []*armprogrammableconnectivity.OperatorAPIConnection{
		// 			{
		// 				Properties: &armprogrammableconnectivity.OperatorAPIConnectionProperties{
		// 					OperatorAPIPlanID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans/livmzrh"),
		// 					SaasProperties: &armprogrammableconnectivity.SaasProperties{
		// 						SaasSubscriptionID: to.Ptr("mgyusmqt"),
		// 						SaasResourceID: to.Ptr("pekejefyvfviabimdrmno"),
		// 					},
		// 					ConfiguredApplication: &armprogrammableconnectivity.ApplicationProperties{
		// 						Name: to.Ptr("idzqqen"),
		// 						ApplicationDescription: to.Ptr("gjlwegnqvffvsc"),
		// 						ApplicationType: to.Ptr("f"),
		// 						LegalName: to.Ptr("ar"),
		// 						OrganizationDescription: to.Ptr("fcueqzlxxr"),
		// 						TaxNumber: to.Ptr("ngzv"),
		// 						PrivacyContactEmailAddress: to.Ptr("l"),
		// 					},
		// 					AppID: to.Ptr("czgrhbvgr"),
		// 					GatewayID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/gateways/cdvcixxcdhjqw"),
		// 					AccountType: to.Ptr(armprogrammableconnectivity.AccountTypeAzureManaged),
		// 					OperatorName: to.Ptr("tjisxmigbgtejdnelabhc"),
		// 					CamaraAPIName: to.Ptr("lnktvqbqcdzmkubxwblwvgwifp"),
		// 					ProvisioningState: to.Ptr(armprogrammableconnectivity.ProvisioningStateSucceeded),
		// 					Status: &armprogrammableconnectivity.Status{
		// 						State: to.Ptr("rvez"),
		// 						Reason: to.Ptr("fpteanxqzqixfmymib"),
		// 					},
		// 				},
		// 				Tags: map[string]*string{
		// 					"key5536": to.Ptr("bjhvpzsmtalqxmjjbsfdizhg"),
		// 				},
		// 				Location: to.Ptr("dwvzfkjoepbmksygazllqryyinn"),
		// 				ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/uecwablqeufseigocrwf"),
		// 				Name: to.Ptr("zsilgtpflhroamaglfbywbn"),
		// 				Type: to.Ptr("stxhhdjwawmqtep"),
		// 				SystemData: &armprogrammableconnectivity.SystemData{
		// 					CreatedBy: to.Ptr("kuprrapuolhnvju"),
		// 					CreatedByType: to.Ptr(armprogrammableconnectivity.CreatedByTypeUser),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T16:41:38.838Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("lsmrhxnvkpmrxncylgqpkr"),
		// 					LastModifiedByType: to.Ptr(armprogrammableconnectivity.CreatedByTypeUser),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T16:41:38.838Z"); return t}()),
		// 				},
		// 			},
		// 		},
		// 		NextLink: to.Ptr("https://microsoft.com/a"),
		// 	},
		// }
	}
}

// Generated from example definition: 2024-01-15-preview/OperatorApiConnections_ListBySubscription_MaximumSet_Gen.json
func ExampleOperatorAPIConnectionsClient_NewListBySubscriptionPager() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armprogrammableconnectivity.NewClientFactory("B976474B-99FA-4C25-A3BD-8B05C3C3D07A", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOperatorAPIConnectionsClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armprogrammableconnectivity.OperatorAPIConnectionsClientListBySubscriptionResponse{
		// 	OperatorAPIConnectionListResult: armprogrammableconnectivity.OperatorAPIConnectionListResult{
		// 		Value: []*armprogrammableconnectivity.OperatorAPIConnection{
		// 			{
		// 				Properties: &armprogrammableconnectivity.OperatorAPIConnectionProperties{
		// 					OperatorAPIPlanID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans/livmzrh"),
		// 					SaasProperties: &armprogrammableconnectivity.SaasProperties{
		// 						SaasSubscriptionID: to.Ptr("mgyusmqt"),
		// 						SaasResourceID: to.Ptr("pekejefyvfviabimdrmno"),
		// 					},
		// 					ConfiguredApplication: &armprogrammableconnectivity.ApplicationProperties{
		// 						Name: to.Ptr("idzqqen"),
		// 						ApplicationDescription: to.Ptr("gjlwegnqvffvsc"),
		// 						ApplicationType: to.Ptr("f"),
		// 						LegalName: to.Ptr("ar"),
		// 						OrganizationDescription: to.Ptr("fcueqzlxxr"),
		// 						TaxNumber: to.Ptr("ngzv"),
		// 						PrivacyContactEmailAddress: to.Ptr("l"),
		// 					},
		// 					AppID: to.Ptr("czgrhbvgr"),
		// 					GatewayID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/gateways/cdvcixxcdhjqw"),
		// 					AccountType: to.Ptr(armprogrammableconnectivity.AccountTypeAzureManaged),
		// 					OperatorName: to.Ptr("tjisxmigbgtejdnelabhc"),
		// 					CamaraAPIName: to.Ptr("lnktvqbqcdzmkubxwblwvgwifp"),
		// 					ProvisioningState: to.Ptr(armprogrammableconnectivity.ProvisioningStateSucceeded),
		// 					Status: &armprogrammableconnectivity.Status{
		// 						State: to.Ptr("rvez"),
		// 						Reason: to.Ptr("fpteanxqzqixfmymib"),
		// 					},
		// 				},
		// 				Tags: map[string]*string{
		// 					"key5536": to.Ptr("bjhvpzsmtalqxmjjbsfdizhg"),
		// 				},
		// 				Location: to.Ptr("dwvzfkjoepbmksygazllqryyinn"),
		// 				ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/uecwablqeufseigocrwf"),
		// 				Name: to.Ptr("zsilgtpflhroamaglfbywbn"),
		// 				Type: to.Ptr("stxhhdjwawmqtep"),
		// 				SystemData: &armprogrammableconnectivity.SystemData{
		// 					CreatedBy: to.Ptr("kuprrapuolhnvju"),
		// 					CreatedByType: to.Ptr(armprogrammableconnectivity.CreatedByTypeUser),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T16:41:38.838Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("lsmrhxnvkpmrxncylgqpkr"),
		// 					LastModifiedByType: to.Ptr(armprogrammableconnectivity.CreatedByTypeUser),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T16:41:38.838Z"); return t}()),
		// 				},
		// 			},
		// 		},
		// 		NextLink: to.Ptr("https://microsoft.com/a"),
		// 	},
		// }
	}
}

// Generated from example definition: 2024-01-15-preview/OperatorApiConnections_Update_MaximumSet_Gen.json
func ExampleOperatorAPIConnectionsClient_BeginUpdate() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armprogrammableconnectivity.NewClientFactory("B976474B-99FA-4C25-A3BD-8B05C3C3D07A", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewOperatorAPIConnectionsClient().BeginUpdate(ctx, "rgopenapi", "syefewgf", armprogrammableconnectivity.OperatorAPIConnectionUpdate{
		Tags: map[string]*string{
			"key3150": to.Ptr("sfcwbiogxulvyyvvqkumfxhussk"),
		},
		Properties: &armprogrammableconnectivity.OperatorAPIConnectionUpdateProperties{
			OperatorAPIPlanID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans/yhlygxdwvrzgazbfzyz"),
			SaasProperties: &armprogrammableconnectivity.SaasProperties{
				SaasSubscriptionID: to.Ptr("mgyusmqt"),
				SaasResourceID:     to.Ptr("pekejefyvfviabimdrmno"),
			},
			ConfiguredApplication: &armprogrammableconnectivity.ApplicationProperties{
				Name:                       to.Ptr("idzqqen"),
				ApplicationDescription:     to.Ptr("gjlwegnqvffvsc"),
				ApplicationType:            to.Ptr("f"),
				LegalName:                  to.Ptr("ar"),
				OrganizationDescription:    to.Ptr("fcueqzlxxr"),
				TaxNumber:                  to.Ptr("ngzv"),
				PrivacyContactEmailAddress: to.Ptr("l"),
			},
			AppID:     to.Ptr("mkfcrn"),
			AppSecret: to.Ptr("wtxnpes"),
		},
	}, 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 poll 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 = armprogrammableconnectivity.OperatorAPIConnectionsClientUpdateResponse{
	// 	OperatorAPIConnection: armprogrammableconnectivity.OperatorAPIConnection{
	// 		Properties: &armprogrammableconnectivity.OperatorAPIConnectionProperties{
	// 			OperatorAPIPlanID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/providers/Microsoft.ProgrammableConnectivity/operatorApiPlans/yhlygxdwvrzgazbfzyz"),
	// 			SaasProperties: &armprogrammableconnectivity.SaasProperties{
	// 				SaasSubscriptionID: to.Ptr("mgyusmqt"),
	// 				SaasResourceID: to.Ptr("pekejefyvfviabimdrmno"),
	// 			},
	// 			ConfiguredApplication: &armprogrammableconnectivity.ApplicationProperties{
	// 				Name: to.Ptr("idzqqen"),
	// 				ApplicationDescription: to.Ptr("gjlwegnqvffvsc"),
	// 				ApplicationType: to.Ptr("f"),
	// 				LegalName: to.Ptr("ar"),
	// 				OrganizationDescription: to.Ptr("fcueqzlxxr"),
	// 				TaxNumber: to.Ptr("ngzv"),
	// 				PrivacyContactEmailAddress: to.Ptr("l"),
	// 			},
	// 			AppID: to.Ptr("czgrhbvgr"),
	// 			GatewayID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/gateways/cdvcixxcdhjqw"),
	// 			AccountType: to.Ptr(armprogrammableconnectivity.AccountTypeAzureManaged),
	// 			OperatorName: to.Ptr("tjisxmigbgtejdnelabhc"),
	// 			CamaraAPIName: to.Ptr("lnktvqbqcdzmkubxwblwvgwifp"),
	// 			ProvisioningState: to.Ptr(armprogrammableconnectivity.ProvisioningStateSucceeded),
	// 			Status: &armprogrammableconnectivity.Status{
	// 				State: to.Ptr("rvez"),
	// 				Reason: to.Ptr("fpteanxqzqixfmymib"),
	// 			},
	// 		},
	// 		Tags: map[string]*string{
	// 			"key5536": to.Ptr("bjhvpzsmtalqxmjjbsfdizhg"),
	// 		},
	// 		Location: to.Ptr("dwvzfkjoepbmksygazllqryyinn"),
	// 		ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/example-rg/providers/Microsoft.ProgrammableConnectivity/operatorApiConnections/uecwablqeufseigocrwf"),
	// 		Name: to.Ptr("zsilgtpflhroamaglfbywbn"),
	// 		Type: to.Ptr("stxhhdjwawmqtep"),
	// 		SystemData: &armprogrammableconnectivity.SystemData{
	// 			CreatedBy: to.Ptr("kuprrapuolhnvju"),
	// 			CreatedByType: to.Ptr(armprogrammableconnectivity.CreatedByTypeUser),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T16:41:38.838Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("lsmrhxnvkpmrxncylgqpkr"),
	// 			LastModifiedByType: to.Ptr(armprogrammableconnectivity.CreatedByTypeUser),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-30T16:41:38.838Z"); return t}()),
	// 		},
	// 	},
	// }
}
