2021-07-31 03:05:02 +00:00
|
|
|
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
|
|
2021-08-05 19:37:53 +00:00
|
|
|
// (c) 2012-2020 by Taxnexus, Inc.
|
2021-07-31 03:05:02 +00:00
|
|
|
// All rights reserved worldwide.
|
|
|
|
|
// Proprietary product; unlicensed use is not allowed
|
|
|
|
|
|
2023-04-07 18:00:15 +00:00
|
|
|
package members_models
|
2021-07-31 03:05:02 +00:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
"github.com/go-openapi/errors"
|
2021-07-31 03:05:02 +00:00
|
|
|
"github.com/go-openapi/strfmt"
|
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
|
|
|
"github.com/go-openapi/swag/jsonutils"
|
2026-07-24 06:55:47 +00:00
|
|
|
"github.com/go-openapi/swag/typeutils"
|
|
|
|
|
"github.com/go-openapi/validate"
|
2021-07-31 03:05:02 +00:00
|
|
|
)
|
|
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// Cluster Tenant-owned infrastructure metadata. TenantID, identity, and audit fields are server-owned.
|
2021-07-31 03:05:02 +00:00
|
|
|
//
|
2026-07-24 06:55:47 +00:00
|
|
|
// swagger:model Cluster
|
2021-07-31 03:05:02 +00:00
|
|
|
type Cluster struct {
|
|
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// created by ID
|
|
|
|
|
// Read Only: true
|
|
|
|
|
// Max Length: 36
|
2023-04-15 14:27:18 +00:00
|
|
|
CreatedByID *string `json:"CreatedByID,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// created date
|
|
|
|
|
// Read Only: true
|
|
|
|
|
// Max Length: 64
|
2023-04-15 14:27:18 +00:00
|
|
|
CreatedDate *string `json:"CreatedDate,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// description
|
|
|
|
|
// Max Length: 255
|
2023-04-15 14:27:18 +00:00
|
|
|
Description *string `json:"Description,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// environment
|
|
|
|
|
// Max Length: 255
|
2023-04-15 14:27:18 +00:00
|
|
|
Environment *string `json:"Environment,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// gateway
|
|
|
|
|
// Max Length: 255
|
2023-04-15 14:27:18 +00:00
|
|
|
Gateway *string `json:"Gateway,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// ID
|
|
|
|
|
// Max Length: 36
|
2021-07-31 03:05:02 +00:00
|
|
|
ID string `json:"ID,omitempty"`
|
|
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// IP address
|
|
|
|
|
// Max Length: 255
|
2023-04-15 14:27:18 +00:00
|
|
|
IPAddress *string `json:"IPAddress,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// last modified by ID
|
|
|
|
|
// Read Only: true
|
|
|
|
|
// Max Length: 36
|
2023-04-15 14:27:18 +00:00
|
|
|
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// last modified date
|
|
|
|
|
// Max Length: 64
|
2023-04-15 14:27:18 +00:00
|
|
|
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// name
|
|
|
|
|
// Required: true
|
|
|
|
|
// Max Length: 255
|
|
|
|
|
// Min Length: 1
|
|
|
|
|
Name *string `json:"Name"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// owner ID
|
|
|
|
|
// Max Length: 36
|
2023-04-15 14:27:18 +00:00
|
|
|
OwnerID *string `json:"OwnerID,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// ref
|
|
|
|
|
// Max Length: 255
|
2023-04-15 14:27:18 +00:00
|
|
|
Ref *string `json:"Ref,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// status
|
|
|
|
|
// Max Length: 255
|
2023-04-15 14:27:18 +00:00
|
|
|
Status *string `json:"Status,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// subnet
|
|
|
|
|
// Max Length: 255
|
2023-04-15 14:27:18 +00:00
|
|
|
Subnet *string `json:"Subnet,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// tenant ID
|
|
|
|
|
// Read Only: true
|
|
|
|
|
// Max Length: 36
|
2023-04-15 14:27:18 +00:00
|
|
|
TenantID *string `json:"TenantID,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// type
|
|
|
|
|
// Max Length: 255
|
2023-04-15 14:27:18 +00:00
|
|
|
Type *string `json:"Type,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
// zone
|
|
|
|
|
// Max Length: 255
|
2023-04-15 14:27:18 +00:00
|
|
|
Zone *string `json:"Zone,omitempty"`
|
2021-07-31 03:05:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Validate validates this cluster
|
|
|
|
|
func (m *Cluster) Validate(formats strfmt.Registry) error {
|
2026-07-24 06:55:47 +00:00
|
|
|
var res []error
|
|
|
|
|
|
|
|
|
|
if err := m.validateCreatedByID(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateCreatedDate(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateDescription(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateEnvironment(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateGateway(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateID(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateIPAddress(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateLastModifiedByID(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateLastModifiedDate(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateName(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateOwnerID(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateRef(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateStatus(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateSubnet(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateTenantID(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateType(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.validateZone(formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if len(res) > 0 {
|
|
|
|
|
return errors.CompositeValidationError(res...)
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateCreatedByID(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.CreatedByID) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("CreatedByID", "body", *m.CreatedByID, 36); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateCreatedDate(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.CreatedDate) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("CreatedDate", "body", *m.CreatedDate, 64); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateDescription(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.Description) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("Description", "body", *m.Description, 255); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateEnvironment(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.Environment) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("Environment", "body", *m.Environment, 255); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateGateway(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.Gateway) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("Gateway", "body", *m.Gateway, 255); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateID(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.ID) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("ID", "body", m.ID, 36); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateIPAddress(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.IPAddress) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("IPAddress", "body", *m.IPAddress, 255); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateLastModifiedByID(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.LastModifiedByID) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("LastModifiedByID", "body", *m.LastModifiedByID, 36); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateLastModifiedDate(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.LastModifiedDate) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("LastModifiedDate", "body", *m.LastModifiedDate, 64); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-31 03:05:02 +00:00
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-24 06:55:47 +00:00
|
|
|
func (m *Cluster) validateName(formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
if err := validate.Required("Name", "body", m.Name); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MinLength("Name", "body", *m.Name, 1); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("Name", "body", *m.Name, 255); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateOwnerID(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.OwnerID) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("OwnerID", "body", *m.OwnerID, 36); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateRef(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.Ref) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("Ref", "body", *m.Ref, 255); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateStatus(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.Status) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("Status", "body", *m.Status, 255); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateSubnet(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.Subnet) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("Subnet", "body", *m.Subnet, 255); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateTenantID(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.TenantID) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("TenantID", "body", *m.TenantID, 36); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateType(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.Type) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("Type", "body", *m.Type, 255); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) validateZone(formats strfmt.Registry) error {
|
|
|
|
|
if typeutils.IsZero(m.Zone) { // not required
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := validate.MaxLength("Zone", "body", *m.Zone, 255); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ContextValidate validate this cluster based on the context it is used
|
2021-07-31 03:05:02 +00:00
|
|
|
func (m *Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
2026-07-24 06:55:47 +00:00
|
|
|
var res []error
|
|
|
|
|
|
|
|
|
|
if err := m.contextValidateCreatedByID(ctx, formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.contextValidateCreatedDate(ctx, formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.contextValidateLastModifiedByID(ctx, formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := m.contextValidateTenantID(ctx, formats); err != nil {
|
|
|
|
|
res = append(res, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if len(res) > 0 {
|
|
|
|
|
return errors.CompositeValidationError(res...)
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) contextValidateCreatedByID(ctx context.Context, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
if err := validate.ReadOnly(ctx, "CreatedByID", "body", m.CreatedByID); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) contextValidateCreatedDate(ctx context.Context, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
if err := validate.ReadOnly(ctx, "CreatedDate", "body", m.CreatedDate); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) contextValidateLastModifiedByID(ctx context.Context, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
if err := validate.ReadOnly(ctx, "LastModifiedByID", "body", m.LastModifiedByID); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Cluster) contextValidateTenantID(ctx context.Context, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
|
|
if err := validate.ReadOnly(ctx, "TenantID", "body", m.TenantID); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-31 03:05:02 +00:00
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MarshalBinary interface implementation
|
|
|
|
|
func (m *Cluster) MarshalBinary() ([]byte, error) {
|
|
|
|
|
if m == nil {
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
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 jsonutils.WriteJSON(m)
|
2021-07-31 03:05:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnmarshalBinary interface implementation
|
|
|
|
|
func (m *Cluster) UnmarshalBinary(b []byte) error {
|
|
|
|
|
var res Cluster
|
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 := jsonutils.ReadJSON(b, &res); err != nil {
|
2021-07-31 03:05:02 +00:00
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
*m = res
|
|
|
|
|
return nil
|
|
|
|
|
}
|