// 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("KA5YXRBJHGDOWA3EK2XN<unique_ID>"),
OpcRetryToken: common.String("EXAMPLE-opcRetryToken-Value"),
UpdateFleetAdvancedFeatureConfigurationDetails: jms.UpdateFleetAdvancedFeatureConfigurationDetails{JavaMigrationAnalysis: &jms.JavaMigrationAnalysis{IsEnabled: common.Bool(true)},
JfrRecording: &jms.JfrRecording{IsEnabled: common.Bool(false)},
Lcm: &jms.Lcm{IsEnabled: common.Bool(false),
PostInstallationActions: &jms.PostInstallationActionSettings{DisabledTlsVersions: []jms.TlsVersionsEnum{jms.TlsVersionsTls10,
jms.TlsVersionsTls11},
GlobalLoggingLevel: jms.GlobalLoggingLevelFinest,
MinimumKeySizeSettings: &jms.MinimumKeySizeSettings{Jar: []jms.KeySizeAlgorithm{jms.KeySizeAlgorithm{KeySize: common.Int(717),
Name: jms.AlgorithmsDsa}},
Tls: []jms.KeySizeAlgorithm{jms.KeySizeAlgorithm{KeySize: common.Int(454),
Name: jms.AlgorithmsEc}},
Certpath: []jms.KeySizeAlgorithm{jms.KeySizeAlgorithm{KeySize: common.Int(683),
Name: jms.AlgorithmsRsa}}},
Proxies: &jms.Proxies{SocksProxyPort: common.Int(12311),
FtpProxyHost: common.String("EXAMPLE-ftpProxyHost-Value"),
FtpProxyPort: common.Int(58748),
HttpProxyHost: common.String("EXAMPLE-httpProxyHost-Value"),
HttpProxyPort: common.Int(11329),
SocksProxyHost: common.String("EXAMPLE-socksProxyHost-Value"),
HttpsProxyHost: common.String("EXAMPLE-httpsProxyHost-Value"),
HttpsProxyPort: common.Int(5298),
UseSystemProxies: common.Bool(false)},
ShouldReplaceCertificatesOperatingSystem: common.Bool(true),
AddLoggingHandler: common.Bool(false)}},
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{IsEnabled: common.Bool(true),
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")}}}}
// 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)
}