properties

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 23 Imported by: 0

README

Go API client for properties

All HubSpot objects store data in default and custom properties. These endpoints provide access to read and modify object properties in HubSpot.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: v3
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import properties "github.com/GIT_USER_ID/GIT_REPO_ID"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), properties.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), properties.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), properties.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), properties.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.hubapi.com

Class Method HTTP request Description
BatchApi BatchArchive Post /crm/v3/properties/{objectType}/batch/archive Archive a batch of properties
BatchApi BatchCreate Post /crm/v3/properties/{objectType}/batch/create Create a batch of properties
BatchApi BatchRead Post /crm/v3/properties/{objectType}/batch/read Read a batch of properties
CoreApi Archive Delete /crm/v3/properties/{objectType}/{propertyName} Archive a property
CoreApi Create Post /crm/v3/properties/{objectType} Create a property
CoreApi GetAll Get /crm/v3/properties/{objectType} Read all properties
CoreApi GetByName Get /crm/v3/properties/{objectType}/{propertyName} Read a property
CoreApi Update Patch /crm/v3/properties/{objectType}/{propertyName} Update a property
GroupsApi GroupsArchive Delete /crm/v3/properties/{objectType}/groups/{groupName} Archive a property group
GroupsApi GroupsCreate Post /crm/v3/properties/{objectType}/groups Create a property group
GroupsApi GroupsGetAll Get /crm/v3/properties/{objectType}/groups Read all property groups
GroupsApi GroupsGetByName Get /crm/v3/properties/{objectType}/groups/{groupName} Read a property group
GroupsApi GroupsUpdate Patch /crm/v3/properties/{objectType}/groups/{groupName} Update a property group

Documentation For Models

Documentation For Authorization

hapikey
  • Type: API key
  • API key parameter name: hapikey
  • Location: URL query string

Note, each API key must be added to a map of map[string]APIKey where the key is: hapikey and passed in as the auth context for each request.

oauth2
  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://app.hubspot.com/oauth/authorize
  • Scopes:
  • crm.objects.contacts.read:
  • crm.schemas.quotes.read: Quotes schemas
  • crm.objects.contacts.write:
  • crm.schemas.contacts.read:
  • crm.objects.companies.write:
  • crm.objects.companies.read:
  • crm.schemas.companies.read:
  • crm.objects.deals.read:
  • crm.schemas.line_items.read: Line Items schemas
  • crm.objects.deals.write:
  • crm.schemas.deals.read:
  • crm.schemas.deals.write:
  • crm.schemas.contacts.write:
  • crm.schemas.companies.write:

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)
oauth2_legacy
  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://app.hubspot.com/oauth/authorize
  • Scopes:
  • timeline: Create timeline events
  • tickets: Read and write tickets
  • media_bridge.read: Read media and media events
  • crm.schemas.custom.read: View custom object definitions
  • e-commerce: e-commerce

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)
private_apps
  • Type: API key
  • API key parameter name: private-app
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: private-app and passed in as the auth context for each request.

private_apps_legacy
  • Type: API key
  • API key parameter name: private-app-legacy
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: private-app-legacy and passed in as the auth context for each request.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	BatchApi *BatchApiService

	CoreApi *CoreApiService

	GroupsApi *GroupsApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Properties API vv3 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiArchiveRequest

type ApiArchiveRequest struct {
	ApiService *CoreApiService
	// contains filtered or unexported fields
}

func (ApiArchiveRequest) Execute

func (r ApiArchiveRequest) Execute() (*http.Response, error)

type ApiBatchArchiveRequest

type ApiBatchArchiveRequest struct {
	ApiService *BatchApiService
	// contains filtered or unexported fields
}

func (ApiBatchArchiveRequest) BatchInputPropertyName

func (r ApiBatchArchiveRequest) BatchInputPropertyName(batchInputPropertyName BatchInputPropertyName) ApiBatchArchiveRequest

func (ApiBatchArchiveRequest) Execute

func (r ApiBatchArchiveRequest) Execute() (*http.Response, error)

type ApiBatchCreateRequest

type ApiBatchCreateRequest struct {
	ApiService *BatchApiService
	// contains filtered or unexported fields
}

func (ApiBatchCreateRequest) BatchInputPropertyCreate

func (r ApiBatchCreateRequest) BatchInputPropertyCreate(batchInputPropertyCreate BatchInputPropertyCreate) ApiBatchCreateRequest

func (ApiBatchCreateRequest) Execute

type ApiBatchReadRequest

type ApiBatchReadRequest struct {
	ApiService *BatchApiService
	// contains filtered or unexported fields
}

func (ApiBatchReadRequest) BatchReadInputPropertyName

func (r ApiBatchReadRequest) BatchReadInputPropertyName(batchReadInputPropertyName BatchReadInputPropertyName) ApiBatchReadRequest

func (ApiBatchReadRequest) Execute

type ApiCreateRequest

type ApiCreateRequest struct {
	ApiService *CoreApiService
	// contains filtered or unexported fields
}

func (ApiCreateRequest) Execute

func (r ApiCreateRequest) Execute() (*Property, *http.Response, error)

func (ApiCreateRequest) PropertyCreate

func (r ApiCreateRequest) PropertyCreate(propertyCreate PropertyCreate) ApiCreateRequest

type ApiGetAllRequest

type ApiGetAllRequest struct {
	ApiService *CoreApiService
	// contains filtered or unexported fields
}

func (ApiGetAllRequest) Archived

func (r ApiGetAllRequest) Archived(archived bool) ApiGetAllRequest

Whether to return only results that have been archived.

func (ApiGetAllRequest) Execute

type ApiGetByNameRequest

type ApiGetByNameRequest struct {
	ApiService *CoreApiService
	// contains filtered or unexported fields
}

func (ApiGetByNameRequest) Archived

func (r ApiGetByNameRequest) Archived(archived bool) ApiGetByNameRequest

Whether to return only results that have been archived.

func (ApiGetByNameRequest) Execute

func (r ApiGetByNameRequest) Execute() (*Property, *http.Response, error)

type ApiGroupsArchiveRequest

type ApiGroupsArchiveRequest struct {
	ApiService *GroupsApiService
	// contains filtered or unexported fields
}

func (ApiGroupsArchiveRequest) Execute

func (r ApiGroupsArchiveRequest) Execute() (*http.Response, error)

type ApiGroupsCreateRequest

type ApiGroupsCreateRequest struct {
	ApiService *GroupsApiService
	// contains filtered or unexported fields
}

func (ApiGroupsCreateRequest) Execute

func (ApiGroupsCreateRequest) PropertyGroupCreate

func (r ApiGroupsCreateRequest) PropertyGroupCreate(propertyGroupCreate PropertyGroupCreate) ApiGroupsCreateRequest

type ApiGroupsGetAllRequest

type ApiGroupsGetAllRequest struct {
	ApiService *GroupsApiService
	// contains filtered or unexported fields
}

func (ApiGroupsGetAllRequest) Execute

type ApiGroupsGetByNameRequest

type ApiGroupsGetByNameRequest struct {
	ApiService *GroupsApiService
	// contains filtered or unexported fields
}

func (ApiGroupsGetByNameRequest) Execute

type ApiGroupsUpdateRequest

type ApiGroupsUpdateRequest struct {
	ApiService *GroupsApiService
	// contains filtered or unexported fields
}

func (ApiGroupsUpdateRequest) Execute

func (ApiGroupsUpdateRequest) PropertyGroupUpdate

func (r ApiGroupsUpdateRequest) PropertyGroupUpdate(propertyGroupUpdate PropertyGroupUpdate) ApiGroupsUpdateRequest

type ApiUpdateRequest

type ApiUpdateRequest struct {
	ApiService *CoreApiService
	// contains filtered or unexported fields
}

func (ApiUpdateRequest) Execute

func (r ApiUpdateRequest) Execute() (*Property, *http.Response, error)

func (ApiUpdateRequest) PropertyUpdate

func (r ApiUpdateRequest) PropertyUpdate(propertyUpdate PropertyUpdate) ApiUpdateRequest

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BatchApiService

type BatchApiService service

BatchApiService BatchApi service

func (*BatchApiService) BatchArchive

func (a *BatchApiService) BatchArchive(ctx context.Context, objectType string) ApiBatchArchiveRequest

BatchArchive Archive a batch of properties

Archive a provided list of properties. This method will return a 204 No Content response on success regardless of the initial state of the property (e.g. active, already archived, non-existent).

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@return ApiBatchArchiveRequest

func (*BatchApiService) BatchArchiveExecute

func (a *BatchApiService) BatchArchiveExecute(r ApiBatchArchiveRequest) (*http.Response, error)

Execute executes the request

func (*BatchApiService) BatchCreate

func (a *BatchApiService) BatchCreate(ctx context.Context, objectType string) ApiBatchCreateRequest

BatchCreate Create a batch of properties

Create a batch of properties using the same rules as when creating an individual property.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@return ApiBatchCreateRequest

func (*BatchApiService) BatchCreateExecute

Execute executes the request

@return BatchResponseProperty

func (*BatchApiService) BatchRead

func (a *BatchApiService) BatchRead(ctx context.Context, objectType string) ApiBatchReadRequest

BatchRead Read a batch of properties

Read a provided list of properties.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@return ApiBatchReadRequest

func (*BatchApiService) BatchReadExecute

Execute executes the request

@return BatchResponseProperty

type BatchInputPropertyCreate

type BatchInputPropertyCreate struct {
	Inputs []PropertyCreate `json:"inputs"`
}

BatchInputPropertyCreate struct for BatchInputPropertyCreate

func NewBatchInputPropertyCreate

func NewBatchInputPropertyCreate(inputs []PropertyCreate) *BatchInputPropertyCreate

NewBatchInputPropertyCreate instantiates a new BatchInputPropertyCreate 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 NewBatchInputPropertyCreateWithDefaults

func NewBatchInputPropertyCreateWithDefaults() *BatchInputPropertyCreate

NewBatchInputPropertyCreateWithDefaults instantiates a new BatchInputPropertyCreate 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 (*BatchInputPropertyCreate) GetInputs

func (o *BatchInputPropertyCreate) GetInputs() []PropertyCreate

GetInputs returns the Inputs field value

func (*BatchInputPropertyCreate) GetInputsOk

func (o *BatchInputPropertyCreate) GetInputsOk() ([]PropertyCreate, bool)

GetInputsOk returns a tuple with the Inputs field value and a boolean to check if the value has been set.

func (BatchInputPropertyCreate) MarshalJSON

func (o BatchInputPropertyCreate) MarshalJSON() ([]byte, error)

func (*BatchInputPropertyCreate) SetInputs

func (o *BatchInputPropertyCreate) SetInputs(v []PropertyCreate)

SetInputs sets field value

type BatchInputPropertyName

type BatchInputPropertyName struct {
	Inputs []PropertyName `json:"inputs"`
}

BatchInputPropertyName struct for BatchInputPropertyName

func NewBatchInputPropertyName

func NewBatchInputPropertyName(inputs []PropertyName) *BatchInputPropertyName

NewBatchInputPropertyName instantiates a new BatchInputPropertyName 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 NewBatchInputPropertyNameWithDefaults

func NewBatchInputPropertyNameWithDefaults() *BatchInputPropertyName

NewBatchInputPropertyNameWithDefaults instantiates a new BatchInputPropertyName 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 (*BatchInputPropertyName) GetInputs

func (o *BatchInputPropertyName) GetInputs() []PropertyName

GetInputs returns the Inputs field value

func (*BatchInputPropertyName) GetInputsOk

func (o *BatchInputPropertyName) GetInputsOk() ([]PropertyName, bool)

GetInputsOk returns a tuple with the Inputs field value and a boolean to check if the value has been set.

func (BatchInputPropertyName) MarshalJSON

func (o BatchInputPropertyName) MarshalJSON() ([]byte, error)

func (*BatchInputPropertyName) SetInputs

func (o *BatchInputPropertyName) SetInputs(v []PropertyName)

SetInputs sets field value

type BatchReadInputPropertyName

type BatchReadInputPropertyName struct {
	Inputs   []PropertyName `json:"inputs"`
	Archived bool           `json:"archived"`
}

BatchReadInputPropertyName struct for BatchReadInputPropertyName

func NewBatchReadInputPropertyName

func NewBatchReadInputPropertyName(inputs []PropertyName, archived bool) *BatchReadInputPropertyName

NewBatchReadInputPropertyName instantiates a new BatchReadInputPropertyName 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 NewBatchReadInputPropertyNameWithDefaults

func NewBatchReadInputPropertyNameWithDefaults() *BatchReadInputPropertyName

NewBatchReadInputPropertyNameWithDefaults instantiates a new BatchReadInputPropertyName 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 (*BatchReadInputPropertyName) GetArchived

func (o *BatchReadInputPropertyName) GetArchived() bool

GetArchived returns the Archived field value

func (*BatchReadInputPropertyName) GetArchivedOk

