github.com/sap/cf-mta-plugin@v2.6.3+incompatible/clients/cfrestclient/operations/operations_client.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package operations 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 "github.com/go-openapi/runtime" 10 11 strfmt "github.com/go-openapi/strfmt" 12 ) 13 14 // New creates a new operations API client. 15 func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client { 16 return &Client{transport: transport, formats: formats} 17 } 18 19 /* 20 Client for operations API 21 */ 22 type Client struct { 23 transport runtime.ClientTransport 24 formats strfmt.Registry 25 } 26 27 /* 28 GetSharedDomains Retrieves shared domains 29 30 */ 31 func (a *Client) GetSharedDomains(params *GetSharedDomainsParams, authInfo runtime.ClientAuthInfoWriter) (*GetSharedDomainsOK, error) { 32 // TODO: Validate the params before sending 33 if params == nil { 34 params = NewGetSharedDomainsParams() 35 } 36 37 result, err := a.transport.Submit(&runtime.ClientOperation{ 38 ID: "GetSharedDomains", 39 Method: "GET", 40 PathPattern: "/shared_domains", 41 ProducesMediaTypes: []string{"application/json"}, 42 ConsumesMediaTypes: []string{"application/json"}, 43 Schemes: []string{"https"}, 44 Params: params, 45 Reader: &GetSharedDomainsReader{formats: a.formats}, 46 AuthInfo: authInfo, 47 Context: params.Context, 48 Client: params.HTTPClient, 49 }) 50 if err != nil { 51 return nil, err 52 } 53 return result.(*GetSharedDomainsOK), nil 54 55 } 56 57 // SetTransport changes the transport on the client 58 func (a *Client) SetTransport(transport runtime.ClientTransport) { 59 a.transport = transport 60 }