| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
|
|
| package schema |
|
|
| |
| |
|
|
| import ( |
| "fmt" |
|
|
| "github.com/go-openapi/runtime" |
| "github.com/go-openapi/strfmt" |
| ) |
|
|
| |
| func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { |
| return &Client{transport: transport, formats: formats} |
| } |
|
|
| |
| |
| |
| type Client struct { |
| transport runtime.ClientTransport |
| formats strfmt.Registry |
| } |
|
|
| |
| type ClientOption func(*runtime.ClientOperation) |
|
|
| |
| type ClientService interface { |
| AliasesCreate(params *AliasesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AliasesCreateOK, error) |
|
|
| AliasesDelete(params *AliasesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AliasesDeleteNoContent, error) |
|
|
| AliasesGet(params *AliasesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AliasesGetOK, error) |
|
|
| AliasesGetAlias(params *AliasesGetAliasParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AliasesGetAliasOK, error) |
|
|
| AliasesUpdate(params *AliasesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AliasesUpdateOK, error) |
|
|
| SchemaDump(params *SchemaDumpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaDumpOK, error) |
|
|
| SchemaObjectsCreate(params *SchemaObjectsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsCreateOK, error) |
|
|
| SchemaObjectsDelete(params *SchemaObjectsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsDeleteOK, error) |
|
|
| SchemaObjectsGet(params *SchemaObjectsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsGetOK, error) |
|
|
| SchemaObjectsPropertiesAdd(params *SchemaObjectsPropertiesAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsPropertiesAddOK, error) |
|
|
| SchemaObjectsShardsGet(params *SchemaObjectsShardsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsShardsGetOK, error) |
|
|
| SchemaObjectsShardsUpdate(params *SchemaObjectsShardsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsShardsUpdateOK, error) |
|
|
| SchemaObjectsUpdate(params *SchemaObjectsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsUpdateOK, error) |
|
|
| TenantExists(params *TenantExistsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantExistsOK, error) |
|
|
| TenantsCreate(params *TenantsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantsCreateOK, error) |
|
|
| TenantsDelete(params *TenantsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantsDeleteOK, error) |
|
|
| TenantsGet(params *TenantsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantsGetOK, error) |
|
|
| TenantsGetOne(params *TenantsGetOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantsGetOneOK, error) |
|
|
| TenantsUpdate(params *TenantsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantsUpdateOK, error) |
|
|
| SetTransport(transport runtime.ClientTransport) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) AliasesCreate(params *AliasesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AliasesCreateOK, error) { |
| |
| if params == nil { |
| params = NewAliasesCreateParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "aliases.create", |
| Method: "POST", |
| PathPattern: "/aliases", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &AliasesCreateReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*AliasesCreateOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for aliases.create: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) AliasesDelete(params *AliasesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AliasesDeleteNoContent, error) { |
| |
| if params == nil { |
| params = NewAliasesDeleteParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "aliases.delete", |
| Method: "DELETE", |
| PathPattern: "/aliases/{aliasName}", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &AliasesDeleteReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*AliasesDeleteNoContent) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for aliases.delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) AliasesGet(params *AliasesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AliasesGetOK, error) { |
| |
| if params == nil { |
| params = NewAliasesGetParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "aliases.get", |
| Method: "GET", |
| PathPattern: "/aliases", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &AliasesGetReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*AliasesGetOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for aliases.get: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) AliasesGetAlias(params *AliasesGetAliasParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AliasesGetAliasOK, error) { |
| |
| if params == nil { |
| params = NewAliasesGetAliasParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "aliases.get.alias", |
| Method: "GET", |
| PathPattern: "/aliases/{aliasName}", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &AliasesGetAliasReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*AliasesGetAliasOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for aliases.get.alias: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) AliasesUpdate(params *AliasesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AliasesUpdateOK, error) { |
| |
| if params == nil { |
| params = NewAliasesUpdateParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "aliases.update", |
| Method: "PUT", |
| PathPattern: "/aliases/{aliasName}", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &AliasesUpdateReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*AliasesUpdateOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for aliases.update: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) SchemaDump(params *SchemaDumpParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaDumpOK, error) { |
| |
| if params == nil { |
| params = NewSchemaDumpParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "schema.dump", |
| Method: "GET", |
| PathPattern: "/schema", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &SchemaDumpReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*SchemaDumpOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for schema.dump: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) SchemaObjectsCreate(params *SchemaObjectsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsCreateOK, error) { |
| |
| if params == nil { |
| params = NewSchemaObjectsCreateParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "schema.objects.create", |
| Method: "POST", |
| PathPattern: "/schema", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &SchemaObjectsCreateReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*SchemaObjectsCreateOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for schema.objects.create: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) SchemaObjectsDelete(params *SchemaObjectsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsDeleteOK, error) { |
| |
| if params == nil { |
| params = NewSchemaObjectsDeleteParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "schema.objects.delete", |
| Method: "DELETE", |
| PathPattern: "/schema/{className}", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &SchemaObjectsDeleteReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*SchemaObjectsDeleteOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for schema.objects.delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| func (a *Client) SchemaObjectsGet(params *SchemaObjectsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsGetOK, error) { |
| |
| if params == nil { |
| params = NewSchemaObjectsGetParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "schema.objects.get", |
| Method: "GET", |
| PathPattern: "/schema/{className}", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &SchemaObjectsGetReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*SchemaObjectsGetOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for schema.objects.get: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| func (a *Client) SchemaObjectsPropertiesAdd(params *SchemaObjectsPropertiesAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsPropertiesAddOK, error) { |
| |
| if params == nil { |
| params = NewSchemaObjectsPropertiesAddParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "schema.objects.properties.add", |
| Method: "POST", |
| PathPattern: "/schema/{className}/properties", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &SchemaObjectsPropertiesAddReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*SchemaObjectsPropertiesAddOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for schema.objects.properties.add: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) SchemaObjectsShardsGet(params *SchemaObjectsShardsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsShardsGetOK, error) { |
| |
| if params == nil { |
| params = NewSchemaObjectsShardsGetParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "schema.objects.shards.get", |
| Method: "GET", |
| PathPattern: "/schema/{className}/shards", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &SchemaObjectsShardsGetReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*SchemaObjectsShardsGetOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for schema.objects.shards.get: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) SchemaObjectsShardsUpdate(params *SchemaObjectsShardsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsShardsUpdateOK, error) { |
| |
| if params == nil { |
| params = NewSchemaObjectsShardsUpdateParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "schema.objects.shards.update", |
| Method: "PUT", |
| PathPattern: "/schema/{className}/shards/{shardName}", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &SchemaObjectsShardsUpdateReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*SchemaObjectsShardsUpdateOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for schema.objects.shards.update: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) SchemaObjectsUpdate(params *SchemaObjectsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SchemaObjectsUpdateOK, error) { |
| |
| if params == nil { |
| params = NewSchemaObjectsUpdateParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "schema.objects.update", |
| Method: "PUT", |
| PathPattern: "/schema/{className}", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &SchemaObjectsUpdateReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*SchemaObjectsUpdateOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for schema.objects.update: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) TenantExists(params *TenantExistsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantExistsOK, error) { |
| |
| if params == nil { |
| params = NewTenantExistsParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "tenant.exists", |
| Method: "HEAD", |
| PathPattern: "/schema/{className}/tenants/{tenantName}", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &TenantExistsReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*TenantExistsOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for tenant.exists: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) TenantsCreate(params *TenantsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantsCreateOK, error) { |
| |
| if params == nil { |
| params = NewTenantsCreateParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "tenants.create", |
| Method: "POST", |
| PathPattern: "/schema/{className}/tenants", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &TenantsCreateReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*TenantsCreateOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for tenants.create: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| func (a *Client) TenantsDelete(params *TenantsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantsDeleteOK, error) { |
| |
| if params == nil { |
| params = NewTenantsDeleteParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "tenants.delete", |
| Method: "DELETE", |
| PathPattern: "/schema/{className}/tenants", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &TenantsDeleteReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*TenantsDeleteOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for tenants.delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) TenantsGet(params *TenantsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantsGetOK, error) { |
| |
| if params == nil { |
| params = NewTenantsGetParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "tenants.get", |
| Method: "GET", |
| PathPattern: "/schema/{className}/tenants", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &TenantsGetReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*TenantsGetOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for tenants.get: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) TenantsGetOne(params *TenantsGetOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantsGetOneOK, error) { |
| |
| if params == nil { |
| params = NewTenantsGetOneParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "tenants.get.one", |
| Method: "GET", |
| PathPattern: "/schema/{className}/tenants/{tenantName}", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &TenantsGetOneReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*TenantsGetOneOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for tenants.get.one: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| |
| |
| |
| |
| func (a *Client) TenantsUpdate(params *TenantsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TenantsUpdateOK, error) { |
| |
| if params == nil { |
| params = NewTenantsUpdateParams() |
| } |
| op := &runtime.ClientOperation{ |
| ID: "tenants.update", |
| Method: "PUT", |
| PathPattern: "/schema/{className}/tenants", |
| ProducesMediaTypes: []string{"application/json"}, |
| ConsumesMediaTypes: []string{"application/json", "application/yaml"}, |
| Schemes: []string{"https"}, |
| Params: params, |
| Reader: &TenantsUpdateReader{formats: a.formats}, |
| AuthInfo: authInfo, |
| Context: params.Context, |
| Client: params.HTTPClient, |
| } |
| for _, opt := range opts { |
| opt(op) |
| } |
|
|
| result, err := a.transport.Submit(op) |
| if err != nil { |
| return nil, err |
| } |
| success, ok := result.(*TenantsUpdateOK) |
| if ok { |
| return success, nil |
| } |
| |
| |
| msg := fmt.Sprintf("unexpected success response for tenants.update: API contract not enforced by server. Client expected to get an error, but got: %T", result) |
| panic(msg) |
| } |
|
|
| |
| func (a *Client) SetTransport(transport runtime.ClientTransport) { |
| a.transport = transport |
| } |
|
|