func (o *BatchReadInputPropertyName) GetArchivedOk() (*bool, bool)

GetArchivedOk returns a tuple with the Archived field value and a boolean to check if the value has been set.

func (*BatchReadInputPropertyName) GetInputs

func (o *BatchReadInputPropertyName) GetInputs() []PropertyName

GetInputs returns the Inputs field value

func (*BatchReadInputPropertyName) GetInputsOk

func (o *BatchReadInputPropertyName) GetInputsOk() ([]PropertyName, bool)

GetInputsOk returns a tuple with the Inputs field value and a boolean to check if the value has been set.

func (BatchReadInputPropertyName) MarshalJSON

func (o BatchReadInputPropertyName) MarshalJSON() ([]byte, error)

func (*BatchReadInputPropertyName) SetArchived

func (o *BatchReadInputPropertyName) SetArchived(v bool)

SetArchived sets field value

func (*BatchReadInputPropertyName) SetInputs

func (o *BatchReadInputPropertyName) SetInputs(v []PropertyName)

SetInputs sets field value

type BatchResponseProperty

type BatchResponseProperty struct {
	Status      string             `json:"status"`
	Results     []Property         `json:"results"`
	NumErrors   *int32             `json:"numErrors,omitempty"`
	Errors      []StandardError    `json:"errors,omitempty"`
	RequestedAt *time.Time         `json:"requestedAt,omitempty"`
	StartedAt   time.Time          `json:"startedAt"`
	CompletedAt time.Time          `json:"completedAt"`
	Links       *map[string]string `json:"links,omitempty"`
}

BatchResponseProperty struct for BatchResponseProperty

func NewBatchResponseProperty

func NewBatchResponseProperty(status string, results []Property, startedAt time.Time, completedAt time.Time) *BatchResponseProperty

NewBatchResponseProperty instantiates a new BatchResponseProperty 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 NewBatchResponsePropertyWithDefaults

func NewBatchResponsePropertyWithDefaults() *BatchResponseProperty

NewBatchResponsePropertyWithDefaults instantiates a new BatchResponseProperty 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 (*BatchResponseProperty) GetCompletedAt

func (o *BatchResponseProperty) GetCompletedAt() time.Time

GetCompletedAt returns the CompletedAt field value

func (*BatchResponseProperty) GetCompletedAtOk

func (o *BatchResponseProperty) GetCompletedAtOk() (*time.Time, bool)

GetCompletedAtOk returns a tuple with the CompletedAt field value and a boolean to check if the value has been set.

func (*BatchResponseProperty) GetErrors

func (o *BatchResponseProperty) GetErrors() []StandardError

GetErrors returns the Errors field value if set, zero value otherwise.

func (*BatchResponseProperty) GetErrorsOk

func (o *BatchResponseProperty) GetErrorsOk() ([]StandardError, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *BatchResponseProperty) GetLinks() map[string]string

GetLinks returns the Links field value if set, zero value otherwise.

func (*BatchResponseProperty) GetLinksOk

func (o *BatchResponseProperty) GetLinksOk() (*map[string]string, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchResponseProperty) GetNumErrors

func (o *BatchResponseProperty) GetNumErrors() int32

GetNumErrors returns the NumErrors field value if set, zero value otherwise.

func (*BatchResponseProperty) GetNumErrorsOk

func (o *BatchResponseProperty) GetNumErrorsOk() (*int32, bool)

GetNumErrorsOk returns a tuple with the NumErrors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchResponseProperty) GetRequestedAt

func (o *BatchResponseProperty) GetRequestedAt() time.Time

GetRequestedAt returns the RequestedAt field value if set, zero value otherwise.

func (*BatchResponseProperty) GetRequestedAtOk

func (o *BatchResponseProperty) GetRequestedAtOk() (*time.Time, bool)

GetRequestedAtOk returns a tuple with the RequestedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchResponseProperty) GetResults

func (o *BatchResponseProperty) GetResults() []Property

GetResults returns the Results field value

func (*BatchResponseProperty) GetResultsOk

func (o *BatchResponseProperty) GetResultsOk() ([]Property, bool)

GetResultsOk returns a tuple with the Results field value and a boolean to check if the value has been set.

func (*BatchResponseProperty) GetStartedAt

func (o *BatchResponseProperty) GetStartedAt() time.Time

GetStartedAt returns the StartedAt field value

func (*BatchResponseProperty) GetStartedAtOk

func (o *BatchResponseProperty) GetStartedAtOk() (*time.Time, bool)

GetStartedAtOk returns a tuple with the StartedAt field value and a boolean to check if the value has been set.

func (*BatchResponseProperty) GetStatus

func (o *BatchResponseProperty) GetStatus() string

GetStatus returns the Status field value

func (*BatchResponseProperty) GetStatusOk

func (o *BatchResponseProperty) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*BatchResponseProperty) HasErrors

func (o *BatchResponseProperty) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o *BatchResponseProperty) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*BatchResponseProperty) HasNumErrors

func (o *BatchResponseProperty) HasNumErrors() bool

HasNumErrors returns a boolean if a field has been set.

func (*BatchResponseProperty) HasRequestedAt

func (o *BatchResponseProperty) HasRequestedAt() bool

HasRequestedAt returns a boolean if a field has been set.

func (BatchResponseProperty) MarshalJSON

func (o BatchResponseProperty) MarshalJSON() ([]byte, error)

func (*BatchResponseProperty) SetCompletedAt

func (o *BatchResponseProperty) SetCompletedAt(v time.Time)

SetCompletedAt sets field value

func (*BatchResponseProperty) SetErrors

func (o *BatchResponseProperty) SetErrors(v []StandardError)

SetErrors gets a reference to the given []StandardError and assigns it to the Errors field.

func (o *BatchResponseProperty) SetLinks(v map[string]string)

SetLinks gets a reference to the given map[string]string and assigns it to the Links field.

func (*BatchResponseProperty) SetNumErrors

func (o *BatchResponseProperty) SetNumErrors(v int32)

SetNumErrors gets a reference to the given int32 and assigns it to the NumErrors field.

func (*BatchResponseProperty) SetRequestedAt

func (o *BatchResponseProperty) SetRequestedAt(v time.Time)

SetRequestedAt gets a reference to the given time.Time and assigns it to the RequestedAt field.

func (*BatchResponseProperty) SetResults

func (o *BatchResponseProperty) SetResults(v []Property)

SetResults sets field value

func (*BatchResponseProperty) SetStartedAt

func (o *BatchResponseProperty) SetStartedAt(v time.Time)

SetStartedAt sets field value

func (*BatchResponseProperty) SetStatus

func (o *BatchResponseProperty) SetStatus(v string)

SetStatus sets field value

type CollectionResponseProperty

type CollectionResponseProperty struct {
	Results []Property `json:"results"`
	Paging  *Paging    `json:"paging,omitempty"`
}

CollectionResponseProperty struct for CollectionResponseProperty

func NewCollectionResponseProperty

func NewCollectionResponseProperty(results []Property) *CollectionResponseProperty

NewCollectionResponseProperty instantiates a new CollectionResponseProperty 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 NewCollectionResponsePropertyWithDefaults

func NewCollectionResponsePropertyWithDefaults() *CollectionResponseProperty

NewCollectionResponsePropertyWithDefaults instantiates a new CollectionResponseProperty 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 (*CollectionResponseProperty) GetPaging

func (o *CollectionResponseProperty) GetPaging() Paging

GetPaging returns the Paging field value if set, zero value otherwise.

func (*CollectionResponseProperty) GetPagingOk

func (o *CollectionResponseProperty) GetPagingOk() (*Paging, bool)

GetPagingOk returns a tuple with the Paging field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CollectionResponseProperty) GetResults

func (o *CollectionResponseProperty) GetResults() []Property

GetResults returns the Results field value

func (*CollectionResponseProperty) GetResultsOk

func (o *CollectionResponseProperty) GetResultsOk() ([]Property, bool)

GetResultsOk returns a tuple with the Results field value and a boolean to check if the value has been set.

func (*CollectionResponseProperty) HasPaging

func (o *CollectionResponseProperty) HasPaging() bool

HasPaging returns a boolean if a field has been set.

func (CollectionResponseProperty) MarshalJSON

func (o CollectionResponseProperty) MarshalJSON() ([]byte, error)

func (*CollectionResponseProperty) SetPaging

func (o *CollectionResponseProperty) SetPaging(v Paging)

SetPaging gets a reference to the given Paging and assigns it to the Paging field.

func (*CollectionResponseProperty) SetResults

func (o *CollectionResponseProperty) SetResults(v []Property)

SetResults sets field value

type CollectionResponsePropertyGroup

type CollectionResponsePropertyGroup struct {
	Results []PropertyGroup `json:"results"`
	Paging  *Paging         `json:"paging,omitempty"`
}

CollectionResponsePropertyGroup struct for CollectionResponsePropertyGroup

func NewCollectionResponsePropertyGroup

func NewCollectionResponsePropertyGroup(results []PropertyGroup) *CollectionResponsePropertyGroup

NewCollectionResponsePropertyGroup instantiates a new CollectionResponsePropertyGroup 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 NewCollectionResponsePropertyGroupWithDefaults

func NewCollectionResponsePropertyGroupWithDefaults() *CollectionResponsePropertyGroup

NewCollectionResponsePropertyGroupWithDefaults instantiates a new CollectionResponsePropertyGroup 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 (*CollectionResponsePropertyGroup) GetPaging

func (o *CollectionResponsePropertyGroup) GetPaging() Paging

GetPaging returns the Paging field value if set, zero value otherwise.

func (*CollectionResponsePropertyGroup) GetPagingOk

func (o *CollectionResponsePropertyGroup) GetPagingOk() (*Paging, bool)

GetPagingOk returns a tuple with the Paging field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CollectionResponsePropertyGroup) GetResults

GetResults returns the Results field value

func (*CollectionResponsePropertyGroup) GetResultsOk

func (o *CollectionResponsePropertyGroup) GetResultsOk() ([]PropertyGroup, bool)

GetResultsOk returns a tuple with the Results field value and a boolean to check if the value has been set.

func (*CollectionResponsePropertyGroup) HasPaging

func (o *CollectionResponsePropertyGroup) HasPaging() bool

HasPaging returns a boolean if a field has been set.

func (CollectionResponsePropertyGroup) MarshalJSON

func (o CollectionResponsePropertyGroup) MarshalJSON() ([]byte, error)

func (*CollectionResponsePropertyGroup) SetPaging

func (o *CollectionResponsePropertyGroup) SetPaging(v Paging)

SetPaging gets a reference to the given Paging and assigns it to the Paging field.

func (*CollectionResponsePropertyGroup) SetResults

SetResults sets field value

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type CoreApiService

type CoreApiService service

CoreApiService CoreApi service

func (*CoreApiService) Archive

func (a *CoreApiService) Archive(ctx context.Context, objectType string, propertyName string) ApiArchiveRequest

Archive Archive a property

Move a property identified by {propertyName} to the recycling bin.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@param propertyName
@return ApiArchiveRequest

func (*CoreApiService) ArchiveExecute

func (a *CoreApiService) ArchiveExecute(r ApiArchiveRequest) (*http.Response, error)

Execute executes the request

func (*CoreApiService) Create

func (a *CoreApiService) Create(ctx context.Context, objectType string) ApiCreateRequest

Create Create a property

Create and return a copy of a new property for the specified object type.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@return ApiCreateRequest

func (*CoreApiService) CreateExecute

func (a *CoreApiService) CreateExecute(r ApiCreateRequest) (*Property, *http.Response, error)

Execute executes the request

@return Property

func (*CoreApiService) GetAll

func (a *CoreApiService) GetAll(ctx context.Context, objectType string) ApiGetAllRequest

GetAll Read all properties

Read all existing properties for the specified object type and HubSpot account.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@return ApiGetAllRequest

func (*CoreApiService) GetAllExecute

Execute executes the request

@return CollectionResponseProperty

func (*CoreApiService) GetByName

func (a *CoreApiService) GetByName(ctx context.Context, objectType string, propertyName string) ApiGetByNameRequest

GetByName Read a property

Read a property identified by {propertyName}.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@param propertyName
@return ApiGetByNameRequest

func (*CoreApiService) GetByNameExecute

func (a *CoreApiService) GetByNameExecute(r ApiGetByNameRequest) (*Property, *http.Response, error)

Execute executes the request

@return Property

func (*CoreApiService) Update

func (a *CoreApiService) Update(ctx context.Context, objectType string, propertyName string) ApiUpdateRequest

Update Update a property

Perform a partial update of a property identified by {propertyName}. Provided fields will be overwritten.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@param propertyName
@return ApiUpdateRequest

func (*CoreApiService) UpdateExecute

func (a *CoreApiService) UpdateExecute(r ApiUpdateRequest) (*Property, *http.Response, error)

Execute executes the request

@return Property

type Error

