2022-09-05 00:01:32 +00:00
|
|
|
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
// (c) 2012-2020 by Taxnexus, Inc.
|
|
|
|
|
// All rights reserved worldwide.
|
|
|
|
|
// Proprietary product; unlicensed use is not allowed
|
|
|
|
|
|
|
|
|
|
package industries
|
|
|
|
|
|
|
|
|
|
import (
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
"encoding/json"
|
|
|
|
|
stderrors "errors"
|
2022-09-05 00:01:32 +00:00
|
|
|
"fmt"
|
|
|
|
|
"io"
|
|
|
|
|
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
|
2022-09-05 00:01:32 +00:00
|
|
|
"github.com/go-openapi/runtime"
|
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// GetIndustriesReader is a Reader for the GetIndustries structure.
|
|
|
|
|
type GetIndustriesReader struct {
|
|
|
|
|
formats strfmt.Registry
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ReadResponse reads a server response into the received o.
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
func (o *GetIndustriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error) {
|
2022-09-05 00:01:32 +00:00
|
|
|
switch response.Code() {
|
|
|
|
|
case 200:
|
|
|
|
|
result := NewGetIndustriesOK()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return result, nil
|
|
|
|
|
case 401:
|
|
|
|
|
result := NewGetIndustriesUnauthorized()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 403:
|
|
|
|
|
result := NewGetIndustriesForbidden()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 404:
|
|
|
|
|
result := NewGetIndustriesNotFound()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 422:
|
|
|
|
|
result := NewGetIndustriesUnprocessableEntity()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
case 500:
|
|
|
|
|
result := NewGetIndustriesInternalServerError()
|
|
|
|
|
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return nil, result
|
|
|
|
|
default:
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
return nil, runtime.NewAPIError("[GET /industries] getIndustries", response, response.Code())
|
2022-09-05 00:01:32 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetIndustriesOK creates a GetIndustriesOK with default headers values
|
|
|
|
|
func NewGetIndustriesOK() *GetIndustriesOK {
|
|
|
|
|
return &GetIndustriesOK{}
|
|
|
|
|
}
|
|
|
|
|
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
// GetIndustriesOK describes a response with status code 200, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Response with Industry objects
|
2022-09-05 00:01:32 +00:00
|
|
|
type GetIndustriesOK struct {
|
|
|
|
|
Payload *sfgate_models.IndustryResponse
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-22 20:49:01 +00:00
|
|
|
// IsSuccess returns true when this get industries o k response has a 2xx status code
|
|
|
|
|
func (o *GetIndustriesOK) IsSuccess() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get industries o k response has a 3xx status code
|
|
|
|
|
func (o *GetIndustriesOK) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get industries o k response has a 4xx status code
|
|
|
|
|
func (o *GetIndustriesOK) IsClientError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get industries o k response has a 5xx status code
|
|
|
|
|
func (o *GetIndustriesOK) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get industries o k response a status code equal to that given
|
|
|
|
|
func (o *GetIndustriesOK) IsCode(code int) bool {
|
|
|
|
|
return code == 200
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get industries o k response
|
|
|
|
|
func (o *GetIndustriesOK) Code() int {
|
|
|
|
|
return 200
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesOK) Error() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesOK %s", 200, payload)
|
2022-09-05 00:01:32 +00:00
|
|
|
}
|
2023-03-22 20:49:01 +00:00
|
|
|
|
|
|
|
|
func (o *GetIndustriesOK) String() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesOK %s", 200, payload)
|
2023-03-22 20:49:01 +00:00
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesOK) GetPayload() *sfgate_models.IndustryResponse {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetIndustriesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(sfgate_models.IndustryResponse)
|
|
|
|
|
|
|
|
|
|
// response payload
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2022-09-05 00:01:32 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetIndustriesUnauthorized creates a GetIndustriesUnauthorized with default headers values
|
|
|
|
|
func NewGetIndustriesUnauthorized() *GetIndustriesUnauthorized {
|
|
|
|
|
return &GetIndustriesUnauthorized{}
|
|
|
|
|
}
|
|
|
|
|
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
// GetIndustriesUnauthorized describes a response with status code 401, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Access unauthorized, invalid API-KEY was used
|
2022-09-05 00:01:32 +00:00
|
|
|
type GetIndustriesUnauthorized struct {
|
|
|
|
|
Payload *sfgate_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-22 20:49:01 +00:00
|
|
|
// IsSuccess returns true when this get industries unauthorized response has a 2xx status code
|
|
|
|
|
func (o *GetIndustriesUnauthorized) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get industries unauthorized response has a 3xx status code
|
|
|
|
|
func (o *GetIndustriesUnauthorized) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get industries unauthorized response has a 4xx status code
|
|
|
|
|
func (o *GetIndustriesUnauthorized) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get industries unauthorized response has a 5xx status code
|
|
|
|
|
func (o *GetIndustriesUnauthorized) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get industries unauthorized response a status code equal to that given
|
|
|
|
|
func (o *GetIndustriesUnauthorized) IsCode(code int) bool {
|
|
|
|
|
return code == 401
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get industries unauthorized response
|
|
|
|
|
func (o *GetIndustriesUnauthorized) Code() int {
|
|
|
|
|
return 401
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesUnauthorized) Error() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesUnauthorized %s", 401, payload)
|
2022-09-05 00:01:32 +00:00
|
|
|
}
|
2023-03-22 20:49:01 +00:00
|
|
|
|
|
|
|
|
func (o *GetIndustriesUnauthorized) String() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesUnauthorized %s", 401, payload)
|
2023-03-22 20:49:01 +00:00
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesUnauthorized) GetPayload() *sfgate_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetIndustriesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(sfgate_models.Error)
|
|
|
|
|
|
|
|
|
|
// response payload
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2022-09-05 00:01:32 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetIndustriesForbidden creates a GetIndustriesForbidden with default headers values
|
|
|
|
|
func NewGetIndustriesForbidden() *GetIndustriesForbidden {
|
|
|
|
|
return &GetIndustriesForbidden{}
|
|
|
|
|
}
|
|
|
|
|
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
// GetIndustriesForbidden describes a response with status code 403, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Access forbidden, account lacks access
|
2022-09-05 00:01:32 +00:00
|
|
|
type GetIndustriesForbidden struct {
|
|
|
|
|
Payload *sfgate_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-22 20:49:01 +00:00
|
|
|
// IsSuccess returns true when this get industries forbidden response has a 2xx status code
|
|
|
|
|
func (o *GetIndustriesForbidden) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get industries forbidden response has a 3xx status code
|
|
|
|
|
func (o *GetIndustriesForbidden) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get industries forbidden response has a 4xx status code
|
|
|
|
|
func (o *GetIndustriesForbidden) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get industries forbidden response has a 5xx status code
|
|
|
|
|
func (o *GetIndustriesForbidden) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get industries forbidden response a status code equal to that given
|
|
|
|
|
func (o *GetIndustriesForbidden) IsCode(code int) bool {
|
|
|
|
|
return code == 403
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get industries forbidden response
|
|
|
|
|
func (o *GetIndustriesForbidden) Code() int {
|
|
|
|
|
return 403
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesForbidden) Error() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesForbidden %s", 403, payload)
|
2022-09-05 00:01:32 +00:00
|
|
|
}
|
2023-03-22 20:49:01 +00:00
|
|
|
|
|
|
|
|
func (o *GetIndustriesForbidden) String() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesForbidden %s", 403, payload)
|
2023-03-22 20:49:01 +00:00
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesForbidden) GetPayload() *sfgate_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetIndustriesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(sfgate_models.Error)
|
|
|
|
|
|
|
|
|
|
// response payload
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2022-09-05 00:01:32 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetIndustriesNotFound creates a GetIndustriesNotFound with default headers values
|
|
|
|
|
func NewGetIndustriesNotFound() *GetIndustriesNotFound {
|
|
|
|
|
return &GetIndustriesNotFound{}
|
|
|
|
|
}
|
|
|
|
|
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
// GetIndustriesNotFound describes a response with status code 404, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Resource was not found
|
2022-09-05 00:01:32 +00:00
|
|
|
type GetIndustriesNotFound struct {
|
|
|
|
|
Payload *sfgate_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-22 20:49:01 +00:00
|
|
|
// IsSuccess returns true when this get industries not found response has a 2xx status code
|
|
|
|
|
func (o *GetIndustriesNotFound) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get industries not found response has a 3xx status code
|
|
|
|
|
func (o *GetIndustriesNotFound) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get industries not found response has a 4xx status code
|
|
|
|
|
func (o *GetIndustriesNotFound) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get industries not found response has a 5xx status code
|
|
|
|
|
func (o *GetIndustriesNotFound) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get industries not found response a status code equal to that given
|
|
|
|
|
func (o *GetIndustriesNotFound) IsCode(code int) bool {
|
|
|
|
|
return code == 404
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get industries not found response
|
|
|
|
|
func (o *GetIndustriesNotFound) Code() int {
|
|
|
|
|
return 404
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesNotFound) Error() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesNotFound %s", 404, payload)
|
2022-09-05 00:01:32 +00:00
|
|
|
}
|
2023-03-22 20:49:01 +00:00
|
|
|
|
|
|
|
|
func (o *GetIndustriesNotFound) String() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesNotFound %s", 404, payload)
|
2023-03-22 20:49:01 +00:00
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesNotFound) GetPayload() *sfgate_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetIndustriesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(sfgate_models.Error)
|
|
|
|
|
|
|
|
|
|
// response payload
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2022-09-05 00:01:32 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetIndustriesUnprocessableEntity creates a GetIndustriesUnprocessableEntity with default headers values
|
|
|
|
|
func NewGetIndustriesUnprocessableEntity() *GetIndustriesUnprocessableEntity {
|
|
|
|
|
return &GetIndustriesUnprocessableEntity{}
|
|
|
|
|
}
|
|
|
|
|
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
// GetIndustriesUnprocessableEntity describes a response with status code 422, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Unprocessable Entity, likely a bad parameter
|
2022-09-05 00:01:32 +00:00
|
|
|
type GetIndustriesUnprocessableEntity struct {
|
|
|
|
|
Payload *sfgate_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-22 20:49:01 +00:00
|
|
|
// IsSuccess returns true when this get industries unprocessable entity response has a 2xx status code
|
|
|
|
|
func (o *GetIndustriesUnprocessableEntity) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get industries unprocessable entity response has a 3xx status code
|
|
|
|
|
func (o *GetIndustriesUnprocessableEntity) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get industries unprocessable entity response has a 4xx status code
|
|
|
|
|
func (o *GetIndustriesUnprocessableEntity) IsClientError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get industries unprocessable entity response has a 5xx status code
|
|
|
|
|
func (o *GetIndustriesUnprocessableEntity) IsServerError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get industries unprocessable entity response a status code equal to that given
|
|
|
|
|
func (o *GetIndustriesUnprocessableEntity) IsCode(code int) bool {
|
|
|
|
|
return code == 422
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get industries unprocessable entity response
|
|
|
|
|
func (o *GetIndustriesUnprocessableEntity) Code() int {
|
|
|
|
|
return 422
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesUnprocessableEntity) Error() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesUnprocessableEntity %s", 422, payload)
|
2022-09-05 00:01:32 +00:00
|
|
|
}
|
2023-03-22 20:49:01 +00:00
|
|
|
|
|
|
|
|
func (o *GetIndustriesUnprocessableEntity) String() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesUnprocessableEntity %s", 422, payload)
|
2023-03-22 20:49:01 +00:00
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesUnprocessableEntity) GetPayload() *sfgate_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetIndustriesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(sfgate_models.Error)
|
|
|
|
|
|
|
|
|
|
// response payload
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2022-09-05 00:01:32 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NewGetIndustriesInternalServerError creates a GetIndustriesInternalServerError with default headers values
|
|
|
|
|
func NewGetIndustriesInternalServerError() *GetIndustriesInternalServerError {
|
|
|
|
|
return &GetIndustriesInternalServerError{}
|
|
|
|
|
}
|
|
|
|
|
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
// GetIndustriesInternalServerError describes a response with status code 500, with default header values.
|
|
|
|
|
//
|
|
|
|
|
// Server Internal Error
|
2022-09-05 00:01:32 +00:00
|
|
|
type GetIndustriesInternalServerError struct {
|
|
|
|
|
Payload *sfgate_models.Error
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-22 20:49:01 +00:00
|
|
|
// IsSuccess returns true when this get industries internal server error response has a 2xx status code
|
|
|
|
|
func (o *GetIndustriesInternalServerError) IsSuccess() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsRedirect returns true when this get industries internal server error response has a 3xx status code
|
|
|
|
|
func (o *GetIndustriesInternalServerError) IsRedirect() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsClientError returns true when this get industries internal server error response has a 4xx status code
|
|
|
|
|
func (o *GetIndustriesInternalServerError) IsClientError() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsServerError returns true when this get industries internal server error response has a 5xx status code
|
|
|
|
|
func (o *GetIndustriesInternalServerError) IsServerError() bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IsCode returns true when this get industries internal server error response a status code equal to that given
|
|
|
|
|
func (o *GetIndustriesInternalServerError) IsCode(code int) bool {
|
|
|
|
|
return code == 500
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Code gets the status code for the get industries internal server error response
|
|
|
|
|
func (o *GetIndustriesInternalServerError) Code() int {
|
|
|
|
|
return 500
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesInternalServerError) Error() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesInternalServerError %s", 500, payload)
|
2022-09-05 00:01:32 +00:00
|
|
|
}
|
2023-03-22 20:49:01 +00:00
|
|
|
|
|
|
|
|
func (o *GetIndustriesInternalServerError) String() string {
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
payload, _ := json.Marshal(o.Payload)
|
|
|
|
|
return fmt.Sprintf("[GET /industries][%d] getIndustriesInternalServerError %s", 500, payload)
|
2023-03-22 20:49:01 +00:00
|
|
|
}
|
|
|
|
|
|
2022-09-05 00:01:32 +00:00
|
|
|
func (o *GetIndustriesInternalServerError) GetPayload() *sfgate_models.Error {
|
|
|
|
|
return o.Payload
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (o *GetIndustriesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
o.Payload = new(sfgate_models.Error)
|
|
|
|
|
|
|
|
|
|
// response payload
|
regen: refresh all sibling clients (go-swagger v0.35.0)
Runs scripts/release.sh regen against current origin/main specs for
auth, crm, stash, sf-gate, research, members, and plex. Picks up:
- members PaymentMethod: processor_token/tenant_id replace card_* columns
(go/db v0.7.3, ADR-KV-014 first exercise) — generated model now carries
ProcessorToken/TenantID with no Card* fields.
- sf-gate: PUT /researchprojectservices now has a tags: entry (sf-gate #3),
so its operation generates into the research_projects package under
--client-package instead of falling back to an untagged operations
package that broke the build.
- members: session handoff endpoints and onboard_request model (current
members spec); webhooks/clerk endpoints removed (retired upstream).
Also bumps go-openapi/runtime v0.26.2 -> v0.32.4 (go mod tidy) — go-swagger
v0.35.0 client templates reference runtime.ContextualTransport, which
v0.26.2 doesn't have; this is a genuine dependency floor bump, not the
known untagged-operation issue documented in release.sh (that issue is
resolved by sf-gate #3 and no longer reproduces here).
go build ./..., go vet ./..., and go test ./... all pass on the
regenerated tree.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 07:22:01 +00:00
|
|
|
if err := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) {
|
2022-09-05 00:01:32 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|