// 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{IfMatch: common.String("EXAMPLE-ifMatch-Value"),
OpcRequestId: common.String("NE9S1BZFOF9G0K37ZFFA<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(true),
PostInstallationActions: &jms.PostInstallationActionSettings{DisabledTlsVersions: []jms.TlsVersionsEnum{jms.TlsVersionsTls10,
jms.TlsVersionsTls11},
GlobalLoggingLevel: jms.GlobalLoggingLevelFiner,
MinimumKeySizeSettings: &jms.MinimumKeySizeSettings{Certpath: []jms.KeySizeAlgorithm{jms.KeySizeAlgorithm{KeySize: common.Int(660),
Name: jms.AlgorithmsDsa}},
Jar: []jms.KeySizeAlgorithm{jms.KeySizeAlgorithm{Name: jms.AlgorithmsEc,
KeySize: common.Int(35)}},
Tls: []jms.KeySizeAlgorithm{jms.KeySizeAlgorithm{KeySize: common.Int(989),
Name: jms.AlgorithmsEc}}},
Proxies: &jms.Proxies{FtpProxyHost: common.String("EXAMPLE-ftpProxyHost-Value"),
FtpProxyPort: common.Int(30483),
HttpProxyPort: common.Int(49576),
HttpsProxyHost: common.String("EXAMPLE-httpsProxyHost-Value"),
HttpsProxyPort: common.Int(41145),
UseSystemProxies: common.Bool(true),
HttpProxyHost: common.String("EXAMPLE-httpProxyHost-Value"),
SocksProxyHost: common.String("EXAMPLE-socksProxyHost-Value"),
SocksProxyPort: common.Int(17474)},
ShouldReplaceCertificatesOperatingSystem: common.Bool(true),
AddLoggingHandler: common.Bool(true)}},
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")}}},
FleetId: common.String("ocid1.test.oc1..<unique_ID>EXAMPLE-fleetId-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)
}