@@ -423,6 +423,29 @@ func (_m *BareMetalClient) CreateSubnet(availabilityDomain string, cidrBlock str
423
423
return r0 , r1
424
424
}
425
425
426
+ // CreateSwiftPassword provides a mock function with given fields: userID, desc, opts
427
+ func (_m * BareMetalClient ) CreateSwiftPassword (userID string , desc string , opts * baremetal.RetryTokenOptions ) (* baremetal.SwiftPassword , error ) {
428
+ ret := _m .Called (userID , desc , opts )
429
+
430
+ var r0 * baremetal.SwiftPassword
431
+ if rf , ok := ret .Get (0 ).(func (string , string , * baremetal.RetryTokenOptions ) * baremetal.SwiftPassword ); ok {
432
+ r0 = rf (userID , desc , opts )
433
+ } else {
434
+ if ret .Get (0 ) != nil {
435
+ r0 = ret .Get (0 ).(* baremetal.SwiftPassword )
436
+ }
437
+ }
438
+
439
+ var r1 error
440
+ if rf , ok := ret .Get (1 ).(func (string , string , * baremetal.RetryTokenOptions ) error ); ok {
441
+ r1 = rf (userID , desc , opts )
442
+ } else {
443
+ r1 = ret .Error (1 )
444
+ }
445
+
446
+ return r0 , r1
447
+ }
448
+
426
449
// CreateUser provides a mock function with given fields: name, desc, opts
427
450
func (_m * BareMetalClient ) CreateUser (name string , desc string , opts * baremetal.RetryTokenOptions ) (* baremetal.User , error ) {
428
451
ret := _m .Called (name , desc , opts )
@@ -734,6 +757,20 @@ func (_m *BareMetalClient) DeleteSubnet(id string, opts *baremetal.IfMatchOption
734
757
return r0
735
758
}
736
759
760
+ // DeleteSwiftPassword provides a mock function with given fields: id, userID, opts
761
+ func (_m * BareMetalClient ) DeleteSwiftPassword (id string , userID string , opts * baremetal.IfMatchOptions ) error {
762
+ ret := _m .Called (id , userID , opts )
763
+
764
+ var r0 error
765
+ if rf , ok := ret .Get (0 ).(func (string , string , * baremetal.IfMatchOptions ) error ); ok {
766
+ r0 = rf (id , userID , opts )
767
+ } else {
768
+ r0 = ret .Error (0 )
769
+ }
770
+
771
+ return r0
772
+ }
773
+
737
774
// DeleteUser provides a mock function with given fields: id, opts
738
775
func (_m * BareMetalClient ) DeleteUser (id string , opts * baremetal.IfMatchOptions ) error {
739
776
ret := _m .Called (id , opts )
@@ -2106,6 +2143,29 @@ func (_m *BareMetalClient) ListObjects(namespace baremetal.Namespace, bucket str
2106
2143
return r0 , r1
2107
2144
}
2108
2145
2146
+ // ListPolicies provides a mock function with given fields: compartmentID, opts
2147
+ func (_m * BareMetalClient ) ListPolicies (compartmentID string , opts * baremetal.ListOptions ) (* baremetal.ListPolicies , error ) {
2148
+ ret := _m .Called (compartmentID , opts )
2149
+
2150
+ var r0 * baremetal.ListPolicies
2151
+ if rf , ok := ret .Get (0 ).(func (string , * baremetal.ListOptions ) * baremetal.ListPolicies ); ok {
2152
+ r0 = rf (compartmentID , opts )
2153
+ } else {
2154
+ if ret .Get (0 ) != nil {
2155
+ r0 = ret .Get (0 ).(* baremetal.ListPolicies )
2156
+ }
2157
+ }
2158
+
2159
+ var r1 error
2160
+ if rf , ok := ret .Get (1 ).(func (string , * baremetal.ListOptions ) error ); ok {
2161
+ r1 = rf (compartmentID , opts )
2162
+ } else {
2163
+ r1 = ret .Error (1 )
2164
+ }
2165
+
2166
+ return r0 , r1
2167
+ }
2168
+
2109
2169
// ListRouteTables provides a mock function with given fields: compartmentID, vcnID, opts
2110
2170
func (_m * BareMetalClient ) ListRouteTables (compartmentID string , vcnID string , opts * baremetal.ListOptions ) (* baremetal.ListRouteTables , error ) {
2111
2171
ret := _m .Called (compartmentID , vcnID , opts )
@@ -2221,6 +2281,29 @@ func (_m *BareMetalClient) ListSupportedOperations() (*baremetal.ListSupportedOp
2221
2281
return r0 , r1
2222
2282
}
2223
2283
2284
+ // ListSwiftPasswords provides a mock function with given fields: userID
2285
+ func (_m * BareMetalClient ) ListSwiftPasswords (userID string ) (* baremetal.ListSwiftPasswords , error ) {
2286
+ ret := _m .Called (userID )
2287
+
2288
+ var r0 * baremetal.ListSwiftPasswords
2289
+ if rf , ok := ret .Get (0 ).(func (string ) * baremetal.ListSwiftPasswords ); ok {
2290
+ r0 = rf (userID )
2291
+ } else {
2292
+ if ret .Get (0 ) != nil {
2293
+ r0 = ret .Get (0 ).(* baremetal.ListSwiftPasswords )
2294
+ }
2295
+ }
2296
+
2297
+ var r1 error
2298
+ if rf , ok := ret .Get (1 ).(func (string ) error ); ok {
2299
+ r1 = rf (userID )
2300
+ } else {
2301
+ r1 = ret .Error (1 )
2302
+ }
2303
+
2304
+ return r0 , r1
2305
+ }
2306
+
2224
2307
// ListUserGroupMemberships provides a mock function with given fields: opts
2225
2308
func (_m * BareMetalClient ) ListUserGroupMemberships (opts * baremetal.ListMembershipsOptions ) (* baremetal.ListUserGroupMemberships , error ) {
2226
2309
ret := _m .Called (opts )
@@ -2502,6 +2585,29 @@ func (_m *BareMetalClient) UpdateCompartment(id string, opts *baremetal.UpdateId
2502
2585
return r0 , r1
2503
2586
}
2504
2587
2588
+ // UpdateCpe provides a mock function with given fields: id, opts
2589
+ func (_m * BareMetalClient ) UpdateCpe (id string , opts * baremetal.IfMatchDisplayNameOptions ) (* baremetal.Cpe , error ) {
2590
+ ret := _m .Called (id , opts )
2591
+
2592
+ var r0 * baremetal.Cpe
2593
+ if rf , ok := ret .Get (0 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) * baremetal.Cpe ); ok {
2594
+ r0 = rf (id , opts )
2595
+ } else {
2596
+ if ret .Get (0 ) != nil {
2597
+ r0 = ret .Get (0 ).(* baremetal.Cpe )
2598
+ }
2599
+ }
2600
+
2601
+ var r1 error
2602
+ if rf , ok := ret .Get (1 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) error ); ok {
2603
+ r1 = rf (id , opts )
2604
+ } else {
2605
+ r1 = ret .Error (1 )
2606
+ }
2607
+
2608
+ return r0 , r1
2609
+ }
2610
+
2505
2611
// UpdateDHCPOptions provides a mock function with given fields: id, opts
2506
2612
func (_m * BareMetalClient ) UpdateDHCPOptions (id string , opts * baremetal.UpdateDHCPDNSOptions ) (* baremetal.DHCPOptions , error ) {
2507
2613
ret := _m .Called (id , opts )
@@ -2525,6 +2631,52 @@ func (_m *BareMetalClient) UpdateDHCPOptions(id string, opts *baremetal.UpdateDH
2525
2631
return r0 , r1
2526
2632
}
2527
2633
2634
+ // UpdateDrg provides a mock function with given fields: id, opts
2635
+ func (_m * BareMetalClient ) UpdateDrg (id string , opts * baremetal.IfMatchDisplayNameOptions ) (* baremetal.Drg , error ) {
2636
+ ret := _m .Called (id , opts )
2637
+
2638
+ var r0 * baremetal.Drg
2639
+ if rf , ok := ret .Get (0 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) * baremetal.Drg ); ok {
2640
+ r0 = rf (id , opts )
2641
+ } else {
2642
+ if ret .Get (0 ) != nil {
2643
+ r0 = ret .Get (0 ).(* baremetal.Drg )
2644
+ }
2645
+ }
2646
+
2647
+ var r1 error
2648
+ if rf , ok := ret .Get (1 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) error ); ok {
2649
+ r1 = rf (id , opts )
2650
+ } else {
2651
+ r1 = ret .Error (1 )
2652
+ }
2653
+
2654
+ return r0 , r1
2655
+ }
2656
+
2657
+ // UpdateDrgAttachment provides a mock function with given fields: id, opts
2658
+ func (_m * BareMetalClient ) UpdateDrgAttachment (id string , opts * baremetal.IfMatchDisplayNameOptions ) (* baremetal.DrgAttachment , error ) {
2659
+ ret := _m .Called (id , opts )
2660
+
2661
+ var r0 * baremetal.DrgAttachment
2662
+ if rf , ok := ret .Get (0 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) * baremetal.DrgAttachment ); ok {
2663
+ r0 = rf (id , opts )
2664
+ } else {
2665
+ if ret .Get (0 ) != nil {
2666
+ r0 = ret .Get (0 ).(* baremetal.DrgAttachment )
2667
+ }
2668
+ }
2669
+
2670
+ var r1 error
2671
+ if rf , ok := ret .Get (1 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) error ); ok {
2672
+ r1 = rf (id , opts )
2673
+ } else {
2674
+ r1 = ret .Error (1 )
2675
+ }
2676
+
2677
+ return r0 , r1
2678
+ }
2679
+
2528
2680
// UpdateGroup provides a mock function with given fields: id, opts
2529
2681
func (_m * BareMetalClient ) UpdateGroup (id string , opts * baremetal.UpdateIdentityOptions ) (* baremetal.Group , error ) {
2530
2682
ret := _m .Called (id , opts )
@@ -2548,6 +2700,29 @@ func (_m *BareMetalClient) UpdateGroup(id string, opts *baremetal.UpdateIdentity
2548
2700
return r0 , r1
2549
2701
}
2550
2702
2703
+ // UpdateIPSecConnection provides a mock function with given fields: id, opts
2704
+ func (_m * BareMetalClient ) UpdateIPSecConnection (id string , opts * baremetal.IfMatchDisplayNameOptions ) (* baremetal.IPSecConnection , error ) {
2705
+ ret := _m .Called (id , opts )
2706
+
2707
+ var r0 * baremetal.IPSecConnection
2708
+ if rf , ok := ret .Get (0 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) * baremetal.IPSecConnection ); ok {
2709
+ r0 = rf (id , opts )
2710
+ } else {
2711
+ if ret .Get (0 ) != nil {
2712
+ r0 = ret .Get (0 ).(* baremetal.IPSecConnection )
2713
+ }
2714
+ }
2715
+
2716
+ var r1 error
2717
+ if rf , ok := ret .Get (1 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) error ); ok {
2718
+ r1 = rf (id , opts )
2719
+ } else {
2720
+ r1 = ret .Error (1 )
2721
+ }
2722
+
2723
+ return r0 , r1
2724
+ }
2725
+
2551
2726
// UpdateImage provides a mock function with given fields: id, opts
2552
2727
func (_m * BareMetalClient ) UpdateImage (id string , opts * baremetal.UpdateOptions ) (* baremetal.Image , error ) {
2553
2728
ret := _m .Called (id , opts )
@@ -2686,6 +2861,52 @@ func (_m *BareMetalClient) UpdateSecurityList(id string, opts *baremetal.UpdateS
2686
2861
return r0 , r1
2687
2862
}
2688
2863
2864
+ // UpdateSubnet provides a mock function with given fields: id, opts
2865
+ func (_m * BareMetalClient ) UpdateSubnet (id string , opts * baremetal.IfMatchDisplayNameOptions ) (* baremetal.Subnet , error ) {
2866
+ ret := _m .Called (id , opts )
2867
+
2868
+ var r0 * baremetal.Subnet
2869
+ if rf , ok := ret .Get (0 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) * baremetal.Subnet ); ok {
2870
+ r0 = rf (id , opts )
2871
+ } else {
2872
+ if ret .Get (0 ) != nil {
2873
+ r0 = ret .Get (0 ).(* baremetal.Subnet )
2874
+ }
2875
+ }
2876
+
2877
+ var r1 error
2878
+ if rf , ok := ret .Get (1 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) error ); ok {
2879
+ r1 = rf (id , opts )
2880
+ } else {
2881
+ r1 = ret .Error (1 )
2882
+ }
2883
+
2884
+ return r0 , r1
2885
+ }
2886
+
2887
+ // UpdateSwiftPassword provides a mock function with given fields: id, userID, opts
2888
+ func (_m * BareMetalClient ) UpdateSwiftPassword (id string , userID string , opts * baremetal.UpdateIdentityOptions ) (* baremetal.SwiftPassword , error ) {
2889
+ ret := _m .Called (id , userID , opts )
2890
+
2891
+ var r0 * baremetal.SwiftPassword
2892
+ if rf , ok := ret .Get (0 ).(func (string , string , * baremetal.UpdateIdentityOptions ) * baremetal.SwiftPassword ); ok {
2893
+ r0 = rf (id , userID , opts )
2894
+ } else {
2895
+ if ret .Get (0 ) != nil {
2896
+ r0 = ret .Get (0 ).(* baremetal.SwiftPassword )
2897
+ }
2898
+ }
2899
+
2900
+ var r1 error
2901
+ if rf , ok := ret .Get (1 ).(func (string , string , * baremetal.UpdateIdentityOptions ) error ); ok {
2902
+ r1 = rf (id , userID , opts )
2903
+ } else {
2904
+ r1 = ret .Error (1 )
2905
+ }
2906
+
2907
+ return r0 , r1
2908
+ }
2909
+
2689
2910
// UpdateUser provides a mock function with given fields: id, opts
2690
2911
func (_m * BareMetalClient ) UpdateUser (id string , opts * baremetal.UpdateIdentityOptions ) (* baremetal.User , error ) {
2691
2912
ret := _m .Called (id , opts )
@@ -2709,6 +2930,29 @@ func (_m *BareMetalClient) UpdateUser(id string, opts *baremetal.UpdateIdentityO
2709
2930
return r0 , r1
2710
2931
}
2711
2932
2933
+ // UpdateVirtualNetwork provides a mock function with given fields: id, opts
2934
+ func (_m * BareMetalClient ) UpdateVirtualNetwork (id string , opts * baremetal.IfMatchDisplayNameOptions ) (* baremetal.VirtualNetwork , error ) {
2935
+ ret := _m .Called (id , opts )
2936
+
2937
+ var r0 * baremetal.VirtualNetwork
2938
+ if rf , ok := ret .Get (0 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) * baremetal.VirtualNetwork ); ok {
2939
+ r0 = rf (id , opts )
2940
+ } else {
2941
+ if ret .Get (0 ) != nil {
2942
+ r0 = ret .Get (0 ).(* baremetal.VirtualNetwork )
2943
+ }
2944
+ }
2945
+
2946
+ var r1 error
2947
+ if rf , ok := ret .Get (1 ).(func (string , * baremetal.IfMatchDisplayNameOptions ) error ); ok {
2948
+ r1 = rf (id , opts )
2949
+ } else {
2950
+ r1 = ret .Error (1 )
2951
+ }
2952
+
2953
+ return r0 , r1
2954
+ }
2955
+
2712
2956
// UpdateVolume provides a mock function with given fields: id, opts
2713
2957
func (_m * BareMetalClient ) UpdateVolume (id string , opts * baremetal.UpdateOptions ) (* baremetal.Volume , error ) {
2714
2958
ret := _m .Called (id , opts )
0 commit comments