mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
725 lines
21 KiB
Go
725 lines
21 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the PlatformRunnerBuildReq type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &PlatformRunnerBuildReq{}
|
|
|
|
// PlatformRunnerBuildReq struct for PlatformRunnerBuildReq
|
|
type PlatformRunnerBuildReq struct {
|
|
// Arch is the target architecture for the artifact lane.
|
|
Arch *string `json:"arch,omitempty"`
|
|
// Args are --build-arg values. They are what lets several images off ONE Dockerfile mean different things — the sandbox classes are three entries differing only by STAGE. Validated at the k8s choke point, with VERSION and REVISION taking precedence: those are receipts the builder derives from the tag and the commit, and a caller that could overwrite them could make an image lie about which commit it is.
|
|
Args map[string]string `json:"args,omitempty"`
|
|
// Binaries selects the ARTIFACT lane (artifact.go): build what the repo's hanzo.yml `binaries:` block declares — a Go binary, an npm tarball, a Rust binary — and publish it to hanzoai/s3 instead of pushing an image. It is the same recipe hanzoai/ci reads, sent verbatim, so `image` is meaningless here and must be absent.
|
|
Binaries []PlatformBinarySpec `json:"binaries,omitempty"`
|
|
// Branch is the branch to build when no SHA or Ref is given.
|
|
Branch *string `json:"branch,omitempty"`
|
|
// Bucket mirrors hanzo.yml's `bucket:` — where the artifact lane publishes.
|
|
Bucket *string `json:"bucket,omitempty"`
|
|
// Context is the build context path within the repo.
|
|
Context *string `json:"context,omitempty"`
|
|
// DockerTarget is the multi-stage build target to stop at.
|
|
DockerTarget *string `json:"dockerTarget,omitempty"`
|
|
// Dockerfile is the path to build from; empty uses the zero-config frontend.
|
|
Dockerfile *string `json:"dockerfile,omitempty"`
|
|
// Image is the output image ref to push. Required on the image lane, and it must target a registry namespace the caller's org owns.
|
|
Image *string `json:"image,omitempty"`
|
|
// OS is the target operating system for the artifact lane.
|
|
Os *string `json:"os,omitempty"`
|
|
// Platforms are the `<os>/<arch>` pairs the image is built for. EMPTY MEANS EVERY ARCHITECTURE THE FLEET HAS — each built on a node of that architecture, joined by ONE manifest index, so a single tag serves both. Name one to build only that one.
|
|
Platforms []string `json:"platforms,omitempty"`
|
|
// Ref is the git ref to build when no SHA is given.
|
|
Ref *string `json:"ref,omitempty"`
|
|
// Repo is the repository clone URL to build. Required on the image lane.
|
|
Repo *string `json:"repo,omitempty"`
|
|
// SHA is the commit to pin; it wins over Ref and Branch.
|
|
Sha *string `json:"sha,omitempty"`
|
|
// Tag is the publish path segment, so both entry points write ONE index at ONE URL. It defaults to the pinned ref, and must be named explicitly for a branch.
|
|
Tag *string `json:"tag,omitempty"`
|
|
// Tags are more tags of Image's own repository, pushed onto the same manifest by the same export, so every one names the digest Image does — by construction, not by a second push agreeing with the first. Bare tags (`v1.2.3`, `latest`), at most 8, and only beside a tag Image: a digest names an image that already exists. Duplicates and Image's own tag are dropped; the answer's `tags` lists what will be written.
|
|
Tags []string `json:"tags,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _PlatformRunnerBuildReq PlatformRunnerBuildReq
|
|
|
|
// NewPlatformRunnerBuildReq instantiates a new PlatformRunnerBuildReq object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewPlatformRunnerBuildReq() *PlatformRunnerBuildReq {
|
|
this := PlatformRunnerBuildReq{}
|
|
return &this
|
|
}
|
|
|
|
// NewPlatformRunnerBuildReqWithDefaults instantiates a new PlatformRunnerBuildReq object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewPlatformRunnerBuildReqWithDefaults() *PlatformRunnerBuildReq {
|
|
this := PlatformRunnerBuildReq{}
|
|
return &this
|
|
}
|
|
|
|
// GetArch returns the Arch field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetArch() string {
|
|
if o == nil || IsNil(o.Arch) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Arch
|
|
}
|
|
|
|
// GetArchOk returns a tuple with the Arch field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetArchOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Arch) {
|
|
return nil, false
|
|
}
|
|
return o.Arch, true
|
|
}
|
|
|
|
// HasArch returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasArch() bool {
|
|
if o != nil && !IsNil(o.Arch) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetArch gets a reference to the given string and assigns it to the Arch field.
|
|
func (o *PlatformRunnerBuildReq) SetArch(v string) {
|
|
o.Arch = &v
|
|
}
|
|
|
|
// GetArgs returns the Args field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetArgs() map[string]string {
|
|
if o == nil || IsNil(o.Args) {
|
|
var ret map[string]string
|
|
return ret
|
|
}
|
|
return o.Args
|
|
}
|
|
|
|
// GetArgsOk returns a tuple with the Args field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetArgsOk() (map[string]string, bool) {
|
|
if o == nil || IsNil(o.Args) {
|
|
return map[string]string{}, false
|
|
}
|
|
return o.Args, true
|
|
}
|
|
|
|
// HasArgs returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasArgs() bool {
|
|
if o != nil && !IsNil(o.Args) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetArgs gets a reference to the given map[string]string and assigns it to the Args field.
|
|
func (o *PlatformRunnerBuildReq) SetArgs(v map[string]string) {
|
|
o.Args = v
|
|
}
|
|
|
|
// GetBinaries returns the Binaries field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetBinaries() []PlatformBinarySpec {
|
|
if o == nil || IsNil(o.Binaries) {
|
|
var ret []PlatformBinarySpec
|
|
return ret
|
|
}
|
|
return o.Binaries
|
|
}
|
|
|
|
// GetBinariesOk returns a tuple with the Binaries field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetBinariesOk() ([]PlatformBinarySpec, bool) {
|
|
if o == nil || IsNil(o.Binaries) {
|
|
return nil, false
|
|
}
|
|
return o.Binaries, true
|
|
}
|
|
|
|
// HasBinaries returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasBinaries() bool {
|
|
if o != nil && !IsNil(o.Binaries) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBinaries gets a reference to the given []PlatformBinarySpec and assigns it to the Binaries field.
|
|
func (o *PlatformRunnerBuildReq) SetBinaries(v []PlatformBinarySpec) {
|
|
o.Binaries = v
|
|
}
|
|
|
|
// GetBranch returns the Branch field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetBranch() string {
|
|
if o == nil || IsNil(o.Branch) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Branch
|
|
}
|
|
|
|
// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetBranchOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Branch) {
|
|
return nil, false
|
|
}
|
|
return o.Branch, true
|
|
}
|
|
|
|
// HasBranch returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasBranch() bool {
|
|
if o != nil && !IsNil(o.Branch) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBranch gets a reference to the given string and assigns it to the Branch field.
|
|
func (o *PlatformRunnerBuildReq) SetBranch(v string) {
|
|
o.Branch = &v
|
|
}
|
|
|
|
// GetBucket returns the Bucket field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetBucket() string {
|
|
if o == nil || IsNil(o.Bucket) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Bucket
|
|
}
|
|
|
|
// GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetBucketOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Bucket) {
|
|
return nil, false
|
|
}
|
|
return o.Bucket, true
|
|
}
|
|
|
|
// HasBucket returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasBucket() bool {
|
|
if o != nil && !IsNil(o.Bucket) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBucket gets a reference to the given string and assigns it to the Bucket field.
|
|
func (o *PlatformRunnerBuildReq) SetBucket(v string) {
|
|
o.Bucket = &v
|
|
}
|
|
|
|
// GetContext returns the Context field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetContext() string {
|
|
if o == nil || IsNil(o.Context) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Context
|
|
}
|
|
|
|
// GetContextOk returns a tuple with the Context field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetContextOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Context) {
|
|
return nil, false
|
|
}
|
|
return o.Context, true
|
|
}
|
|
|
|
// HasContext returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasContext() bool {
|
|
if o != nil && !IsNil(o.Context) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetContext gets a reference to the given string and assigns it to the Context field.
|
|
func (o *PlatformRunnerBuildReq) SetContext(v string) {
|
|
o.Context = &v
|
|
}
|
|
|
|
// GetDockerTarget returns the DockerTarget field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetDockerTarget() string {
|
|
if o == nil || IsNil(o.DockerTarget) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DockerTarget
|
|
}
|
|
|
|
// GetDockerTargetOk returns a tuple with the DockerTarget field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetDockerTargetOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DockerTarget) {
|
|
return nil, false
|
|
}
|
|
return o.DockerTarget, true
|
|
}
|
|
|
|
// HasDockerTarget returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasDockerTarget() bool {
|
|
if o != nil && !IsNil(o.DockerTarget) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDockerTarget gets a reference to the given string and assigns it to the DockerTarget field.
|
|
func (o *PlatformRunnerBuildReq) SetDockerTarget(v string) {
|
|
o.DockerTarget = &v
|
|
}
|
|
|
|
// GetDockerfile returns the Dockerfile field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetDockerfile() string {
|
|
if o == nil || IsNil(o.Dockerfile) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Dockerfile
|
|
}
|
|
|
|
// GetDockerfileOk returns a tuple with the Dockerfile field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetDockerfileOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Dockerfile) {
|
|
return nil, false
|
|
}
|
|
return o.Dockerfile, true
|
|
}
|
|
|
|
// HasDockerfile returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasDockerfile() bool {
|
|
if o != nil && !IsNil(o.Dockerfile) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDockerfile gets a reference to the given string and assigns it to the Dockerfile field.
|
|
func (o *PlatformRunnerBuildReq) SetDockerfile(v string) {
|
|
o.Dockerfile = &v
|
|
}
|
|
|
|
// GetImage returns the Image field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetImage() string {
|
|
if o == nil || IsNil(o.Image) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Image
|
|
}
|
|
|
|
// GetImageOk returns a tuple with the Image field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetImageOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Image) {
|
|
return nil, false
|
|
}
|
|
return o.Image, true
|
|
}
|
|
|
|
// HasImage returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasImage() bool {
|
|
if o != nil && !IsNil(o.Image) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetImage gets a reference to the given string and assigns it to the Image field.
|
|
func (o *PlatformRunnerBuildReq) SetImage(v string) {
|
|
o.Image = &v
|
|
}
|
|
|
|
// GetOs returns the Os field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetOs() string {
|
|
if o == nil || IsNil(o.Os) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Os
|
|
}
|
|
|
|
// GetOsOk returns a tuple with the Os field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetOsOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Os) {
|
|
return nil, false
|
|
}
|
|
return o.Os, true
|
|
}
|
|
|
|
// HasOs returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasOs() bool {
|
|
if o != nil && !IsNil(o.Os) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOs gets a reference to the given string and assigns it to the Os field.
|
|
func (o *PlatformRunnerBuildReq) SetOs(v string) {
|
|
o.Os = &v
|
|
}
|
|
|
|
// GetPlatforms returns the Platforms field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetPlatforms() []string {
|
|
if o == nil || IsNil(o.Platforms) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.Platforms
|
|
}
|
|
|
|
// GetPlatformsOk returns a tuple with the Platforms field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetPlatformsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.Platforms) {
|
|
return nil, false
|
|
}
|
|
return o.Platforms, true
|
|
}
|
|
|
|
// HasPlatforms returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasPlatforms() bool {
|
|
if o != nil && !IsNil(o.Platforms) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPlatforms gets a reference to the given []string and assigns it to the Platforms field.
|
|
func (o *PlatformRunnerBuildReq) SetPlatforms(v []string) {
|
|
o.Platforms = v
|
|
}
|
|
|
|
// GetRef returns the Ref field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetRef() string {
|
|
if o == nil || IsNil(o.Ref) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Ref
|
|
}
|
|
|
|
// GetRefOk returns a tuple with the Ref field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetRefOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Ref) {
|
|
return nil, false
|
|
}
|
|
return o.Ref, true
|
|
}
|
|
|
|
// HasRef returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasRef() bool {
|
|
if o != nil && !IsNil(o.Ref) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRef gets a reference to the given string and assigns it to the Ref field.
|
|
func (o *PlatformRunnerBuildReq) SetRef(v string) {
|
|
o.Ref = &v
|
|
}
|
|
|
|
// GetRepo returns the Repo field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetRepo() string {
|
|
if o == nil || IsNil(o.Repo) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Repo
|
|
}
|
|
|
|
// GetRepoOk returns a tuple with the Repo field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetRepoOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Repo) {
|
|
return nil, false
|
|
}
|
|
return o.Repo, true
|
|
}
|
|
|
|
// HasRepo returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasRepo() bool {
|
|
if o != nil && !IsNil(o.Repo) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRepo gets a reference to the given string and assigns it to the Repo field.
|
|
func (o *PlatformRunnerBuildReq) SetRepo(v string) {
|
|
o.Repo = &v
|
|
}
|
|
|
|
// GetSha returns the Sha field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetSha() string {
|
|
if o == nil || IsNil(o.Sha) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Sha
|
|
}
|
|
|
|
// GetShaOk returns a tuple with the Sha field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetShaOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Sha) {
|
|
return nil, false
|
|
}
|
|
return o.Sha, true
|
|
}
|
|
|
|
// HasSha returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasSha() bool {
|
|
if o != nil && !IsNil(o.Sha) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSha gets a reference to the given string and assigns it to the Sha field.
|
|
func (o *PlatformRunnerBuildReq) SetSha(v string) {
|
|
o.Sha = &v
|
|
}
|
|
|
|
// GetTag returns the Tag field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetTag() string {
|
|
if o == nil || IsNil(o.Tag) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Tag
|
|
}
|
|
|
|
// GetTagOk returns a tuple with the Tag field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetTagOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Tag) {
|
|
return nil, false
|
|
}
|
|
return o.Tag, true
|
|
}
|
|
|
|
// HasTag returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasTag() bool {
|
|
if o != nil && !IsNil(o.Tag) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTag gets a reference to the given string and assigns it to the Tag field.
|
|
func (o *PlatformRunnerBuildReq) SetTag(v string) {
|
|
o.Tag = &v
|
|
}
|
|
|
|
// GetTags returns the Tags field value if set, zero value otherwise.
|
|
func (o *PlatformRunnerBuildReq) GetTags() []string {
|
|
if o == nil || IsNil(o.Tags) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.Tags
|
|
}
|
|
|
|
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PlatformRunnerBuildReq) GetTagsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.Tags) {
|
|
return nil, false
|
|
}
|
|
return o.Tags, true
|
|
}
|
|
|
|
// HasTags returns a boolean if a field has been set.
|
|
func (o *PlatformRunnerBuildReq) HasTags() bool {
|
|
if o != nil && !IsNil(o.Tags) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTags gets a reference to the given []string and assigns it to the Tags field.
|
|
func (o *PlatformRunnerBuildReq) SetTags(v []string) {
|
|
o.Tags = v
|
|
}
|
|
|
|
func (o PlatformRunnerBuildReq) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o PlatformRunnerBuildReq) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Arch) {
|
|
toSerialize["arch"] = o.Arch
|
|
}
|
|
if !IsNil(o.Args) {
|
|
toSerialize["args"] = o.Args
|
|
}
|
|
if !IsNil(o.Binaries) {
|
|
toSerialize["binaries"] = o.Binaries
|
|
}
|
|
if !IsNil(o.Branch) {
|
|
toSerialize["branch"] = o.Branch
|
|
}
|
|
if !IsNil(o.Bucket) {
|
|
toSerialize["bucket"] = o.Bucket
|
|
}
|
|
if !IsNil(o.Context) {
|
|
toSerialize["context"] = o.Context
|
|
}
|
|
if !IsNil(o.DockerTarget) {
|
|
toSerialize["dockerTarget"] = o.DockerTarget
|
|
}
|
|
if !IsNil(o.Dockerfile) {
|
|
toSerialize["dockerfile"] = o.Dockerfile
|
|
}
|
|
if !IsNil(o.Image) {
|
|
toSerialize["image"] = o.Image
|
|
}
|
|
if !IsNil(o.Os) {
|
|
toSerialize["os"] = o.Os
|
|
}
|
|
if !IsNil(o.Platforms) {
|
|
toSerialize["platforms"] = o.Platforms
|
|
}
|
|
if !IsNil(o.Ref) {
|
|
toSerialize["ref"] = o.Ref
|
|
}
|
|
if !IsNil(o.Repo) {
|
|
toSerialize["repo"] = o.Repo
|
|
}
|
|
if !IsNil(o.Sha) {
|
|
toSerialize["sha"] = o.Sha
|
|
}
|
|
if !IsNil(o.Tag) {
|
|
toSerialize["tag"] = o.Tag
|
|
}
|
|
if !IsNil(o.Tags) {
|
|
toSerialize["tags"] = o.Tags
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *PlatformRunnerBuildReq) UnmarshalJSON(data []byte) (err error) {
|
|
varPlatformRunnerBuildReq := _PlatformRunnerBuildReq{}
|
|
|
|
err = json.Unmarshal(data, &varPlatformRunnerBuildReq)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = PlatformRunnerBuildReq(varPlatformRunnerBuildReq)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "arch")
|
|
delete(additionalProperties, "args")
|
|
delete(additionalProperties, "binaries")
|
|
delete(additionalProperties, "branch")
|
|
delete(additionalProperties, "bucket")
|
|
delete(additionalProperties, "context")
|
|
delete(additionalProperties, "dockerTarget")
|
|
delete(additionalProperties, "dockerfile")
|
|
delete(additionalProperties, "image")
|
|
delete(additionalProperties, "os")
|
|
delete(additionalProperties, "platforms")
|
|
delete(additionalProperties, "ref")
|
|
delete(additionalProperties, "repo")
|
|
delete(additionalProperties, "sha")
|
|
delete(additionalProperties, "tag")
|
|
delete(additionalProperties, "tags")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullablePlatformRunnerBuildReq struct {
|
|
value *PlatformRunnerBuildReq
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullablePlatformRunnerBuildReq) Get() *PlatformRunnerBuildReq {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullablePlatformRunnerBuildReq) Set(val *PlatformRunnerBuildReq) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullablePlatformRunnerBuildReq) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullablePlatformRunnerBuildReq) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullablePlatformRunnerBuildReq(val *PlatformRunnerBuildReq) *NullablePlatformRunnerBuildReq {
|
|
return &NullablePlatformRunnerBuildReq{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullablePlatformRunnerBuildReq) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullablePlatformRunnerBuildReq) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|