@@ -26,9 +26,6 @@ func NewIBMPISharedProcessorPoolClient(ctx context.Context, sess *ibmpisession.I
26
26
27
27
// Get a PI Shared Processor Pool
28
28
func (f * IBMPISharedProcessorPoolClient ) Get (id string ) (* models.SharedProcessorPoolDetail , error ) {
29
- if f .session .IsOnPrem () {
30
- return nil , fmt .Errorf ("operation not supported in satellite location, check documentation" )
31
- }
32
29
params := p_cloud_shared_processor_pools .NewPcloudSharedprocessorpoolsGetParams ().
33
30
WithContext (f .ctx ).WithTimeout (helpers .PIGetTimeOut ).
34
31
WithCloudInstanceID (f .cloudInstanceID ).WithSharedProcessorPoolID (id )
@@ -44,9 +41,6 @@ func (f *IBMPISharedProcessorPoolClient) Get(id string) (*models.SharedProcessor
44
41
45
42
// Get All Shared Processor Pools
46
43
func (f * IBMPISharedProcessorPoolClient ) GetAll () (* models.SharedProcessorPools , error ) {
47
- if f .session .IsOnPrem () {
48
- return nil , fmt .Errorf ("operation not supported in satellite location, check documentation" )
49
- }
50
44
params := p_cloud_shared_processor_pools .NewPcloudSharedprocessorpoolsGetallParams ().
51
45
WithContext (f .ctx ).WithTimeout (helpers .PIGetTimeOut ).
52
46
WithCloudInstanceID (f .cloudInstanceID )
@@ -62,9 +56,6 @@ func (f *IBMPISharedProcessorPoolClient) GetAll() (*models.SharedProcessorPools,
62
56
63
57
// Create a Shared Processor Pool
64
58
func (f * IBMPISharedProcessorPoolClient ) Create (body * models.SharedProcessorPoolCreate ) (* models.SharedProcessorPool , error ) {
65
- if f .session .IsOnPrem () {
66
- return nil , fmt .Errorf ("operation not supported in satellite location, check documentation" )
67
- }
68
59
params := p_cloud_shared_processor_pools .NewPcloudSharedprocessorpoolsPostParams ().
69
60
WithContext (f .ctx ).WithTimeout (helpers .PICreateTimeOut ).
70
61
WithCloudInstanceID (f .cloudInstanceID ).WithBody (body )
@@ -80,9 +71,6 @@ func (f *IBMPISharedProcessorPoolClient) Create(body *models.SharedProcessorPool
80
71
81
72
// Delete a Shared Processor Pool
82
73
func (f * IBMPISharedProcessorPoolClient ) Delete (id string ) error {
83
- if f .session .IsOnPrem () {
84
- return fmt .Errorf ("operation not supported in satellite location, check documentation" )
85
- }
86
74
params := p_cloud_shared_processor_pools .NewPcloudSharedprocessorpoolsDeleteParams ().
87
75
WithContext (f .ctx ).WithTimeout (helpers .PIDeleteTimeOut ).
88
76
WithCloudInstanceID (f .cloudInstanceID ).WithSharedProcessorPoolID (id )
@@ -95,9 +83,6 @@ func (f *IBMPISharedProcessorPoolClient) Delete(id string) error {
95
83
96
84
// Update a PI Shared Processor Pool
97
85
func (f * IBMPISharedProcessorPoolClient ) Update (id string , body * models.SharedProcessorPoolUpdate ) (* models.SharedProcessorPool , error ) {
98
- if f .session .IsOnPrem () {
99
- return nil , fmt .Errorf ("operation not supported in satellite location, check documentation" )
100
- }
101
86
params := p_cloud_shared_processor_pools .NewPcloudSharedprocessorpoolsPutParams ().
102
87
WithContext (f .ctx ).WithTimeout (helpers .PIUpdateTimeOut ).
103
88
WithCloudInstanceID (f .cloudInstanceID ).WithBody (body ).WithSharedProcessorPoolID (id )
0 commit comments