-
Notifications
You must be signed in to change notification settings - Fork 14
/
destinationcumulioupdate.go
48 lines (40 loc) · 1.33 KB
/
destinationcumulioupdate.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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/airbytehq/terraform-provider-airbyte/internal/sdk/pkg/utils"
)
type DestinationCumulioUpdate struct {
// URL of the Cumul.io API (e.g. 'https://api.cumul.io', 'https://api.us.cumul.io', or VPC-specific API url). Defaults to 'https://api.cumul.io'.
APIHost *string `default:"https://api.cumul.io" json:"api_host"`
// An API key generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).
APIKey string `json:"api_key"`
// The corresponding API token generated in Cumul.io's platform (can be generated here: https://app.cumul.io/start/profile/integration).
APIToken string `json:"api_token"`
}
func (d DestinationCumulioUpdate) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(d, "", false)
}
func (d *DestinationCumulioUpdate) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil {
return err
}
return nil
}
func (o *DestinationCumulioUpdate) GetAPIHost() *string {
if o == nil {
return nil
}
return o.APIHost
}
func (o *DestinationCumulioUpdate) GetAPIKey() string {
if o == nil {
return ""
}
return o.APIKey
}
func (o *DestinationCumulioUpdate) GetAPIToken() string {
if o == nil {
return ""
}
return o.APIToken
}