Files
sdk/model_guide_profile_response.go

231 lines
7.1 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 GuideProfileResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GuideProfileResponse{}
// GuideProfileResponse struct for GuideProfileResponse
type GuideProfileResponse struct {
// KeyMetrics are the org's OWN numbers behind those signals — never another org's, and never a platform aggregate.
KeyMetrics *GuideProfileMetrics `json:"keyMetrics,omitempty"`
// Signals is what was observed of the org right now, one boolean per probe. A probe that could not be run reports FALSE, not absent — the shape is stable so a caller never has to tell a missing key from a negative answer, and the cost is that \"not observed\" and \"not there\" look alike here. Keys are the probe names, including the `module:<name>` and `connected:<provider>` families.
Signals map[string]bool `json:"signals,omitempty"`
// Stage is how far the business itself has got — formed, launched, activated or scaling — decided purely from the signals below, and by what the org has ACHIEVED rather than what it has configured. It reads the STRONGEST evidence present, so money of record makes an org scaling even if an earlier rung's signal was never observed. It is unrelated to checklist progress.
Stage *string `json:"stage,omitempty"`
AdditionalProperties map[string]interface{}
}
type _GuideProfileResponse GuideProfileResponse
// NewGuideProfileResponse instantiates a new GuideProfileResponse 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 NewGuideProfileResponse() *GuideProfileResponse {
this := GuideProfileResponse{}
return &this
}
// NewGuideProfileResponseWithDefaults instantiates a new GuideProfileResponse 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 NewGuideProfileResponseWithDefaults() *GuideProfileResponse {
this := GuideProfileResponse{}
return &this
}
// GetKeyMetrics returns the KeyMetrics field value if set, zero value otherwise.
func (o *GuideProfileResponse) GetKeyMetrics() GuideProfileMetrics {
if o == nil || IsNil(o.KeyMetrics) {
var ret GuideProfileMetrics
return ret
}
return *o.KeyMetrics
}
// GetKeyMetricsOk returns a tuple with the KeyMetrics field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideProfileResponse) GetKeyMetricsOk() (*GuideProfileMetrics, bool) {
if o == nil || IsNil(o.KeyMetrics) {
return nil, false
}
return o.KeyMetrics, true
}
// HasKeyMetrics returns a boolean if a field has been set.
func (o *GuideProfileResponse) HasKeyMetrics() bool {
if o != nil && !IsNil(o.KeyMetrics) {
return true
}
return false
}
// SetKeyMetrics gets a reference to the given GuideProfileMetrics and assigns it to the KeyMetrics field.
func (o *GuideProfileResponse) SetKeyMetrics(v GuideProfileMetrics) {
o.KeyMetrics = &v
}
// GetSignals returns the Signals field value if set, zero value otherwise.
func (o *GuideProfileResponse) GetSignals() map[string]bool {
if o == nil || IsNil(o.Signals) {
var ret map[string]bool
return ret
}
return o.Signals
}
// GetSignalsOk returns a tuple with the Signals field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideProfileResponse) GetSignalsOk() (map[string]bool, bool) {
if o == nil || IsNil(o.Signals) {
return map[string]bool{}, false
}
return o.Signals, true
}
// HasSignals returns a boolean if a field has been set.
func (o *GuideProfileResponse) HasSignals() bool {
if o != nil && !IsNil(o.Signals) {
return true
}
return false
}
// SetSignals gets a reference to the given map[string]bool and assigns it to the Signals field.
func (o *GuideProfileResponse) SetSignals(v map[string]bool) {
o.Signals = v
}
// GetStage returns the Stage field value if set, zero value otherwise.
func (o *GuideProfileResponse) GetStage() string {
if o == nil || IsNil(o.Stage) {
var ret string
return ret
}
return *o.Stage
}
// GetStageOk returns a tuple with the Stage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideProfileResponse) GetStageOk() (*string, bool) {
if o == nil || IsNil(o.Stage) {
return nil, false
}
return o.Stage, true
}
// HasStage returns a boolean if a field has been set.
func (o *GuideProfileResponse) HasStage() bool {
if o != nil && !IsNil(o.Stage) {
return true
}
return false
}
// SetStage gets a reference to the given string and assigns it to the Stage field.
func (o *GuideProfileResponse) SetStage(v string) {
o.Stage = &v
}
func (o GuideProfileResponse) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GuideProfileResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.KeyMetrics) {
toSerialize["keyMetrics"] = o.KeyMetrics
}
if !IsNil(o.Signals) {
toSerialize["signals"] = o.Signals
}
if !IsNil(o.Stage) {
toSerialize["stage"] = o.Stage
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *GuideProfileResponse) UnmarshalJSON(data []byte) (err error) {
varGuideProfileResponse := _GuideProfileResponse{}
err = json.Unmarshal(data, &varGuideProfileResponse)
if err != nil {
return err
}
*o = GuideProfileResponse(varGuideProfileResponse)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "keyMetrics")
delete(additionalProperties, "signals")
delete(additionalProperties, "stage")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableGuideProfileResponse struct {
value *GuideProfileResponse
isSet bool
}
func (v NullableGuideProfileResponse) Get() *GuideProfileResponse {
return v.value
}
func (v *NullableGuideProfileResponse) Set(val *GuideProfileResponse) {
v.value = val
v.isSet = true
}
func (v NullableGuideProfileResponse) IsSet() bool {
return v.isSet
}
func (v *NullableGuideProfileResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGuideProfileResponse(val *GuideProfileResponse) *NullableGuideProfileResponse {
return &NullableGuideProfileResponse{value: val, isSet: true}
}
func (v NullableGuideProfileResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGuideProfileResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}