github.com/akamai/AkamaiOPEN-edgegrid-golang/v8@v8.1.0/pkg/cloudwrapper/mocks.go (about)

     1  //revive:disable:exported
     2  
     3  package cloudwrapper
     4  
     5  import (
     6  	"context"
     7  
     8  	"github.com/stretchr/testify/mock"
     9  )
    10  
    11  type Mock struct {
    12  	mock.Mock
    13  }
    14  
    15  var _ CloudWrapper = &Mock{}
    16  
    17  func (m *Mock) ListCapacities(ctx context.Context, req ListCapacitiesRequest) (*ListCapacitiesResponse, error) {
    18  	args := m.Called(ctx, req)
    19  	if args.Get(0) == nil {
    20  		return nil, args.Error(1)
    21  	}
    22  	return args.Get(0).(*ListCapacitiesResponse), args.Error(1)
    23  }
    24  
    25  func (m *Mock) ListLocations(ctx context.Context) (*ListLocationResponse, error) {
    26  	args := m.Called(ctx)
    27  	if args.Get(0) == nil {
    28  		return nil, args.Error(1)
    29  	}
    30  	return args.Get(0).(*ListLocationResponse), args.Error(1)
    31  }
    32  
    33  func (m *Mock) ListAuthKeys(ctx context.Context, req ListAuthKeysRequest) (*ListAuthKeysResponse, error) {
    34  	args := m.Called(ctx, req)
    35  	if args.Get(0) == nil {
    36  		return nil, args.Error(1)
    37  	}
    38  	return args.Get(0).(*ListAuthKeysResponse), args.Error(1)
    39  }
    40  
    41  func (m *Mock) ListCDNProviders(ctx context.Context) (*ListCDNProvidersResponse, error) {
    42  	args := m.Called(ctx)
    43  	if args.Get(0) == nil {
    44  		return nil, args.Error(1)
    45  	}
    46  	return args.Get(0).(*ListCDNProvidersResponse), args.Error(1)
    47  }
    48  
    49  func (m *Mock) ListProperties(ctx context.Context, r ListPropertiesRequest) (*ListPropertiesResponse, error) {
    50  	args := m.Called(ctx, r)
    51  
    52  	if args.Error(1) != nil {
    53  		return nil, args.Error(1)
    54  	}
    55  
    56  	return args.Get(0).(*ListPropertiesResponse), args.Error(1)
    57  }
    58  
    59  func (m *Mock) ListOrigins(ctx context.Context, r ListOriginsRequest) (*ListOriginsResponse, error) {
    60  	args := m.Called(ctx, r)
    61  
    62  	if args.Error(1) != nil {
    63  		return nil, args.Error(1)
    64  	}
    65  
    66  	return args.Get(0).(*ListOriginsResponse), args.Error(1)
    67  }
    68  
    69  func (m *Mock) GetConfiguration(ctx context.Context, r GetConfigurationRequest) (*Configuration, error) {
    70  	args := m.Called(ctx, r)
    71  
    72  	if args.Error(1) != nil {
    73  		return nil, args.Error(1)
    74  	}
    75  
    76  	return args.Get(0).(*Configuration), args.Error(1)
    77  }
    78  
    79  func (m *Mock) ListConfigurations(ctx context.Context) (*ListConfigurationsResponse, error) {
    80  	args := m.Called(ctx)
    81  
    82  	if args.Error(1) != nil {
    83  		return nil, args.Error(1)
    84  	}
    85  
    86  	return args.Get(0).(*ListConfigurationsResponse), args.Error(1)
    87  }
    88  
    89  func (m *Mock) CreateConfiguration(ctx context.Context, r CreateConfigurationRequest) (*Configuration, error) {
    90  	args := m.Called(ctx, r)
    91  
    92  	if args.Error(1) != nil {
    93  		return nil, args.Error(1)
    94  	}
    95  
    96  	return args.Get(0).(*Configuration), args.Error(1)
    97  }
    98  
    99  func (m *Mock) UpdateConfiguration(ctx context.Context, r UpdateConfigurationRequest) (*Configuration, error) {
   100  	args := m.Called(ctx, r)
   101  
   102  	if args.Error(1) != nil {
   103  		return nil, args.Error(1)
   104  	}
   105  
   106  	return args.Get(0).(*Configuration), args.Error(1)
   107  }
   108  
   109  func (m *Mock) DeleteConfiguration(ctx context.Context, r DeleteConfigurationRequest) error {
   110  	args := m.Called(ctx, r)
   111  	return args.Error(0)
   112  }
   113  
   114  func (m *Mock) ActivateConfiguration(ctx context.Context, r ActivateConfigurationRequest) error {
   115  	args := m.Called(ctx, r)
   116  	return args.Error(0)
   117  }