// This is an automatically generated code sample.
// To make this code sample work in your Oracle Cloud tenancy,
// please replace the values for any parameters whose current values do not fit
// your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
// boolean, number, and enum parameters with values not fitting your use case).

package main

import (
	"context"
	"fmt"

	"github.com/oracle/oci-go-sdk/v65/common"
	"github.com/oracle/oci-go-sdk/v65/example/helpers"
	"github.com/oracle/oci-go-sdk/v65/identitydomains"
)

func ExamplePutApp() {
	// Create a default authentication provider that uses the DEFAULT
	// profile in the configuration file.
	// Refer to <see href="https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File>the public documentation</see> on how to prepare a configuration file.
	client, err := identitydomains.NewIdentityDomainsClientWithConfigurationProvider(common.DefaultConfigProvider(), "specificEndpoint")
	helpers.FatalIfError(err)

	// Create a request and dependent object(s).
	var x509Base64Certificate interface{}
	x509Base64Certificate = "EXAMPLE-x509Base64Certificate-Value"
	var tagSlug interface{}
	tagSlug = "EXAMPLE-tagSlug-Value"
	req := identitydomains.PutAppRequest{AttributeSets: []identitydomains.AttributeSetsEnum{identitydomains.AttributeSetsRequest},
		Attributes:                common.String("EXAMPLE-attributes-Value"),
		Authorization:             common.String("EXAMPLE-authorization-Value"),
		IfMatch:                   common.String("EXAMPLE-ifMatch-Value"),
		OpcRetryToken:             common.String("EXAMPLE-opcRetryToken-Value"),
		ResourceTypeSchemaVersion: common.String("EXAMPLE-resourceTypeSchemaVersion-Value"),
		App: identitydomains.App{IsWebTierPolicy: common.Bool(true),
			AppSignonPolicy: &identitydomains.AppAppSignonPolicy{Ref: common.String("EXAMPLE-$ref-Value"),
				Value: common.String("EXAMPLE-value-Value")},
			Id:                     common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value"),
			IsFormFill:             common.Bool(false),
			IsMulticloudServiceApp: common.Bool(false),
			Migrated:               common.Bool(true),
			UrnIetfParamsScimSchemasOracleIdcsExtensionKerberosRealmApp: &identitydomains.AppExtensionKerberosRealmApp{SupportedEncryptionSaltTypes: []string{"EXAMPLE--Value"},
				TicketFlags:               common.Int(735),
				DefaultEncryptionSaltType: common.String("EXAMPLE-defaultEncryptionSaltType-Value"),
				MasterKey:                 common.String("EXAMPLE-masterKey-Value"),
				MaxRenewableAge:           common.Int(905),
				MaxTicketLife:             common.Int(204),
				RealmName:                 common.String("EXAMPLE-realmName-Value")},
			Accounts: []identitydomains.AppAccounts{identitydomains.AppAccounts{Ref: common.String("EXAMPLE-$ref-Value"),
				Active:  common.Bool(false),
				Name:    common.String("EXAMPLE-name-Value"),
				OwnerId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-ownerId-Value"),
				Value:   common.String("EXAMPLE-value-Value")}},
			IdcsLastUpgradedInRelease: common.String("EXAMPLE-idcsLastUpgradedInRelease-Value"),
			Scopes: []identitydomains.AppScopes{identitydomains.AppScopes{Description: common.String("EXAMPLE-description-Value"),
				DisplayName:     common.String("EXAMPLE-displayName-Value"),
				Fqs:             common.String("EXAMPLE-fqs-Value"),
				ReadOnly:        common.Bool(true),
				RequiresConsent: common.Bool(false),
				Value:           common.String("EXAMPLE-value-Value")}},
			AppThumbnail: common.String("EXAMPLE-appThumbnail-Value"),
			CloudControlProperties: []identitydomains.AppCloudControlProperties{identitydomains.AppCloudControlProperties{Values: []string{"EXAMPLE--Value"},
				Name: common.String("EXAMPLE-name-Value")}},
			Icon: common.String("EXAMPLE-icon-Value"),
			RadiusPolicy: &identitydomains.AppRadiusPolicy{Ref: common.String("EXAMPLE-$ref-Value"),
				Value: common.String("EXAMPLE-value-Value")},
			LandingPageUrl:     common.String("EXAMPLE-landingPageUrl-Value"),
			Active:             common.Bool(false),
			LinkingCallbackUrl: common.String("EXAMPLE-linkingCallbackUrl-Value"),
			ProductName:        common.String("EXAMPLE-productName-Value"),
			AppsNetworkPerimeters: []identitydomains.AppAppsNetworkPerimeters{identitydomains.AppAppsNetworkPerimeters{Ref: common.String("EXAMPLE-$ref-Value"),
				Value: common.String("EXAMPLE-value-Value")}},
			IsMobileTarget: common.Bool(true),
			Name:           common.String("EXAMPLE-name-Value"),
			UrnIetfParamsScimSchemasOracleIdcsExtensionDbcsApp: &identitydomains.AppExtensionDbcsApp{DomainApp: &identitydomains.AppDomainApp{Ref: common.String("EXAMPLE-$ref-Value"),
				Display: common.String("EXAMPLE-display-Value"),
				Value:   common.String("EXAMPLE-value-Value")},
				DomainName: common.String("EXAMPLE-domainName-Value")},
			UrnIetfParamsScimSchemasOracleIdcsExtensionSamlServiceProviderApp: &identitydomains.AppExtensionSamlServiceProviderApp{EncryptAssertion: common.Bool(false),
				HokAcsUrl:                     common.String("EXAMPLE-hokAcsUrl-Value"),
				IncludeSigningCertInSignature: common.Bool(true),
				LogoutBinding:                 identitydomains.AppExtensionSamlServiceProviderAppLogoutBindingRedirect,
				LogoutEnabled:                 common.Bool(false),
				Metadata:                      common.String("EXAMPLE-metadata-Value"),
				NameIdUserstoreAttribute:      common.String("EXAMPLE-nameIdUserstoreAttribute-Value"),
				SigningCertificate:            common.String("EXAMPLE-signingCertificate-Value"),
				EncryptionAlgorithm:           identitydomains.AppExtensionSamlServiceProviderAppEncryptionAlgorithmAes128,
				FederationProtocol:            identitydomains.AppExtensionSamlServiceProviderAppFederationProtocolWsFed11,
				KeyEncryptionAlgorithm:        identitydomains.AppExtensionSamlServiceProviderAppKeyEncryptionAlgorithmV15,
				NameIdFormat:                  common.String("EXAMPLE-nameIdFormat-Value"),
				SignatureHashAlgorithm:        identitydomains.AppExtensionSamlServiceProviderAppSignatureHashAlgorithm256,
				SuccinctId:                    common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-succinctId-Value"),
				UserAssertionAttributes: []identitydomains.AppUserAssertionAttributes{identitydomains.AppUserAssertionAttributes{Format: common.String("EXAMPLE-format-Value"),
					Name:                   common.String("EXAMPLE-name-Value"),
					UserStoreAttributeName: common.String("EXAMPLE-userStoreAttributeName-Value")}},
				GroupAssertionAttributes: []identitydomains.AppGroupAssertionAttributes{identitydomains.AppGroupAssertionAttributes{Condition: common.String("EXAMPLE-condition-Value"),
					Format:    common.String("EXAMPLE-format-Value"),
					GroupName: common.String("EXAMPLE-groupName-Value"),
					Name:      common.String("EXAMPLE-name-Value")}},
				HokRequired:              common.Bool(true),
				LastNotificationSentTime: common.String("EXAMPLE-lastNotificationSentTime-Value"),
				LogoutResponseUrl:        common.String("EXAMPLE-logoutResponseUrl-Value"),
				PartnerProviderId:        common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-partnerProviderId-Value"),
				TenantProviderId:         common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-tenantProviderId-Value"),
				AssertionConsumerUrl:     common.String("EXAMPLE-assertionConsumerUrl-Value"),
				EncryptionCertificate:    common.String("EXAMPLE-encryptionCertificate-Value"),
				LogoutRequestUrl:         common.String("EXAMPLE-logoutRequestUrl-Value"),
				OutboundAssertionAttributes: &identitydomains.AppOutboundAssertionAttributes{Value: common.String("EXAMPLE-value-Value"),
					Ref:       common.String("EXAMPLE-$ref-Value"),
					Direction: common.String("EXAMPLE-direction-Value")},
				PartnerProviderPattern:  common.String("EXAMPLE-partnerProviderPattern-Value"),
				SignResponseOrAssertion: identitydomains.AppExtensionSamlServiceProviderAppSignResponseOrAssertionAssertionandresponse},
			IsAliasApp: common.Bool(true),
			UrnIetfParamsScimSchemasOracleIdcsExtensionFormFillAppApp: &identitydomains.AppExtensionFormFillAppApp{Configuration: common.String("EXAMPLE-configuration-Value"),
				FormCredMethod:               identitydomains.AppExtensionFormFillAppAppFormCredMethodAdminSetsSharedCredentials,
				FormCredentialSharingGroupID: common.String("EXAMPLE-formCredentialSharingGroupID-Value"),
				FormType:                     identitydomains.AppExtensionFormFillAppAppFormTypeWebapplication,
				RevealPasswordOnForm:         common.Bool(true),
				UserNameFormExpression:       common.String("EXAMPLE-userNameFormExpression-Value"),
				FormFillUrlMatch: []identitydomains.AppFormFillUrlMatch{identitydomains.AppFormFillUrlMatch{FormUrlMatchType: common.String("EXAMPLE-formUrlMatchType-Value"),
					FormUrl: common.String("EXAMPLE-formUrl-Value")}},
				SyncFromTemplate:     common.Bool(true),
				UserNameFormTemplate: common.String("EXAMPLE-userNameFormTemplate-Value")},
			BypassConsent: common.Bool(false),
			DisplayName:   common.String("EXAMPLE-displayName-Value"),
			GrantedAppRoles: []identitydomains.AppGrantedAppRoles{identitydomains.AppGrantedAppRoles{AdminRole: common.Bool(true),
				AppId:           common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-appId-Value"),
				LegacyGroupName: common.String("EXAMPLE-legacyGroupName-Value"),
				ReadOnly:        common.Bool(false),
				Value:           common.String("EXAMPLE-value-Value"),
				AppName:         common.String("EXAMPLE-appName-Value"),
				Display:         common.String("EXAMPLE-display-Value"),
				Type:            identitydomains.AppGrantedAppRolesTypeDirect,
				Ref:             common.String("EXAMPLE-$ref-Value")}},
			HomePageUrl:  common.String("EXAMPLE-homePageUrl-Value"),
			LoginPageUrl: common.String("EXAMPLE-loginPageUrl-Value"),
			AdminRoles: []identitydomains.AppAdminRoles{identitydomains.AppAdminRoles{Ref: common.String("EXAMPLE-$ref-Value"),
				Description: common.String("EXAMPLE-description-Value"),
				Display:     common.String("EXAMPLE-display-Value"),
				Value:       common.String("EXAMPLE-value-Value")}},
			AttrRenderingMetadata: []identitydomains.AppAttrRenderingMetadata{identitydomains.AppAttrRenderingMetadata{Label: common.String("EXAMPLE-label-Value"),
				MinLength: common.Int(787),
				ReadOnly:  common.Bool(false),
				MaxLength: common.Int(207),
				MinSize:   common.Int(900),
				Order:     common.Int(769),
				Regexp:    common.String("EXAMPLE-regexp-Value"),
				Section:   identitydomains.AppAttrRenderingMetadataSectionSaml,
				MaxSize:   common.Int(413),
				Name:      common.String("EXAMPLE-name-Value"),
				Datatype:  common.String("EXAMPLE-datatype-Value"),
				Helptext:  common.String("EXAMPLE-helptext-Value"),
				Required:  common.Bool(true),
				Visible:   common.Bool(true),
				Widget:    identitydomains.AppAttrRenderingMetadataWidgetInputtext}},
			Audience: common.String("EXAMPLE-audience-Value"),
			IdentityProviders: []identitydomains.AppIdentityProviders{identitydomains.AppIdentityProviders{Display: common.String("EXAMPLE-display-Value"),
				Value: common.String("EXAMPLE-value-Value"),
				Ref:   common.String("EXAMPLE-$ref-Value")}},
			LogoutUri:      common.String("EXAMPLE-logoutUri-Value"),
			ProductLogoUrl: common.String("EXAMPLE-productLogoUrl-Value"),
			UrnIetfParamsScimSchemasOracleIdcsExtensionEnterpriseAppApp: &identitydomains.AppExtensionEnterpriseAppApp{AllowAuthzDecisionTTL: common.Int(409),
				AllowAuthzPolicy: &identitydomains.AppAllowAuthzPolicy{Ref: common.String("EXAMPLE-$ref-Value"),
					Value: common.String("EXAMPLE-value-Value")},
				AppResources: []identitydomains.AppAppResources{identitydomains.AppAppResources{Ref: common.String("EXAMPLE-$ref-Value"),
					Value: common.String("EXAMPLE-value-Value")}},
				DenyAuthzDecisionTTL: common.Int(886),
				DenyAuthzPolicy: &identitydomains.AppDenyAuthzPolicy{Ref: common.String("EXAMPLE-$ref-Value"),
					Value: common.String("EXAMPLE-value-Value")}},
			UrnIetfParamsScimSchemasOracleIdcsExtensionRequestableApp: &identitydomains.AppExtensionRequestableApp{Requestable: common.Bool(false)},
			DisableKmsiTokenAuthentication:                            common.Bool(false),
			Grants: []identitydomains.AppGrants{identitydomains.AppGrants{GranteeType: identitydomains.AppGrantsGranteeTypeGroup,
				Value:          common.String("EXAMPLE-value-Value"),
				Ref:            common.String("EXAMPLE-$ref-Value"),
				GrantMechanism: identitydomains.AppGrantsGrantMechanismGroupMembership,
				GranteeId:      common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-granteeId-Value")}},
			Ocid:               common.String("EXAMPLE-ocid-Value"),
			SecondaryAudiences: []string{"EXAMPLE--Value"},
			UrnIetfParamsScimSchemasOracleIdcsExtensionMulticloudServiceAppApp: &identitydomains.AppExtensionMulticloudServiceAppApp{MulticloudPlatformUrl: common.String("EXAMPLE-multicloudPlatformUrl-Value"),
				MulticloudServiceType: identitydomains.AppExtensionMulticloudServiceAppAppMulticloudServiceTypeAwscognito},
			ClientIPChecking: identitydomains.AppClientIPCheckingAnywhere,
			ErrorPageUrl:     common.String("EXAMPLE-errorPageUrl-Value"),
			IsOPCService:     common.Bool(true),
			IsRadiusApp:      common.Bool(true),
			UrnIetfParamsScimSchemasOracleIdcsExtensionWebTierPolicyApp: &identitydomains.AppExtensionWebTierPolicyApp{WebTierPolicyAZControl: identitydomains.AppExtensionWebTierPolicyAppWebTierPolicyAZControlServer,
				WebTierPolicyJson: common.String("EXAMPLE-webTierPolicyJson-Value"),
				ResourceRef:       common.Bool(false)},
			IsSamlServiceProvider: common.Bool(false),
			RedirectUris:          []string{"EXAMPLE--Value"},
			TermsOfServiceUrl:     common.String("EXAMPLE-termsOfServiceUrl-Value"),
			LoginMechanism:        identitydomains.AppLoginMechanismFormfill,
			IsKerberosRealm:       common.Bool(true),
			ServiceTypeURN:        common.String("EXAMPLE-serviceTypeURN-Value"),
			SignonPolicy: &identitydomains.AppSignonPolicy{Ref: common.String("EXAMPLE-$ref-Value"),
				Value: common.String("EXAMPLE-value-Value")},
			TrustScope:             identitydomains.AppTrustScopeTags,
			HashedClientSecret:     common.String("EXAMPLE-hashedClientSecret-Value"),
			Infrastructure:         common.Bool(false),
			PostLogoutRedirectUris: []string{"EXAMPLE--Value"},
			TenancyOcid:            common.String("EXAMPLE-tenancyOcid-Value"),
			AccessTokenExpiry:      common.Int(503),
			IdTokenEncAlgo:         common.String("EXAMPLE-idTokenEncAlgo-Value"),
			ReadyToUpgrade:         common.Bool(false),
			UrnIetfParamsScimSchemasOracleIdcsExtensionFormFillAppTemplateAppTemplate: &identitydomains.AppExtensionFormFillAppTemplateAppTemplate{FormCredMethod: identitydomains.AppExtensionFormFillAppTemplateAppTemplateFormCredMethodAdminSetsCredentials,
				FormFillUrlMatch: []identitydomains.AppFormFillUrlMatch{identitydomains.AppFormFillUrlMatch{FormUrlMatchType: common.String("EXAMPLE-formUrlMatchType-Value"),
					FormUrl: common.String("EXAMPLE-formUrl-Value")}},
				FormType:                     identitydomains.AppExtensionFormFillAppTemplateAppTemplateFormTypeWebapplication,
				UserNameFormExpression:       common.String("EXAMPLE-userNameFormExpression-Value"),
				FormCredentialSharingGroupID: common.String("EXAMPLE-formCredentialSharingGroupID-Value"),
				RevealPasswordOnForm:         common.Bool(false),
				SyncFromTemplate:             common.Bool(false),
				UserNameFormTemplate:         common.String("EXAMPLE-userNameFormTemplate-Value"),
				Configuration:                common.String("EXAMPLE-configuration-Value")},
			ClientType:           identitydomains.AppClientTypeTrusted,
			AppIcon:              common.String("EXAMPLE-appIcon-Value"),
			AllUrlSchemesAllowed: common.Bool(false),
			AllowOffline:         common.Bool(false),
			Description:          common.String("EXAMPLE-description-Value"),
			IsDatabaseService:    common.Bool(true),
			IsOAuthResource:      common.Bool(true),
			UserRoles: []identitydomains.AppUserRoles{identitydomains.AppUserRoles{Display: common.String("EXAMPLE-display-Value"),
				Value:       common.String("EXAMPLE-value-Value"),
				Ref:         common.String("EXAMPLE-$ref-Value"),
				Description: common.String("EXAMPLE-description-Value")}},
			DelegatedServiceNames: []string{"EXAMPLE--Value"},
			PrivacyPolicyUrl:      common.String("EXAMPLE-privacyPolicyUrl-Value"),
			UrnIetfParamsScimSchemasOracleIdcsExtensionManagedappApp: &identitydomains.AppExtensionManagedappApp{AdminConsentGranted: common.Bool(true),
				IsAuthoritative:           common.Bool(false),
				IsOnPremiseApp:            common.Bool(true),
				IsThreeLeggedOAuthEnabled: common.Bool(true),
				SyncConfigLastModified:    common.String("EXAMPLE-syncConfigLastModified-Value"),
				ThreeLeggedOAuthCredential: &identitydomains.AppThreeLeggedOAuthCredential{AccessToken: common.String("EXAMPLE-accessToken-Value"),
					AccessTokenExpiry: common.String("EXAMPLE-accessTokenExpiry-Value"),
					RefreshToken:      common.String("EXAMPLE-refreshToken-Value")},
				ThreeLeggedOAuthProviderName: common.String("EXAMPLE-threeLeggedOAuthProviderName-Value"),
				BundleConfigurationProperties: []identitydomains.AppBundleConfigurationProperties{identitydomains.AppBundleConfigurationProperties{Value: []string{"EXAMPLE--Value"},
					Confidential: common.Bool(true),
					DisplayName:  common.String("EXAMPLE-displayName-Value"),
					HelpMessage:  common.String("EXAMPLE-helpMessage-Value"),
					IcfType:      identitydomains.AppBundleConfigurationPropertiesIcfTypeFloat,
					Name:         common.String("EXAMPLE-name-Value"),
					Order:        common.Int(467),
					Required:     common.Bool(true)}},
				CanBeAuthoritative: common.Bool(true),
				Connected:          common.Bool(true),
				FlatFileBundleConfigurationProperties: []identitydomains.AppFlatFileBundleConfigurationProperties{identitydomains.AppFlatFileBundleConfigurationProperties{Required: common.Bool(false),
					Value:        []string{"EXAMPLE--Value"},
					Confidential: common.Bool(true),
					DisplayName:  common.String("EXAMPLE-displayName-Value"),
					HelpMessage:  common.String("EXAMPLE-helpMessage-Value"),
					IcfType:      identitydomains.AppFlatFileBundleConfigurationPropertiesIcfTypeArrayofstring,
					Name:         common.String("EXAMPLE-name-Value"),
					Order:        common.Int(463)}},
				FlatFileConnectorBundle: &identitydomains.AppFlatFileConnectorBundle{WellKnownId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-wellKnownId-Value"),
					Ref:     common.String("EXAMPLE-$ref-Value"),
					Display: common.String("EXAMPLE-display-Value"),
					Value:   common.String("EXAMPLE-value-Value")},
				IdentityBridges: []identitydomains.AppIdentityBridges{identitydomains.AppIdentityBridges{Name: common.String("EXAMPLE-name-Value"),
					Value: common.String("EXAMPLE-value-Value"),
					Ref:   common.String("EXAMPLE-$ref-Value")}},
				IsDirectory: common.Bool(false),
				ObjectClasses: []identitydomains.AppObjectClasses{identitydomains.AppObjectClasses{IsAccountObjectClass: common.Bool(false),
					ResourceType: common.String("EXAMPLE-resourceType-Value"),
					Type:         identitydomains.AppObjectClassesTypeManagedobjectclass,
					Value:        common.String("EXAMPLE-value-Value"),
					Ref:          common.String("EXAMPLE-$ref-Value"),
					Display:      common.String("EXAMPLE-display-Value")}},
				AccountFormVisible: common.Bool(true),
				BundlePoolConfiguration: &identitydomains.AppBundlePoolConfiguration{MaxIdle: common.Int(906),
					MaxObjects:                 common.Int(114),
					MaxWait:                    common.Int(602),
					MinEvictableIdleTimeMillis: common.Int(68),
					MinIdle:                    common.Int(816)},
				ConnectorBundle: &identitydomains.AppConnectorBundle{Ref: common.String("EXAMPLE-$ref-Value"),
					Display:     common.String("EXAMPLE-display-Value"),
					Type:        identitydomains.AppConnectorBundleTypeConnectorbundle,
					Value:       common.String("EXAMPLE-value-Value"),
					WellKnownId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-wellKnownId-Value")},
				EnableAuthSyncNewUserNotification:   common.Bool(true),
				EnableSync:                          common.Bool(true),
				IsSchemaCustomizationSupported:      common.Bool(true),
				IsSchemaDiscoverySupported:          common.Bool(true),
				IsTwoLeggedOAuthEnabled:             common.Bool(true),
				EnableSyncSummaryReportNotification: common.Bool(false)},
			AliasApps: []identitydomains.AppAliasApps{identitydomains.AppAliasApps{Ref: common.String("EXAMPLE-$ref-Value"),
				Description: common.String("EXAMPLE-description-Value"),
				Display:     common.String("EXAMPLE-display-Value"),
				Value:       common.String("EXAMPLE-value-Value")}},
			ClientSecret: common.String("EXAMPLE-clientSecret-Value"),
			ShowInMyApps: common.Bool(false),
			UrnIetfParamsScimSchemasOracleIdcsExtensionRadiusAppApp: &identitydomains.AppExtensionRadiusAppApp{TypeOfRadiusApp: common.String("EXAMPLE-typeOfRadiusApp-Value"),
				CountryCodeResponseAttributeId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-countryCodeResponseAttributeId-Value"),
				SecretKey:                      common.String("EXAMPLE-secretKey-Value"),
				ResponseFormatDelimiter:        common.String("EXAMPLE-responseFormatDelimiter-Value"),
				CaptureClientIp:                common.Bool(true),
				ClientIP:                       common.String("EXAMPLE-clientIP-Value"),
				GroupMembershipToReturn: []identitydomains.AppGroupMembershipToReturn{identitydomains.AppGroupMembershipToReturn{Ref: common.String("EXAMPLE-$ref-Value"),
					Display: common.String("EXAMPLE-display-Value"),
					Value:   common.String("EXAMPLE-value-Value")}},
				GroupNameFormat:                common.String("EXAMPLE-groupNameFormat-Value"),
				IncludeGroupInResponse:         common.Bool(true),
				Port:                           common.String("EXAMPLE-port-Value"),
				ResponseFormat:                 common.String("EXAMPLE-responseFormat-Value"),
				EndUserIPAttribute:             common.String("EXAMPLE-endUserIPAttribute-Value"),
				GroupMembershipRadiusAttribute: common.String("EXAMPLE-groupMembershipRadiusAttribute-Value"),
				PasswordAndOtpTogether:         common.Bool(true),
				RadiusVendorSpecificId:         common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-radiusVendorSpecificId-Value"),
				SecretKeyTemporary:             common.String("EXAMPLE-secretKeyTemporary-Value")},
			AllowedOperations: []identitydomains.AppAllowedOperationsEnum{identitydomains.AppAllowedOperationsOnbehalfofuser},
			Certificates: []identitydomains.AppCertificates{identitydomains.AppCertificates{CertAlias: common.String("EXAMPLE-certAlias-Value"),
				Kid:                   common.String("EXAMPLE-kid-Value"),
				Sha1Thumbprint:        common.String("EXAMPLE-sha1Thumbprint-Value"),
				X509Base64Certificate: &x509Base64Certificate,
				X5t:                   common.String("EXAMPLE-x5t-Value")}},
			IsOAuthClient: common.Bool(false),
			ServiceParams: []identitydomains.AppServiceParams{identitydomains.AppServiceParams{Name: common.String("EXAMPLE-name-Value"),
				Value: common.String("EXAMPLE-value-Value")}},
			TrustPolicies: []identitydomains.AppTrustPolicies{identitydomains.AppTrustPolicies{Value: common.String("EXAMPLE-value-Value"),
				Ref: common.String("EXAMPLE-$ref-Value")}},
			UrnIetfParamsScimSchemasOracleIdcsExtensionOpcServiceApp: &identitydomains.AppExtensionOpcServiceApp{EnablingNextFedSyncModes: common.Bool(true),
				NextFederationMode:         identitydomains.AppExtensionOpcServiceAppNextFederationModeAppasidentityprovider,
				NextSynchronizationMode:    identitydomains.AppExtensionOpcServiceAppNextSynchronizationModeNone,
				Region:                     common.String("EXAMPLE-region-Value"),
				ServiceInstanceIdentifier:  common.String("EXAMPLE-serviceInstanceIdentifier-Value"),
				CurrentFederationMode:      identitydomains.AppExtensionOpcServiceAppCurrentFederationModeNone,
				CurrentSynchronizationMode: identitydomains.AppExtensionOpcServiceAppCurrentSynchronizationModeNone},
			CallbackServiceUrl: common.String("EXAMPLE-callbackServiceUrl-Value"),
			AllowAccessControl: common.Bool(false),
			AllowedGrants:      []string{"EXAMPLE--Value"},
			AllowedScopes: []identitydomains.AppAllowedScopes{identitydomains.AppAllowedScopes{Fqs: common.String("EXAMPLE-fqs-Value"),
				IdOfDefiningApp: common.String("EXAMPLE-idOfDefiningApp-Value"),
				ReadOnly:        common.Bool(false)}},
			ContactEmailAddress: common.String("EXAMPLE-contactEmailAddress-Value"),
			DomainOcid:          common.String("EXAMPLE-domainOcid-Value"),
			EditableAttributes:  []identitydomains.AppEditableAttributes{identitydomains.AppEditableAttributes{Name: common.String("EXAMPLE-name-Value")}},
			IsLoginTarget:       common.Bool(true),
			Meta: &identitydomains.Meta{ResourceType: common.String("EXAMPLE-resourceType-Value"),
				Version:      common.String("EXAMPLE-version-Value"),
				Created:      common.String("EXAMPLE-created-Value"),
				LastModified: common.String("EXAMPLE-lastModified-Value"),
				Location:     common.String("EXAMPLE-location-Value")},
			ProtectableSecondaryAudiences: []identitydomains.AppProtectableSecondaryAudiences{identitydomains.AppProtectableSecondaryAudiences{ReadOnly: common.Bool(true),
				Value: common.String("EXAMPLE-value-Value")}},
			ServiceTypeVersion: common.String("EXAMPLE-serviceTypeVersion-Value"),
			RefreshTokenExpiry: common.Int(599),
			SamlServiceProvider: &identitydomains.AppSamlServiceProvider{Ref: common.String("EXAMPLE-$ref-Value"),
				Value: common.String("EXAMPLE-value-Value")},
			IdcsCreatedBy: &identitydomains.IdcsCreatedBy{Ocid: common.String("EXAMPLE-ocid-Value"),
				Type:    identitydomains.IdcsCreatedByTypeApp,
				Value:   common.String("EXAMPLE-value-Value"),
				Ref:     common.String("EXAMPLE-$ref-Value"),
				Display: common.String("EXAMPLE-display-Value")},
			IsEnterpriseApp:     common.Bool(true),
			IsObligationCapable: common.Bool(false),
			LogoutPageUrl:       common.String("EXAMPLE-logoutPageUrl-Value"),
			Schemas:             []string{"EXAMPLE--Value"},
			TermsOfUse: &identitydomains.AppTermsOfUse{Ref: common.String("EXAMPLE-$ref-Value"),
				Name:  common.String("EXAMPLE-name-Value"),
				Value: common.String("EXAMPLE-value-Value")},
			IdcsPreventedOperations: []identitydomains.IdcsPreventedOperationsEnum{identitydomains.IdcsPreventedOperationsReplace},
			IsManagedApp:            common.Bool(true),
			MeterAsOPCService:       common.Bool(false),
			BasedOnTemplate: &identitydomains.AppBasedOnTemplate{Ref: common.String("EXAMPLE-$ref-Value"),
				LastModified: common.String("EXAMPLE-lastModified-Value"),
				Value:        common.String("EXAMPLE-value-Value"),
				WellKnownId:  common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-wellKnownId-Value")},
			IdpPolicy: &identitydomains.AppIdpPolicy{Ref: common.String("EXAMPLE-$ref-Value"),
				Value: common.String("EXAMPLE-value-Value")},
			IsUnmanagedApp: common.Bool(false),
			AllowedTags: []identitydomains.AppAllowedTags{identitydomains.AppAllowedTags{ReadOnly: common.Bool(true),
				Value: common.String("EXAMPLE-value-Value"),
				Key:   common.String("EXAMPLE-key-Value")}},
			UrnIetfParamsScimSchemasOracleIdcsExtensionOciTags: &identitydomains.ExtensionOciTags{DefinedTags: []identitydomains.DefinedTags{identitydomains.DefinedTags{Key: common.String("EXAMPLE-key-Value"),
				Namespace: common.String("EXAMPLE-namespace-Value"),
				Value:     common.String("EXAMPLE-value-Value")}},
				FreeformTags: []identitydomains.FreeformTags{identitydomains.FreeformTags{Key: common.String("EXAMPLE-key-Value"),
					Value: common.String("EXAMPLE-value-Value")}},
				TagSlug: &tagSlug},
			IdcsLastModifiedBy: &identitydomains.IdcsLastModifiedBy{Ref: common.String("EXAMPLE-$ref-Value"),
				Display: common.String("EXAMPLE-display-Value"),
				Ocid:    common.String("EXAMPLE-ocid-Value"),
				Type:    identitydomains.IdcsLastModifiedByTypeApp,
				Value:   common.String("EXAMPLE-value-Value")},
			Tags: []identitydomains.Tags{identitydomains.Tags{Value: common.String("EXAMPLE-value-Value"),
				Key: common.String("EXAMPLE-key-Value")}},
			CompartmentOcid: common.String("EXAMPLE-compartmentOcid-Value"),
			AsOPCService: &identitydomains.AppAsOpcService{Value: common.String("EXAMPLE-value-Value"),
				Ref: common.String("EXAMPLE-$ref-Value")},
			DeleteInProgress: common.Bool(true)},
		AppId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-appId-Value")}

	// Send the request using the service client
	resp, err := client.PutApp(context.Background(), req)
	helpers.FatalIfError(err)

	// Retrieve value from the response.
	fmt.Println(resp)
}