type Error struct {
	// A human readable message describing the error along with remediation steps where appropriate
	Message string `json:"message"`
	// A unique identifier for the request. Include this value with any error reports or support tickets
	CorrelationId string `json:"correlationId"`
	// The error category
	Category string `json:"category"`
	// A specific category that contains more specific detail about the error
	SubCategory *string `json:"subCategory,omitempty"`
	// further information about the error
	Errors []ErrorDetail `json:"errors,omitempty"`
	// Context about the error condition
	Context *map[string][]string `json:"context,omitempty"`
	// A map of link names to associated URIs containing documentation about the error or recommended remediation steps
	Links *map[string]string `json:"links,omitempty"`
}

Error struct for Error

func NewError

func NewError(message string, correlationId string, category string) *Error

NewError instantiates a new Error 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 NewErrorWithDefaults

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error 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 (*Error) GetCategory

func (o *Error) GetCategory() string

GetCategory returns the Category field value

func (*Error) GetCategoryOk

func (o *Error) GetCategoryOk() (*string, bool)

GetCategoryOk returns a tuple with the Category field value and a boolean to check if the value has been set.

func (*Error) GetContext

func (o *Error) GetContext() map[string][]string

GetContext returns the Context field value if set, zero value otherwise.

func (*Error) GetContextOk

func (o *Error) GetContextOk() (*map[string][]string, bool)

GetContextOk returns a tuple with the Context field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) GetCorrelationId

func (o *Error) GetCorrelationId() string

GetCorrelationId returns the CorrelationId field value

func (*Error) GetCorrelationIdOk

func (o *Error) GetCorrelationIdOk() (*string, bool)

GetCorrelationIdOk returns a tuple with the CorrelationId field value and a boolean to check if the value has been set.

func (*Error) GetErrors

func (o *Error) GetErrors() []ErrorDetail

GetErrors returns the Errors field value if set, zero value otherwise.

func (*Error) GetErrorsOk

func (o *Error) GetErrorsOk() ([]ErrorDetail, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *Error) GetLinks() map[string]string

GetLinks returns the Links field value if set, zero value otherwise.

func (*Error) GetLinksOk

func (o *Error) GetLinksOk() (*map[string]string, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) GetMessage

func (o *Error) GetMessage() string

GetMessage returns the Message field value

func (*Error) GetMessageOk

func (o *Error) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*Error) GetSubCategory

func (o *Error) GetSubCategory() string

GetSubCategory returns the SubCategory field value if set, zero value otherwise.

func (*Error) GetSubCategoryOk

func (o *Error) GetSubCategoryOk() (*string, bool)

GetSubCategoryOk returns a tuple with the SubCategory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) HasContext

func (o *Error) HasContext() bool

HasContext returns a boolean if a field has been set.

func (*Error) HasErrors

func (o *Error) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o *Error) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*Error) HasSubCategory

func (o *Error) HasSubCategory() bool

HasSubCategory returns a boolean if a field has been set.

func (Error) MarshalJSON

func (o Error) MarshalJSON() ([]byte, error)

func (*Error) SetCategory

func (o *Error) SetCategory(v string)

SetCategory sets field value

func (*Error) SetContext

func (o *Error) SetContext(v map[string][]string)

SetContext gets a reference to the given map[string][]string and assigns it to the Context field.

func (*Error) SetCorrelationId

func (o *Error) SetCorrelationId(v string)

SetCorrelationId sets field value

func (*Error) SetErrors

func (o *Error) SetErrors(v []ErrorDetail)

SetErrors gets a reference to the given []ErrorDetail and assigns it to the Errors field.

func (o *Error) SetLinks(v map[string]string)

SetLinks gets a reference to the given map[string]string and assigns it to the Links field.

func (*Error) SetMessage

func (o *Error) SetMessage(v string)

SetMessage sets field value

func (*Error) SetSubCategory

func (o *Error) SetSubCategory(v string)

SetSubCategory gets a reference to the given string and assigns it to the SubCategory field.

type ErrorCategory

type ErrorCategory struct {
	HttpStatus string `json:"httpStatus"`
	Name       string `json:"name"`
}

ErrorCategory struct for ErrorCategory

func NewErrorCategory

func NewErrorCategory(httpStatus string, name string) *ErrorCategory

NewErrorCategory instantiates a new ErrorCategory 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 NewErrorCategoryWithDefaults

func NewErrorCategoryWithDefaults() *ErrorCategory

NewErrorCategoryWithDefaults instantiates a new ErrorCategory 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 (*ErrorCategory) GetHttpStatus

func (o *ErrorCategory) GetHttpStatus() string

GetHttpStatus returns the HttpStatus field value

func (*ErrorCategory) GetHttpStatusOk

func (o *ErrorCategory) GetHttpStatusOk() (*string, bool)

GetHttpStatusOk returns a tuple with the HttpStatus field value and a boolean to check if the value has been set.

func (*ErrorCategory) GetName

func (o *ErrorCategory) GetName() string

GetName returns the Name field value

func (*ErrorCategory) GetNameOk

func (o *ErrorCategory) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (ErrorCategory) MarshalJSON

func (o ErrorCategory) MarshalJSON() ([]byte, error)

func (*ErrorCategory) SetHttpStatus

func (o *ErrorCategory) SetHttpStatus(v string)

SetHttpStatus sets field value

func (*ErrorCategory) SetName

func (o *ErrorCategory) SetName(v string)

SetName sets field value

type ErrorDetail

type ErrorDetail struct {
	// A human readable message describing the error along with remediation steps where appropriate
	Message string `json:"message"`
	// The name of the field or parameter in which the error was found.
	In *string `json:"in,omitempty"`
	// The status code associated with the error detail
	Code *string `json:"code,omitempty"`
	// A specific category that contains more specific detail about the error
	SubCategory *string `json:"subCategory,omitempty"`
	// Context about the error condition
	Context *map[string][]string `json:"context,omitempty"`
}

ErrorDetail struct for ErrorDetail

func NewErrorDetail

func NewErrorDetail(message string) *ErrorDetail

NewErrorDetail instantiates a new ErrorDetail 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 NewErrorDetailWithDefaults

func NewErrorDetailWithDefaults() *ErrorDetail

NewErrorDetailWithDefaults instantiates a new ErrorDetail 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 (*ErrorDetail) GetCode

func (o *ErrorDetail) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*ErrorDetail) GetCodeOk

func (o *ErrorDetail) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorDetail) GetContext

func (o *ErrorDetail) GetContext() map[string][]string

GetContext returns the Context field value if set, zero value otherwise.

func (*ErrorDetail) GetContextOk

func (o *ErrorDetail) GetContextOk() (*map[string][]string, bool)

GetContextOk returns a tuple with the Context field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorDetail) GetIn

func (o *ErrorDetail) GetIn() string

GetIn returns the In field value if set, zero value otherwise.

func (*ErrorDetail) GetInOk

func (o *ErrorDetail) GetInOk() (*string, bool)

GetInOk returns a tuple with the In field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorDetail) GetMessage

func (o *ErrorDetail) GetMessage() string

GetMessage returns the Message field value

func (*ErrorDetail) GetMessageOk

func (o *ErrorDetail) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*ErrorDetail) GetSubCategory

func (o *ErrorDetail) GetSubCategory() string

GetSubCategory returns the SubCategory field value if set, zero value otherwise.

func (*ErrorDetail) GetSubCategoryOk

func (o *ErrorDetail) GetSubCategoryOk() (*string, bool)

GetSubCategoryOk returns a tuple with the SubCategory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorDetail) HasCode

func (o *ErrorDetail) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*ErrorDetail) HasContext

func (o *ErrorDetail) HasContext() bool

HasContext returns a boolean if a field has been set.

func (*ErrorDetail) HasIn

func (o *ErrorDetail) HasIn() bool

HasIn returns a boolean if a field has been set.

func (*ErrorDetail) HasSubCategory

func (o *ErrorDetail) HasSubCategory() bool

HasSubCategory returns a boolean if a field has been set.

func (ErrorDetail) MarshalJSON

func (o ErrorDetail) MarshalJSON() ([]byte, error)

func (*ErrorDetail) SetCode

func (o *ErrorDetail) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*ErrorDetail) SetContext

func (o *ErrorDetail) SetContext(v map[string][]string)

SetContext gets a reference to the given map[string][]string and assigns it to the Context field.

func (*ErrorDetail) SetIn

func (o *ErrorDetail) SetIn(v string)

SetIn gets a reference to the given string and assigns it to the In field.

func (*ErrorDetail) SetMessage

func (o *ErrorDetail) SetMessage(v string)

SetMessage sets field value

func (*ErrorDetail) SetSubCategory

func (o *ErrorDetail) SetSubCategory(v string)

SetSubCategory gets a reference to the given string and assigns it to the SubCategory field.

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GroupsApiService

type GroupsApiService service

GroupsApiService GroupsApi service

func (*GroupsApiService) GroupsArchive

func (a *GroupsApiService) GroupsArchive(ctx context.Context, objectType string, groupName string) ApiGroupsArchiveRequest

GroupsArchive Archive a property group

Move a property group identified by {groupName} to the recycling bin.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@param groupName
@return ApiGroupsArchiveRequest

func (*GroupsApiService) GroupsArchiveExecute

func (a *GroupsApiService) GroupsArchiveExecute(r ApiGroupsArchiveRequest) (*http.Response, error)

Execute executes the request

func (*GroupsApiService) GroupsCreate

func (a *GroupsApiService) GroupsCreate(ctx context.Context, objectType string) ApiGroupsCreateRequest

GroupsCreate Create a property group

Create and return a copy of a new property group.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@return ApiGroupsCreateRequest

func (*GroupsApiService) GroupsCreateExecute

func (a *GroupsApiService) GroupsCreateExecute(r ApiGroupsCreateRequest) (*PropertyGroup, *http.Response, error)

Execute executes the request

@return PropertyGroup

func (*GroupsApiService) GroupsGetAll

func (a *GroupsApiService) GroupsGetAll(ctx context.Context, objectType string) ApiGroupsGetAllRequest

GroupsGetAll Read all property groups

Read all existing property groups for the specified object type and HubSpot account.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@return ApiGroupsGetAllRequest

func (*GroupsApiService) GroupsGetAllExecute

Execute executes the request

@return CollectionResponsePropertyGroup

func (*GroupsApiService) GroupsGetByName

func (a *GroupsApiService) GroupsGetByName(ctx context.Context, objectType string, groupName string) ApiGroupsGetByNameRequest

GroupsGetByName Read a property group

Read a property group identified by {groupName}.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@param groupName
@return ApiGroupsGetByNameRequest

func (*GroupsApiService) GroupsGetByNameExecute

func (a *GroupsApiService) GroupsGetByNameExecute(r ApiGroupsGetByNameRequest) (*PropertyGroup, *http.Response, error)

Execute executes the request

@return PropertyGroup

func (*GroupsApiService) GroupsUpdate

func (a *GroupsApiService) GroupsUpdate(ctx context.Context, objectType string, groupName string) ApiGroupsUpdateRequest

GroupsUpdate Update a property group

Perform a partial update of a property group identified by {groupName}. Provided fields will be overwritten.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param objectType
@param groupName
@return ApiGroupsUpdateRequest

func (*GroupsApiService) GroupsUpdateExecute

func (a *GroupsApiService) GroupsUpdateExecute(r ApiGroupsUpdateRequest) (*PropertyGroup, *http.Response, error)

Execute executes the request

@return PropertyGroup

type NextPage

type NextPage struct {
	After string  `json:"after"`
	Link  *string `json:"link,omitempty"`
}

NextPage struct for NextPage

func NewNextPage

func NewNextPage(after string) *NextPage

NewNextPage instantiates a new NextPage 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 NewNextPageWithDefaults

func NewNextPageWithDefaults() *NextPage

NewNextPageWithDefaults instantiates a new NextPage 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 (*NextPage) GetAfter

func (o *NextPage) GetAfter() string

GetAfter returns the After field value

func (*NextPage) GetAfterOk

func (o *NextPage) GetAfterOk() (*string, bool)

GetAfterOk returns a tuple with the After field value and a boolean to check if the value has been set.

func (o *NextPage) GetLink() string

GetLink returns the Link field value if set, zero value otherwise.

func (*NextPage) GetLinkOk

func (o *NextPage) GetLinkOk() (*string, bool)

GetLinkOk returns a tuple with the Link field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *NextPage) HasLink() bool

HasLink returns a boolean if a field has been set.

func (NextPage) MarshalJSON

func (o NextPage) MarshalJSON() ([]byte, error)

func (*NextPage) SetAfter

func (o *NextPage) SetAfter(v string)

SetAfter sets field value

func (o *NextPage) SetLink(v string)

SetLink gets a reference to the given string and assigns it to the Link field.

type NullableBatchInputPropertyCreate

type NullableBatchInputPropertyCreate struct {
	// contains filtered or unexported fields
}

