// 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 armarizeaiobservabilityeval_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/arizeaiobservabilityeval/armarizeaiobservabilityeval"
	"log"
)

// Generated from example definition: 2024-10-01/Organizations_CreateOrUpdate_MaximumSet_Gen.json
func ExampleOrganizationsClient_BeginCreateOrUpdate() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armarizeaiobservabilityeval.NewClientFactory("61641157-140c-4b97-b365-30ff76d9f82e", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewOrganizationsClient().BeginCreateOrUpdate(ctx, "yashika-rg-arize", "test-org-1", armarizeaiobservabilityeval.OrganizationResource{
		Properties: &armarizeaiobservabilityeval.OrganizationProperties{
			Marketplace: &armarizeaiobservabilityeval.MarketplaceDetails{
				SubscriptionID:     to.Ptr("61641157-140c-4b97-b365-30ff76d9f82e"),
				SubscriptionStatus: to.Ptr(armarizeaiobservabilityeval.MarketplaceSubscriptionStatusPendingFulfillmentStart),
				OfferDetails: &armarizeaiobservabilityeval.OfferDetails{
					PublisherID: to.Ptr("arizeai1657829589668"),
					OfferID:     to.Ptr("arize-liftr-0"),
					PlanID:      to.Ptr("liftr-test-0"),
					PlanName:    to.Ptr("Liftr Test 0"),
					TermUnit:    to.Ptr("P1M"),
					TermID:      to.Ptr("gmz7xq9ge3py"),
				},
			},
			User: &armarizeaiobservabilityeval.UserDetails{
				FirstName:    to.Ptr(""),
				LastName:     to.Ptr(""),
				EmailAddress: to.Ptr("yashikajain@microsoft.com"),
				Upn:          to.Ptr("yashikajain@microsoft.com"),
				PhoneNumber:  to.Ptr("akbqdbs"),
			},
			PartnerProperties: &armarizeaiobservabilityeval.PartnerProperties{
				Description: to.Ptr("this is a great description"),
			},
			SingleSignOnProperties: &armarizeaiobservabilityeval.SingleSignOnPropertiesV2{
				Type:            to.Ptr(armarizeaiobservabilityeval.SingleSignOnTypeSaml),
				State:           to.Ptr(armarizeaiobservabilityeval.SingleSignOnStatesInitial),
				EnterpriseAppID: to.Ptr("kqykskeuqffsslmpjryzggphhpeh"),
				URL:             to.Ptr("ihidsswbeahnsjjxxqntz"),
				AADDomains: []*string{
					to.Ptr("tyjdvljasl"),
				},
			},
		},
		Identity: &armarizeaiobservabilityeval.ManagedServiceIdentity{
			Type:                   to.Ptr(armarizeaiobservabilityeval.ManagedServiceIdentityTypeNone),
			UserAssignedIdentities: map[string]*armarizeaiobservabilityeval.UserAssignedIdentity{},
		},
		Tags:     map[string]*string{},
		Location: to.Ptr("East US"),
	}, 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 = armarizeaiobservabilityeval.OrganizationsClientCreateOrUpdateResponse{
	// 	OrganizationResource: armarizeaiobservabilityeval.OrganizationResource{
	// 		Properties: &armarizeaiobservabilityeval.OrganizationProperties{
	// 			Marketplace: &armarizeaiobservabilityeval.MarketplaceDetails{
	// 				SubscriptionID: to.Ptr("61641157-140c-4b97-b365-30ff76d9f82e"),
	// 				SubscriptionStatus: to.Ptr(armarizeaiobservabilityeval.MarketplaceSubscriptionStatusPendingFulfillmentStart),
	// 				OfferDetails: &armarizeaiobservabilityeval.OfferDetails{
	// 					PublisherID: to.Ptr("arizeai1657829589668"),
	// 					OfferID: to.Ptr("arize-liftr-0"),
	// 					PlanID: to.Ptr("liftr-test-0"),
	// 					PlanName: to.Ptr("Liftr Test 0"),
	// 					TermUnit: to.Ptr("P1M"),
	// 					TermID: to.Ptr("gmz7xq9ge3py"),
	// 				},
	// 			},
	// 			User: &armarizeaiobservabilityeval.UserDetails{
	// 				FirstName: to.Ptr(""),
	// 				LastName: to.Ptr(""),
	// 				EmailAddress: to.Ptr("yashikajain@microsoft.com"),
	// 				Upn: to.Ptr("yashikajain@microsoft.com"),
	// 				PhoneNumber: to.Ptr("akbqdbs"),
	// 			},
	// 			PartnerProperties: &armarizeaiobservabilityeval.PartnerProperties{
	// 				Description: to.Ptr("this is a great description"),
	// 			},
	// 			ProvisioningState: to.Ptr(armarizeaiobservabilityeval.ResourceProvisioningStateSucceeded),
	// 			SingleSignOnProperties: &armarizeaiobservabilityeval.SingleSignOnPropertiesV2{
	// 				Type: to.Ptr(armarizeaiobservabilityeval.SingleSignOnTypeSaml),
	// 				State: to.Ptr(armarizeaiobservabilityeval.SingleSignOnStatesInitial),
	// 				EnterpriseAppID: to.Ptr("kqykskeuqffsslmpjryzggphhpeh"),
	// 				URL: to.Ptr("ihidsswbeahnsjjxxqntz"),
	// 				AADDomains: []*string{
	// 					to.Ptr("tyjdvljasl"),
	// 				},
	// 			},
	// 		},
	// 		Identity: &armarizeaiobservabilityeval.ManagedServiceIdentity{
	// 			Type: to.Ptr(armarizeaiobservabilityeval.ManagedServiceIdentityTypeNone),
	// 			UserAssignedIdentities: map[string]*armarizeaiobservabilityeval.UserAssignedIdentity{
	// 			},
	// 			PrincipalID: to.Ptr("38fdf748-d66d-4344-ac76-ab1ebd9441fc"),
	// 			TenantID: to.Ptr("888d76fa-54b2-4ced-8ee5-aac1585adee7"),
	// 		},
	// 		Tags: map[string]*string{
	// 		},
	// 		Location: to.Ptr("East US"),
	// 		ID: to.Ptr("/subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/yashika-rg-arize/providers/ArizeAi.ObservabilityEval/Organizations/test-org-1"),
	// 		Name: to.Ptr("btywhrchehozcpizfrv"),
	// 		Type: to.Ptr("ymstff"),
	// 		SystemData: &armarizeaiobservabilityeval.SystemData{
	// 			CreatedBy: to.Ptr("ihyykvakpoaltuuwuwgx"),
	// 			CreatedByType: to.Ptr(armarizeaiobservabilityeval.CreatedByTypeUser),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-29T03:21:12.627Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("mdkcrvmimq"),
	// 			LastModifiedByType: to.Ptr(armarizeaiobservabilityeval.CreatedByTypeUser),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-29T03:21:12.627Z"); return t}()),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2024-10-01/Organizations_Delete_MaximumSet_Gen.json
func ExampleOrganizationsClient_BeginDelete() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armarizeaiobservabilityeval.NewClientFactory("61641157-140c-4b97-b365-30ff76d9f82e", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewOrganizationsClient().BeginDelete(ctx, "yashika-rg-arize", "test-org-1", 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-10-01/Organizations_Get_MaximumSet_Gen.json
func ExampleOrganizationsClient_Get() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armarizeaiobservabilityeval.NewClientFactory("61641157-140c-4b97-b365-30ff76d9f82e", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewOrganizationsClient().Get(ctx, "yashika-rg-arize", "test-org-1", 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 = armarizeaiobservabilityeval.OrganizationsClientGetResponse{
	// 	OrganizationResource: armarizeaiobservabilityeval.OrganizationResource{
	// 		Properties: &armarizeaiobservabilityeval.OrganizationProperties{
	// 			Marketplace: &armarizeaiobservabilityeval.MarketplaceDetails{
	// 				SubscriptionID: to.Ptr("61641157-140c-4b97-b365-30ff76d9f82e"),
	// 				SubscriptionStatus: to.Ptr(armarizeaiobservabilityeval.MarketplaceSubscriptionStatusPendingFulfillmentStart),
	// 				OfferDetails: &armarizeaiobservabilityeval.OfferDetails{
	// 					PublisherID: to.Ptr("arizeai1657829589668"),
	// 					OfferID: to.Ptr("arize-liftr-0"),
	// 					PlanID: to.Ptr("liftr-test-0"),
	// 					PlanName: to.Ptr("Liftr Test 0"),
	// 					TermUnit: to.Ptr("P1M"),
	// 					TermID: to.Ptr("gmz7xq9ge3py"),
	// 				},
	// 			},
	// 			User: &armarizeaiobservabilityeval.UserDetails{
	// 				FirstName: to.Ptr(""),
	// 				LastName: to.Ptr(""),
	// 				EmailAddress: to.Ptr("yashikajain@microsoft.com"),
	// 				Upn: to.Ptr("yashikajain@microsoft.com"),
	// 				PhoneNumber: to.Ptr("akbqdbs"),
	// 			},
	// 			PartnerProperties: &armarizeaiobservabilityeval.PartnerProperties{
	// 				Description: to.Ptr("this is a great description"),
	// 			},
	// 			ProvisioningState: to.Ptr(armarizeaiobservabilityeval.ResourceProvisioningStateSucceeded),
	// 			SingleSignOnProperties: &armarizeaiobservabilityeval.SingleSignOnPropertiesV2{
	// 				Type: to.Ptr(armarizeaiobservabilityeval.SingleSignOnTypeSaml),
	// 				State: to.Ptr(armarizeaiobservabilityeval.SingleSignOnStatesInitial),
	// 				EnterpriseAppID: to.Ptr("kqykskeuqffsslmpjryzggphhpeh"),
	// 				URL: to.Ptr("ihidsswbeahnsjjxxqntz"),
	// 				AADDomains: []*string{
	// 					to.Ptr("tyjdvljasl"),
	// 				},
	// 			},
	// 		},
	// 		Identity: &armarizeaiobservabilityeval.ManagedServiceIdentity{
	// 			Type: to.Ptr(armarizeaiobservabilityeval.ManagedServiceIdentityTypeNone),
	// 			UserAssignedIdentities: map[string]*armarizeaiobservabilityeval.UserAssignedIdentity{
	// 			},
	// 			PrincipalID: to.Ptr("38fdf748-d66d-4344-ac76-ab1ebd9441fc"),
	// 			TenantID: to.Ptr("888d76fa-54b2-4ced-8ee5-aac1585adee7"),
	// 		},
	// 		Tags: map[string]*string{
	// 		},
	// 		Location: to.Ptr("East US"),
	// 		ID: to.Ptr("/subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/yashika-rg-arize/providers/ArizeAi.ObservabilityEval/Organizations/test-org-1"),
	// 		Name: to.Ptr("btywhrchehozcpizfrv"),
	// 		Type: to.Ptr("ymstff"),
	// 		SystemData: &armarizeaiobservabilityeval.SystemData{
	// 			CreatedBy: to.Ptr("ihyykvakpoaltuuwuwgx"),
	// 			CreatedByType: to.Ptr(armarizeaiobservabilityeval.CreatedByTypeUser),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-29T03:21:12.627Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("mdkcrvmimq"),
	// 			LastModifiedByType: to.Ptr(armarizeaiobservabilityeval.CreatedByTypeUser),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-29T03:21:12.627Z"); return t}()),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2024-10-01/Organizations_ListByResourceGroup_MaximumSet_Gen.json
func ExampleOrganizationsClient_NewListByResourceGroupPager() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armarizeaiobservabilityeval.NewClientFactory("61641157-140c-4b97-b365-30ff76d9f82e", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOrganizationsClient().NewListByResourceGroupPager("yashika-rg-arize", 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 = armarizeaiobservabilityeval.OrganizationsClientListByResourceGroupResponse{
		// 	OrganizationResourceListResult: armarizeaiobservabilityeval.OrganizationResourceListResult{
		// 		Value: []*armarizeaiobservabilityeval.OrganizationResource{
		// 			{
		// 				Properties: &armarizeaiobservabilityeval.OrganizationProperties{
		// 					Marketplace: &armarizeaiobservabilityeval.MarketplaceDetails{
		// 						SubscriptionID: to.Ptr("61641157-140c-4b97-b365-30ff76d9f82e"),
		// 						SubscriptionStatus: to.Ptr(armarizeaiobservabilityeval.MarketplaceSubscriptionStatusPendingFulfillmentStart),
		// 						OfferDetails: &armarizeaiobservabilityeval.OfferDetails{
		// 							PublisherID: to.Ptr("arizeai1657829589668"),
		// 							OfferID: to.Ptr("arize-liftr-0"),
		// 							PlanID: to.Ptr("liftr-test-0"),
		// 							PlanName: to.Ptr("Liftr Test 0"),
		// 							TermUnit: to.Ptr("P1M"),
		// 							TermID: to.Ptr("gmz7xq9ge3py"),
		// 						},
		// 					},
		// 					User: &armarizeaiobservabilityeval.UserDetails{
		// 						FirstName: to.Ptr(""),
		// 						LastName: to.Ptr(""),
		// 						EmailAddress: to.Ptr("yashikajain@microsoft.com"),
		// 						Upn: to.Ptr("yashikajain@microsoft.com"),
		// 						PhoneNumber: to.Ptr("akbqdbs"),
		// 					},
		// 					ProvisioningState: to.Ptr(armarizeaiobservabilityeval.ResourceProvisioningStateSucceeded),
		// 					PartnerProperties: &armarizeaiobservabilityeval.PartnerProperties{
		// 						Description: to.Ptr("this is a great description"),
		// 					},
		// 					SingleSignOnProperties: &armarizeaiobservabilityeval.SingleSignOnPropertiesV2{
		// 						Type: to.Ptr(armarizeaiobservabilityeval.SingleSignOnTypeSaml),
		// 						State: to.Ptr(armarizeaiobservabilityeval.SingleSignOnStatesInitial),
		// 						EnterpriseAppID: to.Ptr("kqykskeuqffsslmpjryzggphhpeh"),
		// 						URL: to.Ptr("ihidsswbeahnsjjxxqntz"),
		// 						AADDomains: []*string{
		// 							to.Ptr("tyjdvljasl"),
		// 						},
		// 					},
		// 				},
		// 				Identity: &armarizeaiobservabilityeval.ManagedServiceIdentity{
		// 					PrincipalID: to.Ptr("38fdf748-d66d-4344-ac76-ab1ebd9441fc"),
		// 					TenantID: to.Ptr("888d76fa-54b2-4ced-8ee5-aac1585adee7"),
		// 					Type: to.Ptr(armarizeaiobservabilityeval.ManagedServiceIdentityTypeNone),
		// 					UserAssignedIdentities: map[string]*armarizeaiobservabilityeval.UserAssignedIdentity{
		// 					},
		// 				},
		// 				Tags: map[string]*string{
		// 				},
		// 				Location: to.Ptr("East US"),
		// 				ID: to.Ptr("/subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/yashika-rg-arize/providers/ArizeAi.ObservabilityEval/Organizations/test-org-1"),
		// 				Name: to.Ptr("btywhrchehozcpizfrv"),
		// 				Type: to.Ptr("ymstff"),
		// 				SystemData: &armarizeaiobservabilityeval.SystemData{
		// 					CreatedBy: to.Ptr("ihyykvakpoaltuuwuwgx"),
		// 					CreatedByType: to.Ptr(armarizeaiobservabilityeval.CreatedByTypeUser),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-29T03:21:12.627Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("mdkcrvmimq"),
		// 					LastModifiedByType: to.Ptr(armarizeaiobservabilityeval.CreatedByTypeUser),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-29T03:21:12.627Z"); return t}()),
		// 				},
		// 			},
		// 		},
		// 		NextLink: to.Ptr("https://microsoft.com/a"),
		// 	},
		// }
	}
}

// Generated from example definition: 2024-10-01/Organizations_ListBySubscription_MaximumSet_Gen.json
func ExampleOrganizationsClient_NewListBySubscriptionPager() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armarizeaiobservabilityeval.NewClientFactory("61641157-140c-4b97-b365-30ff76d9f82e", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOrganizationsClient().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 = armarizeaiobservabilityeval.OrganizationsClientListBySubscriptionResponse{
		// 	OrganizationResourceListResult: armarizeaiobservabilityeval.OrganizationResourceListResult{
		// 		Value: []*armarizeaiobservabilityeval.OrganizationResource{
		// 			{
		// 				Properties: &armarizeaiobservabilityeval.OrganizationProperties{
		// 					Marketplace: &armarizeaiobservabilityeval.MarketplaceDetails{
		// 						SubscriptionID: to.Ptr("61641157-140c-4b97-b365-30ff76d9f82e"),
		// 						SubscriptionStatus: to.Ptr(armarizeaiobservabilityeval.MarketplaceSubscriptionStatusPendingFulfillmentStart),
		// 						OfferDetails: &armarizeaiobservabilityeval.OfferDetails{
		// 							PublisherID: to.Ptr("arizeai1657829589668"),
		// 							OfferID: to.Ptr("arize-liftr-0"),
		// 							PlanID: to.Ptr("liftr-test-0"),
		// 							PlanName: to.Ptr("Liftr Test 0"),
		// 							TermUnit: to.Ptr("P1M"),
		// 							TermID: to.Ptr("gmz7xq9ge3py"),
		// 						},
		// 					},
		// 					User: &armarizeaiobservabilityeval.UserDetails{
		// 						FirstName: to.Ptr(""),
		// 						LastName: to.Ptr(""),
		// 						EmailAddress: to.Ptr("yashikajain@microsoft.com"),
		// 						Upn: to.Ptr("yashikajain@microsoft.com"),
		// 						PhoneNumber: to.Ptr("akbqdbs"),
		// 					},
		// 					ProvisioningState: to.Ptr(armarizeaiobservabilityeval.ResourceProvisioningStateSucceeded),
		// 					PartnerProperties: &armarizeaiobservabilityeval.PartnerProperties{
		// 						Description: to.Ptr("this is a great description"),
		// 					},
		// 					SingleSignOnProperties: &armarizeaiobservabilityeval.SingleSignOnPropertiesV2{
		// 						Type: to.Ptr(armarizeaiobservabilityeval.SingleSignOnTypeSaml),
		// 						State: to.Ptr(armarizeaiobservabilityeval.SingleSignOnStatesInitial),
		// 						EnterpriseAppID: to.Ptr("kqykskeuqffsslmpjryzggphhpeh"),
		// 						URL: to.Ptr("ihidsswbeahnsjjxxqntz"),
		// 						AADDomains: []*string{
		// 							to.Ptr("tyjdvljasl"),
		// 						},
		// 					},
		// 				},
		// 				Identity: &armarizeaiobservabilityeval.ManagedServiceIdentity{
		// 					PrincipalID: to.Ptr("38fdf748-d66d-4344-ac76-ab1ebd9441fc"),
		// 					TenantID: to.Ptr("888d76fa-54b2-4ced-8ee5-aac1585adee7"),
		// 					Type: to.Ptr(armarizeaiobservabilityeval.ManagedServiceIdentityTypeNone),
		// 					UserAssignedIdentities: map[string]*armarizeaiobservabilityeval.UserAssignedIdentity{
		// 					},
		// 				},
		// 				Tags: map[string]*string{
		// 				},
		// 				Location: to.Ptr("East US"),
		// 				ID: to.Ptr("/subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/yashika-rg-arize/providers/ArizeAi.ObservabilityEval/Organizations/test-org-1"),
		// 				Name: to.Ptr("btywhrchehozcpizfrv"),
		// 				Type: to.Ptr("ymstff"),
		// 				SystemData: &armarizeaiobservabilityeval.SystemData{
		// 					CreatedBy: to.Ptr("ihyykvakpoaltuuwuwgx"),
		// 					CreatedByType: to.Ptr(armarizeaiobservabilityeval.CreatedByTypeUser),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-29T03:21:12.627Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("mdkcrvmimq"),
		// 					LastModifiedByType: to.Ptr(armarizeaiobservabilityeval.CreatedByTypeUser),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-29T03:21:12.627Z"); return t}()),
		// 				},
		// 			},
		// 		},
		// 		NextLink: to.Ptr("https://microsoft.com/a"),
		// 	},
		// }
	}
}

// Generated from example definition: 2024-10-01/Organizations_Update_MaximumSet_Gen.json
func ExampleOrganizationsClient_Update() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armarizeaiobservabilityeval.NewClientFactory("61641157-140c-4b97-b365-30ff76d9f82e", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewOrganizationsClient().Update(ctx, "yashika-rg-arize", "test-org-1", armarizeaiobservabilityeval.OrganizationResourceUpdate{
		Tags: map[string]*string{},
		Identity: &armarizeaiobservabilityeval.ManagedServiceIdentity{
			Type:                   to.Ptr(armarizeaiobservabilityeval.ManagedServiceIdentityTypeNone),
			UserAssignedIdentities: map[string]*armarizeaiobservabilityeval.UserAssignedIdentity{},
		},
	}, 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 = armarizeaiobservabilityeval.OrganizationsClientUpdateResponse{
	// 	OrganizationResource: armarizeaiobservabilityeval.OrganizationResource{
	// 		Properties: &armarizeaiobservabilityeval.OrganizationProperties{
	// 			Marketplace: &armarizeaiobservabilityeval.MarketplaceDetails{
	// 				SubscriptionID: to.Ptr("61641157-140c-4b97-b365-30ff76d9f82e"),
	// 				SubscriptionStatus: to.Ptr(armarizeaiobservabilityeval.MarketplaceSubscriptionStatusPendingFulfillmentStart),
	// 				OfferDetails: &armarizeaiobservabilityeval.OfferDetails{
	// 					PublisherID: to.Ptr("arizeai1657829589668"),
	// 					OfferID: to.Ptr("arize-liftr-0"),
	// 					PlanID: to.Ptr("liftr-test-0"),
	// 					PlanName: to.Ptr("Liftr Test 0"),
	// 					TermUnit: to.Ptr("P1M"),
	// 					TermID: to.Ptr("gmz7xq9ge3py"),
	// 				},
	// 			},
	// 			User: &armarizeaiobservabilityeval.UserDetails{
	// 				FirstName: to.Ptr(""),
	// 				LastName: to.Ptr(""),
	// 				EmailAddress: to.Ptr("yashikajain@microsoft.com"),
	// 				Upn: to.Ptr("yashikajain@microsoft.com"),
	// 				PhoneNumber: to.Ptr("akbqdbs"),
	// 			},
	// 			PartnerProperties: &armarizeaiobservabilityeval.PartnerProperties{
	// 				Description: to.Ptr("this is a great description"),
	// 			},
	// 			ProvisioningState: to.Ptr(armarizeaiobservabilityeval.ResourceProvisioningStateSucceeded),
	// 			SingleSignOnProperties: &armarizeaiobservabilityeval.SingleSignOnPropertiesV2{
	// 				Type: to.Ptr(armarizeaiobservabilityeval.SingleSignOnTypeSaml),
	// 				State: to.Ptr(armarizeaiobservabilityeval.SingleSignOnStatesInitial),
	// 				EnterpriseAppID: to.Ptr("kqykskeuqffsslmpjryzggphhpeh"),
	// 				URL: to.Ptr("ihidsswbeahnsjjxxqntz"),
	// 				AADDomains: []*string{
	// 					to.Ptr("tyjdvljasl"),
	// 				},
	// 			},
	// 		},
	// 		Identity: &armarizeaiobservabilityeval.ManagedServiceIdentity{
	// 			Type: to.Ptr(armarizeaiobservabilityeval.ManagedServiceIdentityTypeNone),
	// 			UserAssignedIdentities: map[string]*armarizeaiobservabilityeval.UserAssignedIdentity{
	// 			},
	// 			PrincipalID: to.Ptr("38fdf748-d66d-4344-ac76-ab1ebd9441fc"),
	// 			TenantID: to.Ptr("888d76fa-54b2-4ced-8ee5-aac1585adee7"),
	// 		},
	// 		Tags: map[string]*string{
	// 		},
	// 		Location: to.Ptr("East US"),
	// 		ID: to.Ptr("/subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/yashika-rg-arize/providers/ArizeAi.ObservabilityEval/Organizations/test-org-1"),
	// 		Name: to.Ptr("btywhrchehozcpizfrv"),
	// 		Type: to.Ptr("ymstff"),
	// 		SystemData: &armarizeaiobservabilityeval.SystemData{
	// 			CreatedBy: to.Ptr("ihyykvakpoaltuuwuwgx"),
	// 			CreatedByType: to.Ptr(armarizeaiobservabilityeval.CreatedByTypeUser),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-29T03:21:12.627Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("mdkcrvmimq"),
	// 			LastModifiedByType: to.Ptr(armarizeaiobservabilityeval.CreatedByTypeUser),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-10-29T03:21:12.627Z"); return t}()),
	// 		},
	// 	},
	// }
}
