/
model_batch_input_json_node.go
106 lines (85 loc) · 3.85 KB
/
model_batch_input_json_node.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
HubDB endpoints
HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`.
API version: v3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hubdb
import (
"encoding/json"
)
// BatchInputJsonNode struct for BatchInputJsonNode
type BatchInputJsonNode struct {
Inputs []map[string]interface{} `json:"inputs"`
}
// NewBatchInputJsonNode instantiates a new BatchInputJsonNode 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 NewBatchInputJsonNode(inputs []map[string]interface{}) *BatchInputJsonNode {
this := BatchInputJsonNode{}
this.Inputs = inputs
return &this
}
// NewBatchInputJsonNodeWithDefaults instantiates a new BatchInputJsonNode 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 NewBatchInputJsonNodeWithDefaults() *BatchInputJsonNode {
this := BatchInputJsonNode{}
return &this
}
// GetInputs returns the Inputs field value
func (o *BatchInputJsonNode) GetInputs() []map[string]interface{} {
if o == nil {
var ret []map[string]interface{}
return ret
}
return o.Inputs
}
// GetInputsOk returns a tuple with the Inputs field value
// and a boolean to check if the value has been set.
func (o *BatchInputJsonNode) GetInputsOk() ([]map[string]interface{}, bool) {
if o == nil {
return nil, false
}
return o.Inputs, true
}
// SetInputs sets field value
func (o *BatchInputJsonNode) SetInputs(v []map[string]interface{}) {
o.Inputs = v
}
func (o BatchInputJsonNode) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["inputs"] = o.Inputs
}
return json.Marshal(toSerialize)
}
type NullableBatchInputJsonNode struct {
value *BatchInputJsonNode
isSet bool
}
func (v NullableBatchInputJsonNode) Get() *BatchInputJsonNode {
return v.value
}
func (v *NullableBatchInputJsonNode) Set(val *BatchInputJsonNode) {
v.value = val
v.isSet = true
}
func (v NullableBatchInputJsonNode) IsSet() bool {
return v.isSet
}
func (v *NullableBatchInputJsonNode) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBatchInputJsonNode(val *BatchInputJsonNode) *NullableBatchInputJsonNode {
return &NullableBatchInputJsonNode{value: val, isSet: true}
}
func (v NullableBatchInputJsonNode) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBatchInputJsonNode) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}