func (NullableBatchInputPropertyCreate) Get

func (NullableBatchInputPropertyCreate) IsSet

func (NullableBatchInputPropertyCreate) MarshalJSON

func (v NullableBatchInputPropertyCreate) MarshalJSON() ([]byte, error)

func (*NullableBatchInputPropertyCreate) Set

func (*NullableBatchInputPropertyCreate) UnmarshalJSON

func (v *NullableBatchInputPropertyCreate) UnmarshalJSON(src []byte) error

func (*NullableBatchInputPropertyCreate) Unset

type NullableBatchInputPropertyName

type NullableBatchInputPropertyName struct {
	// contains filtered or unexported fields
}

func (NullableBatchInputPropertyName) Get

func (NullableBatchInputPropertyName) IsSet

func (NullableBatchInputPropertyName) MarshalJSON

func (v NullableBatchInputPropertyName) MarshalJSON() ([]byte, error)

func (*NullableBatchInputPropertyName) Set

func (*NullableBatchInputPropertyName) UnmarshalJSON

func (v *NullableBatchInputPropertyName) UnmarshalJSON(src []byte) error

func (*NullableBatchInputPropertyName) Unset

func (v *NullableBatchInputPropertyName) Unset()

type NullableBatchReadInputPropertyName

type NullableBatchReadInputPropertyName struct {
	// contains filtered or unexported fields
}

func (NullableBatchReadInputPropertyName) Get

func (NullableBatchReadInputPropertyName) IsSet

func (NullableBatchReadInputPropertyName) MarshalJSON

func (v NullableBatchReadInputPropertyName) MarshalJSON() ([]byte, error)

func (*NullableBatchReadInputPropertyName) Set

func (*NullableBatchReadInputPropertyName) UnmarshalJSON

func (v *NullableBatchReadInputPropertyName) UnmarshalJSON(src []byte) error

func (*NullableBatchReadInputPropertyName) Unset

type NullableBatchResponseProperty

type NullableBatchResponseProperty struct {
	// contains filtered or unexported fields
}

func (NullableBatchResponseProperty) Get

func (NullableBatchResponseProperty) IsSet

func (NullableBatchResponseProperty) MarshalJSON

func (v NullableBatchResponseProperty) MarshalJSON() ([]byte, error)

func (*NullableBatchResponseProperty) Set

func (*NullableBatchResponseProperty) UnmarshalJSON

func (v *NullableBatchResponseProperty) UnmarshalJSON(src []byte) error

func (*NullableBatchResponseProperty) Unset

func (v *NullableBatchResponseProperty) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCollectionResponseProperty

type NullableCollectionResponseProperty struct {
	// contains filtered or unexported fields
}

func (NullableCollectionResponseProperty) Get

func (NullableCollectionResponseProperty) IsSet

func (NullableCollectionResponseProperty) MarshalJSON

func (v NullableCollectionResponseProperty) MarshalJSON() ([]byte, error)

func (*NullableCollectionResponseProperty) Set

func (*NullableCollectionResponseProperty) UnmarshalJSON

func (v *NullableCollectionResponseProperty) UnmarshalJSON(src []byte) error

func (*NullableCollectionResponseProperty) Unset

type NullableCollectionResponsePropertyGroup

type NullableCollectionResponsePropertyGroup struct {
	// contains filtered or unexported fields
}

func (NullableCollectionResponsePropertyGroup) Get

func (NullableCollectionResponsePropertyGroup) IsSet

func (NullableCollectionResponsePropertyGroup) MarshalJSON

func (v NullableCollectionResponsePropertyGroup) MarshalJSON() ([]byte, error)

func (*NullableCollectionResponsePropertyGroup) Set

func (*NullableCollectionResponsePropertyGroup) UnmarshalJSON

func (v *NullableCollectionResponsePropertyGroup) UnmarshalJSON(src []byte) error

func (*NullableCollectionResponsePropertyGroup) Unset

type NullableError

type NullableError struct {
	// contains filtered or unexported fields
}

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

func (v NullableError) MarshalJSON() ([]byte, error)

func (*NullableError) Set

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON

func (v *NullableError) UnmarshalJSON(src []byte) error

func (*NullableError) Unset

func (v *NullableError) Unset()

type NullableErrorCategory

type NullableErrorCategory struct {
	// contains filtered or unexported fields
}

func NewNullableErrorCategory

func NewNullableErrorCategory(val *ErrorCategory) *NullableErrorCategory

func (NullableErrorCategory) Get

func (NullableErrorCategory) IsSet

func (v NullableErrorCategory) IsSet() bool

func (NullableErrorCategory) MarshalJSON

func (v NullableErrorCategory) MarshalJSON() ([]byte, error)

func (*NullableErrorCategory) Set

func (v *NullableErrorCategory) Set(val *ErrorCategory)

func (*NullableErrorCategory) UnmarshalJSON

func (v *NullableErrorCategory) UnmarshalJSON(src []byte) error

func (*NullableErrorCategory) Unset

func (v *NullableErrorCategory) Unset()

type NullableErrorDetail

type NullableErrorDetail struct {
	// contains filtered or unexported fields
}

func NewNullableErrorDetail

func NewNullableErrorDetail(val *ErrorDetail) *NullableErrorDetail

func (NullableErrorDetail) Get

func (NullableErrorDetail) IsSet

func (v NullableErrorDetail) IsSet() bool

func (NullableErrorDetail) MarshalJSON

func (v NullableErrorDetail) MarshalJSON() ([]byte, error)

func (*NullableErrorDetail) Set

func (v *NullableErrorDetail) Set(val *ErrorDetail)

func (*NullableErrorDetail) UnmarshalJSON

func (v *NullableErrorDetail) UnmarshalJSON(src []byte) error

func (*NullableErrorDetail) Unset

func (v *NullableErrorDetail) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableNextPage

type NullableNextPage struct {
	// contains filtered or unexported fields
}

func NewNullableNextPage

func NewNullableNextPage(val *NextPage) *NullableNextPage

func (NullableNextPage) Get

func (v NullableNextPage) Get() *NextPage

func (NullableNextPage) IsSet

func (v NullableNextPage) IsSet() bool

func (NullableNextPage) MarshalJSON

func (v NullableNextPage) MarshalJSON() ([]byte, error)

func (*NullableNextPage) Set

func (v *NullableNextPage) Set(val *NextPage)

func (*NullableNextPage) UnmarshalJSON

func (v *NullableNextPage) UnmarshalJSON(src []byte) error

func (*NullableNextPage) Unset

func (v *NullableNextPage) Unset()

type NullableOption

type NullableOption struct {
	// contains filtered or unexported fields
}

func NewNullableOption

func NewNullableOption(val *Option) *NullableOption

func (NullableOption) Get

func (v NullableOption) Get() *Option

func (NullableOption) IsSet

func (v NullableOption) IsSet() bool

func (NullableOption) MarshalJSON

func (v NullableOption) MarshalJSON() ([]byte, error)

func (*NullableOption) Set

func (v *NullableOption) Set(val *Option)

func (*NullableOption) UnmarshalJSON

func (v *NullableOption) UnmarshalJSON(src []byte) error

func (*NullableOption) Unset

func (v *NullableOption) Unset()

type NullableOptionInput

type NullableOptionInput struct {
	// contains filtered or unexported fields
}

func NewNullableOptionInput

func NewNullableOptionInput(val *OptionInput) *NullableOptionInput

func (NullableOptionInput) Get

func (NullableOptionInput) IsSet

func (v NullableOptionInput) IsSet() bool

func (NullableOptionInput) MarshalJSON

func (v NullableOptionInput) MarshalJSON() ([]byte, error)

func (*NullableOptionInput) Set

func (v *NullableOptionInput) Set(val *OptionInput)

func (*NullableOptionInput) UnmarshalJSON

func (v *NullableOptionInput) UnmarshalJSON(src []byte) error

func (*NullableOptionInput) Unset

func (v *NullableOptionInput) Unset()

type NullablePaging

type NullablePaging struct {
	// contains filtered or unexported fields
}

func NewNullablePaging

func NewNullablePaging(val *Paging) *NullablePaging

func (NullablePaging) Get

func (v NullablePaging) Get() *Paging

func (NullablePaging) IsSet

func (v NullablePaging) IsSet() bool

func (NullablePaging) MarshalJSON

func (v NullablePaging) MarshalJSON() ([]byte, error)

func (*NullablePaging) Set

func (v *NullablePaging) Set(val *Paging)

func (*NullablePaging) UnmarshalJSON

func (v *NullablePaging) UnmarshalJSON(src []byte) error

func (*NullablePaging) Unset

func (v *NullablePaging) Unset()

type NullableProperty

type NullableProperty struct {
	// contains filtered or unexported fields
}

func NewNullableProperty

func NewNullableProperty(val *Property) *NullableProperty

func (NullableProperty) Get

func (v NullableProperty) Get() *Property

func (NullableProperty) IsSet

func (v NullableProperty) IsSet() bool

func (NullableProperty) MarshalJSON

func (v NullableProperty) MarshalJSON() ([]byte, error)

func (*NullableProperty) Set

func (v *NullableProperty) Set(val *Property)

func (*NullableProperty) UnmarshalJSON

func (v *NullableProperty) UnmarshalJSON(src []byte) error

func (*NullableProperty) Unset

func (v *NullableProperty) Unset()

type NullablePropertyCreate

type NullablePropertyCreate struct {
	// contains filtered or unexported fields
}

func NewNullablePropertyCreate

func NewNullablePropertyCreate(val *PropertyCreate) *NullablePropertyCreate

func (NullablePropertyCreate) Get

func (NullablePropertyCreate) IsSet

func (v NullablePropertyCreate) IsSet() bool

func (NullablePropertyCreate) MarshalJSON

func (v NullablePropertyCreate) MarshalJSON() ([]byte, error)

func (*NullablePropertyCreate) Set

func (*NullablePropertyCreate) UnmarshalJSON

func (v *NullablePropertyCreate) UnmarshalJSON(src []byte) error

func (*NullablePropertyCreate) Unset

func (v *NullablePropertyCreate) Unset()

type NullablePropertyGroup

type NullablePropertyGroup struct {
	// contains filtered or unexported fields
}

func NewNullablePropertyGroup

func NewNullablePropertyGroup(val *PropertyGroup) *NullablePropertyGroup

func (NullablePropertyGroup) Get

func (NullablePropertyGroup) IsSet

func (v NullablePropertyGroup) IsSet() bool

func (NullablePropertyGroup) MarshalJSON

func (v NullablePropertyGroup) MarshalJSON() ([]byte, error)

func (*NullablePropertyGroup) Set

func (v *NullablePropertyGroup) Set(val *PropertyGroup)

func (*NullablePropertyGroup) UnmarshalJSON

func (v *NullablePropertyGroup) UnmarshalJSON(src []byte) error

func (*NullablePropertyGroup) Unset

func (v *NullablePropertyGroup) Unset()

type NullablePropertyGroupCreate

type NullablePropertyGroupCreate struct {
	// contains filtered or unexported fields
}

func NewNullablePropertyGroupCreate

func NewNullablePropertyGroupCreate(val *PropertyGroupCreate) *NullablePropertyGroupCreate

func (NullablePropertyGroupCreate) Get

func (NullablePropertyGroupCreate) IsSet

func (NullablePropertyGroupCreate) MarshalJSON

func (v NullablePropertyGroupCreate) MarshalJSON() ([]byte, error)

func (*NullablePropertyGroupCreate) Set

func (*NullablePropertyGroupCreate) UnmarshalJSON

func (v *NullablePropertyGroupCreate) UnmarshalJSON(src []byte) error

func (*NullablePropertyGroupCreate) Unset

func (v *NullablePropertyGroupCreate) Unset()

type NullablePropertyGroupUpdate

type NullablePropertyGroupUpdate struct {
	// contains filtered or unexported fields
}

func NewNullablePropertyGroupUpdate

func NewNullablePropertyGroupUpdate(val *PropertyGroupUpdate) *NullablePropertyGroupUpdate

func (NullablePropertyGroupUpdate) Get

func (NullablePropertyGroupUpdate) IsSet

func (NullablePropertyGroupUpdate) MarshalJSON

func (v NullablePropertyGroupUpdate) MarshalJSON() ([]byte, error)

func (*NullablePropertyGroupUpdate) Set

func (*NullablePropertyGroupUpdate) UnmarshalJSON

func (v *NullablePropertyGroupUpdate) UnmarshalJSON(src []byte) error

func (*NullablePropertyGroupUpdate) Unset

func (v *NullablePropertyGroupUpdate) Unset()

type NullablePropertyModificationMetadata

type NullablePropertyModificationMetadata struct {
	// contains filtered or unexported fields
}

func (NullablePropertyModificationMetadata) Get

func (NullablePropertyModificationMetadata) IsSet

func (NullablePropertyModificationMetadata) MarshalJSON

