@@ -296,111 +296,3 @@ func (s *OsManagementHubSoftwareSourceSoftwarePackagesDataSourceCrud) SetData()
296296
297297 return nil
298298}
299-
300- func SoftwarePackageDependencyToMap (obj oci_os_management_hub.SoftwarePackageDependency ) map [string ]interface {} {
301- result := map [string ]interface {}{}
302-
303- if obj .Dependency != nil {
304- result ["dependency" ] = string (* obj .Dependency )
305- }
306-
307- if obj .DependencyModifier != nil {
308- result ["dependency_modifier" ] = string (* obj .DependencyModifier )
309- }
310-
311- if obj .DependencyType != nil {
312- result ["dependency_type" ] = string (* obj .DependencyType )
313- }
314-
315- return result
316- }
317-
318- func SoftwarePackageFileToMap (obj oci_os_management_hub.SoftwarePackageFile ) map [string ]interface {} {
319- result := map [string ]interface {}{}
320-
321- if obj .Checksum != nil {
322- result ["checksum" ] = string (* obj .Checksum )
323- }
324-
325- if obj .ChecksumType != nil {
326- result ["checksum_type" ] = string (* obj .ChecksumType )
327- }
328-
329- if obj .Path != nil {
330- result ["path" ] = string (* obj .Path )
331- }
332-
333- if obj .SizeInBytes != nil {
334- result ["size_in_bytes" ] = strconv .FormatInt (* obj .SizeInBytes , 10 )
335- }
336-
337- if obj .TimeModified != nil {
338- result ["time_modified" ] = obj .TimeModified .String ()
339- }
340-
341- if obj .Type != nil {
342- result ["type" ] = string (* obj .Type )
343- }
344-
345- return result
346- }
347-
348- func SoftwarePackageSummaryToMap (obj oci_os_management_hub.SoftwarePackageSummary ) map [string ]interface {} {
349- result := map [string ]interface {}{}
350- result ["architecture" ] = string (obj .Architecture )
351- if obj .Checksum != nil {
352- result ["checksum" ] = string (* obj .Checksum )
353- }
354-
355- if obj .ChecksumType != nil {
356- result ["checksum_type" ] = string (* obj .ChecksumType )
357- }
358-
359- if obj .DisplayName != nil {
360- result ["display_name" ] = string (* obj .DisplayName )
361- }
362-
363- if obj .IsLatest != nil {
364- result ["is_latest" ] = bool (* obj .IsLatest )
365- }
366-
367- if obj .Name != nil {
368- result ["name" ] = string (* obj .Name )
369- }
370-
371- softwareSources := []interface {}{}
372- for _ , item := range obj .SoftwareSources {
373- softwareSources = append (softwareSources , SoftwareSourceDetailsToMap (item ))
374- }
375- result ["software_sources" ] = softwareSources
376-
377- if obj .Type != nil {
378- result ["type" ] = string (* obj .Type )
379- }
380-
381- if obj .Version != nil {
382- result ["version" ] = string (* obj .Version )
383- }
384-
385- return result
386- }
387-
388- func SoftwareSourceDetailsToMap (obj oci_os_management_hub.SoftwareSourceDetails ) map [string ]interface {} {
389- result := map [string ]interface {}{}
390-
391- if obj .Description != nil {
392- result ["description" ] = string (* obj .Description )
393- }
394-
395- if obj .DisplayName != nil {
396- result ["display_name" ] = string (* obj .DisplayName )
397- }
398-
399- if obj .Id != nil {
400- result ["id" ] = string (* obj .Id )
401- }
402-
403- result ["software_source_type" ] = string (obj .SoftwareSourceType )
404-
405- return result
406- }
0 commit comments