// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package shared

type SourceMetabaseUpdate struct {
	// URL to your metabase instance API
	InstanceAPIURL string  `json:"instance_api_url"`
	Password       *string `json:"password,omitempty"`
	// To generate your session token, you need to run the following command: ``` curl -X POST \
	//   -H "Content-Type: application/json" \
	//   -d '{"username": "person@metabase.com", "password": "fakepassword"}' \
	//   http://localhost:3000/api/session
	// ``` Then copy the value of the `id` field returned by a successful call to that API.
	// Note that by default, sessions are good for 14 days and needs to be regenerated.
	SessionToken *string `json:"session_token,omitempty"`
	Username     string  `json:"username"`
}

func (o *SourceMetabaseUpdate) GetInstanceAPIURL() string {
	if o == nil {
		return ""
	}
	return o.InstanceAPIURL
}

func (o *SourceMetabaseUpdate) GetPassword() *string {
	if o == nil {
		return nil
	}
	return o.Password
}

func (o *SourceMetabaseUpdate) GetSessionToken() *string {
	if o == nil {
		return nil
	}
	return o.SessionToken
}

func (o *SourceMetabaseUpdate) GetUsername() string {
	if o == nil {
		return ""
	}
	return o.Username
}
