// 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/jms"
)
func ExampleUpdateFleetAdvancedFeatureConfiguration() {
// 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 := jms.NewJavaManagementServiceClientWithConfigurationProvider(common.DefaultConfigProvider())
helpers.FatalIfError(err)
// Create a request and dependent object(s).
req := jms.UpdateFleetAdvancedFeatureConfigurationRequest{FleetId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-fleetId-Value"),
IfMatch: common.String("EXAMPLE-ifMatch-Value"),
OpcRequestId: common.String("TEZL42TJ1ZPQGKSFAVPV<unique_ID>"),
OpcRetryToken: common.String("EXAMPLE-opcRetryToken-Value"),
UpdateFleetAdvancedFeatureConfigurationDetails: jms.UpdateFleetAdvancedFeatureConfigurationDetails{PerformanceTuningAnalysis: &jms.PerformanceTuningAnalysis{IsEnabled: common.Bool(true)},
AdvancedUsageTracking: &jms.AdvancedUsageTracking{IsEnabled: common.Bool(true)},
AnalyticBucketName: common.String("EXAMPLE-analyticBucketName-Value"),
AnalyticNamespace: common.String("EXAMPLE-analyticNamespace-Value"),
CryptoEventAnalysis: &jms.CryptoEventAnalysis{SummarizedEventsLog: &jms.SummarizedEventsLog{LogGroupId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-logGroupId-Value"),
LogId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-logId-Value")},
IsEnabled: common.Bool(true)},
JavaMigrationAnalysis: &jms.JavaMigrationAnalysis{IsEnabled: common.Bool(true)},
JfrRecording: &jms.JfrRecording{IsEnabled: common.Bool(true)},
Lcm: &jms.Lcm{PostInstallationActions: &jms.PostInstallationActionSettings{AddLoggingHandler: common.Bool(false),
DisabledTlsVersions: []jms.TlsVersionsEnum{jms.TlsVersionsTls10,
jms.TlsVersionsTls11},
GlobalLoggingLevel: jms.GlobalLoggingLevelFinest,
MinimumKeySizeSettings: &jms.MinimumKeySizeSettings{Certpath: []jms.KeySizeAlgorithm{jms.KeySizeAlgorithm{KeySize: common.Int(346),
Name: jms.AlgorithmsDsa}},
Jar: []jms.KeySizeAlgorithm{jms.KeySizeAlgorithm{KeySize: common.Int(19),
Name: jms.AlgorithmsRsa}},
Tls: []jms.KeySizeAlgorithm{jms.KeySizeAlgorithm{KeySize: common.Int(903),
Name: jms.AlgorithmsRsa}}},
Proxies: &jms.Proxies{FtpProxyPort: common.Int(29576),
HttpProxyPort: common.Int(63628),
HttpsProxyHost: common.String("EXAMPLE-httpsProxyHost-Value"),
HttpsProxyPort: common.Int(63098),
SocksProxyPort: common.Int(10951),
UseSystemProxies: common.Bool(false),
FtpProxyHost: common.String("EXAMPLE-ftpProxyHost-Value"),
HttpProxyHost: common.String("EXAMPLE-httpProxyHost-Value"),
SocksProxyHost: common.String("EXAMPLE-socksProxyHost-Value")},
ShouldReplaceCertificatesOperatingSystem: common.Bool(false)},
IsEnabled: common.Bool(true)}}}
// Send the request using the service client
resp, err := client.UpdateFleetAdvancedFeatureConfiguration(context.Background(), req)
helpers.FatalIfError(err)
// Retrieve value from the response.
fmt.Println(resp)
}