func (v NullablePropertyModificationMetadata) MarshalJSON() ([]byte, error)

func (*NullablePropertyModificationMetadata) Set

func (*NullablePropertyModificationMetadata) UnmarshalJSON

func (v *NullablePropertyModificationMetadata) UnmarshalJSON(src []byte) error

func (*NullablePropertyModificationMetadata) Unset

type NullablePropertyName

type NullablePropertyName struct {
	// contains filtered or unexported fields
}

func NewNullablePropertyName

func NewNullablePropertyName(val *PropertyName) *NullablePropertyName

func (NullablePropertyName) Get

func (NullablePropertyName) IsSet

func (v NullablePropertyName) IsSet() bool

func (NullablePropertyName) MarshalJSON

func (v NullablePropertyName) MarshalJSON() ([]byte, error)

func (*NullablePropertyName) Set

func (v *NullablePropertyName) Set(val *PropertyName)

func (*NullablePropertyName) UnmarshalJSON

func (v *NullablePropertyName) UnmarshalJSON(src []byte) error

func (*NullablePropertyName) Unset

func (v *NullablePropertyName) Unset()

type NullablePropertyUpdate

type NullablePropertyUpdate struct {
	// contains filtered or unexported fields
}

func NewNullablePropertyUpdate

func NewNullablePropertyUpdate(val *PropertyUpdate) *NullablePropertyUpdate

func (NullablePropertyUpdate) Get

func (NullablePropertyUpdate) IsSet

func (v NullablePropertyUpdate) IsSet() bool

func (NullablePropertyUpdate) MarshalJSON

func (v NullablePropertyUpdate) MarshalJSON() ([]byte, error)

func (*NullablePropertyUpdate) Set

func (*NullablePropertyUpdate) UnmarshalJSON

func (v *NullablePropertyUpdate) UnmarshalJSON(src []byte) error

func (*NullablePropertyUpdate) Unset

func (v *NullablePropertyUpdate) Unset()

type NullableStandardError

type NullableStandardError struct {
	// contains filtered or unexported fields
}

func NewNullableStandardError

func NewNullableStandardError(val *StandardError) *NullableStandardError

func (NullableStandardError) Get

func (NullableStandardError) IsSet

func (v NullableStandardError) IsSet() bool

func (NullableStandardError) MarshalJSON

func (v NullableStandardError) MarshalJSON() ([]byte, error)

func (*NullableStandardError) Set

func (v *NullableStandardError) Set(val *StandardError)

func (*NullableStandardError) UnmarshalJSON

func (v *NullableStandardError) UnmarshalJSON(src []byte) error

func (*NullableStandardError) Unset

func (v *NullableStandardError) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type Option

type Option struct {
	// A human-readable option label that will be shown in HubSpot.
	Label string `json:"label"`
	// The internal value of the option, which must be used when setting the property value through the API.
	Value string `json:"value"`
	// A description of the option.
	Description *string `json:"description,omitempty"`
	// Options are displayed in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values.
	DisplayOrder *int32 `json:"displayOrder,omitempty"`
	// Hidden options will not be displayed in HubSpot.
	Hidden bool `json:"hidden"`
}

Option struct for Option

func NewOption

func NewOption(label string, value string, hidden bool) *Option

NewOption instantiates a new Option 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 NewOptionWithDefaults

func NewOptionWithDefaults() *Option

NewOptionWithDefaults instantiates a new Option 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 (*Option) GetDescription

func (o *Option) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Option) GetDescriptionOk

func (o *Option) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Option) GetDisplayOrder

func (o *Option) GetDisplayOrder() int32

GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise.

func (*Option) GetDisplayOrderOk

func (o *Option) GetDisplayOrderOk() (*int32, bool)

GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Option) GetHidden

func (o *Option) GetHidden() bool

GetHidden returns the Hidden field value

func (*Option) GetHiddenOk

func (o *Option) GetHiddenOk() (*bool, bool)

GetHiddenOk returns a tuple with the Hidden field value and a boolean to check if the value has been set.

func (*Option) GetLabel

func (o *Option) GetLabel() string

GetLabel returns the Label field value

func (*Option) GetLabelOk

func (o *Option) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field value and a boolean to check if the value has been set.

func (*Option) GetValue

func (o *Option) GetValue() string

GetValue returns the Value field value

func (*Option) GetValueOk

func (o *Option) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (*Option) HasDescription

func (o *Option) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Option) HasDisplayOrder

func (o *Option) HasDisplayOrder() bool

HasDisplayOrder returns a boolean if a field has been set.

func (Option) MarshalJSON

func (o Option) MarshalJSON() ([]byte, error)

func (*Option) SetDescription

func (o *Option) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Option) SetDisplayOrder

func (o *Option) SetDisplayOrder(v int32)

SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field.

func (*Option) SetHidden

func (o *Option) SetHidden(v bool)

SetHidden sets field value

func (*Option) SetLabel

func (o *Option) SetLabel(v string)

SetLabel sets field value

func (*Option) SetValue

func (o *Option) SetValue(v string)

SetValue sets field value

type OptionInput

type OptionInput struct {
	// A human-readable option label that will be shown in HubSpot.
	Label string `json:"label"`
	// The internal value of the option, which must be used when setting the property value through the API.
	Value string `json:"value"`
	// A description of the option.
	Description *string `json:"description,omitempty"`
	// Options are shown in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values.
	DisplayOrder *int32 `json:"displayOrder,omitempty"`
	// Hidden options won't be shown in HubSpot.
	Hidden bool `json:"hidden"`
}

OptionInput struct for OptionInput

func NewOptionInput

func NewOptionInput(label string, value string, hidden bool) *OptionInput

NewOptionInput instantiates a new OptionInput 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 NewOptionInputWithDefaults

func NewOptionInputWithDefaults() *OptionInput

NewOptionInputWithDefaults instantiates a new OptionInput 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 (*OptionInput) GetDescription

func (o *OptionInput) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*OptionInput) GetDescriptionOk

func (o *OptionInput) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OptionInput) GetDisplayOrder

func (o *OptionInput) GetDisplayOrder() int32

GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise.

func (*OptionInput) GetDisplayOrderOk

func (o *OptionInput) GetDisplayOrderOk() (*int32, bool)

GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OptionInput) GetHidden

func (o *OptionInput) GetHidden() bool

GetHidden returns the Hidden field value

func (*OptionInput) GetHiddenOk

func (o *OptionInput) GetHiddenOk() (*bool, bool)

GetHiddenOk returns a tuple with the Hidden field value and a boolean to check if the value has been set.

func (*OptionInput) GetLabel

func (o *OptionInput) GetLabel() string

GetLabel returns the Label field value

func (*OptionInput) GetLabelOk

func (o *OptionInput) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field value and a boolean to check if the value has been set.

func (*OptionInput) GetValue

func (o *OptionInput) GetValue() string

GetValue returns the Value field value

func (*OptionInput) GetValueOk

func (o *OptionInput) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (*OptionInput) HasDescription

func (o *OptionInput) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*OptionInput) HasDisplayOrder

func (o *OptionInput) HasDisplayOrder() bool

HasDisplayOrder returns a boolean if a field has been set.

func (OptionInput) MarshalJSON

func (o OptionInput) MarshalJSON() ([]byte, error)

func (*OptionInput) SetDescription

func (o *OptionInput) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*OptionInput) SetDisplayOrder

func (o *OptionInput) SetDisplayOrder(v int32)

SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field.

func (*OptionInput) SetHidden

func (o *OptionInput) SetHidden(v bool)

SetHidden sets field value

func (*OptionInput) SetLabel

func (o *OptionInput) SetLabel(v string)

SetLabel sets field value

func (*OptionInput) SetValue

func (o *OptionInput) SetValue(v string)

SetValue sets field value

type Paging

type Paging struct {
	Next *NextPage `json:"next,omitempty"`
}

Paging struct for Paging

func NewPaging

func NewPaging() *Paging

NewPaging instantiates a new Paging 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 NewPagingWithDefaults

func NewPagingWithDefaults() *Paging

NewPagingWithDefaults instantiates a new Paging 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 (*Paging) GetNext

func (o *Paging) GetNext() NextPage

GetNext returns the Next field value if set, zero value otherwise.

func (*Paging) GetNextOk

func (o *Paging) GetNextOk() (*NextPage, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Paging) HasNext

func (o *Paging) HasNext() bool

HasNext returns a boolean if a field has been set.

func (Paging) MarshalJSON

func (o Paging) MarshalJSON() ([]byte, error)

func (*Paging) SetNext

func (o *Paging) SetNext(v NextPage)

SetNext gets a reference to the given NextPage and assigns it to the Next field.

type Property

type Property struct {
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// When the property was archived.
	ArchivedAt *time.Time `json:"archivedAt,omitempty"`
	// The internal property name, which must be used when referencing the property via the API.
	Name string `json:"name"`
	// A human-readable property label that will be shown in HubSpot.
	Label string `json:"label"`
	// The property data type.
	Type string `json:"type"`
	// Controls how the property appears in HubSpot.
	FieldType string `json:"fieldType"`
	// A description of the property that will be shown as help text in HubSpot.
	Description string `json:"description"`
	// The name of the property group the property belongs to.
	GroupName string `json:"groupName"`
	// A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types.
	Options []Option `json:"options"`
	// The internal user ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot.
	CreatedUserId *string `json:"createdUserId,omitempty"`
	// The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot.
	UpdatedUserId *string `json:"updatedUserId,omitempty"`
	// If this property is related to other object(s), they'll be listed here.
	ReferencedObjectType *string `json:"referencedObjectType,omitempty"`
	// Properties are shown in order, starting with the lowest positive integer value.
	DisplayOrder *int32 `json:"displayOrder,omitempty"`
	// For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties.
	Calculated *bool `json:"calculated,omitempty"`
	// For default properties, true indicates that the options are stored externally to the property settings.
	ExternalOptions *bool `json:"externalOptions,omitempty"`
	// Whether or not the property is archived.
	Archived *bool `json:"archived,omitempty"`
	// Whether or not the property's value must be unique. Once set, this can't be changed.
	HasUniqueValue *bool `json:"hasUniqueValue,omitempty"`
	// Whether or not the property will be hidden from the HubSpot UI. It's recommended this be set to false for custom properties.
	Hidden *bool `json:"hidden,omitempty"`
	// This will be true for default object properties built into HubSpot.
	HubspotDefined *bool `json:"hubspotDefined,omitempty"`
	// Whether or not the property will display the currency symbol set in the account settings.
	ShowCurrencySymbol   *bool                         `json:"showCurrencySymbol,omitempty"`
	ModificationMetadata *PropertyModificationMetadata `json:"modificationMetadata,omitempty"`
	// Whether or not the property can be used in a HubSpot form.
	FormField *bool `json:"formField,omitempty"`
}

Property struct for Property

func NewProperty

func NewProperty(name string, label string, type_ string, fieldType string, description string, groupName string, options []Option) *Property

NewProperty instantiates a new Property 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 NewPropertyWithDefaults

func NewPropertyWithDefaults() *Property

NewPropertyWithDefaults instantiates a new Property 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 (*Property) GetArchived

func (o *Property) GetArchived() bool

GetArchived returns the Archived field value if set, zero value otherwise.

func (*Property) GetArchivedAt

func (o *Property) GetArchivedAt() time.Time

GetArchivedAt returns the ArchivedAt field value if set, zero value otherwise.

func (*Property) GetArchivedAtOk

func (o *Property) GetArchivedAtOk() (*time.Time, bool)

GetArchivedAtOk returns a tuple with the ArchivedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetArchivedOk

func (o *Property) GetArchivedOk() (*bool, bool)

GetArchivedOk returns a tuple with the Archived field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetCalculated

func (o *Property) GetCalculated() bool

GetCalculated returns the Calculated field value if set, zero value otherwise.

func (*Property) GetCalculatedOk

func (o *Property) GetCalculatedOk() (*bool, bool)

GetCalculatedOk returns a tuple with the Calculated field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetCreatedAt

func (o *Property) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Property) GetCreatedAtOk

func (o *Property) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetCreatedUserId

func (o *Property) GetCreatedUserId() string

GetCreatedUserId returns the CreatedUserId field value if set, zero value otherwise.

func (*Property) GetCreatedUserIdOk

func (o *Property) GetCreatedUserIdOk() (*string, bool)

GetCreatedUserIdOk returns a tuple with the CreatedUserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetDescription

func (o *Property) GetDescription() string

GetDescription returns the Description field value

func (*Property) GetDescriptionOk

func (o *Property) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*Property) GetDisplayOrder

func (o *Property) GetDisplayOrder() int32

GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise.

func (*Property) GetDisplayOrderOk

func (o *Property) GetDisplayOrderOk() (*int32, bool)

GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetExternalOptions

func (o *Property) GetExternalOptions() bool

GetExternalOptions returns the ExternalOptions field value if set, zero value otherwise.

