-
Notifications
You must be signed in to change notification settings - Fork 14
/
sourcekyveupdate.go
66 lines (56 loc) · 1.56 KB
/
sourcekyveupdate.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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/airbytehq/terraform-provider-airbyte/internal/sdk/pkg/utils"
)
type SourceKyveUpdate struct {
// The maximum amount of pages to go trough. Set to 'null' for all pages.
MaxPages *int64 `json:"max_pages,omitempty"`
// The pagesize for pagination, smaller numbers are used in integration tests.
PageSize *int64 `default:"100" json:"page_size"`
// The IDs of the KYVE storage pool you want to archive. (Comma separated)
PoolIds string `json:"pool_ids"`
// The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma separated)
StartIds string `json:"start_ids"`
// URL to the KYVE Chain API.
URLBase *string `default:"https://api.kyve.network" json:"url_base"`
}
func (s SourceKyveUpdate) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(s, "", false)
}
func (s *SourceKyveUpdate) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
return err
}
return nil
}
func (o *SourceKyveUpdate) GetMaxPages() *int64 {
if o == nil {
return nil
}
return o.MaxPages
}
func (o *SourceKyveUpdate) GetPageSize() *int64 {
if o == nil {
return nil
}
return o.PageSize
}
func (o *SourceKyveUpdate) GetPoolIds() string {
if o == nil {
return ""
}
return o.PoolIds
}
func (o *SourceKyveUpdate) GetStartIds() string {
if o == nil {
return ""
}
return o.StartIds
}
func (o *SourceKyveUpdate) GetURLBase() *string {
if o == nil {
return nil
}
return o.URLBase
}