mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
672 lines
18 KiB
Go
672 lines
18 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 ProjectsDeployment type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &ProjectsDeployment{}
|
|
|
|
// ProjectsDeployment struct for ProjectsDeployment
|
|
type ProjectsDeployment struct {
|
|
Bucket *string `json:"bucket,omitempty"`
|
|
Bytes *int32 `json:"bytes,omitempty"`
|
|
Commit *string `json:"commit,omitempty"`
|
|
CreatedAt *int32 `json:"createdAt,omitempty"`
|
|
Files *int32 `json:"files,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
LiveUrl *string `json:"liveUrl,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Prefix *string `json:"prefix,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Source *string `json:"source,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
UpdatedAt *int32 `json:"updatedAt,omitempty"`
|
|
Upload *ProjectsUploadGrant `json:"upload,omitempty"`
|
|
Version *int32 `json:"version,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _ProjectsDeployment ProjectsDeployment
|
|
|
|
// NewProjectsDeployment instantiates a new ProjectsDeployment 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 NewProjectsDeployment() *ProjectsDeployment {
|
|
this := ProjectsDeployment{}
|
|
return &this
|
|
}
|
|
|
|
// NewProjectsDeploymentWithDefaults instantiates a new ProjectsDeployment 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 NewProjectsDeploymentWithDefaults() *ProjectsDeployment {
|
|
this := ProjectsDeployment{}
|
|
return &this
|
|
}
|
|
|
|
// GetBucket returns the Bucket field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) 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 *ProjectsDeployment) 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 *ProjectsDeployment) 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 *ProjectsDeployment) SetBucket(v string) {
|
|
o.Bucket = &v
|
|
}
|
|
|
|
// GetBytes returns the Bytes field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetBytes() int32 {
|
|
if o == nil || IsNil(o.Bytes) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Bytes
|
|
}
|
|
|
|
// GetBytesOk returns a tuple with the Bytes field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetBytesOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Bytes) {
|
|
return nil, false
|
|
}
|
|
return o.Bytes, true
|
|
}
|
|
|
|
// HasBytes returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasBytes() bool {
|
|
if o != nil && !IsNil(o.Bytes) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBytes gets a reference to the given int32 and assigns it to the Bytes field.
|
|
func (o *ProjectsDeployment) SetBytes(v int32) {
|
|
o.Bytes = &v
|
|
}
|
|
|
|
// GetCommit returns the Commit field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetCommit() string {
|
|
if o == nil || IsNil(o.Commit) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Commit
|
|
}
|
|
|
|
// GetCommitOk returns a tuple with the Commit field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetCommitOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Commit) {
|
|
return nil, false
|
|
}
|
|
return o.Commit, true
|
|
}
|
|
|
|
// HasCommit returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasCommit() bool {
|
|
if o != nil && !IsNil(o.Commit) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCommit gets a reference to the given string and assigns it to the Commit field.
|
|
func (o *ProjectsDeployment) SetCommit(v string) {
|
|
o.Commit = &v
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetCreatedAt() int32 {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.CreatedAt
|
|
}
|
|
|
|
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetCreatedAtOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedAt, true
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasCreatedAt() bool {
|
|
if o != nil && !IsNil(o.CreatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field.
|
|
func (o *ProjectsDeployment) SetCreatedAt(v int32) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetFiles returns the Files field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetFiles() int32 {
|
|
if o == nil || IsNil(o.Files) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Files
|
|
}
|
|
|
|
// GetFilesOk returns a tuple with the Files field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetFilesOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Files) {
|
|
return nil, false
|
|
}
|
|
return o.Files, true
|
|
}
|
|
|
|
// HasFiles returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasFiles() bool {
|
|
if o != nil && !IsNil(o.Files) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFiles gets a reference to the given int32 and assigns it to the Files field.
|
|
func (o *ProjectsDeployment) SetFiles(v int32) {
|
|
o.Files = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *ProjectsDeployment) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetLiveUrl returns the LiveUrl field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetLiveUrl() string {
|
|
if o == nil || IsNil(o.LiveUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.LiveUrl
|
|
}
|
|
|
|
// GetLiveUrlOk returns a tuple with the LiveUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetLiveUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.LiveUrl) {
|
|
return nil, false
|
|
}
|
|
return o.LiveUrl, true
|
|
}
|
|
|
|
// HasLiveUrl returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasLiveUrl() bool {
|
|
if o != nil && !IsNil(o.LiveUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLiveUrl gets a reference to the given string and assigns it to the LiveUrl field.
|
|
func (o *ProjectsDeployment) SetLiveUrl(v string) {
|
|
o.LiveUrl = &v
|
|
}
|
|
|
|
// GetMessage returns the Message field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetMessage() string {
|
|
if o == nil || IsNil(o.Message) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Message
|
|
}
|
|
|
|
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetMessageOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Message) {
|
|
return nil, false
|
|
}
|
|
return o.Message, true
|
|
}
|
|
|
|
// HasMessage returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasMessage() bool {
|
|
if o != nil && !IsNil(o.Message) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMessage gets a reference to the given string and assigns it to the Message field.
|
|
func (o *ProjectsDeployment) SetMessage(v string) {
|
|
o.Message = &v
|
|
}
|
|
|
|
// GetPrefix returns the Prefix field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetPrefix() string {
|
|
if o == nil || IsNil(o.Prefix) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Prefix
|
|
}
|
|
|
|
// GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetPrefixOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Prefix) {
|
|
return nil, false
|
|
}
|
|
return o.Prefix, true
|
|
}
|
|
|
|
// HasPrefix returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasPrefix() bool {
|
|
if o != nil && !IsNil(o.Prefix) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPrefix gets a reference to the given string and assigns it to the Prefix field.
|
|
func (o *ProjectsDeployment) SetPrefix(v string) {
|
|
o.Prefix = &v
|
|
}
|
|
|
|
// GetProjectId returns the ProjectId field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetProjectId() string {
|
|
if o == nil || IsNil(o.ProjectId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ProjectId
|
|
}
|
|
|
|
// GetProjectIdOk returns a tuple with the ProjectId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetProjectIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ProjectId) {
|
|
return nil, false
|
|
}
|
|
return o.ProjectId, true
|
|
}
|
|
|
|
// HasProjectId returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasProjectId() bool {
|
|
if o != nil && !IsNil(o.ProjectId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProjectId gets a reference to the given string and assigns it to the ProjectId field.
|
|
func (o *ProjectsDeployment) SetProjectId(v string) {
|
|
o.ProjectId = &v
|
|
}
|
|
|
|
// GetSource returns the Source field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetSource() string {
|
|
if o == nil || IsNil(o.Source) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Source
|
|
}
|
|
|
|
// GetSourceOk returns a tuple with the Source field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetSourceOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Source) {
|
|
return nil, false
|
|
}
|
|
return o.Source, true
|
|
}
|
|
|
|
// HasSource returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasSource() bool {
|
|
if o != nil && !IsNil(o.Source) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSource gets a reference to the given string and assigns it to the Source field.
|
|
func (o *ProjectsDeployment) SetSource(v string) {
|
|
o.Source = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetStatus() string {
|
|
if o == nil || IsNil(o.Status) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Status
|
|
}
|
|
|
|
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetStatusOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Status) {
|
|
return nil, false
|
|
}
|
|
return o.Status, true
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *ProjectsDeployment) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetUpdatedAt() int32 {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.UpdatedAt
|
|
}
|
|
|
|
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetUpdatedAtOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.UpdatedAt, true
|
|
}
|
|
|
|
// HasUpdatedAt returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasUpdatedAt() bool {
|
|
if o != nil && !IsNil(o.UpdatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUpdatedAt gets a reference to the given int32 and assigns it to the UpdatedAt field.
|
|
func (o *ProjectsDeployment) SetUpdatedAt(v int32) {
|
|
o.UpdatedAt = &v
|
|
}
|
|
|
|
// GetUpload returns the Upload field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetUpload() ProjectsUploadGrant {
|
|
if o == nil || IsNil(o.Upload) {
|
|
var ret ProjectsUploadGrant
|
|
return ret
|
|
}
|
|
return *o.Upload
|
|
}
|
|
|
|
// GetUploadOk returns a tuple with the Upload field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetUploadOk() (*ProjectsUploadGrant, bool) {
|
|
if o == nil || IsNil(o.Upload) {
|
|
return nil, false
|
|
}
|
|
return o.Upload, true
|
|
}
|
|
|
|
// HasUpload returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasUpload() bool {
|
|
if o != nil && !IsNil(o.Upload) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUpload gets a reference to the given ProjectsUploadGrant and assigns it to the Upload field.
|
|
func (o *ProjectsDeployment) SetUpload(v ProjectsUploadGrant) {
|
|
o.Upload = &v
|
|
}
|
|
|
|
// GetVersion returns the Version field value if set, zero value otherwise.
|
|
func (o *ProjectsDeployment) GetVersion() int32 {
|
|
if o == nil || IsNil(o.Version) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Version
|
|
}
|
|
|
|
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ProjectsDeployment) GetVersionOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Version) {
|
|
return nil, false
|
|
}
|
|
return o.Version, true
|
|
}
|
|
|
|
// HasVersion returns a boolean if a field has been set.
|
|
func (o *ProjectsDeployment) HasVersion() bool {
|
|
if o != nil && !IsNil(o.Version) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVersion gets a reference to the given int32 and assigns it to the Version field.
|
|
func (o *ProjectsDeployment) SetVersion(v int32) {
|
|
o.Version = &v
|
|
}
|
|
|
|
func (o ProjectsDeployment) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o ProjectsDeployment) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Bucket) {
|
|
toSerialize["bucket"] = o.Bucket
|
|
}
|
|
if !IsNil(o.Bytes) {
|
|
toSerialize["bytes"] = o.Bytes
|
|
}
|
|
if !IsNil(o.Commit) {
|
|
toSerialize["commit"] = o.Commit
|
|
}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["createdAt"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.Files) {
|
|
toSerialize["files"] = o.Files
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.LiveUrl) {
|
|
toSerialize["liveUrl"] = o.LiveUrl
|
|
}
|
|
if !IsNil(o.Message) {
|
|
toSerialize["message"] = o.Message
|
|
}
|
|
if !IsNil(o.Prefix) {
|
|
toSerialize["prefix"] = o.Prefix
|
|
}
|
|
if !IsNil(o.ProjectId) {
|
|
toSerialize["projectId"] = o.ProjectId
|
|
}
|
|
if !IsNil(o.Source) {
|
|
toSerialize["source"] = o.Source
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if !IsNil(o.UpdatedAt) {
|
|
toSerialize["updatedAt"] = o.UpdatedAt
|
|
}
|
|
if !IsNil(o.Upload) {
|
|
toSerialize["upload"] = o.Upload
|
|
}
|
|
if !IsNil(o.Version) {
|
|
toSerialize["version"] = o.Version
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *ProjectsDeployment) UnmarshalJSON(data []byte) (err error) {
|
|
varProjectsDeployment := _ProjectsDeployment{}
|
|
|
|
err = json.Unmarshal(data, &varProjectsDeployment)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = ProjectsDeployment(varProjectsDeployment)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "bucket")
|
|
delete(additionalProperties, "bytes")
|
|
delete(additionalProperties, "commit")
|
|
delete(additionalProperties, "createdAt")
|
|
delete(additionalProperties, "files")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "liveUrl")
|
|
delete(additionalProperties, "message")
|
|
delete(additionalProperties, "prefix")
|
|
delete(additionalProperties, "projectId")
|
|
delete(additionalProperties, "source")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "updatedAt")
|
|
delete(additionalProperties, "upload")
|
|
delete(additionalProperties, "version")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableProjectsDeployment struct {
|
|
value *ProjectsDeployment
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableProjectsDeployment) Get() *ProjectsDeployment {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableProjectsDeployment) Set(val *ProjectsDeployment) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableProjectsDeployment) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableProjectsDeployment) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableProjectsDeployment(val *ProjectsDeployment) *NullableProjectsDeployment {
|
|
return &NullableProjectsDeployment{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableProjectsDeployment) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableProjectsDeployment) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|