func (*Property) GetExternalOptionsOk

func (o *Property) GetExternalOptionsOk() (*bool, bool)

GetExternalOptionsOk returns a tuple with the ExternalOptions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetFieldType

func (o *Property) GetFieldType() string

GetFieldType returns the FieldType field value

func (*Property) GetFieldTypeOk

func (o *Property) GetFieldTypeOk() (*string, bool)

GetFieldTypeOk returns a tuple with the FieldType field value and a boolean to check if the value has been set.

func (*Property) GetFormField

func (o *Property) GetFormField() bool

GetFormField returns the FormField field value if set, zero value otherwise.

func (*Property) GetFormFieldOk

func (o *Property) GetFormFieldOk() (*bool, bool)

GetFormFieldOk returns a tuple with the FormField field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetGroupName

func (o *Property) GetGroupName() string

GetGroupName returns the GroupName field value

func (*Property) GetGroupNameOk

func (o *Property) GetGroupNameOk() (*string, bool)

GetGroupNameOk returns a tuple with the GroupName field value and a boolean to check if the value has been set.

func (*Property) GetHasUniqueValue

func (o *Property) GetHasUniqueValue() bool

GetHasUniqueValue returns the HasUniqueValue field value if set, zero value otherwise.

func (*Property) GetHasUniqueValueOk

func (o *Property) GetHasUniqueValueOk() (*bool, bool)

GetHasUniqueValueOk returns a tuple with the HasUniqueValue field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetHidden

func (o *Property) GetHidden() bool

GetHidden returns the Hidden field value if set, zero value otherwise.

func (*Property) GetHiddenOk

func (o *Property) GetHiddenOk() (*bool, bool)

GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetHubspotDefined

func (o *Property) GetHubspotDefined() bool

GetHubspotDefined returns the HubspotDefined field value if set, zero value otherwise.

func (*Property) GetHubspotDefinedOk

func (o *Property) GetHubspotDefinedOk() (*bool, bool)

GetHubspotDefinedOk returns a tuple with the HubspotDefined field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetLabel

func (o *Property) GetLabel() string

GetLabel returns the Label field value

func (*Property) GetLabelOk

func (o *Property) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field value and a boolean to check if the value has been set.

func (*Property) GetModificationMetadata

func (o *Property) GetModificationMetadata() PropertyModificationMetadata

GetModificationMetadata returns the ModificationMetadata field value if set, zero value otherwise.

func (*Property) GetModificationMetadataOk

func (o *Property) GetModificationMetadataOk() (*PropertyModificationMetadata, bool)

GetModificationMetadataOk returns a tuple with the ModificationMetadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetName

func (o *Property) GetName() string

GetName returns the Name field value

func (*Property) GetNameOk

func (o *Property) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Property) GetOptions

func (o *Property) GetOptions() []Option

GetOptions returns the Options field value

func (*Property) GetOptionsOk

func (o *Property) GetOptionsOk() ([]Option, bool)

GetOptionsOk returns a tuple with the Options field value and a boolean to check if the value has been set.

func (*Property) GetReferencedObjectType

func (o *Property) GetReferencedObjectType() string

GetReferencedObjectType returns the ReferencedObjectType field value if set, zero value otherwise.

func (*Property) GetReferencedObjectTypeOk

func (o *Property) GetReferencedObjectTypeOk() (*string, bool)

GetReferencedObjectTypeOk returns a tuple with the ReferencedObjectType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetShowCurrencySymbol

func (o *Property) GetShowCurrencySymbol() bool

GetShowCurrencySymbol returns the ShowCurrencySymbol field value if set, zero value otherwise.

func (*Property) GetShowCurrencySymbolOk

func (o *Property) GetShowCurrencySymbolOk() (*bool, bool)

GetShowCurrencySymbolOk returns a tuple with the ShowCurrencySymbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetType

func (o *Property) GetType() string

GetType returns the Type field value

func (*Property) GetTypeOk

func (o *Property) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Property) GetUpdatedAt

func (o *Property) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*Property) GetUpdatedAtOk

func (o *Property) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) GetUpdatedUserId

func (o *Property) GetUpdatedUserId() string

GetUpdatedUserId returns the UpdatedUserId field value if set, zero value otherwise.

func (*Property) GetUpdatedUserIdOk

func (o *Property) GetUpdatedUserIdOk() (*string, bool)

GetUpdatedUserIdOk returns a tuple with the UpdatedUserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Property) HasArchived

func (o *Property) HasArchived() bool

HasArchived returns a boolean if a field has been set.

func (*Property) HasArchivedAt

func (o *Property) HasArchivedAt() bool

HasArchivedAt returns a boolean if a field has been set.

func (*Property) HasCalculated

func (o *Property) HasCalculated() bool

HasCalculated returns a boolean if a field has been set.

func (*Property) HasCreatedAt

func (o *Property) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Property) HasCreatedUserId

func (o *Property) HasCreatedUserId() bool

HasCreatedUserId returns a boolean if a field has been set.

func (*Property) HasDisplayOrder

func (o *Property) HasDisplayOrder() bool

HasDisplayOrder returns a boolean if a field has been set.

func (*Property) HasExternalOptions

func (o *Property) HasExternalOptions() bool

HasExternalOptions returns a boolean if a field has been set.

func (*Property) HasFormField

func (o *Property) HasFormField() bool

HasFormField returns a boolean if a field has been set.

func (*Property) HasHasUniqueValue

func (o *Property) HasHasUniqueValue() bool

HasHasUniqueValue returns a boolean if a field has been set.

func (*Property) HasHidden

func (o *Property) HasHidden() bool

HasHidden returns a boolean if a field has been set.

func (*Property) HasHubspotDefined

func (o *Property) HasHubspotDefined() bool

HasHubspotDefined returns a boolean if a field has been set.

func (*Property) HasModificationMetadata

func (o *Property) HasModificationMetadata() bool

HasModificationMetadata returns a boolean if a field has been set.

func (*Property) HasReferencedObjectType

func (o *Property) HasReferencedObjectType() bool

HasReferencedObjectType returns a boolean if a field has been set.

func (*Property) HasShowCurrencySymbol

func (o *Property) HasShowCurrencySymbol() bool

HasShowCurrencySymbol returns a boolean if a field has been set.

func (*Property) HasUpdatedAt

func (o *Property) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (*Property) HasUpdatedUserId

func (o *Property) HasUpdatedUserId() bool

HasUpdatedUserId returns a boolean if a field has been set.

func (Property) MarshalJSON

func (o Property) MarshalJSON() ([]byte, error)

func (*Property) SetArchived

func (o *Property) SetArchived(v bool)

SetArchived gets a reference to the given bool and assigns it to the Archived field.

func (*Property) SetArchivedAt

func (o *Property) SetArchivedAt(v time.Time)

SetArchivedAt gets a reference to the given time.Time and assigns it to the ArchivedAt field.

func (*Property) SetCalculated

func (o *Property) SetCalculated(v bool)

SetCalculated gets a reference to the given bool and assigns it to the Calculated field.

func (*Property) SetCreatedAt

func (o *Property) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Property) SetCreatedUserId

func (o *Property) SetCreatedUserId(v string)

SetCreatedUserId gets a reference to the given string and assigns it to the CreatedUserId field.

func (*Property) SetDescription

func (o *Property) SetDescription(v string)

SetDescription sets field value

func (*Property) SetDisplayOrder

func (o *Property) SetDisplayOrder(v int32)

SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field.

func (*Property) SetExternalOptions

func (o *Property) SetExternalOptions(v bool)

SetExternalOptions gets a reference to the given bool and assigns it to the ExternalOptions field.

func (*Property) SetFieldType

func (o *Property) SetFieldType(v string)

SetFieldType sets field value

func (*Property) SetFormField

func (o *Property) SetFormField(v bool)

SetFormField gets a reference to the given bool and assigns it to the FormField field.

func (*Property) SetGroupName

func (o *Property) SetGroupName(v string)

SetGroupName sets field value

func (*Property) SetHasUniqueValue

func (o *Property) SetHasUniqueValue(v bool)

SetHasUniqueValue gets a reference to the given bool and assigns it to the HasUniqueValue field.

func (*Property) SetHidden

func (o *Property) SetHidden(v bool)

SetHidden gets a reference to the given bool and assigns it to the Hidden field.

func (*Property) SetHubspotDefined

func (o *Property) SetHubspotDefined(v bool)

SetHubspotDefined gets a reference to the given bool and assigns it to the HubspotDefined field.

func (*Property) SetLabel

func (o *Property) SetLabel(v string)

SetLabel sets field value

func (*Property) SetModificationMetadata

func (o *Property) SetModificationMetadata(v PropertyModificationMetadata)

SetModificationMetadata gets a reference to the given PropertyModificationMetadata and assigns it to the ModificationMetadata field.

func (*Property) SetName

func (o *Property) SetName(v string)

SetName sets field value

func (*Property) SetOptions

func (o *Property) SetOptions(v []Option)

SetOptions sets field value

func (*Property) SetReferencedObjectType

func (o *Property) SetReferencedObjectType(v string)

SetReferencedObjectType gets a reference to the given string and assigns it to the ReferencedObjectType field.

func (*Property) SetShowCurrencySymbol

func (o *Property) SetShowCurrencySymbol(v bool)

SetShowCurrencySymbol gets a reference to the given bool and assigns it to the ShowCurrencySymbol field.

func (*Property) SetType

func (o *Property) SetType(v string)

SetType sets field value

func (*Property) SetUpdatedAt

func (o *Property) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*Property) SetUpdatedUserId

func (o *Property) SetUpdatedUserId(v string)

SetUpdatedUserId gets a reference to the given string and assigns it to the UpdatedUserId field.

type PropertyCreate

type PropertyCreate struct {
	// The internal property name, which must be used when referencing the property via the API.
	Name string `json:"name"`
	// A human-readable property label that will be shown in HubSpot.
	Label string `json:"label"`
	// The data type of the property.
	Type string `json:"type"`
	// Controls how the property appears in HubSpot.
	FieldType string `json:"fieldType"`
	// The name of the property group the property belongs to.
	GroupName string `json:"groupName"`
	// A description of the property that will be shown as help text in HubSpot.
	Description *string `json:"description,omitempty"`
	// A list of valid options for the property. This field is required for enumerated properties.
	Options []OptionInput `json:"options,omitempty"`
	// Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property to be displayed after any positive values.
	DisplayOrder *int32 `json:"displayOrder,omitempty"`
	// Whether or not the property's value must be unique. Once set, this can't be changed.
	HasUniqueValue *bool `json:"hasUniqueValue,omitempty"`
	// If true, the property won't be visible and can't be used in HubSpot.
	Hidden *bool `json:"hidden,omitempty"`
	// Whether or not the property can be used in a HubSpot form.
	FormField *bool `json:"formField,omitempty"`
}

PropertyCreate struct for PropertyCreate

func NewPropertyCreate

func NewPropertyCreate(name string, label string, type_ string, fieldType string, groupName string) *PropertyCreate

NewPropertyCreate instantiates a new PropertyCreate 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 NewPropertyCreateWithDefaults

func NewPropertyCreateWithDefaults() *PropertyCreate

NewPropertyCreateWithDefaults instantiates a new PropertyCreate 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 (*PropertyCreate) GetDescription

func (o *PropertyCreate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*PropertyCreate) GetDescriptionOk

func (o *PropertyCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyCreate) GetDisplayOrder

func (o *PropertyCreate) GetDisplayOrder() int32

GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise.

func (*PropertyCreate) GetDisplayOrderOk

func (o *PropertyCreate) GetDisplayOrderOk() (*int32, bool)

GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyCreate) GetFieldType

func (o *PropertyCreate) GetFieldType() string

GetFieldType returns the FieldType field value

func (*PropertyCreate) GetFieldTypeOk

func (o *PropertyCreate) GetFieldTypeOk() (*string, bool)

GetFieldTypeOk returns a tuple with the FieldType field value and a boolean to check if the value has been set.

func (*PropertyCreate) GetFormField

func (o *PropertyCreate) GetFormField() bool

GetFormField returns the FormField field value if set, zero value otherwise.

func (*PropertyCreate) GetFormFieldOk

func (o *PropertyCreate) GetFormFieldOk() (*bool, bool)

GetFormFieldOk returns a tuple with the FormField field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyCreate) GetGroupName

func (o *PropertyCreate) GetGroupName() string

GetGroupName returns the GroupName field value

func (*PropertyCreate) GetGroupNameOk

func (o *PropertyCreate) GetGroupNameOk() (*string, bool)

GetGroupNameOk returns a tuple with the GroupName field value and a boolean to check if the value has been set.

func (*PropertyCreate) GetHasUniqueValue

func (o *PropertyCreate) GetHasUniqueValue() bool

GetHasUniqueValue returns the HasUniqueValue field value if set, zero value otherwise.

func (*PropertyCreate) GetHasUniqueValueOk

