@@ -26,9 +26,6 @@ func NewIBMPISharedProcessorPoolClient(ctx context.Context, sess *ibmpisession.I
2626
2727// Get a PI Shared Processor Pool
2828func (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- }
3229 params := p_cloud_shared_processor_pools .NewPcloudSharedprocessorpoolsGetParams ().
3330 WithContext (f .ctx ).WithTimeout (helpers .PIGetTimeOut ).
3431 WithCloudInstanceID (f .cloudInstanceID ).WithSharedProcessorPoolID (id )
@@ -44,9 +41,6 @@ func (f *IBMPISharedProcessorPoolClient) Get(id string) (*models.SharedProcessor
4441
4542// Get All Shared Processor Pools
4643func (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- }
5044 params := p_cloud_shared_processor_pools .NewPcloudSharedprocessorpoolsGetallParams ().
5145 WithContext (f .ctx ).WithTimeout (helpers .PIGetTimeOut ).
5246 WithCloudInstanceID (f .cloudInstanceID )
@@ -62,9 +56,6 @@ func (f *IBMPISharedProcessorPoolClient) GetAll() (*models.SharedProcessorPools,
6256
6357// Create a Shared Processor Pool
6458func (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- }
6859 params := p_cloud_shared_processor_pools .NewPcloudSharedprocessorpoolsPostParams ().
6960 WithContext (f .ctx ).WithTimeout (helpers .PICreateTimeOut ).
7061 WithCloudInstanceID (f .cloudInstanceID ).WithBody (body )
@@ -80,9 +71,6 @@ func (f *IBMPISharedProcessorPoolClient) Create(body *models.SharedProcessorPool
8071
8172// Delete a Shared Processor Pool
8273func (f * IBMPISharedProcessorPoolClient ) Delete (id string ) error {
83- if f .session .IsOnPrem () {
84- return fmt .Errorf ("operation not supported in satellite location, check documentation" )
85- }
8674 params := p_cloud_shared_processor_pools .NewPcloudSharedprocessorpoolsDeleteParams ().
8775 WithContext (f .ctx ).WithTimeout (helpers .PIDeleteTimeOut ).
8876 WithCloudInstanceID (f .cloudInstanceID ).WithSharedProcessorPoolID (id )
@@ -95,9 +83,6 @@ func (f *IBMPISharedProcessorPoolClient) Delete(id string) error {
9583
9684// Update a PI Shared Processor Pool
9785func (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- }
10186 params := p_cloud_shared_processor_pools .NewPcloudSharedprocessorpoolsPutParams ().
10287 WithContext (f .ctx ).WithTimeout (helpers .PIUpdateTimeOut ).
10388 WithCloudInstanceID (f .cloudInstanceID ).WithBody (body ).WithSharedProcessorPoolID (id )
0 commit comments