@@ -271,23 +271,23 @@ type OracleClients struct {
271271 virtualNetworkClient * oci_core.VirtualNetworkClient
272272}
273273
274- func (m * OracleClients ) KmsManagementClient (endpoint string ) (* oci_kms.KmsManagementClient , error ) {
275- if managementClient , err := oci_kms .NewKmsManagementClientWithConfigurationProvider (* m .kmsManagementClient .ConfigurationProvider (), endpoint ); err == nil {
276- if err = configureClient (& managementClient .BaseClient ); err != nil {
274+ func (m * OracleClients ) KmsCryptoClient (endpoint string ) (* oci_kms.KmsCryptoClient , error ) {
275+ if client , err := oci_kms .NewKmsCryptoClientWithConfigurationProvider (* m .kmsCryptoClient .ConfigurationProvider (), endpoint ); err == nil {
276+ if err = configureClient (& client .BaseClient ); err != nil {
277277 return nil , err
278278 }
279- return & managementClient , nil
279+ return & client , nil
280280 } else {
281281 return nil , err
282282 }
283283}
284284
285- func (m * OracleClients ) KmsCryptoClient (endpoint string ) (* oci_kms.KmsCryptoClient , error ) {
286- if cryptoClient , err := oci_kms .NewKmsCryptoClientWithConfigurationProvider (* m .kmsCryptoClient .ConfigurationProvider (), endpoint ); err == nil {
287- if err = configureClient (& cryptoClient .BaseClient ); err != nil {
285+ func (m * OracleClients ) KmsManagementClient (endpoint string ) (* oci_kms.KmsManagementClient , error ) {
286+ if client , err := oci_kms .NewKmsManagementClientWithConfigurationProvider (* m .kmsManagementClient .ConfigurationProvider (), endpoint ); err == nil {
287+ if err = configureClient (& client .BaseClient ); err != nil {
288288 return nil , err
289289 }
290- return & cryptoClient , nil
290+ return & client , nil
291291 } else {
292292 return nil , err
293293 }
0 commit comments