func (o *PropertyCreate) GetHasUniqueValueOk() (*bool, bool)

GetHasUniqueValueOk returns a tuple with the HasUniqueValue field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyCreate) GetHidden

func (o *PropertyCreate) GetHidden() bool

GetHidden returns the Hidden field value if set, zero value otherwise.

func (*PropertyCreate) GetHiddenOk

func (o *PropertyCreate) GetHiddenOk() (*bool, bool)

GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyCreate) GetLabel

func (o *PropertyCreate) GetLabel() string

GetLabel returns the Label field value

func (*PropertyCreate) GetLabelOk

func (o *PropertyCreate) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field value and a boolean to check if the value has been set.

func (*PropertyCreate) GetName

func (o *PropertyCreate) GetName() string

GetName returns the Name field value

func (*PropertyCreate) GetNameOk

func (o *PropertyCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*PropertyCreate) GetOptions

func (o *PropertyCreate) GetOptions() []OptionInput

GetOptions returns the Options field value if set, zero value otherwise.

func (*PropertyCreate) GetOptionsOk

func (o *PropertyCreate) GetOptionsOk() ([]OptionInput, bool)

GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyCreate) GetType

func (o *PropertyCreate) GetType() string

GetType returns the Type field value

func (*PropertyCreate) GetTypeOk

func (o *PropertyCreate) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*PropertyCreate) HasDescription

func (o *PropertyCreate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*PropertyCreate) HasDisplayOrder

func (o *PropertyCreate) HasDisplayOrder() bool

HasDisplayOrder returns a boolean if a field has been set.

func (*PropertyCreate) HasFormField

func (o *PropertyCreate) HasFormField() bool

HasFormField returns a boolean if a field has been set.

func (*PropertyCreate) HasHasUniqueValue

func (o *PropertyCreate) HasHasUniqueValue() bool

HasHasUniqueValue returns a boolean if a field has been set.

func (*PropertyCreate) HasHidden

func (o *PropertyCreate) HasHidden() bool

HasHidden returns a boolean if a field has been set.

func (*PropertyCreate) HasOptions

func (o *PropertyCreate) HasOptions() bool

HasOptions returns a boolean if a field has been set.

func (PropertyCreate) MarshalJSON

func (o PropertyCreate) MarshalJSON() ([]byte, error)

func (*PropertyCreate) SetDescription

func (o *PropertyCreate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*PropertyCreate) SetDisplayOrder

func (o *PropertyCreate) SetDisplayOrder(v int32)

SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field.

func (*PropertyCreate) SetFieldType

func (o *PropertyCreate) SetFieldType(v string)

SetFieldType sets field value

func (*PropertyCreate) SetFormField

func (o *PropertyCreate) SetFormField(v bool)

SetFormField gets a reference to the given bool and assigns it to the FormField field.

func (*PropertyCreate) SetGroupName

func (o *PropertyCreate) SetGroupName(v string)

SetGroupName sets field value

func (*PropertyCreate) SetHasUniqueValue

func (o *PropertyCreate) SetHasUniqueValue(v bool)

SetHasUniqueValue gets a reference to the given bool and assigns it to the HasUniqueValue field.

func (*PropertyCreate) SetHidden

func (o *PropertyCreate) SetHidden(v bool)

SetHidden gets a reference to the given bool and assigns it to the Hidden field.

func (*PropertyCreate) SetLabel

func (o *PropertyCreate) SetLabel(v string)

SetLabel sets field value

func (*PropertyCreate) SetName

func (o *PropertyCreate) SetName(v string)

SetName sets field value

func (*PropertyCreate) SetOptions

func (o *PropertyCreate) SetOptions(v []OptionInput)

SetOptions gets a reference to the given []OptionInput and assigns it to the Options field.

func (*PropertyCreate) SetType

func (o *PropertyCreate) SetType(v string)

SetType sets field value

type PropertyGroup

type PropertyGroup struct {
	// The internal property group name, which must be used when referencing the property group via the API.
	Name string `json:"name"`
	// A human-readable label that will be shown in HubSpot.
	Label string `json:"label"`
	// Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values.
	DisplayOrder int32 `json:"displayOrder"`
	Archived     bool  `json:"archived"`
}

PropertyGroup An ID for a group of properties

func NewPropertyGroup

func NewPropertyGroup(name string, label string, displayOrder int32, archived bool) *PropertyGroup

NewPropertyGroup instantiates a new PropertyGroup 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 NewPropertyGroupWithDefaults

func NewPropertyGroupWithDefaults() *PropertyGroup

NewPropertyGroupWithDefaults instantiates a new PropertyGroup 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 (*PropertyGroup) GetArchived

func (o *PropertyGroup) GetArchived() bool

GetArchived returns the Archived field value

func (*PropertyGroup) GetArchivedOk

func (o *PropertyGroup) GetArchivedOk() (*bool, bool)

GetArchivedOk returns a tuple with the Archived field value and a boolean to check if the value has been set.

func (*PropertyGroup) GetDisplayOrder

func (o *PropertyGroup) GetDisplayOrder() int32

GetDisplayOrder returns the DisplayOrder field value

func (*PropertyGroup) GetDisplayOrderOk

func (o *PropertyGroup) GetDisplayOrderOk() (*int32, bool)

GetDisplayOrderOk returns a tuple with the DisplayOrder field value and a boolean to check if the value has been set.

func (*PropertyGroup) GetLabel

func (o *PropertyGroup) GetLabel() string

GetLabel returns the Label field value

func (*PropertyGroup) GetLabelOk

func (o *PropertyGroup) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field value and a boolean to check if the value has been set.

func (*PropertyGroup) GetName

func (o *PropertyGroup) GetName() string

GetName returns the Name field value

func (*PropertyGroup) GetNameOk

func (o *PropertyGroup) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (PropertyGroup) MarshalJSON

func (o PropertyGroup) MarshalJSON() ([]byte, error)

func (*PropertyGroup) SetArchived

func (o *PropertyGroup) SetArchived(v bool)

SetArchived sets field value

func (*PropertyGroup) SetDisplayOrder

func (o *PropertyGroup) SetDisplayOrder(v int32)

SetDisplayOrder sets field value

func (*PropertyGroup) SetLabel

func (o *PropertyGroup) SetLabel(v string)

SetLabel sets field value

func (*PropertyGroup) SetName

func (o *PropertyGroup) SetName(v string)

SetName sets field value

type PropertyGroupCreate

type PropertyGroupCreate struct {
	// The internal property group name, which must be used when referencing the property group via the API.
	Name string `json:"name"`
	// A human-readable label that will be shown in HubSpot.
	Label string `json:"label"`
	// Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values.
	DisplayOrder *int32 `json:"displayOrder,omitempty"`
}

PropertyGroupCreate struct for PropertyGroupCreate

func NewPropertyGroupCreate

func NewPropertyGroupCreate(name string, label string) *PropertyGroupCreate

NewPropertyGroupCreate instantiates a new PropertyGroupCreate 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 NewPropertyGroupCreateWithDefaults

func NewPropertyGroupCreateWithDefaults() *PropertyGroupCreate

NewPropertyGroupCreateWithDefaults instantiates a new PropertyGroupCreate 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 (*PropertyGroupCreate) GetDisplayOrder

func (o *PropertyGroupCreate) GetDisplayOrder() int32

GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise.

func (*PropertyGroupCreate) GetDisplayOrderOk

func (o *PropertyGroupCreate) GetDisplayOrderOk() (*int32, bool)

GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyGroupCreate) GetLabel

func (o *PropertyGroupCreate) GetLabel() string

GetLabel returns the Label field value

func (*PropertyGroupCreate) GetLabelOk

func (o *PropertyGroupCreate) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field value and a boolean to check if the value has been set.

func (*PropertyGroupCreate) GetName

func (o *PropertyGroupCreate) GetName() string

GetName returns the Name field value

func (*PropertyGroupCreate) GetNameOk

func (o *PropertyGroupCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*PropertyGroupCreate) HasDisplayOrder

func (o *PropertyGroupCreate) HasDisplayOrder() bool

HasDisplayOrder returns a boolean if a field has been set.

func (PropertyGroupCreate) MarshalJSON

func (o PropertyGroupCreate) MarshalJSON() ([]byte, error)

func (*PropertyGroupCreate) SetDisplayOrder

func (o *PropertyGroupCreate) SetDisplayOrder(v int32)

SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field.

func (*PropertyGroupCreate) SetLabel

func (o *PropertyGroupCreate) SetLabel(v string)

SetLabel sets field value

func (*PropertyGroupCreate) SetName

func (o *PropertyGroupCreate) SetName(v string)

SetName sets field value

type PropertyGroupUpdate

type PropertyGroupUpdate struct {
	// A human-readable label that will be shown in HubSpot.
	Label *string `json:"label,omitempty"`
	// Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values.
	DisplayOrder *int32 `json:"displayOrder,omitempty"`
}

PropertyGroupUpdate struct for PropertyGroupUpdate

func NewPropertyGroupUpdate

func NewPropertyGroupUpdate() *PropertyGroupUpdate

NewPropertyGroupUpdate instantiates a new PropertyGroupUpdate 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 NewPropertyGroupUpdateWithDefaults

func NewPropertyGroupUpdateWithDefaults() *PropertyGroupUpdate

NewPropertyGroupUpdateWithDefaults instantiates a new PropertyGroupUpdate 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 (*PropertyGroupUpdate) GetDisplayOrder

func (o *PropertyGroupUpdate) GetDisplayOrder() int32

GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise.

func (*PropertyGroupUpdate) GetDisplayOrderOk

func (o *PropertyGroupUpdate) GetDisplayOrderOk() (*int32, bool)

GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyGroupUpdate) GetLabel

func (o *PropertyGroupUpdate) GetLabel() string

GetLabel returns the Label field value if set, zero value otherwise.

func (*PropertyGroupUpdate) GetLabelOk

func (o *PropertyGroupUpdate) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyGroupUpdate) HasDisplayOrder

func (o *PropertyGroupUpdate) HasDisplayOrder() bool

HasDisplayOrder returns a boolean if a field has been set.

func (*PropertyGroupUpdate) HasLabel

func (o *PropertyGroupUpdate) HasLabel() bool

HasLabel returns a boolean if a field has been set.

func (PropertyGroupUpdate) MarshalJSON

func (o PropertyGroupUpdate) MarshalJSON() ([]byte, error)

func (*PropertyGroupUpdate) SetDisplayOrder

func (o *PropertyGroupUpdate) SetDisplayOrder(v int32)

SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field.

func (*PropertyGroupUpdate) SetLabel

func (o *PropertyGroupUpdate) SetLabel(v string)

SetLabel gets a reference to the given string and assigns it to the Label field.

type PropertyModificationMetadata

type PropertyModificationMetadata struct {
	Archivable         bool  `json:"archivable"`
	ReadOnlyDefinition bool  `json:"readOnlyDefinition"`
	ReadOnlyOptions    *bool `json:"readOnlyOptions,omitempty"`
	ReadOnlyValue      bool  `json:"readOnlyValue"`
}

PropertyModificationMetadata struct for PropertyModificationMetadata

func NewPropertyModificationMetadata

func NewPropertyModificationMetadata(archivable bool, readOnlyDefinition bool, readOnlyValue bool) *PropertyModificationMetadata

NewPropertyModificationMetadata instantiates a new PropertyModificationMetadata 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 NewPropertyModificationMetadataWithDefaults

func NewPropertyModificationMetadataWithDefaults() *PropertyModificationMetadata

NewPropertyModificationMetadataWithDefaults instantiates a new PropertyModificationMetadata 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 (*PropertyModificationMetadata) GetArchivable

func (o *PropertyModificationMetadata) GetArchivable() bool

GetArchivable returns the Archivable field value

func (*PropertyModificationMetadata) GetArchivableOk

func (o *PropertyModificationMetadata) GetArchivableOk() (*bool, bool)

GetArchivableOk returns a tuple with the Archivable field value and a boolean to check if the value has been set.

func (*PropertyModificationMetadata) GetReadOnlyDefinition

func (o *PropertyModificationMetadata) GetReadOnlyDefinition() bool

GetReadOnlyDefinition returns the ReadOnlyDefinition field value

func (*PropertyModificationMetadata) GetReadOnlyDefinitionOk

func (o *PropertyModificationMetadata) GetReadOnlyDefinitionOk() (*bool, bool)

GetReadOnlyDefinitionOk returns a tuple with the ReadOnlyDefinition field value and a boolean to check if the value has been set.

func (*PropertyModificationMetadata) GetReadOnlyOptions

func (o *PropertyModificationMetadata) GetReadOnlyOptions() bool

GetReadOnlyOptions returns the ReadOnlyOptions field value if set, zero value otherwise.

func (*PropertyModificationMetadata) GetReadOnlyOptionsOk

func (o *PropertyModificationMetadata) GetReadOnlyOptionsOk() (*bool, bool)

GetReadOnlyOptionsOk returns a tuple with the ReadOnlyOptions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyModificationMetadata) GetReadOnlyValue

func (o *PropertyModificationMetadata) GetReadOnlyValue() bool

GetReadOnlyValue returns the ReadOnlyValue field value

func (*PropertyModificationMetadata) GetReadOnlyValueOk

func (o *PropertyModificationMetadata) GetReadOnlyValueOk() (*bool, bool)

GetReadOnlyValueOk returns a tuple with the ReadOnlyValue field value and a boolean to check if the value has been set.

func (*PropertyModificationMetadata) HasReadOnlyOptions

func (o *PropertyModificationMetadata) HasReadOnlyOptions() bool

HasReadOnlyOptions returns a boolean if a field has been set.

func (PropertyModificationMetadata) MarshalJSON

func (o PropertyModificationMetadata) MarshalJSON() ([]byte, error)

func (*PropertyModificationMetadata) SetArchivable

func (o *PropertyModificationMetadata) SetArchivable(v bool)

SetArchivable sets field value

func (*PropertyModificationMetadata) SetReadOnlyDefinition

func (o *PropertyModificationMetadata) SetReadOnlyDefinition(v bool)

SetReadOnlyDefinition sets field value

func (*PropertyModificationMetadata) SetReadOnlyOptions

func (o *PropertyModificationMetadata) SetReadOnlyOptions(v bool)

SetReadOnlyOptions gets a reference to the given bool and assigns it to the ReadOnlyOptions field.

func (*PropertyModificationMetadata) SetReadOnlyValue

func (o *PropertyModificationMetadata) SetReadOnlyValue(v bool)

SetReadOnlyValue sets field value

type PropertyName

type PropertyName struct {
	// The name of the property to read or modify.
	Name string `json:"name"`
}

PropertyName struct for PropertyName

func NewPropertyName

func NewPropertyName(name string) *PropertyName

NewPropertyName instantiates a new PropertyName 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 NewPropertyNameWithDefaults

func NewPropertyNameWithDefaults() *PropertyName

NewPropertyNameWithDefaults instantiates a new PropertyName 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 (*PropertyName) GetName

func (o *PropertyName) GetName() string

GetName returns the Name field value

func (*PropertyName) GetNameOk

func (o *PropertyName) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (PropertyName) MarshalJSON

func (o PropertyName) MarshalJSON() ([]byte, error)

func (*PropertyName) SetName

func (o *PropertyName) SetName(v string)

SetName sets field value

type PropertyUpdate

type PropertyUpdate struct {
	// A human-readable property label that will be shown in HubSpot.
	Label *string `json:"label,omitempty"`
	// The data type of the property.
	Type *string `json:"type,omitempty"`
	// Controls how the property appears in HubSpot.
	FieldType *string `json:"fieldType,omitempty"`
	// The name of the property group the property belongs to.
	GroupName *string `json:"groupName,omitempty"`
	// A description of the property that will be shown as help text in HubSpot.
	Description *string `json:"description,omitempty"`
	// A list of valid options for the property.
	Options []OptionInput `json:"options,omitempty"`
	// Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the Property to be displayed after any positive values.
	DisplayOrder *int32 `json:"displayOrder,omitempty"`
	// If true, the property won't be visible and can't be used in HubSpot.
	Hidden *bool `json:"hidden,omitempty"`
	// Whether or not the property can be used in a HubSpot form.
	FormField *bool `json:"formField,omitempty"`
}

PropertyUpdate struct for PropertyUpdate

func NewPropertyUpdate

func NewPropertyUpdate() *PropertyUpdate

NewPropertyUpdate instantiates a new PropertyUpdate 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 NewPropertyUpdateWithDefaults

func NewPropertyUpdateWithDefaults() *PropertyUpdate

NewPropertyUpdateWithDefaults instantiates a new PropertyUpdate 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 (*PropertyUpdate) GetDescription

func (o *PropertyUpdate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*PropertyUpdate) GetDescriptionOk

func (o *PropertyUpdate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyUpdate) GetDisplayOrder

func (o *PropertyUpdate) GetDisplayOrder() int32

GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise.

func (*PropertyUpdate) GetDisplayOrderOk

func (o *PropertyUpdate) GetDisplayOrderOk() (*int32, bool)

GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyUpdate) GetFieldType

func (o *PropertyUpdate) GetFieldType() string

GetFieldType returns the FieldType field value if set, zero value otherwise.

func (*PropertyUpdate) GetFieldTypeOk

func (o *PropertyUpdate) GetFieldTypeOk() (*string, bool)

GetFieldTypeOk returns a tuple with the FieldType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyUpdate) GetFormField

func (o *PropertyUpdate) GetFormField() bool

GetFormField returns the FormField field value if set, zero value otherwise.

func (*PropertyUpdate) GetFormFieldOk

func (o *PropertyUpdate) GetFormFieldOk() (*bool, bool)

GetFormFieldOk returns a tuple with the FormField field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyUpdate) GetGroupName

func (o *PropertyUpdate) GetGroupName() string

GetGroupName returns the GroupName field value if set, zero value otherwise.

func (*PropertyUpdate) GetGroupNameOk

func (o *PropertyUpdate) GetGroupNameOk() (*string, bool)

GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyUpdate) GetHidden

func (o *PropertyUpdate) GetHidden() bool

GetHidden returns the Hidden field value if set, zero value otherwise.

func (*PropertyUpdate) GetHiddenOk

func (o *PropertyUpdate) GetHiddenOk() (*bool, bool)

GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyUpdate) GetLabel

func (o *PropertyUpdate) GetLabel() string

GetLabel returns the Label field value if set, zero value otherwise.

func (*PropertyUpdate) GetLabelOk

func (o *PropertyUpdate) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyUpdate) GetOptions

func (o *PropertyUpdate) GetOptions() []OptionInput

GetOptions returns the Options field value if set, zero value otherwise.

func (*PropertyUpdate) GetOptionsOk

func (o *PropertyUpdate) GetOptionsOk() ([]OptionInput, bool)

GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyUpdate) GetType

func (o *PropertyUpdate) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*PropertyUpdate) GetTypeOk

func (o *PropertyUpdate) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PropertyUpdate) HasDescription

func (o *PropertyUpdate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*PropertyUpdate) HasDisplayOrder

func (o *PropertyUpdate) HasDisplayOrder() bool

HasDisplayOrder returns a boolean if a field has been set.

func (*PropertyUpdate) HasFieldType

func (o *PropertyUpdate) HasFieldType() bool

HasFieldType returns a boolean if a field has been set.

func (*PropertyUpdate) HasFormField

func (o *PropertyUpdate) HasFormField() bool

HasFormField returns a boolean if a field has been set.

func (*PropertyUpdate) HasGroupName

func (o *PropertyUpdate) HasGroupName() bool

HasGroupName returns a boolean if a field has been set.

func (*PropertyUpdate) HasHidden

func (o *PropertyUpdate) HasHidden() bool

HasHidden returns a boolean if a field has been set.

func (*PropertyUpdate) HasLabel

func (o *PropertyUpdate) HasLabel() bool

HasLabel returns a boolean if a field has been set.

func (*PropertyUpdate) HasOptions

func (o *PropertyUpdate) HasOptions() bool

HasOptions returns a boolean if a field has been set.

func (*PropertyUpdate) HasType

func (o *PropertyUpdate) HasType() bool

HasType returns a boolean if a field has been set.

func (PropertyUpdate) MarshalJSON

func (o PropertyUpdate) MarshalJSON() ([]byte, error)

func (*PropertyUpdate) SetDescription

func (o *PropertyUpdate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*PropertyUpdate) SetDisplayOrder

func (o *PropertyUpdate) SetDisplayOrder(v int32)

SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field.

func (*PropertyUpdate) SetFieldType

func (o *PropertyUpdate) SetFieldType(v string)

SetFieldType gets a reference to the given string and assigns it to the FieldType field.

func (*PropertyUpdate) SetFormField

func (o *PropertyUpdate) SetFormField(v bool)

SetFormField gets a reference to the given bool and assigns it to the FormField field.

func (*PropertyUpdate) SetGroupName

func (o *PropertyUpdate) SetGroupName(v string)

SetGroupName gets a reference to the given string and assigns it to the GroupName field.

func (*PropertyUpdate) SetHidden

func (o *PropertyUpdate) SetHidden(v bool)

SetHidden gets a reference to the given bool and assigns it to the Hidden field.

func (*PropertyUpdate) SetLabel

func (o *PropertyUpdate) SetLabel(v string)

SetLabel gets a reference to the given string and assigns it to the Label field.

func (*PropertyUpdate) SetOptions

func (o *PropertyUpdate) SetOptions(v []OptionInput)

SetOptions gets a reference to the given []OptionInput and assigns it to the Options field.

func (*PropertyUpdate) SetType

func (o *PropertyUpdate) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type StandardError

type StandardError struct {
	Status      string                 `json:"status"`
	Id          *string                `json:"id,omitempty"`
	Category    ErrorCategory          `json:"category"`
	SubCategory map[string]interface{} `json:"subCategory,omitempty"`
	Message     string                 `json:"message"`
	Errors      []ErrorDetail          `json:"errors"`
	Context     map[string][]string    `json:"context"`
	Links       map[string]string      `json:"links"`
}

StandardError struct for StandardError

func NewStandardError

func NewStandardError(status string, category ErrorCategory, message string, errors []ErrorDetail, context map[string][]string, links map[string]string) *StandardError

NewStandardError instantiates a new StandardError 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 NewStandardErrorWithDefaults

func NewStandardErrorWithDefaults() *StandardError

NewStandardErrorWithDefaults instantiates a new StandardError 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 (*StandardError) GetCategory

func (o *StandardError) GetCategory() ErrorCategory

GetCategory returns the Category field value

func (*StandardError) GetCategoryOk

func (o *StandardError) GetCategoryOk() (*ErrorCategory, bool)

GetCategoryOk returns a tuple with the Category field value and a boolean to check if the value has been set.

func (*StandardError) GetContext

func (o *StandardError) GetContext() map[string][]string

GetContext returns the Context field value

func (*StandardError) GetContextOk

func (o *StandardError) GetContextOk() (*map[string][]string, bool)

GetContextOk returns a tuple with the Context field value and a boolean to check if the value has been set.

func (*StandardError) GetErrors

func (o *StandardError) GetErrors() []ErrorDetail

GetErrors returns the Errors field value

func (*StandardError) GetErrorsOk

func (o *StandardError) GetErrorsOk() ([]ErrorDetail, bool)

GetErrorsOk returns a tuple with the Errors field value and a boolean to check if the value has been set.

func (*StandardError) GetId

func (o *StandardError) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*StandardError) GetIdOk

func (o *StandardError) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *StandardError) GetLinks() map[string]string

GetLinks returns the Links field value

func (*StandardError) GetLinksOk

func (o *StandardError) GetLinksOk() (*map[string]string, bool)

GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set.

func (*StandardError) GetMessage

func (o *StandardError) GetMessage() string

GetMessage returns the Message field value

func (*StandardError) GetMessageOk

func (o *StandardError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*StandardError) GetStatus

func (o *StandardError) GetStatus() string

GetStatus returns the Status field value

func (*StandardError) GetStatusOk

func (o *StandardError) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*StandardError) GetSubCategory

func (o *StandardError) GetSubCategory() map[string]interface{}

GetSubCategory returns the SubCategory field value if set, zero value otherwise.

func (*StandardError) GetSubCategoryOk

func (o *StandardError) GetSubCategoryOk() (map[string]interface{}, bool)

GetSubCategoryOk returns a tuple with the SubCategory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StandardError) HasId

func (o *StandardError) HasId() bool

HasId returns a boolean if a field has been set.

func (*StandardError) HasSubCategory

func (o *StandardError) HasSubCategory() bool

HasSubCategory returns a boolean if a field has been set.

func (StandardError) MarshalJSON

func (o StandardError) MarshalJSON() ([]byte, error)

func (*StandardError) SetCategory

func (o *StandardError) SetCategory(v ErrorCategory)

SetCategory sets field value

func (*StandardError) SetContext

func (o *StandardError) SetContext(v map[string][]string)

SetContext sets field value

func (*StandardError) SetErrors

func (o *StandardError) SetErrors(v []ErrorDetail)

SetErrors sets field value

func (*StandardError) SetId

func (o *StandardError) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (o *StandardError) SetLinks(v map[string]string)

SetLinks sets field value

func (*StandardError) SetMessage

func (o *StandardError) SetMessage(v string)

SetMessage sets field value

func (*StandardError) SetStatus

func (o *StandardError) SetStatus(v string)

SetStatus sets field value

func (*StandardError) SetSubCategory

func (o *StandardError) SetSubCategory(v map[string]interface{})

SetSubCategory gets a reference to the given map[string]interface{} and assigns it to the SubCategory field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL