README
¶
Package cloudeng.io/glean/gleanclientsdk
import cloudeng.io/glean/gleanclientsdk
Variables
ContextAccessToken, ContextServerIndex, ContextOperationServerIndices, ContextServerVariables, ContextOperationServerVariables
// ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAccessToken = contextKey("accesstoken")
// 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")
AllowedAnnouncementChannelEnumValues
AllowedAnnouncementChannelEnumValues = []AnnouncementChannel{
"MAIN",
"SOCIAL_FEED",
}
All allowed values of AnnouncementChannel enum
AllowedCelebrationBadgeKeyEnumEnumValues
AllowedCelebrationBadgeKeyEnumEnumValues = []CelebrationBadgeKeyEnum{
"new_hire",
"anniversary",
}
All allowed values of CelebrationBadgeKeyEnum enum
AllowedClientSideCheckEnumValues
AllowedClientSideCheckEnumValues = []ClientSideCheck{
"BADGE_BETA",
"BADGE_NEW",
"BADGE_VERIFICATION_TASKS",
"CAN_INSTALL_EXTENSION",
"INITIALLY_COLLAPSED_MENU",
"HAS_PRODUCT_UPDATES",
"IS_DESKTOP",
"IS_TOUCH_SCREEN",
"ORG_CHART_PERMISSIONS",
"CAN_INSTALL_PWA",
"IS_DISABLED",
}
All allowed values of ClientSideCheck enum
AllowedClusterTypeEnumEnumValues
AllowedClusterTypeEnumEnumValues = []ClusterTypeEnum{
"SIMILAR",
"FRESHNESS",
"TITLE",
"CONTENT",
"NONE",
"THREAD_REPLY",
"THREAD_ROOT",
}
All allowed values of ClusterTypeEnum enum
AllowedCollectionPinnableCategoriesEnumValues
AllowedCollectionPinnableCategoriesEnumValues = []CollectionPinnableCategories{
"COMPANY_RESOURCE",
"DEPARTMENT_RESOURCE",
"TEAM_RESOURCE",
}
All allowed values of CollectionPinnableCategories enum
AllowedCollectionPinnableTargetsEnumValues
AllowedCollectionPinnableTargetsEnumValues = []CollectionPinnableTargets{
"RESOURCE_CARD",
"TEAM_PROFILE_PAGE",
}
All allowed values of CollectionPinnableTargets enum
AllowedConnectorTypeEnumValues
AllowedConnectorTypeEnumValues = []ConnectorType{
"API_CRAWL",
"BROWSER_CRAWL",
"BROWSER_HISTORY",
"BUILTIN",
"FEDERATED_SEARCH",
"PUSH_API",
"WEB_CRAWL",
"NATIVE_HISTORY",
}
All allowed values of ConnectorType enum
AllowedDatasourceCapabilityEnumValues
AllowedDatasourceCapabilityEnumValues = []DatasourceCapability{
"PROVIDES_SEARCHABLE_CONTENT",
"PROVIDES_SSO",
"PROVIDES_PEOPLE",
}
All allowed values of DatasourceCapability enum
AllowedDatumConditionTypeEnumValues
AllowedDatumConditionTypeEnumValues = []DatumConditionType{
"CHANGES_SINCE_VIEWED",
"CUSTOM_DATASOURCE",
"DATASOURCE_HAS_MULTIPLE_INSTANCES",
"EMPTY",
"EQUALS",
"INSTANCE_HAS_CUSTOM_ICON",
"NONEMPTY",
"NO_CHANGES_SINCE_VIEWED",
"STARTS_WITH",
"USER_DOMAIN",
}
All allowed values of DatumConditionType enum
AllowedDatumLinkSourceEnumValues
AllowedDatumLinkSourceEnumValues = []DatumLinkSource{
"DATUM",
"DATUM_RAW",
"PARENT_DOCUMENT",
"PERSON",
}
All allowed values of DatumLinkSource enum
AllowedDatumTypeEnumValues
AllowedDatumTypeEnumValues = []DatumType{
"COMPOUND",
"CONDITIONAL_ANY_MATCHING",
"CONDITIONAL_FIRST_MATCHING",
"CUSTOM_RENDERING",
"EXTRA_CUSTOM_KEYS",
"OBJECT_KEY",
}
All allowed values of DatumType enum
AllowedDocumentPreviewTypeEnumValues
AllowedDocumentPreviewTypeEnumValues = []DocumentPreviewType{
"ANNOUNCEMENT",
"ANSWER",
"ANSWER_BOARD",
"COLLECTION",
"CONVERSATION",
"DETAILS",
"NO_PREVIEW",
"THREAD",
"URL",
}
All allowed values of DocumentPreviewType enum
AllowedDocumentVisibilityEnumValues
AllowedDocumentVisibilityEnumValues = []DocumentVisibility{
"PRIVATE",
"SPECIFIC_PEOPLE_AND_GROUPS",
"DOMAIN_LINK",
"DOMAIN_VISIBLE",
"PUBLIC_LINK",
"PUBLIC_VISIBLE",
}
All allowed values of DocumentVisibility enum
AllowedEmailTemplateEnumValues
AllowedEmailTemplateEnumValues = []EmailTemplate{
"INVITE_TO_SCIO",
"AUTO_INVITE",
"ADMIN_INVITE",
"TEAMMATE_INVITE",
"INVITE_REMINDER",
"VERIFICATION_REQUEST",
"VERIFICATION_REQUEST_NONUSER",
"SEARCH_FEEDBACK",
"DOMAIN_VERIFICATION",
"RECRAWL_DATASOURCE",
"CUSTOM_JSON_REPORT",
"WORKSPACE_INITIALIZED",
}
All allowed values of EmailTemplate enum
AllowedEntitiesSortOrderEnumValues
AllowedEntitiesSortOrderEnumValues = []EntitiesSortOrder{
"ENTITY_NAME",
"FIRST_NAME",
"LAST_NAME",
"ORG_SIZE_COUNT",
"START_DATE",
"TEAM_SIZE",
"RELEVANCE",
}
All allowed values of EntitiesSortOrder enum
AllowedFeatureVisibilityKeyEnumValues
AllowedFeatureVisibilityKeyEnumValues = []FeatureVisibilityKey{
"ENABLED",
"DISABLED",
"UNLISTED",
}
All allowed values of FeatureVisibilityKey enum
AllowedGroupTypeEnumValues
AllowedGroupTypeEnumValues = []GroupType{
"DEPARTMENT",
"ALL",
"TEAM",
"JOB_TITLE",
"ROLE_TYPE",
"LOCATION",
"REGION",
"EXTERNAL_GROUP",
}
All allowed values of GroupType enum
AllowedImageTypeEnumValues
AllowedImageTypeEnumValues = []ImageType{
"USER",
"BACKGROUND",
"UGC",
"LOGO",
"HEADER",
"ICON",
}
All allowed values of ImageType enum
AllowedNavigationLinkGroupBehaviorEnumValues
AllowedNavigationLinkGroupBehaviorEnumValues = []NavigationLinkGroupBehavior{
"SEPARATE",
"COLLAPSIBLE",
}
All allowed values of NavigationLinkGroupBehavior enum
AllowedObjectTargetingSurfaceEnumEnumValues
AllowedObjectTargetingSurfaceEnumEnumValues = []ObjectTargetingSurfaceEnum{
"FEED_SURFACE",
"NAV_SURFACE",
"TEAM_SURFACE",
}
All allowed values of ObjectTargetingSurfaceEnum enum
AllowedPeopleSuggestionCategoryEnumValues
AllowedPeopleSuggestionCategoryEnumValues = []PeopleSuggestionCategory{
"INVITE_INACTIVE_PROMO",
"INVITE_NONUSERS",
}
All allowed values of PeopleSuggestionCategory enum
AllowedPermissionedFeatureOrObjectEnumValues
AllowedPermissionedFeatureOrObjectEnumValues = []PermissionedFeatureOrObject{
"ADMIN_SEARCH",
"ANNOUNCEMENTS",
"ANSWERS",
"COLLECTIONS",
"COLLECTION_ITEMS",
"INSIGHTS_COLLECTIONS",
"INSIGHTS_CONTENT",
"INSIGHTS_INVITE",
"INSIGHTS_SEARCHES",
"INSIGHTS_TEAMMATES",
"PINS",
"SENSITIVE_CONTENT_REPORTS",
"SHORTCUTS",
"TEAMS",
"VERIFICATIONS",
"WORKSPACE_APPS",
"WORKSPACE_PERMISSIONS",
}
All allowed values of PermissionedFeatureOrObject enum
AllowedProfileSettingsKeyEnumValues
AllowedProfileSettingsKeyEnumValues = []ProfileSettingsKey{
"ENABLE_RELATED_PEOPLE_WIDGET",
"ENABLE_RECENT_ACTIVITY_WIDGET",
"ENABLE_WORKED_TOGETHER_ON_WIDGET",
"ENABLE_CALENDAR_WIDGET",
}
All allowed values of ProfileSettingsKey enum
AllowedScopeTypeEnumValues
AllowedScopeTypeEnumValues = []ScopeType{
"GLOBAL",
"OWN",
}
All allowed values of ScopeType enum
AllowedSearchRequestGleanbotUIElementEnumEnumValues
AllowedSearchRequestGleanbotUIElementEnumEnumValues = []SearchRequestGleanbotUIElementEnum{
"DM",
"MENTION",
"COMMAND",
"LEADERBOARD",
"RETRY",
}
All allowed values of SearchRequestGleanbotUIElementEnum enum
AllowedSearchResultProminenceEnumEnumValues
AllowedSearchResultProminenceEnumEnumValues = []SearchResultProminenceEnum{
"HERO",
"PROMOTED",
"STANDARD",
}
All allowed values of SearchResultProminenceEnum enum
AllowedUgcTypeEnumValues
AllowedUgcTypeEnumValues = []UgcType{
"ANNOUNCEMENTS_TYPE",
"ANSWERS_TYPE",
"COLLECTIONS_TYPE",
"SHORTCUTS_TYPE",
}
All allowed values of UgcType enum
AllowedUserRoleEnumValues
AllowedUserRoleEnumValues = []UserRole{
"OWNER",
"VIEWER",
"ANSWER_MODERATOR",
"EDITOR",
"VERIFIER",
}
All allowed values of UserRole enum
Functions
Func CacheExpires
func CacheExpires(r *http.Response) time.Time
CacheExpires helper function to determine remaining time before repeating a request.
Func IsNil
func IsNil(i interface{}) bool
IsNil checks if an input is nil
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 {
ActivityApi *ActivityApiService
AnnouncementsApi *AnnouncementsApiService
AnswersApi *AnswersApiService
AuthenticationApi *AuthenticationApiService
CollectionsApi *CollectionsApiService
PinsApi *PinsApiService
SearchApi *SearchApiService
ShortcutsApi *ShortcutsApiService
VerificationApi *VerificationApiService
// contains filtered or unexported fields
}
APIClient manages communication with the Glean Client API API v0.9.0 In most cases there should be only one, shared, APIClient.
Functions
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.
Methods
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.
Functions
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
Type ActionsConfig
type ActionsConfig struct {
Answer *AnswerActionsConfig `json:"answer,omitempty"`
DisableActions *bool `json:"disableActions,omitempty"`
DisableCopyLink *bool `json:"disableCopyLink,omitempty"`
}
ActionsConfig struct for ActionsConfig
Functions
func NewActionsConfig() *ActionsConfig
NewActionsConfig instantiates a new ActionsConfig 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 NewActionsConfigWithDefaults() *ActionsConfig
NewActionsConfigWithDefaults instantiates a new ActionsConfig 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
Methods
func (o *ActionsConfig) GetAnswer() AnswerActionsConfig
GetAnswer returns the Answer field value if set, zero value otherwise.
func (o *ActionsConfig) GetAnswerOk() (*AnswerActionsConfig, bool)
GetAnswerOk returns a tuple with the Answer field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActionsConfig) GetDisableActions() bool
GetDisableActions returns the DisableActions field value if set, zero value otherwise.
func (o *ActionsConfig) GetDisableActionsOk() (*bool, bool)
GetDisableActionsOk returns a tuple with the DisableActions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActionsConfig) GetDisableCopyLink() bool
GetDisableCopyLink returns the DisableCopyLink field value if set, zero value otherwise.
func (o *ActionsConfig) GetDisableCopyLinkOk() (*bool, bool)
GetDisableCopyLinkOk returns a tuple with the DisableCopyLink field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActionsConfig) HasAnswer() bool
HasAnswer returns a boolean if a field has been set.
func (o *ActionsConfig) HasDisableActions() bool
HasDisableActions returns a boolean if a field has been set.
func (o *ActionsConfig) HasDisableCopyLink() bool
HasDisableCopyLink returns a boolean if a field has been set.
func (o ActionsConfig) MarshalJSON() ([]byte, error)
func (o *ActionsConfig) SetAnswer(v AnswerActionsConfig)
SetAnswer gets a reference to the given AnswerActionsConfig and assigns it to the Answer field.
func (o *ActionsConfig) SetDisableActions(v bool)
SetDisableActions gets a reference to the given bool and assigns it to the DisableActions field.
func (o *ActionsConfig) SetDisableCopyLink(v bool)
SetDisableCopyLink gets a reference to the given bool and assigns it to the DisableCopyLink field.
func (o ActionsConfig) ToMap() (map[string]interface{}, error)
Type Activity
type Activity struct {
Events []ActivityEvent `json:"events"`
User *User `json:"user,omitempty"`
}
Activity struct for Activity
Functions
func NewActivity(events []ActivityEvent) *Activity
NewActivity instantiates a new Activity 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 NewActivityWithDefaults() *Activity
NewActivityWithDefaults instantiates a new Activity 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
Methods
func (o *Activity) GetEvents() []ActivityEvent
GetEvents returns the Events field value
func (o *Activity) GetEventsOk() ([]ActivityEvent, bool)
GetEventsOk returns a tuple with the Events field value and a boolean to check if the value has been set.
func (o *Activity) GetUser() User
GetUser returns the User field value if set, zero value otherwise.
func (o *Activity) GetUserOk() (*User, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Activity) HasUser() bool
HasUser returns a boolean if a field has been set.
func (o Activity) MarshalJSON() ([]byte, error)
func (o *Activity) SetEvents(v []ActivityEvent)
SetEvents sets field value
func (o *Activity) SetUser(v User)
SetUser gets a reference to the given User and assigns it to the User field.
func (o Activity) ToMap() (map[string]interface{}, error)
Type ActivityApiService
type ActivityApiService service
ActivityApiService ActivityApi service
Methods
func (a *ActivityApiService) Activity(ctx context.Context) ApiActivityRequest
Activity Report activity of enterprise app usage
Reporting for any events that happen outside of the client UI, such as enterprise app usage.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiActivityRequest
func (a *ActivityApiService) ActivityExecute(r ApiActivityRequest) (*http.Response, error)
Execute executes the request
func (a *ActivityApiService) Feedback(ctx context.Context) ApiFeedbackRequest
Feedback Report user events such as clicks or views
Reporting for events that happen within the client UI, such as result views and clicks.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiFeedbackRequest
func (a *ActivityApiService) FeedbackExecute(r ApiFeedbackRequest) (*http.Response, error)
Execute executes the request
Type ActivityEvent
type ActivityEvent struct {
// The type of activity this represents. CRAWL - Represents an explicit request to index the given `url` along with associated attributes in this payload. HISTORICAL_SEARCH - Represents a search performed at the given `url` as indicated by the user's history. HISTORICAL_VIEW - Represents a visit to the given `url` as indicated by the user's history. SEARCH - Represents a search performed at the given `url`. VIEW - Represents a visit to the given `url`. EDIT - Represents an edit of the document represented by the `url`. COMMENT - Represents a comment on the document represented by the `url`.
Action string `json:"action"`
Params *ActivityEventParams `json:"params,omitempty"`
// Identifies the type of client that is reporting the activity.
Source string `json:"source"`
// The ISO 8601 timestamp when the activity began.
Timestamp time.Time `json:"timestamp"`
// The url of the activity.
Url string `json:"url"`
}
ActivityEvent struct for ActivityEvent
Functions
func NewActivityEvent(action string, source string, timestamp time.Time, url string) *ActivityEvent
NewActivityEvent instantiates a new ActivityEvent 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 NewActivityEventWithDefaults() *ActivityEvent
NewActivityEventWithDefaults instantiates a new ActivityEvent 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
Methods
func (o *ActivityEvent) GetAction() string
GetAction returns the Action field value
func (o *ActivityEvent) GetActionOk() (*string, bool)
GetActionOk returns a tuple with the Action field value and a boolean to check if the value has been set.
func (o *ActivityEvent) GetParams() ActivityEventParams
GetParams returns the Params field value if set, zero value otherwise.
func (o *ActivityEvent) GetParamsOk() (*ActivityEventParams, bool)
GetParamsOk returns a tuple with the Params field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActivityEvent) GetSource() string
GetSource returns the Source field value
func (o *ActivityEvent) GetSourceOk() (*string, bool)
GetSourceOk returns a tuple with the Source field value and a boolean to check if the value has been set.
func (o *ActivityEvent) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value
func (o *ActivityEvent) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value and a boolean to check if the value has been set.
func (o *ActivityEvent) GetUrl() string
GetUrl returns the Url field value
func (o *ActivityEvent) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o *ActivityEvent) HasParams() bool
HasParams returns a boolean if a field has been set.
func (o ActivityEvent) MarshalJSON() ([]byte, error)
func (o *ActivityEvent) SetAction(v string)
SetAction sets field value
func (o *ActivityEvent) SetParams(v ActivityEventParams)
SetParams gets a reference to the given ActivityEventParams and assigns it to the Params field.
func (o *ActivityEvent) SetSource(v string)
SetSource sets field value
func (o *ActivityEvent) SetTimestamp(v time.Time)
SetTimestamp sets field value
func (o *ActivityEvent) SetUrl(v string)
SetUrl sets field value
func (o ActivityEvent) ToMap() (map[string]interface{}, error)
Type ActivityEventParams
type ActivityEventParams struct {
// The HTML content of the page body.
BodyContent *string `json:"bodyContent,omitempty"`
// The full datasource instance name inferred from the URL of the event
DatasourceInstance *string `json:"datasourceInstance,omitempty"`
// The datasource without the instance inferred from the URL of the event
Datasource *string `json:"datasource,omitempty"`
// The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the event
InstanceOnlyName *string `json:"instanceOnlyName,omitempty"`
// Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the foreground.
Duration *int32 `json:"duration,omitempty"`
// The user's search query associated with a SEARCH.
Query *string `json:"query,omitempty"`
// The referring URL of the VIEW or SEARCH.
Referrer *string `json:"referrer,omitempty"`
// The page title associated with the URL of the event
Title *string `json:"title,omitempty"`
// Indicates that the params are incomplete and more params may be sent with the same action+timestamp+url in the future. This is used for sending the duration when a VIEW is finished.
Truncated *bool `json:"truncated,omitempty"`
}
ActivityEventParams struct for ActivityEventParams
Functions
func NewActivityEventParams() *ActivityEventParams
NewActivityEventParams instantiates a new ActivityEventParams 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 NewActivityEventParamsWithDefaults() *ActivityEventParams
NewActivityEventParamsWithDefaults instantiates a new ActivityEventParams 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
Methods
func (o *ActivityEventParams) GetBodyContent() string
GetBodyContent returns the BodyContent field value if set, zero value otherwise.
func (o *ActivityEventParams) GetBodyContentOk() (*string, bool)
GetBodyContentOk returns a tuple with the BodyContent field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActivityEventParams) GetDatasource() string
GetDatasource returns the Datasource field value if set, zero value otherwise.
func (o *ActivityEventParams) GetDatasourceInstance() string
GetDatasourceInstance returns the DatasourceInstance field value if set, zero value otherwise.
func (o *ActivityEventParams) GetDatasourceInstanceOk() (*string, bool)
GetDatasourceInstanceOk returns a tuple with the DatasourceInstance field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActivityEventParams) GetDatasourceOk() (*string, bool)
GetDatasourceOk returns a tuple with the Datasource field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActivityEventParams) GetDuration() int32
GetDuration returns the Duration field value if set, zero value otherwise.
func (o *ActivityEventParams) GetDurationOk() (*int32, bool)
GetDurationOk returns a tuple with the Duration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActivityEventParams) GetInstanceOnlyName() string
GetInstanceOnlyName returns the InstanceOnlyName field value if set, zero value otherwise.
func (o *ActivityEventParams) GetInstanceOnlyNameOk() (*string, bool)
GetInstanceOnlyNameOk returns a tuple with the InstanceOnlyName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActivityEventParams) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *ActivityEventParams) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActivityEventParams) GetReferrer() string
GetReferrer returns the Referrer field value if set, zero value otherwise.
func (o *ActivityEventParams) GetReferrerOk() (*string, bool)
GetReferrerOk returns a tuple with the Referrer field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActivityEventParams) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *ActivityEventParams) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActivityEventParams) GetTruncated() bool
GetTruncated returns the Truncated field value if set, zero value otherwise.
func (o *ActivityEventParams) GetTruncatedOk() (*bool, bool)
GetTruncatedOk returns a tuple with the Truncated field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ActivityEventParams) HasBodyContent() bool
HasBodyContent returns a boolean if a field has been set.
func (o *ActivityEventParams) HasDatasource() bool
HasDatasource returns a boolean if a field has been set.
func (o *ActivityEventParams) HasDatasourceInstance() bool
HasDatasourceInstance returns a boolean if a field has been set.
func (o *ActivityEventParams) HasDuration() bool
HasDuration returns a boolean if a field has been set.
func (o *ActivityEventParams) HasInstanceOnlyName() bool
HasInstanceOnlyName returns a boolean if a field has been set.
func (o *ActivityEventParams) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *ActivityEventParams) HasReferrer() bool
HasReferrer returns a boolean if a field has been set.
func (o *ActivityEventParams) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o *ActivityEventParams) HasTruncated() bool
HasTruncated returns a boolean if a field has been set.
func (o ActivityEventParams) MarshalJSON() ([]byte, error)
func (o *ActivityEventParams) SetBodyContent(v string)
SetBodyContent gets a reference to the given string and assigns it to the BodyContent field.
func (o *ActivityEventParams) SetDatasource(v string)
SetDatasource gets a reference to the given string and assigns it to the Datasource field.
func (o *ActivityEventParams) SetDatasourceInstance(v string)
SetDatasourceInstance gets a reference to the given string and assigns it to the DatasourceInstance field.
func (o *ActivityEventParams) SetDuration(v int32)
SetDuration gets a reference to the given int32 and assigns it to the Duration field.
func (o *ActivityEventParams) SetInstanceOnlyName(v string)
SetInstanceOnlyName gets a reference to the given string and assigns it to the InstanceOnlyName field.
func (o *ActivityEventParams) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *ActivityEventParams) SetReferrer(v string)
SetReferrer gets a reference to the given string and assigns it to the Referrer field.
func (o *ActivityEventParams) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *ActivityEventParams) SetTruncated(v bool)
SetTruncated gets a reference to the given bool and assigns it to the Truncated field.
func (o ActivityEventParams) ToMap() (map[string]interface{}, error)
Type AddCollectionItemsError
type AddCollectionItemsError struct {
ErrorType *string `json:"errorType,omitempty"`
}
AddCollectionItemsError struct for AddCollectionItemsError
Functions
func NewAddCollectionItemsError() *AddCollectionItemsError
NewAddCollectionItemsError instantiates a new AddCollectionItemsError 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 NewAddCollectionItemsErrorWithDefaults() *AddCollectionItemsError
NewAddCollectionItemsErrorWithDefaults instantiates a new AddCollectionItemsError 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
Methods
func (o *AddCollectionItemsError) GetErrorType() string
GetErrorType returns the ErrorType field value if set, zero value otherwise.
func (o *AddCollectionItemsError) GetErrorTypeOk() (*string, bool)
GetErrorTypeOk returns a tuple with the ErrorType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AddCollectionItemsError) HasErrorType() bool
HasErrorType returns a boolean if a field has been set.
func (o AddCollectionItemsError) MarshalJSON() ([]byte, error)
func (o *AddCollectionItemsError) SetErrorType(v string)
SetErrorType gets a reference to the given string and assigns it to the ErrorType field.
func (o AddCollectionItemsError) ToMap() (map[string]interface{}, error)
Type AddCollectionItemsRequest
type AddCollectionItemsRequest struct {
// The ID of the Collection to add items to.
CollectionId float32 `json:"collectionId"`
// The CollectionItemDescriptors of the items being added.
AddedCollectionItemDescriptors []CollectionItemDescriptor `json:"addedCollectionItemDescriptors,omitempty"`
}
AddCollectionItemsRequest struct for AddCollectionItemsRequest
Functions
func NewAddCollectionItemsRequest(collectionId float32) *AddCollectionItemsRequest
NewAddCollectionItemsRequest instantiates a new AddCollectionItemsRequest 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 NewAddCollectionItemsRequestWithDefaults() *AddCollectionItemsRequest
NewAddCollectionItemsRequestWithDefaults instantiates a new AddCollectionItemsRequest 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
Methods
func (o *AddCollectionItemsRequest) GetAddedCollectionItemDescriptors() []CollectionItemDescriptor
GetAddedCollectionItemDescriptors returns the AddedCollectionItemDescriptors field value if set, zero value otherwise.
func (o *AddCollectionItemsRequest) GetAddedCollectionItemDescriptorsOk() ([]CollectionItemDescriptor, bool)
GetAddedCollectionItemDescriptorsOk returns a tuple with the AddedCollectionItemDescriptors field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AddCollectionItemsRequest) GetCollectionId() float32
GetCollectionId returns the CollectionId field value
func (o *AddCollectionItemsRequest) GetCollectionIdOk() (*float32, bool)
GetCollectionIdOk returns a tuple with the CollectionId field value and a boolean to check if the value has been set.
func (o *AddCollectionItemsRequest) HasAddedCollectionItemDescriptors() bool
HasAddedCollectionItemDescriptors returns a boolean if a field has been set.
func (o AddCollectionItemsRequest) MarshalJSON() ([]byte, error)
func (o *AddCollectionItemsRequest) SetAddedCollectionItemDescriptors(v []CollectionItemDescriptor)
SetAddedCollectionItemDescriptors gets a reference to the given []CollectionItemDescriptor and assigns it to the AddedCollectionItemDescriptors field.
func (o *AddCollectionItemsRequest) SetCollectionId(v float32)
SetCollectionId sets field value
func (o AddCollectionItemsRequest) ToMap() (map[string]interface{}, error)
Type AddCollectionItemsResponse
type AddCollectionItemsResponse struct {
Collection *Collection `json:"collection,omitempty"`
Error *AddCollectionItemsError `json:"error,omitempty"`
}
AddCollectionItemsResponse struct for AddCollectionItemsResponse
Functions
func NewAddCollectionItemsResponse() *AddCollectionItemsResponse
NewAddCollectionItemsResponse instantiates a new AddCollectionItemsResponse 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 NewAddCollectionItemsResponseWithDefaults() *AddCollectionItemsResponse
NewAddCollectionItemsResponseWithDefaults instantiates a new AddCollectionItemsResponse 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
Methods
func (o *AddCollectionItemsResponse) GetCollection() Collection
GetCollection returns the Collection field value if set, zero value otherwise.
func (o *AddCollectionItemsResponse) GetCollectionOk() (*Collection, bool)
GetCollectionOk returns a tuple with the Collection field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AddCollectionItemsResponse) GetError() AddCollectionItemsError
GetError returns the Error field value if set, zero value otherwise.
func (o *AddCollectionItemsResponse) GetErrorOk() (*AddCollectionItemsError, bool)
GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AddCollectionItemsResponse) HasCollection() bool
HasCollection returns a boolean if a field has been set.
func (o *AddCollectionItemsResponse) HasError() bool
HasError returns a boolean if a field has been set.
func (o AddCollectionItemsResponse) MarshalJSON() ([]byte, error)
func (o *AddCollectionItemsResponse) SetCollection(v Collection)
SetCollection gets a reference to the given Collection and assigns it to the Collection field.
func (o *AddCollectionItemsResponse) SetError(v AddCollectionItemsError)
SetError gets a reference to the given AddCollectionItemsError and assigns it to the Error field.
func (o AddCollectionItemsResponse) ToMap() (map[string]interface{}, error)
Type AddCredentialRequest
type AddCredentialRequest struct {
// the datasource the credential applies to
Datasource *string `json:"datasource,omitempty"`
// the user info (email or username for example) for the credential
User *string `json:"user,omitempty"`
// the token part of the credential (password, apiToken etc)
Token *string `json:"token,omitempty"`
// any metadata associated with the user credential
Metadata *string `json:"metadata,omitempty"`
}
AddCredentialRequest struct for AddCredentialRequest
Functions
func NewAddCredentialRequest() *AddCredentialRequest
NewAddCredentialRequest instantiates a new AddCredentialRequest 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 NewAddCredentialRequestWithDefaults() *AddCredentialRequest
NewAddCredentialRequestWithDefaults instantiates a new AddCredentialRequest 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
Methods
func (o *AddCredentialRequest) GetDatasource() string
GetDatasource returns the Datasource field value if set, zero value otherwise.
func (o *AddCredentialRequest) GetDatasourceOk() (*string, bool)
GetDatasourceOk returns a tuple with the Datasource field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AddCredentialRequest) GetMetadata() string
GetMetadata returns the Metadata field value if set, zero value otherwise.
func (o *AddCredentialRequest) GetMetadataOk() (*string, bool)
GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AddCredentialRequest) GetToken() string
GetToken returns the Token field value if set, zero value otherwise.
func (o *AddCredentialRequest) GetTokenOk() (*string, bool)
GetTokenOk returns a tuple with the Token field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AddCredentialRequest) GetUser() string
GetUser returns the User field value if set, zero value otherwise.
func (o *AddCredentialRequest) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AddCredentialRequest) HasDatasource() bool
HasDatasource returns a boolean if a field has been set.
func (o *AddCredentialRequest) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *AddCredentialRequest) HasToken() bool
HasToken returns a boolean if a field has been set.
func (o *AddCredentialRequest) HasUser() bool
HasUser returns a boolean if a field has been set.
func (o AddCredentialRequest) MarshalJSON() ([]byte, error)
func (o *AddCredentialRequest) SetDatasource(v string)
SetDatasource gets a reference to the given string and assigns it to the Datasource field.
func (o *AddCredentialRequest) SetMetadata(v string)
SetMetadata gets a reference to the given string and assigns it to the Metadata field.
func (o *AddCredentialRequest) SetToken(v string)
SetToken gets a reference to the given string and assigns it to the Token field.
func (o *AddCredentialRequest) SetUser(v string)
SetUser gets a reference to the given string and assigns it to the User field.
func (o AddCredentialRequest) ToMap() (map[string]interface{}, error)
Type AddedCollections
type AddedCollections struct {
// IDs of collections to which a document is added.
AddedCollections []int32 `json:"addedCollections,omitempty"`
}
AddedCollections struct for AddedCollections
Functions
func NewAddedCollections() *AddedCollections
NewAddedCollections instantiates a new AddedCollections 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 NewAddedCollectionsWithDefaults() *AddedCollections
NewAddedCollectionsWithDefaults instantiates a new AddedCollections 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
Methods
func (o *AddedCollections) GetAddedCollections() []int32
GetAddedCollections returns the AddedCollections field value if set, zero value otherwise.
func (o *AddedCollections) GetAddedCollectionsOk() ([]int32, bool)
GetAddedCollectionsOk returns a tuple with the AddedCollections field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AddedCollections) HasAddedCollections() bool
HasAddedCollections returns a boolean if a field has been set.
func (o AddedCollections) MarshalJSON() ([]byte, error)
func (o *AddedCollections) SetAddedCollections(v []int32)
SetAddedCollections gets a reference to the given []int32 and assigns it to the AddedCollections field.
func (o AddedCollections) ToMap() (map[string]interface{}, error)
Type Announcement
type Announcement struct {
// The date and time at which the announcement becomes active.
StartTime *time.Time `json:"startTime,omitempty"`
// The date and time at which the announcement expires.
EndTime *time.Time `json:"endTime,omitempty"`
// The headline of the announcement.
Title *string `json:"title,omitempty"`
Body *StructuredText `json:"body,omitempty"`
// An emoji used to indicate the nature of the announcement.
Emoji *string `json:"emoji,omitempty"`
Thumbnail *Thumbnail `json:"thumbnail,omitempty"`
Banner *Thumbnail `json:"banner,omitempty"`
// Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search.
AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"`
// The Document ID of the Source Document this Announcement was created from (e.g. Slack thread).
SourceDocumentId *string `json:"sourceDocumentId,omitempty"`
// Whether or not to hide an author attribution.
HideAttribution *bool `json:"hideAttribution,omitempty"`
// This determines whether this is a Social Feed post or a regular announcement.
Channel *string `json:"channel,omitempty"`
// Used by the Social Feed to pin posts to the front of the feed.
IsPrioritized *bool `json:"isPrioritized,omitempty"`
// Url for viewing the announcement. It will be set to document url for announcements from other datasources e.g. simpplr. Can only be written when channel=\"SOCIAL_FEED\".
ViewUrl *string `json:"viewUrl,omitempty"`
// The opaque id of the associated draft.
DraftId *int32 `json:"draftId,omitempty"`
Permissions *ObjectPermissions `json:"permissions,omitempty"`
// The opaque id of the announcement.
Id *int32 `json:"id,omitempty"`
Author *Person `json:"author,omitempty"`
// Server Unix timestamp of the creation time (in seconds since epoch UTC).
CreateTimestamp *int32 `json:"createTimestamp,omitempty"`
// Server Unix timestamp of the last update time (in seconds since epoch UTC).
LastUpdateTimestamp *int32 `json:"lastUpdateTimestamp,omitempty"`
UpdatedBy *Person `json:"updatedBy,omitempty"`
ViewerInfo *AnnouncementAllOfViewerInfo `json:"viewerInfo,omitempty"`
SourceDocument *Document `json:"sourceDocument,omitempty"`
// Whether or not the announcement is published.
IsPublished *bool `json:"isPublished,omitempty"`
}
Announcement struct for Announcement
Functions
func NewAnnouncement() *Announcement
NewAnnouncement instantiates a new Announcement 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 NewAnnouncementWithDefaults() *Announcement
NewAnnouncementWithDefaults instantiates a new Announcement 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
Methods
func (o *Announcement) GetAudienceFilters() []FacetFilter
GetAudienceFilters returns the AudienceFilters field value if set, zero value otherwise.
func (o *Announcement) GetAudienceFiltersOk() ([]FacetFilter, bool)
GetAudienceFiltersOk returns a tuple with the AudienceFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetAuthor() Person
GetAuthor returns the Author field value if set, zero value otherwise.
func (o *Announcement) GetAuthorOk() (*Person, bool)
GetAuthorOk returns a tuple with the Author field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetBanner() Thumbnail
GetBanner returns the Banner field value if set, zero value otherwise.
func (o *Announcement) GetBannerOk() (*Thumbnail, bool)
GetBannerOk returns a tuple with the Banner field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetBody() StructuredText
GetBody returns the Body field value if set, zero value otherwise.
func (o *Announcement) GetBodyOk() (*StructuredText, bool)
GetBodyOk returns a tuple with the Body field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetChannel() string
GetChannel returns the Channel field value if set, zero value otherwise.
func (o *Announcement) GetChannelOk() (*string, bool)
GetChannelOk returns a tuple with the Channel field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetCreateTimestamp() int32
GetCreateTimestamp returns the CreateTimestamp field value if set, zero value otherwise.
func (o *Announcement) GetCreateTimestampOk() (*int32, bool)
GetCreateTimestampOk returns a tuple with the CreateTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetDraftId() int32
GetDraftId returns the DraftId field value if set, zero value otherwise.
func (o *Announcement) GetDraftIdOk() (*int32, bool)
GetDraftIdOk returns a tuple with the DraftId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetEmoji() string
GetEmoji returns the Emoji field value if set, zero value otherwise.
func (o *Announcement) GetEmojiOk() (*string, bool)
GetEmojiOk returns a tuple with the Emoji field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetEndTime() time.Time
GetEndTime returns the EndTime field value if set, zero value otherwise.
func (o *Announcement) GetEndTimeOk() (*time.Time, bool)
GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetHideAttribution() bool
GetHideAttribution returns the HideAttribution field value if set, zero value otherwise.
func (o *Announcement) GetHideAttributionOk() (*bool, bool)
GetHideAttributionOk returns a tuple with the HideAttribution field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetId() int32
GetId returns the Id field value if set, zero value otherwise.
func (o *Announcement) GetIdOk() (*int32, 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 *Announcement) GetIsPrioritized() bool
GetIsPrioritized returns the IsPrioritized field value if set, zero value otherwise.
func (o *Announcement) GetIsPrioritizedOk() (*bool, bool)
GetIsPrioritizedOk returns a tuple with the IsPrioritized field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetIsPublished() bool
GetIsPublished returns the IsPublished field value if set, zero value otherwise.
func (o *Announcement) GetIsPublishedOk() (*bool, bool)
GetIsPublishedOk returns a tuple with the IsPublished field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetLastUpdateTimestamp() int32
GetLastUpdateTimestamp returns the LastUpdateTimestamp field value if set, zero value otherwise.
func (o *Announcement) GetLastUpdateTimestampOk() (*int32, bool)
GetLastUpdateTimestampOk returns a tuple with the LastUpdateTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetPermissions() ObjectPermissions
GetPermissions returns the Permissions field value if set, zero value otherwise.
func (o *Announcement) GetPermissionsOk() (*ObjectPermissions, bool)
GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetSourceDocument() Document
GetSourceDocument returns the SourceDocument field value if set, zero value otherwise.
func (o *Announcement) GetSourceDocumentId() string
GetSourceDocumentId returns the SourceDocumentId field value if set, zero value otherwise.
func (o *Announcement) GetSourceDocumentIdOk() (*string, bool)
GetSourceDocumentIdOk returns a tuple with the SourceDocumentId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetSourceDocumentOk() (*Document, bool)
GetSourceDocumentOk returns a tuple with the SourceDocument field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetStartTime() time.Time
GetStartTime returns the StartTime field value if set, zero value otherwise.
func (o *Announcement) GetStartTimeOk() (*time.Time, bool)
GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetThumbnail() Thumbnail
GetThumbnail returns the Thumbnail field value if set, zero value otherwise.
func (o *Announcement) GetThumbnailOk() (*Thumbnail, bool)
GetThumbnailOk returns a tuple with the Thumbnail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *Announcement) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetUpdatedBy() Person
GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise.
func (o *Announcement) GetUpdatedByOk() (*Person, bool)
GetUpdatedByOk returns a tuple with the UpdatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetViewUrl() string
GetViewUrl returns the ViewUrl field value if set, zero value otherwise.
func (o *Announcement) GetViewUrlOk() (*string, bool)
GetViewUrlOk returns a tuple with the ViewUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) GetViewerInfo() AnnouncementAllOfViewerInfo
GetViewerInfo returns the ViewerInfo field value if set, zero value otherwise.
func (o *Announcement) GetViewerInfoOk() (*AnnouncementAllOfViewerInfo, bool)
GetViewerInfoOk returns a tuple with the ViewerInfo field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Announcement) HasAudienceFilters() bool
HasAudienceFilters returns a boolean if a field has been set.
func (o *Announcement) HasAuthor() bool
HasAuthor returns a boolean if a field has been set.
func (o *Announcement) HasBanner() bool
HasBanner returns a boolean if a field has been set.
func (o *Announcement) HasBody() bool
HasBody returns a boolean if a field has been set.
func (o *Announcement) HasChannel() bool
HasChannel returns a boolean if a field has been set.
func (o *Announcement) HasCreateTimestamp() bool
HasCreateTimestamp returns a boolean if a field has been set.
func (o *Announcement) HasDraftId() bool
HasDraftId returns a boolean if a field has been set.
func (o *Announcement) HasEmoji() bool
HasEmoji returns a boolean if a field has been set.
func (o *Announcement) HasEndTime() bool
HasEndTime returns a boolean if a field has been set.
func (o *Announcement) HasHideAttribution() bool
HasHideAttribution returns a boolean if a field has been set.
func (o *Announcement) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Announcement) HasIsPrioritized() bool
HasIsPrioritized returns a boolean if a field has been set.
func (o *Announcement) HasIsPublished() bool
HasIsPublished returns a boolean if a field has been set.
func (o *Announcement) HasLastUpdateTimestamp() bool
HasLastUpdateTimestamp returns a boolean if a field has been set.
func (o *Announcement) HasPermissions() bool
HasPermissions returns a boolean if a field has been set.
func (o *Announcement) HasSourceDocument() bool
HasSourceDocument returns a boolean if a field has been set.
func (o *Announcement) HasSourceDocumentId() bool
HasSourceDocumentId returns a boolean if a field has been set.
func (o *Announcement) HasStartTime() bool
HasStartTime returns a boolean if a field has been set.
func (o *Announcement) HasThumbnail() bool
HasThumbnail returns a boolean if a field has been set.
func (o *Announcement) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o *Announcement) HasUpdatedBy() bool
HasUpdatedBy returns a boolean if a field has been set.
func (o *Announcement) HasViewUrl() bool
HasViewUrl returns a boolean if a field has been set.
func (o *Announcement) HasViewerInfo() bool
HasViewerInfo returns a boolean if a field has been set.
func (o Announcement) MarshalJSON() ([]byte, error)
func (o *Announcement) SetAudienceFilters(v []FacetFilter)
SetAudienceFilters gets a reference to the given []FacetFilter and assigns it to the AudienceFilters field.
func (o *Announcement) SetAuthor(v Person)
SetAuthor gets a reference to the given Person and assigns it to the Author field.
func (o *Announcement) SetBanner(v Thumbnail)
SetBanner gets a reference to the given Thumbnail and assigns it to the Banner field.
func (o *Announcement) SetBody(v StructuredText)
SetBody gets a reference to the given StructuredText and assigns it to the Body field.
func (o *Announcement) SetChannel(v string)
SetChannel gets a reference to the given string and assigns it to the Channel field.
func (o *Announcement) SetCreateTimestamp(v int32)
SetCreateTimestamp gets a reference to the given int32 and assigns it to the CreateTimestamp field.
func (o *Announcement) SetDraftId(v int32)
SetDraftId gets a reference to the given int32 and assigns it to the DraftId field.
func (o *Announcement) SetEmoji(v string)
SetEmoji gets a reference to the given string and assigns it to the Emoji field.
func (o *Announcement) SetEndTime(v time.Time)
SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field.
func (o *Announcement) SetHideAttribution(v bool)
SetHideAttribution gets a reference to the given bool and assigns it to the HideAttribution field.
func (o *Announcement) SetId(v int32)
SetId gets a reference to the given int32 and assigns it to the Id field.
func (o *Announcement) SetIsPrioritized(v bool)
SetIsPrioritized gets a reference to the given bool and assigns it to the IsPrioritized field.
func (o *Announcement) SetIsPublished(v bool)
SetIsPublished gets a reference to the given bool and assigns it to the IsPublished field.
func (o *Announcement) SetLastUpdateTimestamp(v int32)
SetLastUpdateTimestamp gets a reference to the given int32 and assigns it to the LastUpdateTimestamp field.
func (o *Announcement) SetPermissions(v ObjectPermissions)
SetPermissions gets a reference to the given ObjectPermissions and assigns it to the Permissions field.
func (o *Announcement) SetSourceDocument(v Document)
SetSourceDocument gets a reference to the given Document and assigns it to the SourceDocument field.
func (o *Announcement) SetSourceDocumentId(v string)
SetSourceDocumentId gets a reference to the given string and assigns it to the SourceDocumentId field.
func (o *Announcement) SetStartTime(v time.Time)
SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.
func (o *Announcement) SetThumbnail(v Thumbnail)
SetThumbnail gets a reference to the given Thumbnail and assigns it to the Thumbnail field.
func (o *Announcement) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *Announcement) SetUpdatedBy(v Person)
SetUpdatedBy gets a reference to the given Person and assigns it to the UpdatedBy field.
func (o *Announcement) SetViewUrl(v string)
SetViewUrl gets a reference to the given string and assigns it to the ViewUrl field.
func (o *Announcement) SetViewerInfo(v AnnouncementAllOfViewerInfo)
SetViewerInfo gets a reference to the given AnnouncementAllOfViewerInfo and assigns it to the ViewerInfo field.
func (o Announcement) ToMap() (map[string]interface{}, error)
Type AnnouncementAllOf
type AnnouncementAllOf struct {
// The opaque id of the announcement.
Id *int32 `json:"id,omitempty"`
Author *Person `json:"author,omitempty"`
// Server Unix timestamp of the creation time (in seconds since epoch UTC).
CreateTimestamp *int32 `json:"createTimestamp,omitempty"`
// Server Unix timestamp of the last update time (in seconds since epoch UTC).
LastUpdateTimestamp *int32 `json:"lastUpdateTimestamp,omitempty"`
UpdatedBy *Person `json:"updatedBy,omitempty"`
ViewerInfo *AnnouncementAllOfViewerInfo `json:"viewerInfo,omitempty"`
SourceDocument *Document `json:"sourceDocument,omitempty"`
// Whether or not the announcement is published.
IsPublished *bool `json:"isPublished,omitempty"`
}
AnnouncementAllOf struct for AnnouncementAllOf
Functions
func NewAnnouncementAllOf() *AnnouncementAllOf
NewAnnouncementAllOf instantiates a new AnnouncementAllOf 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 NewAnnouncementAllOfWithDefaults() *AnnouncementAllOf
NewAnnouncementAllOfWithDefaults instantiates a new AnnouncementAllOf 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
Methods
func (o *AnnouncementAllOf) GetAuthor() Person
GetAuthor returns the Author field value if set, zero value otherwise.
func (o *AnnouncementAllOf) GetAuthorOk() (*Person, bool)
GetAuthorOk returns a tuple with the Author field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementAllOf) GetCreateTimestamp() int32
GetCreateTimestamp returns the CreateTimestamp field value if set, zero value otherwise.
func (o *AnnouncementAllOf) GetCreateTimestampOk() (*int32, bool)
GetCreateTimestampOk returns a tuple with the CreateTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementAllOf) GetId() int32
GetId returns the Id field value if set, zero value otherwise.
func (o *AnnouncementAllOf) GetIdOk() (*int32, 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 *AnnouncementAllOf) GetIsPublished() bool
GetIsPublished returns the IsPublished field value if set, zero value otherwise.
func (o *AnnouncementAllOf) GetIsPublishedOk() (*bool, bool)
GetIsPublishedOk returns a tuple with the IsPublished field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementAllOf) GetLastUpdateTimestamp() int32
GetLastUpdateTimestamp returns the LastUpdateTimestamp field value if set, zero value otherwise.
func (o *AnnouncementAllOf) GetLastUpdateTimestampOk() (*int32, bool)
GetLastUpdateTimestampOk returns a tuple with the LastUpdateTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementAllOf) GetSourceDocument() Document
GetSourceDocument returns the SourceDocument field value if set, zero value otherwise.
func (o *AnnouncementAllOf) GetSourceDocumentOk() (*Document, bool)
GetSourceDocumentOk returns a tuple with the SourceDocument field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementAllOf) GetUpdatedBy() Person
GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise.
func (o *AnnouncementAllOf) GetUpdatedByOk() (*Person, bool)
GetUpdatedByOk returns a tuple with the UpdatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementAllOf) GetViewerInfo() AnnouncementAllOfViewerInfo
GetViewerInfo returns the ViewerInfo field value if set, zero value otherwise.
func (o *AnnouncementAllOf) GetViewerInfoOk() (*AnnouncementAllOfViewerInfo, bool)
GetViewerInfoOk returns a tuple with the ViewerInfo field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementAllOf) HasAuthor() bool
HasAuthor returns a boolean if a field has been set.
func (o *AnnouncementAllOf) HasCreateTimestamp() bool
HasCreateTimestamp returns a boolean if a field has been set.
func (o *AnnouncementAllOf) HasId() bool
HasId returns a boolean if a field has been set.
func (o *AnnouncementAllOf) HasIsPublished() bool
HasIsPublished returns a boolean if a field has been set.
func (o *AnnouncementAllOf) HasLastUpdateTimestamp() bool
HasLastUpdateTimestamp returns a boolean if a field has been set.
func (o *AnnouncementAllOf) HasSourceDocument() bool
HasSourceDocument returns a boolean if a field has been set.
func (o *AnnouncementAllOf) HasUpdatedBy() bool
HasUpdatedBy returns a boolean if a field has been set.
func (o *AnnouncementAllOf) HasViewerInfo() bool
HasViewerInfo returns a boolean if a field has been set.
func (o AnnouncementAllOf) MarshalJSON() ([]byte, error)
func (o *AnnouncementAllOf) SetAuthor(v Person)
SetAuthor gets a reference to the given Person and assigns it to the Author field.
func (o *AnnouncementAllOf) SetCreateTimestamp(v int32)
SetCreateTimestamp gets a reference to the given int32 and assigns it to the CreateTimestamp field.
func (o *AnnouncementAllOf) SetId(v int32)
SetId gets a reference to the given int32 and assigns it to the Id field.
func (o *AnnouncementAllOf) SetIsPublished(v bool)
SetIsPublished gets a reference to the given bool and assigns it to the IsPublished field.
func (o *AnnouncementAllOf) SetLastUpdateTimestamp(v int32)
SetLastUpdateTimestamp gets a reference to the given int32 and assigns it to the LastUpdateTimestamp field.
func (o *AnnouncementAllOf) SetSourceDocument(v Document)
SetSourceDocument gets a reference to the given Document and assigns it to the SourceDocument field.
func (o *AnnouncementAllOf) SetUpdatedBy(v Person)
SetUpdatedBy gets a reference to the given Person and assigns it to the UpdatedBy field.
func (o *AnnouncementAllOf) SetViewerInfo(v AnnouncementAllOfViewerInfo)
SetViewerInfo gets a reference to the given AnnouncementAllOfViewerInfo and assigns it to the ViewerInfo field.
func (o AnnouncementAllOf) ToMap() (map[string]interface{}, error)
Type AnnouncementAllOfViewerInfo
type AnnouncementAllOfViewerInfo struct {
// Whether the viewer has dismissed the announcement.
IsDismissed *bool `json:"isDismissed,omitempty"`
// Whether the viewer has read the announcement.
IsRead *bool `json:"isRead,omitempty"`
// A list of actions the viewer has taken on the announcement (e.g. view, dismiss).
// Deprecated
UserActivity []UserActivity `json:"userActivity,omitempty"`
}
AnnouncementAllOfViewerInfo struct for AnnouncementAllOfViewerInfo
Functions
func NewAnnouncementAllOfViewerInfo() *AnnouncementAllOfViewerInfo
NewAnnouncementAllOfViewerInfo instantiates a new AnnouncementAllOfViewerInfo 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 NewAnnouncementAllOfViewerInfoWithDefaults() *AnnouncementAllOfViewerInfo
NewAnnouncementAllOfViewerInfoWithDefaults instantiates a new AnnouncementAllOfViewerInfo 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
Methods
func (o *AnnouncementAllOfViewerInfo) GetIsDismissed() bool
GetIsDismissed returns the IsDismissed field value if set, zero value otherwise.
func (o *AnnouncementAllOfViewerInfo) GetIsDismissedOk() (*bool, bool)
GetIsDismissedOk returns a tuple with the IsDismissed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementAllOfViewerInfo) GetIsRead() bool
GetIsRead returns the IsRead field value if set, zero value otherwise.
func (o *AnnouncementAllOfViewerInfo) GetIsReadOk() (*bool, bool)
GetIsReadOk returns a tuple with the IsRead field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementAllOfViewerInfo) GetUserActivity() []UserActivity
GetUserActivity returns the UserActivity field value if set, zero value otherwise. Deprecated
func (o *AnnouncementAllOfViewerInfo) GetUserActivityOk() ([]UserActivity, bool)
GetUserActivityOk returns a tuple with the UserActivity field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated
func (o *AnnouncementAllOfViewerInfo) HasIsDismissed() bool
HasIsDismissed returns a boolean if a field has been set.
func (o *AnnouncementAllOfViewerInfo) HasIsRead() bool
HasIsRead returns a boolean if a field has been set.
func (o *AnnouncementAllOfViewerInfo) HasUserActivity() bool
HasUserActivity returns a boolean if a field has been set.
func (o AnnouncementAllOfViewerInfo) MarshalJSON() ([]byte, error)
func (o *AnnouncementAllOfViewerInfo) SetIsDismissed(v bool)
SetIsDismissed gets a reference to the given bool and assigns it to the IsDismissed field.
func (o *AnnouncementAllOfViewerInfo) SetIsRead(v bool)
SetIsRead gets a reference to the given bool and assigns it to the IsRead field.
func (o *AnnouncementAllOfViewerInfo) SetUserActivity(v []UserActivity)
SetUserActivity gets a reference to the given []UserActivity and assigns it to the UserActivity field. Deprecated
func (o AnnouncementAllOfViewerInfo) ToMap() (map[string]interface{}, error)
Type AnnouncementChannel
type AnnouncementChannel string
AnnouncementChannel This determines whether this is a Social Feed post or a regular announcement.
Constants
MAIN, SOCIAL_FEED
MAIN AnnouncementChannel = "MAIN"
SOCIAL_FEED AnnouncementChannel = "SOCIAL_FEED"
List of AnnouncementChannel
Functions
func NewAnnouncementChannelFromValue(v string) (*AnnouncementChannel, error)
NewAnnouncementChannelFromValue returns a pointer to a valid AnnouncementChannel for the value passed as argument, or an error if the value passed is not allowed by the enum
Methods
func (v AnnouncementChannel) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (v AnnouncementChannel) Ptr() *AnnouncementChannel
Ptr returns reference to AnnouncementChannel value
func (v *AnnouncementChannel) UnmarshalJSON(src []byte) error
Type AnnouncementCreateOrUpdateData
type AnnouncementCreateOrUpdateData struct {
// If editing an existing announcement, the announcement's ID.
Id *int32 `json:"id,omitempty"`
// The headline of the announcement.
Title string `json:"title"`
StructuredText *StructuredText `json:"structuredText,omitempty"`
// An emoji used to indicate the nature of the announcement.
Emoji *string `json:"emoji,omitempty"`
// The date and time at which the announcement becomes active. If omitted, the announement will become active immediately.
StartTime *time.Time `json:"startTime,omitempty"`
// The date and time at which the announcement expires.
EndTime time.Time `json:"endTime"`
// Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search.
AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"`
}
AnnouncementCreateOrUpdateData struct for AnnouncementCreateOrUpdateData
Functions
func NewAnnouncementCreateOrUpdateData(title string, endTime time.Time) *AnnouncementCreateOrUpdateData
NewAnnouncementCreateOrUpdateData instantiates a new AnnouncementCreateOrUpdateData 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 NewAnnouncementCreateOrUpdateDataWithDefaults() *AnnouncementCreateOrUpdateData
NewAnnouncementCreateOrUpdateDataWithDefaults instantiates a new AnnouncementCreateOrUpdateData 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
Methods
func (o *AnnouncementCreateOrUpdateData) GetAudienceFilters() []FacetFilter
GetAudienceFilters returns the AudienceFilters field value if set, zero value otherwise.
func (o *AnnouncementCreateOrUpdateData) GetAudienceFiltersOk() ([]FacetFilter, bool)
GetAudienceFiltersOk returns a tuple with the AudienceFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementCreateOrUpdateData) GetEmoji() string
GetEmoji returns the Emoji field value if set, zero value otherwise.
func (o *AnnouncementCreateOrUpdateData) GetEmojiOk() (*string, bool)
GetEmojiOk returns a tuple with the Emoji field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementCreateOrUpdateData) GetEndTime() time.Time
GetEndTime returns the EndTime field value
func (o *AnnouncementCreateOrUpdateData) GetEndTimeOk() (*time.Time, bool)
GetEndTimeOk returns a tuple with the EndTime field value and a boolean to check if the value has been set.
func (o *AnnouncementCreateOrUpdateData) GetId() int32
GetId returns the Id field value if set, zero value otherwise.
func (o *AnnouncementCreateOrUpdateData) GetIdOk() (*int32, 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 *AnnouncementCreateOrUpdateData) GetStartTime() time.Time
GetStartTime returns the StartTime field value if set, zero value otherwise.
func (o *AnnouncementCreateOrUpdateData) GetStartTimeOk() (*time.Time, bool)
GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementCreateOrUpdateData) GetStructuredText() StructuredText
GetStructuredText returns the StructuredText field value if set, zero value otherwise.
func (o *AnnouncementCreateOrUpdateData) GetStructuredTextOk() (*StructuredText, bool)
GetStructuredTextOk returns a tuple with the StructuredText field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementCreateOrUpdateData) GetTitle() string
GetTitle returns the Title field value
func (o *AnnouncementCreateOrUpdateData) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.
func (o *AnnouncementCreateOrUpdateData) HasAudienceFilters() bool
HasAudienceFilters returns a boolean if a field has been set.
func (o *AnnouncementCreateOrUpdateData) HasEmoji() bool
HasEmoji returns a boolean if a field has been set.
func (o *AnnouncementCreateOrUpdateData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *AnnouncementCreateOrUpdateData) HasStartTime() bool
HasStartTime returns a boolean if a field has been set.
func (o *AnnouncementCreateOrUpdateData) HasStructuredText() bool
HasStructuredText returns a boolean if a field has been set.
func (o AnnouncementCreateOrUpdateData) MarshalJSON() ([]byte, error)
func (o *AnnouncementCreateOrUpdateData) SetAudienceFilters(v []FacetFilter)
SetAudienceFilters gets a reference to the given []FacetFilter and assigns it to the AudienceFilters field.
func (o *AnnouncementCreateOrUpdateData) SetEmoji(v string)
SetEmoji gets a reference to the given string and assigns it to the Emoji field.
func (o *AnnouncementCreateOrUpdateData) SetEndTime(v time.Time)
SetEndTime sets field value
func (o *AnnouncementCreateOrUpdateData) SetId(v int32)
SetId gets a reference to the given int32 and assigns it to the Id field.
func (o *AnnouncementCreateOrUpdateData) SetStartTime(v time.Time)
SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.
func (o *AnnouncementCreateOrUpdateData) SetStructuredText(v StructuredText)
SetStructuredText gets a reference to the given StructuredText and assigns it to the StructuredText field.
func (o *AnnouncementCreateOrUpdateData) SetTitle(v string)
SetTitle sets field value
func (o AnnouncementCreateOrUpdateData) ToMap() (map[string]interface{}, error)
Type AnnouncementError
type AnnouncementError struct {
ErrorType *string `json:"errorType,omitempty"`
}
AnnouncementError struct for AnnouncementError
Functions
func NewAnnouncementError() *AnnouncementError
NewAnnouncementError instantiates a new AnnouncementError 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 NewAnnouncementErrorWithDefaults() *AnnouncementError
NewAnnouncementErrorWithDefaults instantiates a new AnnouncementError 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
Methods
func (o *AnnouncementError) GetErrorType() string
GetErrorType returns the ErrorType field value if set, zero value otherwise.
func (o *AnnouncementError) GetErrorTypeOk() (*string, bool)
GetErrorTypeOk returns a tuple with the ErrorType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementError) HasErrorType() bool
HasErrorType returns a boolean if a field has been set.
func (o AnnouncementError) MarshalJSON() ([]byte, error)
func (o *AnnouncementError) SetErrorType(v string)
SetErrorType gets a reference to the given string and assigns it to the ErrorType field.
func (o AnnouncementError) ToMap() (map[string]interface{}, error)
Type AnnouncementMutableProperties
type AnnouncementMutableProperties struct {
// The date and time at which the announcement becomes active.
StartTime *time.Time `json:"startTime,omitempty"`
// The date and time at which the announcement expires.
EndTime *time.Time `json:"endTime,omitempty"`
// The headline of the announcement.
Title *string `json:"title,omitempty"`
Body *StructuredText `json:"body,omitempty"`
// An emoji used to indicate the nature of the announcement.
Emoji *string `json:"emoji,omitempty"`
Thumbnail *Thumbnail `json:"thumbnail,omitempty"`
Banner *Thumbnail `json:"banner,omitempty"`
// Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search.
AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"`
// The Document ID of the Source Document this Announcement was created from (e.g. Slack thread).
SourceDocumentId *string `json:"sourceDocumentId,omitempty"`
// Whether or not to hide an author attribution.
HideAttribution *bool `json:"hideAttribution,omitempty"`
// This determines whether this is a Social Feed post or a regular announcement.
Channel *string `json:"channel,omitempty"`
// Used by the Social Feed to pin posts to the front of the feed.
IsPrioritized *bool `json:"isPrioritized,omitempty"`
// Url for viewing the announcement. It will be set to document url for announcements from other datasources e.g. simpplr. Can only be written when channel=\"SOCIAL_FEED\".
ViewUrl *string `json:"viewUrl,omitempty"`
}
AnnouncementMutableProperties struct for AnnouncementMutableProperties
Functions
func NewAnnouncementMutableProperties() *AnnouncementMutableProperties
NewAnnouncementMutableProperties instantiates a new AnnouncementMutableProperties 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 NewAnnouncementMutablePropertiesWithDefaults() *AnnouncementMutableProperties
NewAnnouncementMutablePropertiesWithDefaults instantiates a new AnnouncementMutableProperties 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
Methods
func (o *AnnouncementMutableProperties) GetAudienceFilters() []FacetFilter
GetAudienceFilters returns the AudienceFilters field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetAudienceFiltersOk() ([]FacetFilter, bool)
GetAudienceFiltersOk returns a tuple with the AudienceFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetBanner() Thumbnail
GetBanner returns the Banner field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetBannerOk() (*Thumbnail, bool)
GetBannerOk returns a tuple with the Banner field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetBody() StructuredText
GetBody returns the Body field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetBodyOk() (*StructuredText, bool)
GetBodyOk returns a tuple with the Body field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetChannel() string
GetChannel returns the Channel field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetChannelOk() (*string, bool)
GetChannelOk returns a tuple with the Channel field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetEmoji() string
GetEmoji returns the Emoji field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetEmojiOk() (*string, bool)
GetEmojiOk returns a tuple with the Emoji field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetEndTime() time.Time
GetEndTime returns the EndTime field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetEndTimeOk() (*time.Time, bool)
GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetHideAttribution() bool
GetHideAttribution returns the HideAttribution field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetHideAttributionOk() (*bool, bool)
GetHideAttributionOk returns a tuple with the HideAttribution field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetIsPrioritized() bool
GetIsPrioritized returns the IsPrioritized field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetIsPrioritizedOk() (*bool, bool)
GetIsPrioritizedOk returns a tuple with the IsPrioritized field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetSourceDocumentId() string
GetSourceDocumentId returns the SourceDocumentId field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetSourceDocumentIdOk() (*string, bool)
GetSourceDocumentIdOk returns a tuple with the SourceDocumentId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetStartTime() time.Time
GetStartTime returns the StartTime field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetStartTimeOk() (*time.Time, bool)
GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetThumbnail() Thumbnail
GetThumbnail returns the Thumbnail field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetThumbnailOk() (*Thumbnail, bool)
GetThumbnailOk returns a tuple with the Thumbnail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) GetViewUrl() string
GetViewUrl returns the ViewUrl field value if set, zero value otherwise.
func (o *AnnouncementMutableProperties) GetViewUrlOk() (*string, bool)
GetViewUrlOk returns a tuple with the ViewUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnnouncementMutableProperties) HasAudienceFilters() bool
HasAudienceFilters returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasBanner() bool
HasBanner returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasBody() bool
HasBody returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasChannel() bool
HasChannel returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasEmoji() bool
HasEmoji returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasEndTime() bool
HasEndTime returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasHideAttribution() bool
HasHideAttribution returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasIsPrioritized() bool
HasIsPrioritized returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasSourceDocumentId() bool
HasSourceDocumentId returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasStartTime() bool
HasStartTime returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasThumbnail() bool
HasThumbnail returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o *AnnouncementMutableProperties) HasViewUrl() bool
HasViewUrl returns a boolean if a field has been set.
func (o AnnouncementMutableProperties) MarshalJSON() ([]byte, error)
func (o *AnnouncementMutableProperties) SetAudienceFilters(v []FacetFilter)
SetAudienceFilters gets a reference to the given []FacetFilter and assigns it to the AudienceFilters field.
func (o *AnnouncementMutableProperties) SetBanner(v Thumbnail)
SetBanner gets a reference to the given Thumbnail and assigns it to the Banner field.
func (o *AnnouncementMutableProperties) SetBody(v StructuredText)
SetBody gets a reference to the given StructuredText and assigns it to the Body field.
func (o *AnnouncementMutableProperties) SetChannel(v string)
SetChannel gets a reference to the given string and assigns it to the Channel field.
func (o *AnnouncementMutableProperties) SetEmoji(v string)
SetEmoji gets a reference to the given string and assigns it to the Emoji field.
func (o *AnnouncementMutableProperties) SetEndTime(v time.Time)
SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field.
func (o *AnnouncementMutableProperties) SetHideAttribution(v bool)
SetHideAttribution gets a reference to the given bool and assigns it to the HideAttribution field.
func (o *AnnouncementMutableProperties) SetIsPrioritized(v bool)
SetIsPrioritized gets a reference to the given bool and assigns it to the IsPrioritized field.
func (o *AnnouncementMutableProperties) SetSourceDocumentId(v string)
SetSourceDocumentId gets a reference to the given string and assigns it to the SourceDocumentId field.
func (o *AnnouncementMutableProperties) SetStartTime(v time.Time)
SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.
func (o *AnnouncementMutableProperties) SetThumbnail(v Thumbnail)
SetThumbnail gets a reference to the given Thumbnail and assigns it to the Thumbnail field.
func (o *AnnouncementMutableProperties) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *AnnouncementMutableProperties) SetViewUrl(v string)
SetViewUrl gets a reference to the given string and assigns it to the ViewUrl field.
func (o AnnouncementMutableProperties) ToMap() (map[string]interface{}, error)
Type AnnouncementsApiService
type AnnouncementsApiService service
AnnouncementsApiService AnnouncementsApi service
Methods
func (a *AnnouncementsApiService) Createannouncement(ctx context.Context) ApiCreateannouncementRequest
Createannouncement Create announcement
Creates a textual announcement visible to some set of users based on department and location.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateannouncementRequest
func (a *AnnouncementsApiService) CreateannouncementExecute(r ApiCreateannouncementRequest) (*Announcement, *http.Response, error)
Execute executes the request
@return Announcement
func (a *AnnouncementsApiService) Deleteannouncement(ctx context.Context) ApiDeleteannouncementRequest
Deleteannouncement Delete announcement
Deletes an existing user-generated announcement.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDeleteannouncementRequest
func (a *AnnouncementsApiService) DeleteannouncementExecute(r ApiDeleteannouncementRequest) (*http.Response, error)
Execute executes the request
func (a *AnnouncementsApiService) Updateannouncement(ctx context.Context) ApiUpdateannouncementRequest
Updateannouncement Update announcement
Updates a textual announcement visible to some set of users based on department and location.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateannouncementRequest
func (a *AnnouncementsApiService) UpdateannouncementExecute(r ApiUpdateannouncementRequest) (*Announcement, *http.Response, error)
Execute executes the request
@return Announcement
Type AnonymousEvent
type AnonymousEvent struct {
Time *TimeInterval `json:"time,omitempty"`
// The nature of the event, for example \"out of office\".
EventType *string `json:"eventType,omitempty"`
}
AnonymousEvent A generic, light-weight calendar event.
Functions
func NewAnonymousEvent() *AnonymousEvent
NewAnonymousEvent instantiates a new AnonymousEvent 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 NewAnonymousEventWithDefaults() *AnonymousEvent
NewAnonymousEventWithDefaults instantiates a new AnonymousEvent 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
Methods
func (o *AnonymousEvent) GetEventType() string
GetEventType returns the EventType field value if set, zero value otherwise.
func (o *AnonymousEvent) GetEventTypeOk() (*string, bool)
GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnonymousEvent) GetTime() TimeInterval
GetTime returns the Time field value if set, zero value otherwise.
func (o *AnonymousEvent) GetTimeOk() (*TimeInterval, bool)
GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnonymousEvent) HasEventType() bool
HasEventType returns a boolean if a field has been set.
func (o *AnonymousEvent) HasTime() bool
HasTime returns a boolean if a field has been set.
func (o AnonymousEvent) MarshalJSON() ([]byte, error)
func (o *AnonymousEvent) SetEventType(v string)
SetEventType gets a reference to the given string and assigns it to the EventType field.
func (o *AnonymousEvent) SetTime(v TimeInterval)
SetTime gets a reference to the given TimeInterval and assigns it to the Time field.
func (o AnonymousEvent) ToMap() (map[string]interface{}, error)
Type Answer
type Answer struct {
// The opaque id of the answer.
Id int32 `json:"id"`
// Internal document id of the answer. We support using the document id for cases where the client doesn't have the integer id available. If both are available, using the integer id is preferred.
DocId *string `json:"docId,omitempty"`
Question *string `json:"question,omitempty"`
// Additional ways of phrasing this question.
QuestionVariations []string `json:"questionVariations,omitempty"`
// The plain text answer to the question.
BodyText *string `json:"bodyText,omitempty"`
// The parent board ID of this Answer, or 0 if it's a floating Answer.
BoardId *int32 `json:"boardId,omitempty"`
// Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search.
AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"`
// A list of user roles for the answer added by the owner.
AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"`
// A list of user roles for the answer removed by the owner.
RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"`
// A list of roles for this answer explicitly granted by an owner, editor, or admin.
Roles []UserRoleSpecification `json:"roles,omitempty"`
SourceDocumentSpec *DocumentSpec `json:"sourceDocumentSpec,omitempty"`
Permissions *ObjectPermissions `json:"permissions,omitempty"`
CombinedAnswerText *StructuredText `json:"combinedAnswerText,omitempty"`
Likes *AnswerLikes `json:"likes,omitempty"`
// DEPRECATED - use roles instead. User's role on the specific answer.
// Deprecated
UserRole *string `json:"userRole,omitempty"`
Author *Person `json:"author,omitempty"`
// The time the answer was created in ISO format (ISO 8601).
CreateTime *time.Time `json:"createTime,omitempty"`
// The time the answer was last updated in ISO format (ISO 8601).
UpdateTime *time.Time `json:"updateTime,omitempty"`
UpdatedBy *Person `json:"updatedBy,omitempty"`
Verification *Verification `json:"verification,omitempty"`
Board *AnswerBoard `json:"board,omitempty"`
// The collections to which the answer belongs.
Collections []Collection `json:"collections,omitempty"`
// The document's document_category(.proto).
DocumentCategory *string `json:"documentCategory,omitempty"`
SourceDocument *Document `json:"sourceDocument,omitempty"`
}
Answer struct for Answer
Functions
func NewAnswer(id int32) *Answer
NewAnswer instantiates a new Answer 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 NewAnswerWithDefaults() *Answer
NewAnswerWithDefaults instantiates a new Answer 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
Methods
func (o *Answer) GetAddedRoles() []UserRoleSpecification
GetAddedRoles returns the AddedRoles field value if set, zero value otherwise.
func (o *Answer) GetAddedRolesOk() ([]UserRoleSpecification, bool)
GetAddedRolesOk returns a tuple with the AddedRoles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetAudienceFilters() []FacetFilter
GetAudienceFilters returns the AudienceFilters field value if set, zero value otherwise.
func (o *Answer) GetAudienceFiltersOk() ([]FacetFilter, bool)
GetAudienceFiltersOk returns a tuple with the AudienceFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetAuthor() Person
GetAuthor returns the Author field value if set, zero value otherwise.
func (o *Answer) GetAuthorOk() (*Person, bool)
GetAuthorOk returns a tuple with the Author field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetBoard() AnswerBoard
GetBoard returns the Board field value if set, zero value otherwise.
func (o *Answer) GetBoardId() int32
GetBoardId returns the BoardId field value if set, zero value otherwise.
func (o *Answer) GetBoardIdOk() (*int32, bool)
GetBoardIdOk returns a tuple with the BoardId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetBoardOk() (*AnswerBoard, bool)
GetBoardOk returns a tuple with the Board field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetBodyText() string
GetBodyText returns the BodyText field value if set, zero value otherwise.
func (o *Answer) GetBodyTextOk() (*string, bool)
GetBodyTextOk returns a tuple with the BodyText field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetCollections() []Collection
GetCollections returns the Collections field value if set, zero value otherwise.
func (o *Answer) GetCollectionsOk() ([]Collection, bool)
GetCollectionsOk returns a tuple with the Collections field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetCombinedAnswerText() StructuredText
GetCombinedAnswerText returns the CombinedAnswerText field value if set, zero value otherwise.
func (o *Answer) GetCombinedAnswerTextOk() (*StructuredText, bool)
GetCombinedAnswerTextOk returns a tuple with the CombinedAnswerText field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetCreateTime() time.Time
GetCreateTime returns the CreateTime field value if set, zero value otherwise.
func (o *Answer) GetCreateTimeOk() (*time.Time, bool)
GetCreateTimeOk returns a tuple with the CreateTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetDocId() string
GetDocId returns the DocId field value if set, zero value otherwise.
func (o *Answer) GetDocIdOk() (*string, bool)
GetDocIdOk returns a tuple with the DocId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetDocumentCategory() string
GetDocumentCategory returns the DocumentCategory field value if set, zero value otherwise.
func (o *Answer) GetDocumentCategoryOk() (*string, bool)
GetDocumentCategoryOk returns a tuple with the DocumentCategory field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetId() int32
GetId returns the Id field value
func (o *Answer) GetIdOk() (*int32, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *Answer) GetLikes() AnswerLikes
GetLikes returns the Likes field value if set, zero value otherwise.
func (o *Answer) GetLikesOk() (*AnswerLikes, bool)
GetLikesOk returns a tuple with the Likes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetPermissions() ObjectPermissions
GetPermissions returns the Permissions field value if set, zero value otherwise.
func (o *Answer) GetPermissionsOk() (*ObjectPermissions, bool)
GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetQuestion() string
GetQuestion returns the Question field value if set, zero value otherwise.
func (o *Answer) GetQuestionOk() (*string, bool)
GetQuestionOk returns a tuple with the Question field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetQuestionVariations() []string
GetQuestionVariations returns the QuestionVariations field value if set, zero value otherwise.
func (o *Answer) GetQuestionVariationsOk() ([]string, bool)
GetQuestionVariationsOk returns a tuple with the QuestionVariations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetRemovedRoles() []UserRoleSpecification
GetRemovedRoles returns the RemovedRoles field value if set, zero value otherwise.
func (o *Answer) GetRemovedRolesOk() ([]UserRoleSpecification, bool)
GetRemovedRolesOk returns a tuple with the RemovedRoles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetRoles() []UserRoleSpecification
GetRoles returns the Roles field value if set, zero value otherwise.
func (o *Answer) GetRolesOk() ([]UserRoleSpecification, bool)
GetRolesOk returns a tuple with the Roles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetSourceDocument() Document
GetSourceDocument returns the SourceDocument field value if set, zero value otherwise.
func (o *Answer) GetSourceDocumentOk() (*Document, bool)
GetSourceDocumentOk returns a tuple with the SourceDocument field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetSourceDocumentSpec() DocumentSpec
GetSourceDocumentSpec returns the SourceDocumentSpec field value if set, zero value otherwise.
func (o *Answer) GetSourceDocumentSpecOk() (*DocumentSpec, bool)
GetSourceDocumentSpecOk returns a tuple with the SourceDocumentSpec field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetUpdateTime() time.Time
GetUpdateTime returns the UpdateTime field value if set, zero value otherwise.
func (o *Answer) GetUpdateTimeOk() (*time.Time, bool)
GetUpdateTimeOk returns a tuple with the UpdateTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetUpdatedBy() Person
GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise.
func (o *Answer) GetUpdatedByOk() (*Person, bool)
GetUpdatedByOk returns a tuple with the UpdatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) GetUserRole() string
GetUserRole returns the UserRole field value if set, zero value otherwise. Deprecated
func (o *Answer) GetUserRoleOk() (*string, bool)
GetUserRoleOk returns a tuple with the UserRole field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated
func (o *Answer) GetVerification() Verification
GetVerification returns the Verification field value if set, zero value otherwise.
func (o *Answer) GetVerificationOk() (*Verification, bool)
GetVerificationOk returns a tuple with the Verification field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Answer) HasAddedRoles() bool
HasAddedRoles returns a boolean if a field has been set.
func (o *Answer) HasAudienceFilters() bool
HasAudienceFilters returns a boolean if a field has been set.
func (o *Answer) HasAuthor() bool
HasAuthor returns a boolean if a field has been set.
func (o *Answer) HasBoard() bool
HasBoard returns a boolean if a field has been set.
func (o *Answer) HasBoardId() bool
HasBoardId returns a boolean if a field has been set.
func (o *Answer) HasBodyText() bool
HasBodyText returns a boolean if a field has been set.
func (o *Answer) HasCollections() bool
HasCollections returns a boolean if a field has been set.
func (o *Answer) HasCombinedAnswerText() bool
HasCombinedAnswerText returns a boolean if a field has been set.
func (o *Answer) HasCreateTime() bool
HasCreateTime returns a boolean if a field has been set.
func (o *Answer) HasDocId() bool
HasDocId returns a boolean if a field has been set.
func (o *Answer) HasDocumentCategory() bool
HasDocumentCategory returns a boolean if a field has been set.
func (o *Answer) HasLikes() bool
HasLikes returns a boolean if a field has been set.
func (o *Answer) HasPermissions() bool
HasPermissions returns a boolean if a field has been set.
func (o *Answer) HasQuestion() bool
HasQuestion returns a boolean if a field has been set.
func (o *Answer) HasQuestionVariations() bool
HasQuestionVariations returns a boolean if a field has been set.
func (o *Answer) HasRemovedRoles() bool
HasRemovedRoles returns a boolean if a field has been set.
func (o *Answer) HasRoles() bool
HasRoles returns a boolean if a field has been set.
func (o *Answer) HasSourceDocument() bool
HasSourceDocument returns a boolean if a field has been set.
func (o *Answer) HasSourceDocumentSpec() bool
HasSourceDocumentSpec returns a boolean if a field has been set.
func (o *Answer) HasUpdateTime() bool
HasUpdateTime returns a boolean if a field has been set.
func (o *Answer) HasUpdatedBy() bool
HasUpdatedBy returns a boolean if a field has been set.
func (o *Answer) HasUserRole() bool
HasUserRole returns a boolean if a field has been set.
func (o *Answer) HasVerification() bool
HasVerification returns a boolean if a field has been set.
func (o Answer) MarshalJSON() ([]byte, error)
func (o *Answer) SetAddedRoles(v []UserRoleSpecification)
SetAddedRoles gets a reference to the given []UserRoleSpecification and assigns it to the AddedRoles field.
func (o *Answer) SetAudienceFilters(v []FacetFilter)
SetAudienceFilters gets a reference to the given []FacetFilter and assigns it to the AudienceFilters field.
func (o *Answer) SetAuthor(v Person)
SetAuthor gets a reference to the given Person and assigns it to the Author field.
func (o *Answer) SetBoard(v AnswerBoard)
SetBoard gets a reference to the given AnswerBoard and assigns it to the Board field.
func (o *Answer) SetBoardId(v int32)
SetBoardId gets a reference to the given int32 and assigns it to the BoardId field.
func (o *Answer) SetBodyText(v string)
SetBodyText gets a reference to the given string and assigns it to the BodyText field.
func (o *Answer) SetCollections(v []Collection)
SetCollections gets a reference to the given []Collection and assigns it to the Collections field.
func (o *Answer) SetCombinedAnswerText(v StructuredText)
SetCombinedAnswerText gets a reference to the given StructuredText and assigns it to the CombinedAnswerText field.
func (o *Answer) SetCreateTime(v time.Time)
SetCreateTime gets a reference to the given time.Time and assigns it to the CreateTime field.
func (o *Answer) SetDocId(v string)
SetDocId gets a reference to the given string and assigns it to the DocId field.
func (o *Answer) SetDocumentCategory(v string)
SetDocumentCategory gets a reference to the given string and assigns it to the DocumentCategory field.
func (o *Answer) SetId(v int32)
SetId sets field value
func (o *Answer) SetLikes(v AnswerLikes)
SetLikes gets a reference to the given AnswerLikes and assigns it to the Likes field.
func (o *Answer) SetPermissions(v ObjectPermissions)
SetPermissions gets a reference to the given ObjectPermissions and assigns it to the Permissions field.
func (o *Answer) SetQuestion(v string)
SetQuestion gets a reference to the given string and assigns it to the Question field.
func (o *Answer) SetQuestionVariations(v []string)
SetQuestionVariations gets a reference to the given []string and assigns it to the QuestionVariations field.
func (o *Answer) SetRemovedRoles(v []UserRoleSpecification)
SetRemovedRoles gets a reference to the given []UserRoleSpecification and assigns it to the RemovedRoles field.
func (o *Answer) SetRoles(v []UserRoleSpecification)
SetRoles gets a reference to the given []UserRoleSpecification and assigns it to the Roles field.
func (o *Answer) SetSourceDocument(v Document)
SetSourceDocument gets a reference to the given Document and assigns it to the SourceDocument field.
func (o *Answer) SetSourceDocumentSpec(v DocumentSpec)
SetSourceDocumentSpec gets a reference to the given DocumentSpec and assigns it to the SourceDocumentSpec field.
func (o *Answer) SetUpdateTime(v time.Time)
SetUpdateTime gets a reference to the given time.Time and assigns it to the UpdateTime field.
func (o *Answer) SetUpdatedBy(v Person)
SetUpdatedBy gets a reference to the given Person and assigns it to the UpdatedBy field.
func (o *Answer) SetUserRole(v string)
SetUserRole gets a reference to the given string and assigns it to the UserRole field. Deprecated
func (o *Answer) SetVerification(v Verification)
SetVerification gets a reference to the given Verification and assigns it to the Verification field.
func (o Answer) ToMap() (map[string]interface{}, error)
Type AnswerActionsConfig
type AnswerActionsConfig struct {
ShowCreate *bool `json:"showCreate,omitempty"`
ShowEdit *bool `json:"showEdit,omitempty"`
}
AnswerActionsConfig struct for AnswerActionsConfig
Functions
func NewAnswerActionsConfig() *AnswerActionsConfig
NewAnswerActionsConfig instantiates a new AnswerActionsConfig 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 NewAnswerActionsConfigWithDefaults() *AnswerActionsConfig
NewAnswerActionsConfigWithDefaults instantiates a new AnswerActionsConfig 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
Methods
func (o *AnswerActionsConfig) GetShowCreate() bool
GetShowCreate returns the ShowCreate field value if set, zero value otherwise.
func (o *AnswerActionsConfig) GetShowCreateOk() (*bool, bool)
GetShowCreateOk returns a tuple with the ShowCreate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerActionsConfig) GetShowEdit() bool
GetShowEdit returns the ShowEdit field value if set, zero value otherwise.
func (o *AnswerActionsConfig) GetShowEditOk() (*bool, bool)
GetShowEditOk returns a tuple with the ShowEdit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerActionsConfig) HasShowCreate() bool
HasShowCreate returns a boolean if a field has been set.
func (o *AnswerActionsConfig) HasShowEdit() bool
HasShowEdit returns a boolean if a field has been set.
func (o AnswerActionsConfig) MarshalJSON() ([]byte, error)
func (o *AnswerActionsConfig) SetShowCreate(v bool)
SetShowCreate gets a reference to the given bool and assigns it to the ShowCreate field.
func (o *AnswerActionsConfig) SetShowEdit(v bool)
SetShowEdit gets a reference to the given bool and assigns it to the ShowEdit field.
func (o AnswerActionsConfig) ToMap() (map[string]interface{}, error)
Type AnswerAllOf
type AnswerAllOf struct {
CombinedAnswerText *StructuredText `json:"combinedAnswerText,omitempty"`
Likes *AnswerLikes `json:"likes,omitempty"`
// DEPRECATED - use roles instead. User's role on the specific answer.
// Deprecated
UserRole *string `json:"userRole,omitempty"`
Author *Person `json:"author,omitempty"`
// The time the answer was created in ISO format (ISO 8601).
CreateTime *time.Time `json:"createTime,omitempty"`
// The time the answer was last updated in ISO format (ISO 8601).
UpdateTime *time.Time `json:"updateTime,omitempty"`
UpdatedBy *Person `json:"updatedBy,omitempty"`
Verification *Verification `json:"verification,omitempty"`
Board *AnswerBoard `json:"board,omitempty"`
// The collections to which the answer belongs.
Collections []Collection `json:"collections,omitempty"`
// The document's document_category(.proto).
DocumentCategory *string `json:"documentCategory,omitempty"`
SourceDocument *Document `json:"sourceDocument,omitempty"`
}
AnswerAllOf struct for AnswerAllOf
Functions
func NewAnswerAllOf() *AnswerAllOf
NewAnswerAllOf instantiates a new AnswerAllOf 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 NewAnswerAllOfWithDefaults() *AnswerAllOf
NewAnswerAllOfWithDefaults instantiates a new AnswerAllOf 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
Methods
func (o *AnswerAllOf) GetAuthor() Person
GetAuthor returns the Author field value if set, zero value otherwise.
func (o *AnswerAllOf) GetAuthorOk() (*Person, bool)
GetAuthorOk returns a tuple with the Author field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) GetBoard() AnswerBoard
GetBoard returns the Board field value if set, zero value otherwise.
func (o *AnswerAllOf) GetBoardOk() (*AnswerBoard, bool)
GetBoardOk returns a tuple with the Board field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) GetCollections() []Collection
GetCollections returns the Collections field value if set, zero value otherwise.
func (o *AnswerAllOf) GetCollectionsOk() ([]Collection, bool)
GetCollectionsOk returns a tuple with the Collections field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) GetCombinedAnswerText() StructuredText
GetCombinedAnswerText returns the CombinedAnswerText field value if set, zero value otherwise.
func (o *AnswerAllOf) GetCombinedAnswerTextOk() (*StructuredText, bool)
GetCombinedAnswerTextOk returns a tuple with the CombinedAnswerText field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) GetCreateTime() time.Time
GetCreateTime returns the CreateTime field value if set, zero value otherwise.
func (o *AnswerAllOf) GetCreateTimeOk() (*time.Time, bool)
GetCreateTimeOk returns a tuple with the CreateTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) GetDocumentCategory() string
GetDocumentCategory returns the DocumentCategory field value if set, zero value otherwise.
func (o *AnswerAllOf) GetDocumentCategoryOk() (*string, bool)
GetDocumentCategoryOk returns a tuple with the DocumentCategory field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) GetLikes() AnswerLikes
GetLikes returns the Likes field value if set, zero value otherwise.
func (o *AnswerAllOf) GetLikesOk() (*AnswerLikes, bool)
GetLikesOk returns a tuple with the Likes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) GetSourceDocument() Document
GetSourceDocument returns the SourceDocument field value if set, zero value otherwise.
func (o *AnswerAllOf) GetSourceDocumentOk() (*Document, bool)
GetSourceDocumentOk returns a tuple with the SourceDocument field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) GetUpdateTime() time.Time
GetUpdateTime returns the UpdateTime field value if set, zero value otherwise.
func (o *AnswerAllOf) GetUpdateTimeOk() (*time.Time, bool)
GetUpdateTimeOk returns a tuple with the UpdateTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) GetUpdatedBy() Person
GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise.
func (o *AnswerAllOf) GetUpdatedByOk() (*Person, bool)
GetUpdatedByOk returns a tuple with the UpdatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) GetUserRole() string
GetUserRole returns the UserRole field value if set, zero value otherwise. Deprecated
func (o *AnswerAllOf) GetUserRoleOk() (*string, bool)
GetUserRoleOk returns a tuple with the UserRole field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated
func (o *AnswerAllOf) GetVerification() Verification
GetVerification returns the Verification field value if set, zero value otherwise.
func (o *AnswerAllOf) GetVerificationOk() (*Verification, bool)
GetVerificationOk returns a tuple with the Verification field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerAllOf) HasAuthor() bool
HasAuthor returns a boolean if a field has been set.
func (o *AnswerAllOf) HasBoard() bool
HasBoard returns a boolean if a field has been set.
func (o *AnswerAllOf) HasCollections() bool
HasCollections returns a boolean if a field has been set.
func (o *AnswerAllOf) HasCombinedAnswerText() bool
HasCombinedAnswerText returns a boolean if a field has been set.
func (o *AnswerAllOf) HasCreateTime() bool
HasCreateTime returns a boolean if a field has been set.
func (o *AnswerAllOf) HasDocumentCategory() bool
HasDocumentCategory returns a boolean if a field has been set.
func (o *AnswerAllOf) HasLikes() bool
HasLikes returns a boolean if a field has been set.
func (o *AnswerAllOf) HasSourceDocument() bool
HasSourceDocument returns a boolean if a field has been set.
func (o *AnswerAllOf) HasUpdateTime() bool
HasUpdateTime returns a boolean if a field has been set.
func (o *AnswerAllOf) HasUpdatedBy() bool
HasUpdatedBy returns a boolean if a field has been set.
func (o *AnswerAllOf) HasUserRole() bool
HasUserRole returns a boolean if a field has been set.
func (o *AnswerAllOf) HasVerification() bool
HasVerification returns a boolean if a field has been set.
func (o AnswerAllOf) MarshalJSON() ([]byte, error)
func (o *AnswerAllOf) SetAuthor(v Person)
SetAuthor gets a reference to the given Person and assigns it to the Author field.
func (o *AnswerAllOf) SetBoard(v AnswerBoard)
SetBoard gets a reference to the given AnswerBoard and assigns it to the Board field.
func (o *AnswerAllOf) SetCollections(v []Collection)
SetCollections gets a reference to the given []Collection and assigns it to the Collections field.
func (o *AnswerAllOf) SetCombinedAnswerText(v StructuredText)
SetCombinedAnswerText gets a reference to the given StructuredText and assigns it to the CombinedAnswerText field.
func (o *AnswerAllOf) SetCreateTime(v time.Time)
SetCreateTime gets a reference to the given time.Time and assigns it to the CreateTime field.
func (o *AnswerAllOf) SetDocumentCategory(v string)
SetDocumentCategory gets a reference to the given string and assigns it to the DocumentCategory field.
func (o *AnswerAllOf) SetLikes(v AnswerLikes)
SetLikes gets a reference to the given AnswerLikes and assigns it to the Likes field.
func (o *AnswerAllOf) SetSourceDocument(v Document)
SetSourceDocument gets a reference to the given Document and assigns it to the SourceDocument field.
func (o *AnswerAllOf) SetUpdateTime(v time.Time)
SetUpdateTime gets a reference to the given time.Time and assigns it to the UpdateTime field.
func (o *AnswerAllOf) SetUpdatedBy(v Person)
SetUpdatedBy gets a reference to the given Person and assigns it to the UpdatedBy field.
func (o *AnswerAllOf) SetUserRole(v string)
SetUserRole gets a reference to the given string and assigns it to the UserRole field. Deprecated
func (o *AnswerAllOf) SetVerification(v Verification)
SetVerification gets a reference to the given Verification and assigns it to the Verification field.
func (o AnswerAllOf) ToMap() (map[string]interface{}, error)
Type AnswerBoard
type AnswerBoard struct {
// The unique name of the Collection.
Name string `json:"name"`
// A brief summary of the Collection's contents.
Description string `json:"description"`
// A list of added user roles for the collection.
AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"`
// A list of removed user roles for the collection.
RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"`
// Filters which restrict who should see this collection. Values are taken from the corresponding filters in people search.
AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"`
Permissions *ObjectPermissions `json:"permissions,omitempty"`
// The unique ID of the Answer Board.
Id int32 `json:"id"`
CreateTime *time.Time `json:"createTime,omitempty"`
UpdateTime *time.Time `json:"updateTime,omitempty"`
Creator *Person `json:"creator,omitempty"`
UpdatedBy *Person `json:"updatedBy,omitempty"`
// The number of items currently in the Answer Board. Separated from the actual items so we can grab the count without items.
ItemCount *int32 `json:"itemCount,omitempty"`
// A list of user roles for the Answer Board.
Roles []UserRoleSpecification `json:"roles,omitempty"`
}
AnswerBoard struct for AnswerBoard
Functions
func NewAnswerBoard(name string, description string, id int32) *AnswerBoard
NewAnswerBoard instantiates a new AnswerBoard 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 NewAnswerBoardWithDefaults() *AnswerBoard
NewAnswerBoardWithDefaults instantiates a new AnswerBoard 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
Methods
func (o *AnswerBoard) GetAddedRoles() []UserRoleSpecification
GetAddedRoles returns the AddedRoles field value if set, zero value otherwise.
func (o *AnswerBoard) GetAddedRolesOk() ([]UserRoleSpecification, bool)
GetAddedRolesOk returns a tuple with the AddedRoles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoard) GetAudienceFilters() []FacetFilter
GetAudienceFilters returns the AudienceFilters field value if set, zero value otherwise.
func (o *AnswerBoard) GetAudienceFiltersOk() ([]FacetFilter, bool)
GetAudienceFiltersOk returns a tuple with the AudienceFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoard) GetCreateTime() time.Time
GetCreateTime returns the CreateTime field value if set, zero value otherwise.
func (o *AnswerBoard) GetCreateTimeOk() (*time.Time, bool)
GetCreateTimeOk returns a tuple with the CreateTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoard) GetCreator() Person
GetCreator returns the Creator field value if set, zero value otherwise.
func (o *AnswerBoard) GetCreatorOk() (*Person, bool)
GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoard) GetDescription() string
GetDescription returns the Description field value
func (o *AnswerBoard) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.
func (o *AnswerBoard) GetId() int32
GetId returns the Id field value
func (o *AnswerBoard) GetIdOk() (*int32, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *AnswerBoard) GetItemCount() int32
GetItemCount returns the ItemCount field value if set, zero value otherwise.
func (o *AnswerBoard) GetItemCountOk() (*int32, bool)
GetItemCountOk returns a tuple with the ItemCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoard) GetName() string
GetName returns the Name field value
func (o *AnswerBoard) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *AnswerBoard) GetPermissions() ObjectPermissions
GetPermissions returns the Permissions field value if set, zero value otherwise.
func (o *AnswerBoard) GetPermissionsOk() (*ObjectPermissions, bool)
GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoard) GetRemovedRoles() []UserRoleSpecification
GetRemovedRoles returns the RemovedRoles field value if set, zero value otherwise.
func (o *AnswerBoard) GetRemovedRolesOk() ([]UserRoleSpecification, bool)
GetRemovedRolesOk returns a tuple with the RemovedRoles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoard) GetRoles() []UserRoleSpecification
GetRoles returns the Roles field value if set, zero value otherwise.
func (o *AnswerBoard) GetRolesOk() ([]UserRoleSpecification, bool)
GetRolesOk returns a tuple with the Roles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoard) GetUpdateTime() time.Time
GetUpdateTime returns the UpdateTime field value if set, zero value otherwise.
func (o *AnswerBoard) GetUpdateTimeOk() (*time.Time, bool)
GetUpdateTimeOk returns a tuple with the UpdateTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoard) GetUpdatedBy() Person
GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise.
func (o *AnswerBoard) GetUpdatedByOk() (*Person, bool)
GetUpdatedByOk returns a tuple with the UpdatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoard) HasAddedRoles() bool
HasAddedRoles returns a boolean if a field has been set.
func (o *AnswerBoard) HasAudienceFilters() bool
HasAudienceFilters returns a boolean if a field has been set.
func (o *AnswerBoard) HasCreateTime() bool
HasCreateTime returns a boolean if a field has been set.
func (o *AnswerBoard) HasCreator() bool
HasCreator returns a boolean if a field has been set.
func (o *AnswerBoard) HasItemCount() bool
HasItemCount returns a boolean if a field has been set.
func (o *AnswerBoard) HasPermissions() bool
HasPermissions returns a boolean if a field has been set.
func (o *AnswerBoard) HasRemovedRoles() bool
HasRemovedRoles returns a boolean if a field has been set.
func (o *AnswerBoard) HasRoles() bool
HasRoles returns a boolean if a field has been set.
func (o *AnswerBoard) HasUpdateTime() bool
HasUpdateTime returns a boolean if a field has been set.
func (o *AnswerBoard) HasUpdatedBy() bool
HasUpdatedBy returns a boolean if a field has been set.
func (o AnswerBoard) MarshalJSON() ([]byte, error)
func (o *AnswerBoard) SetAddedRoles(v []UserRoleSpecification)
SetAddedRoles gets a reference to the given []UserRoleSpecification and assigns it to the AddedRoles field.
func (o *AnswerBoard) SetAudienceFilters(v []FacetFilter)
SetAudienceFilters gets a reference to the given []FacetFilter and assigns it to the AudienceFilters field.
func (o *AnswerBoard) SetCreateTime(v time.Time)
SetCreateTime gets a reference to the given time.Time and assigns it to the CreateTime field.
func (o *AnswerBoard) SetCreator(v Person)
SetCreator gets a reference to the given Person and assigns it to the Creator field.
func (o *AnswerBoard) SetDescription(v string)
SetDescription sets field value
func (o *AnswerBoard) SetId(v int32)
SetId sets field value
func (o *AnswerBoard) SetItemCount(v int32)
SetItemCount gets a reference to the given int32 and assigns it to the ItemCount field.
func (o *AnswerBoard) SetName(v string)
SetName sets field value
func (o *AnswerBoard) SetPermissions(v ObjectPermissions)
SetPermissions gets a reference to the given ObjectPermissions and assigns it to the Permissions field.
func (o *AnswerBoard) SetRemovedRoles(v []UserRoleSpecification)
SetRemovedRoles gets a reference to the given []UserRoleSpecification and assigns it to the RemovedRoles field.
func (o *AnswerBoard) SetRoles(v []UserRoleSpecification)
SetRoles gets a reference to the given []UserRoleSpecification and assigns it to the Roles field.
func (o *AnswerBoard) SetUpdateTime(v time.Time)
SetUpdateTime gets a reference to the given time.Time and assigns it to the UpdateTime field.
func (o *AnswerBoard) SetUpdatedBy(v Person)
SetUpdatedBy gets a reference to the given Person and assigns it to the UpdatedBy field.
func (o AnswerBoard) ToMap() (map[string]interface{}, error)
Type AnswerBoardAllOf
type AnswerBoardAllOf struct {
// The unique ID of the Answer Board.
Id int32 `json:"id"`
CreateTime *time.Time `json:"createTime,omitempty"`
UpdateTime *time.Time `json:"updateTime,omitempty"`
Creator *Person `json:"creator,omitempty"`
UpdatedBy *Person `json:"updatedBy,omitempty"`
// The number of items currently in the Answer Board. Separated from the actual items so we can grab the count without items.
ItemCount *int32 `json:"itemCount,omitempty"`
// A list of user roles for the Answer Board.
Roles []UserRoleSpecification `json:"roles,omitempty"`
}
AnswerBoardAllOf struct for AnswerBoardAllOf
Functions
func NewAnswerBoardAllOf(id int32) *AnswerBoardAllOf
NewAnswerBoardAllOf instantiates a new AnswerBoardAllOf 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 NewAnswerBoardAllOfWithDefaults() *AnswerBoardAllOf
NewAnswerBoardAllOfWithDefaults instantiates a new AnswerBoardAllOf 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
Methods
func (o *AnswerBoardAllOf) GetCreateTime() time.Time
GetCreateTime returns the CreateTime field value if set, zero value otherwise.
func (o *AnswerBoardAllOf) GetCreateTimeOk() (*time.Time, bool)
GetCreateTimeOk returns a tuple with the CreateTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoardAllOf) GetCreator() Person
GetCreator returns the Creator field value if set, zero value otherwise.
func (o *AnswerBoardAllOf) GetCreatorOk() (*Person, bool)
GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoardAllOf) GetId() int32
GetId returns the Id field value
func (o *AnswerBoardAllOf) GetIdOk() (*int32, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *AnswerBoardAllOf) GetItemCount() int32
GetItemCount returns the ItemCount field value if set, zero value otherwise.
func (o *AnswerBoardAllOf) GetItemCountOk() (*int32, bool)
GetItemCountOk returns a tuple with the ItemCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoardAllOf) GetRoles() []UserRoleSpecification
GetRoles returns the Roles field value if set, zero value otherwise.
func (o *AnswerBoardAllOf) GetRolesOk() ([]UserRoleSpecification, bool)
GetRolesOk returns a tuple with the Roles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoardAllOf) GetUpdateTime() time.Time
GetUpdateTime returns the UpdateTime field value if set, zero value otherwise.
func (o *AnswerBoardAllOf) GetUpdateTimeOk() (*time.Time, bool)
GetUpdateTimeOk returns a tuple with the UpdateTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoardAllOf) GetUpdatedBy() Person
GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise.
func (o *AnswerBoardAllOf) GetUpdatedByOk() (*Person, bool)
GetUpdatedByOk returns a tuple with the UpdatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoardAllOf) HasCreateTime() bool
HasCreateTime returns a boolean if a field has been set.
func (o *AnswerBoardAllOf) HasCreator() bool
HasCreator returns a boolean if a field has been set.
func (o *AnswerBoardAllOf) HasItemCount() bool
HasItemCount returns a boolean if a field has been set.
func (o *AnswerBoardAllOf) HasRoles() bool
HasRoles returns a boolean if a field has been set.
func (o *AnswerBoardAllOf) HasUpdateTime() bool
HasUpdateTime returns a boolean if a field has been set.
func (o *AnswerBoardAllOf) HasUpdatedBy() bool
HasUpdatedBy returns a boolean if a field has been set.
func (o AnswerBoardAllOf) MarshalJSON() ([]byte, error)
func (o *AnswerBoardAllOf) SetCreateTime(v time.Time)
SetCreateTime gets a reference to the given time.Time and assigns it to the CreateTime field.
func (o *AnswerBoardAllOf) SetCreator(v Person)
SetCreator gets a reference to the given Person and assigns it to the Creator field.
func (o *AnswerBoardAllOf) SetId(v int32)
SetId sets field value
func (o *AnswerBoardAllOf) SetItemCount(v int32)
SetItemCount gets a reference to the given int32 and assigns it to the ItemCount field.
func (o *AnswerBoardAllOf) SetRoles(v []UserRoleSpecification)
SetRoles gets a reference to the given []UserRoleSpecification and assigns it to the Roles field.
func (o *AnswerBoardAllOf) SetUpdateTime(v time.Time)
SetUpdateTime gets a reference to the given time.Time and assigns it to the UpdateTime field.
func (o *AnswerBoardAllOf) SetUpdatedBy(v Person)
SetUpdatedBy gets a reference to the given Person and assigns it to the UpdatedBy field.
func (o AnswerBoardAllOf) ToMap() (map[string]interface{}, error)
Type AnswerBoardError
type AnswerBoardError struct {
ErrorCode string `json:"errorCode"`
}
AnswerBoardError struct for AnswerBoardError
Functions
func NewAnswerBoardError(errorCode string) *AnswerBoardError
NewAnswerBoardError instantiates a new AnswerBoardError 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 NewAnswerBoardErrorWithDefaults() *AnswerBoardError
NewAnswerBoardErrorWithDefaults instantiates a new AnswerBoardError 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
Methods
func (o *AnswerBoardError) GetErrorCode() string
GetErrorCode returns the ErrorCode field value
func (o *AnswerBoardError) GetErrorCodeOk() (*string, bool)
GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.
func (o AnswerBoardError) MarshalJSON() ([]byte, error)
func (o *AnswerBoardError) SetErrorCode(v string)
SetErrorCode sets field value
func (o AnswerBoardError) ToMap() (map[string]interface{}, error)
Type AnswerBoardMutableProperties
type AnswerBoardMutableProperties struct {
// The unique name of the Collection.
Name string `json:"name"`
// A brief summary of the Collection's contents.
Description *string `json:"description,omitempty"`
// A list of added user roles for the collection.
AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"`
// A list of removed user roles for the collection.
RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"`
// Filters which restrict who should see this collection. Values are taken from the corresponding filters in people search.
AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"`
}
AnswerBoardMutableProperties struct for AnswerBoardMutableProperties
Functions
func NewAnswerBoardMutableProperties(name string) *AnswerBoardMutableProperties
NewAnswerBoardMutableProperties instantiates a new AnswerBoardMutableProperties 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 NewAnswerBoardMutablePropertiesWithDefaults() *AnswerBoardMutableProperties
NewAnswerBoardMutablePropertiesWithDefaults instantiates a new AnswerBoardMutableProperties 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
Methods
func (o *AnswerBoardMutableProperties) GetAddedRoles() []UserRoleSpecification
GetAddedRoles returns the AddedRoles field value if set, zero value otherwise.
func (o *AnswerBoardMutableProperties) GetAddedRolesOk() ([]UserRoleSpecification, bool)
GetAddedRolesOk returns a tuple with the AddedRoles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoardMutableProperties) GetAudienceFilters() []FacetFilter
GetAudienceFilters returns the AudienceFilters field value if set, zero value otherwise.
func (o *AnswerBoardMutableProperties) GetAudienceFiltersOk() ([]FacetFilter, bool)
GetAudienceFiltersOk returns a tuple with the AudienceFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoardMutableProperties) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *AnswerBoardMutableProperties) 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 (o *AnswerBoardMutableProperties) GetName() string
GetName returns the Name field value
func (o *AnswerBoardMutableProperties) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *AnswerBoardMutableProperties) GetRemovedRoles() []UserRoleSpecification
GetRemovedRoles returns the RemovedRoles field value if set, zero value otherwise.
func (o *AnswerBoardMutableProperties) GetRemovedRolesOk() ([]UserRoleSpecification, bool)
GetRemovedRolesOk returns a tuple with the RemovedRoles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoardMutableProperties) HasAddedRoles() bool
HasAddedRoles returns a boolean if a field has been set.
func (o *AnswerBoardMutableProperties) HasAudienceFilters() bool
HasAudienceFilters returns a boolean if a field has been set.
func (o *AnswerBoardMutableProperties) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *AnswerBoardMutableProperties) HasRemovedRoles() bool
HasRemovedRoles returns a boolean if a field has been set.
func (o AnswerBoardMutableProperties) MarshalJSON() ([]byte, error)
func (o *AnswerBoardMutableProperties) SetAddedRoles(v []UserRoleSpecification)
SetAddedRoles gets a reference to the given []UserRoleSpecification and assigns it to the AddedRoles field.
func (o *AnswerBoardMutableProperties) SetAudienceFilters(v []FacetFilter)
SetAudienceFilters gets a reference to the given []FacetFilter and assigns it to the AudienceFilters field.
func (o *AnswerBoardMutableProperties) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *AnswerBoardMutableProperties) SetName(v string)
SetName sets field value
func (o *AnswerBoardMutableProperties) SetRemovedRoles(v []UserRoleSpecification)
SetRemovedRoles gets a reference to the given []UserRoleSpecification and assigns it to the RemovedRoles field.
func (o AnswerBoardMutableProperties) ToMap() (map[string]interface{}, error)
Type AnswerBoardResult
type AnswerBoardResult struct {
Board AnswerBoard `json:"board"`
// An opaque token that represents this particular Answer Board. To be used for /feedback reporting.
TrackingToken *string `json:"trackingToken,omitempty"`
}
AnswerBoardResult struct for AnswerBoardResult
Functions
func NewAnswerBoardResult(board AnswerBoard) *AnswerBoardResult
NewAnswerBoardResult instantiates a new AnswerBoardResult 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 NewAnswerBoardResultWithDefaults() *AnswerBoardResult
NewAnswerBoardResultWithDefaults instantiates a new AnswerBoardResult 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
Methods
func (o *AnswerBoardResult) GetBoard() AnswerBoard
GetBoard returns the Board field value
func (o *AnswerBoardResult) GetBoardOk() (*AnswerBoard, bool)
GetBoardOk returns a tuple with the Board field value and a boolean to check if the value has been set.
func (o *AnswerBoardResult) GetTrackingToken() string
GetTrackingToken returns the TrackingToken field value if set, zero value otherwise.
func (o *AnswerBoardResult) GetTrackingTokenOk() (*string, bool)
GetTrackingTokenOk returns a tuple with the TrackingToken field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerBoardResult) HasTrackingToken() bool
HasTrackingToken returns a boolean if a field has been set.
func (o AnswerBoardResult) MarshalJSON() ([]byte, error)
func (o *AnswerBoardResult) SetBoard(v AnswerBoard)
SetBoard sets field value
func (o *AnswerBoardResult) SetTrackingToken(v string)
SetTrackingToken gets a reference to the given string and assigns it to the TrackingToken field.
func (o AnswerBoardResult) ToMap() (map[string]interface{}, error)
Type AnswerBoardsApiService
type AnswerBoardsApiService service
AnswerBoardsApiService AnswerBoardsApi service
Methods
func (a *AnswerBoardsApiService) Createanswerboard(ctx context.Context) ApiCreateanswerboardRequest
Createanswerboard Create an Answer Board
Creates a board of answers.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateanswerboardRequest
func (a *AnswerBoardsApiService) CreateanswerboardExecute(r ApiCreateanswerboardRequest) (*CreateAnswerBoardResponse, *http.Response, error)
Execute executes the request
@return CreateAnswerBoardResponse
func (a *AnswerBoardsApiService) Deleteanswerboards(ctx context.Context) ApiDeleteanswerboardsRequest
Deleteanswerboards Delete an Answer Board
Deletes an Answer Board given the Answer Board's ID. Multi-delete is not currently supported.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDeleteanswerboardsRequest
func (a *AnswerBoardsApiService) DeleteanswerboardsExecute(r ApiDeleteanswerboardsRequest) (*DeleteAnswerBoardsResponse, *http.Response, error)
Execute executes the request
@return DeleteAnswerBoardsResponse
func (a *AnswerBoardsApiService) Editanswerboard(ctx context.Context) ApiEditanswerboardRequest
Editanswerboard Edit an Answer Board
Modifies the properties of an existing Answer Board.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiEditanswerboardRequest
func (a *AnswerBoardsApiService) EditanswerboardExecute(r ApiEditanswerboardRequest) (*EditAnswerBoardResponse, *http.Response, error)
Execute executes the request
@return EditAnswerBoardResponse
func (a *AnswerBoardsApiService) Getanswerboard(ctx context.Context) ApiGetanswerboardRequest
Getanswerboard Read Answer Board details, except the Answers in this Answer Board.
Gets an Answer Board given its ID. Does not fetch items in this Answer Board, use /listanswers instead.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetanswerboardRequest
func (a *AnswerBoardsApiService) GetanswerboardExecute(r ApiGetanswerboardRequest) (*GetAnswerBoardResponse, *http.Response, error)
Execute executes the request
@return GetAnswerBoardResponse
func (a *AnswerBoardsApiService) Listanswerboards(ctx context.Context) ApiListanswerboardsRequest
Listanswerboards List Answer Boards
Lists all existing Answer Boards
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListanswerboardsRequest
func (a *AnswerBoardsApiService) ListanswerboardsExecute(r ApiListanswerboardsRequest) (*ListAnswerBoardsResponse, *http.Response, error)
Execute executes the request
@return ListAnswerBoardsResponse
Type AnswerCreationData
type AnswerCreationData struct {
Question *string `json:"question,omitempty"`
// Additional ways of phrasing this question.
QuestionVariations []string `json:"questionVariations,omitempty"`
// The plain text answer to the question.
BodyText *string `json:"bodyText,omitempty"`
// The parent board ID of this Answer, or 0 if it's a floating Answer.
BoardId *int32 `json:"boardId,omitempty"`
// Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search.
AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"`
// A list of user roles for the answer added by the owner.
AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"`
// A list of user roles for the answer removed by the owner.
RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"`
// A list of roles for this answer explicitly granted by an owner, editor, or admin.
Roles []UserRoleSpecification `json:"roles,omitempty"`
SourceDocumentSpec *DocumentSpec `json:"sourceDocumentSpec,omitempty"`
// IDs of collections to which a document is added.
AddedCollections []int32 `json:"addedCollections,omitempty"`
CombinedAnswerText *StructuredTextMutableProperties `json:"combinedAnswerText,omitempty"`
}
AnswerCreationData struct for AnswerCreationData
Functions
func NewAnswerCreationData() *AnswerCreationData
NewAnswerCreationData instantiates a new AnswerCreationData 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 NewAnswerCreationDataWithDefaults() *AnswerCreationData
NewAnswerCreationDataWithDefaults instantiates a new AnswerCreationData 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
Methods
func (o *AnswerCreationData) GetAddedCollections() []int32
GetAddedCollections returns the AddedCollections field value if set, zero value otherwise.
func (o *AnswerCreationData) GetAddedCollectionsOk() ([]int32, bool)
GetAddedCollectionsOk returns a tuple with the AddedCollections field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) GetAddedRoles() []UserRoleSpecification
GetAddedRoles returns the AddedRoles field value if set, zero value otherwise.
func (o *AnswerCreationData) GetAddedRolesOk() ([]UserRoleSpecification, bool)
GetAddedRolesOk returns a tuple with the AddedRoles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) GetAudienceFilters() []FacetFilter
GetAudienceFilters returns the AudienceFilters field value if set, zero value otherwise.
func (o *AnswerCreationData) GetAudienceFiltersOk() ([]FacetFilter, bool)
GetAudienceFiltersOk returns a tuple with the AudienceFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) GetBoardId() int32
GetBoardId returns the BoardId field value if set, zero value otherwise.
func (o *AnswerCreationData) GetBoardIdOk() (*int32, bool)
GetBoardIdOk returns a tuple with the BoardId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) GetBodyText() string
GetBodyText returns the BodyText field value if set, zero value otherwise.
func (o *AnswerCreationData) GetBodyTextOk() (*string, bool)
GetBodyTextOk returns a tuple with the BodyText field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) GetCombinedAnswerText() StructuredTextMutableProperties
GetCombinedAnswerText returns the CombinedAnswerText field value if set, zero value otherwise.
func (o *AnswerCreationData) GetCombinedAnswerTextOk() (*StructuredTextMutableProperties, bool)
GetCombinedAnswerTextOk returns a tuple with the CombinedAnswerText field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) GetQuestion() string
GetQuestion returns the Question field value if set, zero value otherwise.
func (o *AnswerCreationData) GetQuestionOk() (*string, bool)
GetQuestionOk returns a tuple with the Question field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) GetQuestionVariations() []string
GetQuestionVariations returns the QuestionVariations field value if set, zero value otherwise.
func (o *AnswerCreationData) GetQuestionVariationsOk() ([]string, bool)
GetQuestionVariationsOk returns a tuple with the QuestionVariations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) GetRemovedRoles() []UserRoleSpecification
GetRemovedRoles returns the RemovedRoles field value if set, zero value otherwise.
func (o *AnswerCreationData) GetRemovedRolesOk() ([]UserRoleSpecification, bool)
GetRemovedRolesOk returns a tuple with the RemovedRoles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) GetRoles() []UserRoleSpecification
GetRoles returns the Roles field value if set, zero value otherwise.
func (o *AnswerCreationData) GetRolesOk() ([]UserRoleSpecification, bool)
GetRolesOk returns a tuple with the Roles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) GetSourceDocumentSpec() DocumentSpec
GetSourceDocumentSpec returns the SourceDocumentSpec field value if set, zero value otherwise.
func (o *AnswerCreationData) GetSourceDocumentSpecOk() (*DocumentSpec, bool)
GetSourceDocumentSpecOk returns a tuple with the SourceDocumentSpec field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationData) HasAddedCollections() bool
HasAddedCollections returns a boolean if a field has been set.
func (o *AnswerCreationData) HasAddedRoles() bool
HasAddedRoles returns a boolean if a field has been set.
func (o *AnswerCreationData) HasAudienceFilters() bool
HasAudienceFilters returns a boolean if a field has been set.
func (o *AnswerCreationData) HasBoardId() bool
HasBoardId returns a boolean if a field has been set.
func (o *AnswerCreationData) HasBodyText() bool
HasBodyText returns a boolean if a field has been set.
func (o *AnswerCreationData) HasCombinedAnswerText() bool
HasCombinedAnswerText returns a boolean if a field has been set.
func (o *AnswerCreationData) HasQuestion() bool
HasQuestion returns a boolean if a field has been set.
func (o *AnswerCreationData) HasQuestionVariations() bool
HasQuestionVariations returns a boolean if a field has been set.
func (o *AnswerCreationData) HasRemovedRoles() bool
HasRemovedRoles returns a boolean if a field has been set.
func (o *AnswerCreationData) HasRoles() bool
HasRoles returns a boolean if a field has been set.
func (o *AnswerCreationData) HasSourceDocumentSpec() bool
HasSourceDocumentSpec returns a boolean if a field has been set.
func (o AnswerCreationData) MarshalJSON() ([]byte, error)
func (o *AnswerCreationData) SetAddedCollections(v []int32)
SetAddedCollections gets a reference to the given []int32 and assigns it to the AddedCollections field.
func (o *AnswerCreationData) SetAddedRoles(v []UserRoleSpecification)
SetAddedRoles gets a reference to the given []UserRoleSpecification and assigns it to the AddedRoles field.
func (o *AnswerCreationData) SetAudienceFilters(v []FacetFilter)
SetAudienceFilters gets a reference to the given []FacetFilter and assigns it to the AudienceFilters field.
func (o *AnswerCreationData) SetBoardId(v int32)
SetBoardId gets a reference to the given int32 and assigns it to the BoardId field.
func (o *AnswerCreationData) SetBodyText(v string)
SetBodyText gets a reference to the given string and assigns it to the BodyText field.
func (o *AnswerCreationData) SetCombinedAnswerText(v StructuredTextMutableProperties)
SetCombinedAnswerText gets a reference to the given StructuredTextMutableProperties and assigns it to the CombinedAnswerText field.
func (o *AnswerCreationData) SetQuestion(v string)
SetQuestion gets a reference to the given string and assigns it to the Question field.
func (o *AnswerCreationData) SetQuestionVariations(v []string)
SetQuestionVariations gets a reference to the given []string and assigns it to the QuestionVariations field.
func (o *AnswerCreationData) SetRemovedRoles(v []UserRoleSpecification)
SetRemovedRoles gets a reference to the given []UserRoleSpecification and assigns it to the RemovedRoles field.
func (o *AnswerCreationData) SetRoles(v []UserRoleSpecification)
SetRoles gets a reference to the given []UserRoleSpecification and assigns it to the Roles field.
func (o *AnswerCreationData) SetSourceDocumentSpec(v DocumentSpec)
SetSourceDocumentSpec gets a reference to the given DocumentSpec and assigns it to the SourceDocumentSpec field.
func (o AnswerCreationData) ToMap() (map[string]interface{}, error)
Type AnswerCreationDataAllOf
type AnswerCreationDataAllOf struct {
CombinedAnswerText *StructuredTextMutableProperties `json:"combinedAnswerText,omitempty"`
}
AnswerCreationDataAllOf struct for AnswerCreationDataAllOf
Functions
func NewAnswerCreationDataAllOf() *AnswerCreationDataAllOf
NewAnswerCreationDataAllOf instantiates a new AnswerCreationDataAllOf 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 NewAnswerCreationDataAllOfWithDefaults() *AnswerCreationDataAllOf
NewAnswerCreationDataAllOfWithDefaults instantiates a new AnswerCreationDataAllOf 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
Methods
func (o *AnswerCreationDataAllOf) GetCombinedAnswerText() StructuredTextMutableProperties
GetCombinedAnswerText returns the CombinedAnswerText field value if set, zero value otherwise.
func (o *AnswerCreationDataAllOf) GetCombinedAnswerTextOk() (*StructuredTextMutableProperties, bool)
GetCombinedAnswerTextOk returns a tuple with the CombinedAnswerText field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerCreationDataAllOf) HasCombinedAnswerText() bool
HasCombinedAnswerText returns a boolean if a field has been set.
func (o AnswerCreationDataAllOf) MarshalJSON() ([]byte, error)
func (o *AnswerCreationDataAllOf) SetCombinedAnswerText(v StructuredTextMutableProperties)
SetCombinedAnswerText gets a reference to the given StructuredTextMutableProperties and assigns it to the CombinedAnswerText field.
func (o AnswerCreationDataAllOf) ToMap() (map[string]interface{}, error)
Type AnswerDocId
type AnswerDocId struct {
// Internal document id of the answer. We support using the document id for cases where the client doesn't have the integer id available. If both are available, using the integer id is preferred.
DocId *string `json:"docId,omitempty"`
}
AnswerDocId struct for AnswerDocId
Functions
func NewAnswerDocId() *AnswerDocId
NewAnswerDocId instantiates a new AnswerDocId 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 NewAnswerDocIdWithDefaults() *AnswerDocId
NewAnswerDocIdWithDefaults instantiates a new AnswerDocId 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
Methods
func (o *AnswerDocId) GetDocId() string
GetDocId returns the DocId field value if set, zero value otherwise.
func (o *AnswerDocId) GetDocIdOk() (*string, bool)
GetDocIdOk returns a tuple with the DocId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerDocId) HasDocId() bool
HasDocId returns a boolean if a field has been set.
func (o AnswerDocId) MarshalJSON() ([]byte, error)
func (o *AnswerDocId) SetDocId(v string)
SetDocId gets a reference to the given string and assigns it to the DocId field.
func (o AnswerDocId) ToMap() (map[string]interface{}, error)
Type AnswerId
type AnswerId struct {
// The opaque id of the answer.
Id *int32 `json:"id,omitempty"`
}
AnswerId struct for AnswerId
Functions
func NewAnswerId() *AnswerId
NewAnswerId instantiates a new AnswerId 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 NewAnswerIdWithDefaults() *AnswerId
NewAnswerIdWithDefaults instantiates a new AnswerId 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
Methods
func (o *AnswerId) GetId() int32
GetId returns the Id field value if set, zero value otherwise.
func (o *AnswerId) GetIdOk() (*int32, 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 *AnswerId) HasId() bool
HasId returns a boolean if a field has been set.
func (o AnswerId) MarshalJSON() ([]byte, error)
func (o *AnswerId) SetId(v int32)
SetId gets a reference to the given int32 and assigns it to the Id field.
func (o AnswerId) ToMap() (map[string]interface{}, error)
Type AnswerLike
type AnswerLike struct {
User *Person `json:"user,omitempty"`
// The time the user liked the answer in ISO format (ISO 8601).
CreateTime *time.Time `json:"createTime,omitempty"`
}
AnswerLike struct for AnswerLike
Functions
func NewAnswerLike() *AnswerLike
NewAnswerLike instantiates a new AnswerLike 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 NewAnswerLikeWithDefaults() *AnswerLike
NewAnswerLikeWithDefaults instantiates a new AnswerLike 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
Methods
func (o *AnswerLike) GetCreateTime() time.Time
GetCreateTime returns the CreateTime field value if set, zero value otherwise.
func (o *AnswerLike) GetCreateTimeOk() (*time.Time, bool)
GetCreateTimeOk returns a tuple with the CreateTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerLike) GetUser() Person
GetUser returns the User field value if set, zero value otherwise.
func (o *AnswerLike) GetUserOk() (*Person, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerLike) HasCreateTime() bool
HasCreateTime returns a boolean if a field has been set.
func (o *AnswerLike) HasUser() bool
HasUser returns a boolean if a field has been set.
func (o AnswerLike) MarshalJSON() ([]byte, error)
func (o *AnswerLike) SetCreateTime(v time.Time)
SetCreateTime gets a reference to the given time.Time and assigns it to the CreateTime field.
func (o *AnswerLike) SetUser(v Person)
SetUser gets a reference to the given Person and assigns it to the User field.
func (o AnswerLike) ToMap() (map[string]interface{}, error)
Type AnswerLikes
type AnswerLikes struct {
LikedBy []AnswerLike `json:"likedBy"`
// Whether the user in context liked the answer.
LikedByUser bool `json:"likedByUser"`
// The total number of likes for the answer.
NumLikes int32 `json:"numLikes"`
}
AnswerLikes struct for AnswerLikes
Functions
func NewAnswerLikes(likedBy []AnswerLike, likedByUser bool, numLikes int32) *AnswerLikes
NewAnswerLikes instantiates a new AnswerLikes 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 NewAnswerLikesWithDefaults() *AnswerLikes
NewAnswerLikesWithDefaults instantiates a new AnswerLikes 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
Methods
func (o *AnswerLikes) GetLikedBy() []AnswerLike
GetLikedBy returns the LikedBy field value
func (o *AnswerLikes) GetLikedByOk() ([]AnswerLike, bool)
GetLikedByOk returns a tuple with the LikedBy field value and a boolean to check if the value has been set.
func (o *AnswerLikes) GetLikedByUser() bool
GetLikedByUser returns the LikedByUser field value
func (o *AnswerLikes) GetLikedByUserOk() (*bool, bool)
GetLikedByUserOk returns a tuple with the LikedByUser field value and a boolean to check if the value has been set.
func (o *AnswerLikes) GetNumLikes() int32
GetNumLikes returns the NumLikes field value
func (o *AnswerLikes) GetNumLikesOk() (*int32, bool)
GetNumLikesOk returns a tuple with the NumLikes field value and a boolean to check if the value has been set.
func (o AnswerLikes) MarshalJSON() ([]byte, error)
func (o *AnswerLikes) SetLikedBy(v []AnswerLike)
SetLikedBy sets field value
func (o *AnswerLikes) SetLikedByUser(v bool)
SetLikedByUser sets field value
func (o *AnswerLikes) SetNumLikes(v int32)
SetNumLikes sets field value
func (o AnswerLikes) ToMap() (map[string]interface{}, error)
Type AnswerMutableProperties
type AnswerMutableProperties struct {
Question *string `json:"question,omitempty"`
// Additional ways of phrasing this question.
QuestionVariations []string `json:"questionVariations,omitempty"`
// The plain text answer to the question.
BodyText *string `json:"bodyText,omitempty"`
// The parent board ID of this Answer, or 0 if it's a floating Answer.
BoardId *int32 `json:"boardId,omitempty"`
// Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search.
AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"`
// A list of user roles for the answer added by the owner.
AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"`
// A list of user roles for the answer removed by the owner.
RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"`
// A list of roles for this answer explicitly granted by an owner, editor, or admin.
Roles []UserRoleSpecification `json:"roles,omitempty"`
SourceDocumentSpec *DocumentSpec `json:"sourceDocumentSpec,omitempty"`
}
AnswerMutableProperties struct for AnswerMutableProperties
Functions
func NewAnswerMutableProperties() *AnswerMutableProperties
NewAnswerMutableProperties instantiates a new AnswerMutableProperties 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 NewAnswerMutablePropertiesWithDefaults() *AnswerMutableProperties
NewAnswerMutablePropertiesWithDefaults instantiates a new AnswerMutableProperties 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
Methods
func (o *AnswerMutableProperties) GetAddedRoles() []UserRoleSpecification
GetAddedRoles returns the AddedRoles field value if set, zero value otherwise.
func (o *AnswerMutableProperties) GetAddedRolesOk() ([]UserRoleSpecification, bool)
GetAddedRolesOk returns a tuple with the AddedRoles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerMutableProperties) GetAudienceFilters() []FacetFilter
GetAudienceFilters returns the AudienceFilters field value if set, zero value otherwise.
func (o *AnswerMutableProperties) GetAudienceFiltersOk() ([]FacetFilter, bool)
GetAudienceFiltersOk returns a tuple with the AudienceFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerMutableProperties) GetBoardId() int32
GetBoardId returns the BoardId field value if set, zero value otherwise.
func (o *AnswerMutableProperties) GetBoardIdOk() (*int32, bool)
GetBoardIdOk returns a tuple with the BoardId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerMutableProperties) GetBodyText() string
GetBodyText returns the BodyText field value if set, zero value otherwise.
func (o *AnswerMutableProperties) GetBodyTextOk() (*string, bool)
GetBodyTextOk returns a tuple with the BodyText field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerMutableProperties) GetQuestion() string
GetQuestion returns the Question field value if set, zero value otherwise.
func (o *AnswerMutableProperties) GetQuestionOk() (*string, bool)
GetQuestionOk returns a tuple with the Question field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerMutableProperties) GetQuestionVariations() []string
GetQuestionVariations returns the QuestionVariations field value if set, zero value otherwise.
func (o *AnswerMutableProperties) GetQuestionVariationsOk() ([]string, bool)
GetQuestionVariationsOk returns a tuple with the QuestionVariations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerMutableProperties) GetRemovedRoles() []UserRoleSpecification
GetRemovedRoles returns the RemovedRoles field value if set, zero value otherwise.
func (o *AnswerMutableProperties) GetRemovedRolesOk() ([]UserRoleSpecification, bool)
GetRemovedRolesOk returns a tuple with the RemovedRoles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerMutableProperties) GetRoles() []UserRoleSpecification
GetRoles returns the Roles field value if set, zero value otherwise.
func (o *AnswerMutableProperties) GetRolesOk() ([]UserRoleSpecification, bool)
GetRolesOk returns a tuple with the Roles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerMutableProperties) GetSourceDocumentSpec() DocumentSpec
GetSourceDocumentSpec returns the SourceDocumentSpec field value if set, zero value otherwise.
func (o *AnswerMutableProperties) GetSourceDocumentSpecOk() (*DocumentSpec, bool)
GetSourceDocumentSpecOk returns a tuple with the SourceDocumentSpec field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerMutableProperties) HasAddedRoles() bool
HasAddedRoles returns a boolean if a field has been set.
func (o *AnswerMutableProperties) HasAudienceFilters() bool
HasAudienceFilters returns a boolean if a field has been set.
func (o *AnswerMutableProperties) HasBoardId() bool
HasBoardId returns a boolean if a field has been set.
func (o *AnswerMutableProperties) HasBodyText() bool
HasBodyText returns a boolean if a field has been set.
func (o *AnswerMutableProperties) HasQuestion() bool
HasQuestion returns a boolean if a field has been set.
func (o *AnswerMutableProperties) HasQuestionVariations() bool
HasQuestionVariations returns a boolean if a field has been set.
func (o *AnswerMutableProperties) HasRemovedRoles() bool
HasRemovedRoles returns a boolean if a field has been set.
func (o *AnswerMutableProperties) HasRoles() bool
HasRoles returns a boolean if a field has been set.
func (o *AnswerMutableProperties) HasSourceDocumentSpec() bool
HasSourceDocumentSpec returns a boolean if a field has been set.
func (o AnswerMutableProperties) MarshalJSON() ([]byte, error)
func (o *AnswerMutableProperties) SetAddedRoles(v []UserRoleSpecification)
SetAddedRoles gets a reference to the given []UserRoleSpecification and assigns it to the AddedRoles field.
func (o *AnswerMutableProperties) SetAudienceFilters(v []FacetFilter)
SetAudienceFilters gets a reference to the given []FacetFilter and assigns it to the AudienceFilters field.
func (o *AnswerMutableProperties) SetBoardId(v int32)
SetBoardId gets a reference to the given int32 and assigns it to the BoardId field.
func (o *AnswerMutableProperties) SetBodyText(v string)
SetBodyText gets a reference to the given string and assigns it to the BodyText field.
func (o *AnswerMutableProperties) SetQuestion(v string)
SetQuestion gets a reference to the given string and assigns it to the Question field.
func (o *AnswerMutableProperties) SetQuestionVariations(v []string)
SetQuestionVariations gets a reference to the given []string and assigns it to the QuestionVariations field.
func (o *AnswerMutableProperties) SetRemovedRoles(v []UserRoleSpecification)
SetRemovedRoles gets a reference to the given []UserRoleSpecification and assigns it to the RemovedRoles field.
func (o *AnswerMutableProperties) SetRoles(v []UserRoleSpecification)
SetRoles gets a reference to the given []UserRoleSpecification and assigns it to the Roles field.
func (o *AnswerMutableProperties) SetSourceDocumentSpec(v DocumentSpec)
SetSourceDocumentSpec gets a reference to the given DocumentSpec and assigns it to the SourceDocumentSpec field.
func (o AnswerMutableProperties) ToMap() (map[string]interface{}, error)
Type AnswerResult
type AnswerResult struct {
Answer Answer `json:"answer"`
// An opaque token that represents this particular answer. To be used for /feedback reporting.
TrackingToken *string `json:"trackingToken,omitempty"`
}
AnswerResult struct for AnswerResult
Functions
func NewAnswerResult(answer Answer) *AnswerResult
NewAnswerResult instantiates a new AnswerResult 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 NewAnswerResultWithDefaults() *AnswerResult
NewAnswerResultWithDefaults instantiates a new AnswerResult 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
Methods
func (o *AnswerResult) GetAnswer() Answer
GetAnswer returns the Answer field value
func (o *AnswerResult) GetAnswerOk() (*Answer, bool)
GetAnswerOk returns a tuple with the Answer field value and a boolean to check if the value has been set.
func (o *AnswerResult) GetTrackingToken() string
GetTrackingToken returns the TrackingToken field value if set, zero value otherwise.
func (o *AnswerResult) GetTrackingTokenOk() (*string, bool)
GetTrackingTokenOk returns a tuple with the TrackingToken field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AnswerResult) HasTrackingToken() bool
HasTrackingToken returns a boolean if a field has been set.
func (o AnswerResult) MarshalJSON() ([]byte, error)
func (o *AnswerResult) SetAnswer(v Answer)
SetAnswer sets field value
func (o *AnswerResult) SetTrackingToken(v string)
SetTrackingToken gets a reference to the given string and assigns it to the TrackingToken field.
func (o AnswerResult) ToMap() (map[string]interface{}, error)
Type AnswersApiService
type AnswersApiService service
AnswersApiService AnswersApi service
Methods
func (a *AnswersApiService) Createanswer(ctx context.Context) ApiCreateanswerRequest
Createanswer Create answer
Creates a user-generated answer that contains a question and answer.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateanswerRequest
func (a *AnswersApiService) CreateanswerExecute(r ApiCreateanswerRequest) (*Answer, *http.Response, error)
Execute executes the request
@return Answer
func (a *AnswersApiService) Deleteanswer(ctx context.Context) ApiDeleteanswerRequest
Deleteanswer Delete answer
Deletes an existing user-generated answer.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDeleteanswerRequest
func (a *AnswersApiService) DeleteanswerExecute(r ApiDeleteanswerRequest) (*http.Response, error)
Execute executes the request
func (a *AnswersApiService) Editanswer(ctx context.Context) ApiEditanswerRequest
Editanswer Edit answer
Edits an existing user-generated answer.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiEditanswerRequest
func (a *AnswersApiService) EditanswerExecute(r ApiEditanswerRequest) (*Answer, *http.Response, error)
Execute executes the request
@return Answer
func (a *AnswersApiService) Listanswers(ctx context.Context) ApiListanswersRequest
Listanswers List answers created by the authed user
Lists answers created by the authed user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListanswersRequest
func (a *AnswersApiService) ListanswersExecute(r ApiListanswersRequest) (*ListAnswersResponse, *http.Response, error)
Execute executes the request
@return ListAnswersResponse
Type ApiActivityRequest
type ApiActivityRequest struct {
ApiService *ActivityApiService
// contains filtered or unexported fields
}
Methods
func (r ApiActivityRequest) Execute() (*http.Response, error)
func (r ApiActivityRequest) Payload(payload Activity) ApiActivityRequest
Type ApiAddcredentialRequest
type ApiAddcredentialRequest struct {
ApiService *UserApiService
// contains filtered or unexported fields
}
Methods
func (r ApiAddcredentialRequest) Actas(actas string) ApiAddcredentialRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiAddcredentialRequest) ClientVersion(clientVersion string) ApiAddcredentialRequest
The version of the client making the request.
func (r ApiAddcredentialRequest) Domain(domain string) ApiAddcredentialRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiAddcredentialRequest) Eids(eids []int64) ApiAddcredentialRequest
List of experiment ids to force for incoming request.
func (r ApiAddcredentialRequest) Execute() (*http.Response, error)
func (r ApiAddcredentialRequest) Payload(payload AddCredentialRequest) ApiAddcredentialRequest
Credential content
Type ApiAddverificationreminderRequest
type ApiAddverificationreminderRequest struct {
ApiService *VerificationApiService
// contains filtered or unexported fields
}
Methods
func (r ApiAddverificationreminderRequest) ClientVersion(clientVersion string) ApiAddverificationreminderRequest
The version of the client making the request.
func (r ApiAddverificationreminderRequest) Domain(domain string) ApiAddverificationreminderRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiAddverificationreminderRequest) Eids(eids []int64) ApiAddverificationreminderRequest
List of experiment ids to force for incoming request.
func (r ApiAddverificationreminderRequest) Execute() (*Verification, *http.Response, error)
func (r ApiAddverificationreminderRequest) Payload(payload ReminderRequest) ApiAddverificationreminderRequest
Details about the reminder.
Type ApiAutocompleteRequest
type ApiAutocompleteRequest struct {
ApiService *SearchApiService
// contains filtered or unexported fields
}
Methods
func (r ApiAutocompleteRequest) Actas(actas string) ApiAutocompleteRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiAutocompleteRequest) ClientVersion(clientVersion string) ApiAutocompleteRequest
The version of the client making the request.
func (r ApiAutocompleteRequest) Domain(domain string) ApiAutocompleteRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiAutocompleteRequest) Eids(eids []int64) ApiAutocompleteRequest
List of experiment ids to force for incoming request.
func (r ApiAutocompleteRequest) Execute() (*AutocompleteResponse, *http.Response, error)
func (r ApiAutocompleteRequest) Payload(payload AutocompleteRequest) ApiAutocompleteRequest
Autocomplete request
Type ApiConfigRequest
type ApiConfigRequest struct {
ApiService *UserApiService
// contains filtered or unexported fields
}
Methods
func (r ApiConfigRequest) Actas(actas string) ApiConfigRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiConfigRequest) ClientVersion(clientVersion string) ApiConfigRequest
The version of the client making the request.
func (r ApiConfigRequest) Domain(domain string) ApiConfigRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiConfigRequest) Eids(eids []int64) ApiConfigRequest
List of experiment ids to force for incoming request.
func (r ApiConfigRequest) Execute() (*ConfigResponse, *http.Response, error)
func (r ApiConfigRequest) Payload(payload ConfigRequest) ApiConfigRequest
Config request
Type ApiCreateannouncementRequest
type ApiCreateannouncementRequest struct {
ApiService *AnnouncementsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiCreateannouncementRequest) Actas(actas string) ApiCreateannouncementRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiCreateannouncementRequest) ClientVersion(clientVersion string) ApiCreateannouncementRequest
The version of the client making the request.
func (r ApiCreateannouncementRequest) Domain(domain string) ApiCreateannouncementRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiCreateannouncementRequest) Eids(eids []int64) ApiCreateannouncementRequest
List of experiment ids to force for incoming request.
func (r ApiCreateannouncementRequest) Execute() (*Announcement, *http.Response, error)
func (r ApiCreateannouncementRequest) Payload(payload CreateAnnouncementRequest) ApiCreateannouncementRequest
Announcement content
Type ApiCreateanswerRequest
type ApiCreateanswerRequest struct {
ApiService *AnswersApiService
// contains filtered or unexported fields
}
Methods
func (r ApiCreateanswerRequest) Actas(actas string) ApiCreateanswerRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiCreateanswerRequest) ClientVersion(clientVersion string) ApiCreateanswerRequest
The version of the client making the request.
func (r ApiCreateanswerRequest) Domain(domain string) ApiCreateanswerRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiCreateanswerRequest) Eids(eids []int64) ApiCreateanswerRequest
List of experiment ids to force for incoming request.
func (r ApiCreateanswerRequest) Execute() (*Answer, *http.Response, error)
func (r ApiCreateanswerRequest) Payload(payload CreateAnswerRequest) ApiCreateanswerRequest
CreateAnswer request
Type ApiCreateanswerboardRequest
type ApiCreateanswerboardRequest struct {
ApiService *AnswerBoardsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiCreateanswerboardRequest) Actas(actas string) ApiCreateanswerboardRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiCreateanswerboardRequest) ClientVersion(clientVersion string) ApiCreateanswerboardRequest
The version of the client making the request.
func (r ApiCreateanswerboardRequest) Domain(domain string) ApiCreateanswerboardRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiCreateanswerboardRequest) Eids(eids []int64) ApiCreateanswerboardRequest
List of experiment ids to force for incoming request.
func (r ApiCreateanswerboardRequest) Execute() (*CreateAnswerBoardResponse, *http.Response, error)
func (r ApiCreateanswerboardRequest) Payload(payload CreateAnswerBoardRequest) ApiCreateanswerboardRequest
Answer Board content plus any additional metadata for the request.
Type ApiCreateauthtokenRequest
type ApiCreateauthtokenRequest struct {
ApiService *AuthenticationApiService
// contains filtered or unexported fields
}
Methods
func (r ApiCreateauthtokenRequest) Execute() (*CreateAuthTokenResponse, *http.Response, error)
Type ApiCreatecollectionRequest
type ApiCreatecollectionRequest struct {
ApiService *CollectionsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiCreatecollectionRequest) Actas(actas string) ApiCreatecollectionRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiCreatecollectionRequest) ClientVersion(clientVersion string) ApiCreatecollectionRequest
The version of the client making the request.
func (r ApiCreatecollectionRequest) Domain(domain string) ApiCreatecollectionRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiCreatecollectionRequest) Eids(eids []int64) ApiCreatecollectionRequest
List of experiment ids to force for incoming request.
func (r ApiCreatecollectionRequest) Execute() (*CreateCollectionResponse, *http.Response, error)
func (r ApiCreatecollectionRequest) Payload(payload CreateCollectionRequest) ApiCreatecollectionRequest
Collection content plus any additional metadata for the request.
Type ApiCreatedisplayablelistsRequest
type ApiCreatedisplayablelistsRequest struct {
ApiService *DisplayableListsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiCreatedisplayablelistsRequest) ClientVersion(clientVersion string) ApiCreatedisplayablelistsRequest
The version of the client making the request.
func (r ApiCreatedisplayablelistsRequest) Domain(domain string) ApiCreatedisplayablelistsRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiCreatedisplayablelistsRequest) Eids(eids []int64) ApiCreatedisplayablelistsRequest
List of experiment ids to force for incoming request.
func (r ApiCreatedisplayablelistsRequest) Execute() (*CreateDisplayableListsResponse, *http.Response, error)
func (r ApiCreatedisplayablelistsRequest) Payload(payload CreateDisplayableListsRequest) ApiCreatedisplayablelistsRequest
Create new displayable lists
Type ApiCreateshortcutRequest
type ApiCreateshortcutRequest struct {
ApiService *ShortcutsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiCreateshortcutRequest) Actas(actas string) ApiCreateshortcutRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiCreateshortcutRequest) ClientVersion(clientVersion string) ApiCreateshortcutRequest
The version of the client making the request.
func (r ApiCreateshortcutRequest) Domain(domain string) ApiCreateshortcutRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiCreateshortcutRequest) Eids(eids []int64) ApiCreateshortcutRequest
List of experiment ids to force for incoming request.
func (r ApiCreateshortcutRequest) Execute() (*CreateShortcutResponse, *http.Response, error)
func (r ApiCreateshortcutRequest) Payload(payload CreateShortcutRequest) ApiCreateshortcutRequest
CreateShortcut request
Type ApiDeleteannouncementRequest
type ApiDeleteannouncementRequest struct {
ApiService *AnnouncementsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiDeleteannouncementRequest) Actas(actas string) ApiDeleteannouncementRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiDeleteannouncementRequest) ClientVersion(clientVersion string) ApiDeleteannouncementRequest
The version of the client making the request.
func (r ApiDeleteannouncementRequest) Domain(domain string) ApiDeleteannouncementRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiDeleteannouncementRequest) Eids(eids []int64) ApiDeleteannouncementRequest
List of experiment ids to force for incoming request.
func (r ApiDeleteannouncementRequest) Execute() (*http.Response, error)
func (r ApiDeleteannouncementRequest) Payload(payload DeleteAnnouncementRequest) ApiDeleteannouncementRequest
Delete announcement request
Type ApiDeleteanswerRequest
type ApiDeleteanswerRequest struct {
ApiService *AnswersApiService
// contains filtered or unexported fields
}
Methods
func (r ApiDeleteanswerRequest) Actas(actas string) ApiDeleteanswerRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiDeleteanswerRequest) ClientVersion(clientVersion string) ApiDeleteanswerRequest
The version of the client making the request.
func (r ApiDeleteanswerRequest) Domain(domain string) ApiDeleteanswerRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiDeleteanswerRequest) Eids(eids []int64) ApiDeleteanswerRequest
List of experiment ids to force for incoming request.
func (r ApiDeleteanswerRequest) Execute() (*http.Response, error)
func (r ApiDeleteanswerRequest) Payload(payload DeleteAnswerRequest) ApiDeleteanswerRequest
DeleteAnswer request
Type ApiDeleteanswerboardsRequest
type ApiDeleteanswerboardsRequest struct {
ApiService *AnswerBoardsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiDeleteanswerboardsRequest) Actas(actas string) ApiDeleteanswerboardsRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiDeleteanswerboardsRequest) ClientVersion(clientVersion string) ApiDeleteanswerboardsRequest
The version of the client making the request.
func (r ApiDeleteanswerboardsRequest) Domain(domain string) ApiDeleteanswerboardsRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiDeleteanswerboardsRequest) Eids(eids []int64) ApiDeleteanswerboardsRequest
List of experiment ids to force for incoming request.
func (r ApiDeleteanswerboardsRequest) Execute() (*DeleteAnswerBoardsResponse, *http.Response, error)
func (r ApiDeleteanswerboardsRequest) Payload(payload DeleteAnswerBoardsRequest) ApiDeleteanswerboardsRequest
DeleteAnswerBoards request
Type ApiDeletedisplayablelistsRequest
type ApiDeletedisplayablelistsRequest struct {
ApiService *DisplayableListsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiDeletedisplayablelistsRequest) ClientVersion(clientVersion string) ApiDeletedisplayablelistsRequest
The version of the client making the request.
func (r ApiDeletedisplayablelistsRequest) Domain(domain string) ApiDeletedisplayablelistsRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiDeletedisplayablelistsRequest) Eids(eids []int64) ApiDeletedisplayablelistsRequest
List of experiment ids to force for incoming request.
func (r ApiDeletedisplayablelistsRequest) Execute() (*http.Response, error)
func (r ApiDeletedisplayablelistsRequest) Payload(payload DeleteDisplayableListsRequest) ApiDeletedisplayablelistsRequest
Updated version of the displayable list configs.
Type ApiEditanswerRequest
type ApiEditanswerRequest struct {
ApiService *AnswersApiService
// contains filtered or unexported fields
}
Methods
func (r ApiEditanswerRequest) Actas(actas string) ApiEditanswerRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiEditanswerRequest) ClientVersion(clientVersion string) ApiEditanswerRequest
The version of the client making the request.
func (r ApiEditanswerRequest) Domain(domain string) ApiEditanswerRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiEditanswerRequest) Eids(eids []int64) ApiEditanswerRequest
List of experiment ids to force for incoming request.
func (r ApiEditanswerRequest) Execute() (*Answer, *http.Response, error)
func (r ApiEditanswerRequest) Payload(payload EditAnswerRequest) ApiEditanswerRequest
EditAnswer request
Type ApiEditanswerboardRequest
type ApiEditanswerboardRequest struct {
ApiService *AnswerBoardsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiEditanswerboardRequest) Actas(actas string) ApiEditanswerboardRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiEditanswerboardRequest) ClientVersion(clientVersion string) ApiEditanswerboardRequest
The version of the client making the request.
func (r ApiEditanswerboardRequest) Domain(domain string) ApiEditanswerboardRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiEditanswerboardRequest) Eids(eids []int64) ApiEditanswerboardRequest
List of experiment ids to force for incoming request.
func (r ApiEditanswerboardRequest) Execute() (*EditAnswerBoardResponse, *http.Response, error)
func (r ApiEditanswerboardRequest) Payload(payload EditAnswerBoardRequest) ApiEditanswerboardRequest
Answer Board content plus any additional metadata for the request.
Type ApiEditpermissionsRequest
type ApiEditpermissionsRequest struct {
ApiService *PermissionsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiEditpermissionsRequest) Actas(actas string) ApiEditpermissionsRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiEditpermissionsRequest) ClientVersion(clientVersion string) ApiEditpermissionsRequest
The version of the client making the request.
func (r ApiEditpermissionsRequest) Domain(domain string) ApiEditpermissionsRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiEditpermissionsRequest) Eids(eids []int64) ApiEditpermissionsRequest
List of experiment ids to force for incoming request.
func (r ApiEditpermissionsRequest) Execute() (*EditPermissionsResponse, *http.Response, error)
func (r ApiEditpermissionsRequest) Payload(payload EditPermissionsRequest) ApiEditpermissionsRequest
Permissions
Type ApiEditpinRequest
type ApiEditpinRequest struct {
ApiService *PinsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiEditpinRequest) ClientVersion(clientVersion string) ApiEditpinRequest
The version of the client making the request.
func (r ApiEditpinRequest) Domain(domain string) ApiEditpinRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiEditpinRequest) Eids(eids []int64) ApiEditpinRequest
List of experiment ids to force for incoming request.
func (r ApiEditpinRequest) Execute() (*PinDocument, *http.Response, error)
func (r ApiEditpinRequest) Payload(payload EditPinRequest) ApiEditpinRequest
Edit pins request
Type ApiFeedbackRequest
type ApiFeedbackRequest struct {
ApiService *ActivityApiService
// contains filtered or unexported fields
}
Methods
func (r ApiFeedbackRequest) Actas(actas string) ApiFeedbackRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiFeedbackRequest) ClientVersion(clientVersion string) ApiFeedbackRequest
The version of the client making the request.
func (r ApiFeedbackRequest) Domain(domain string) ApiFeedbackRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiFeedbackRequest) Execute() (*http.Response, error)
func (r ApiFeedbackRequest) Feedback(feedback string) ApiFeedbackRequest
A URL encoded versions of Feedback. This is useful for requests.
func (r ApiFeedbackRequest) Payload(payload Feedback) ApiFeedbackRequest
Type ApiGetanswerboardRequest
type ApiGetanswerboardRequest struct {
ApiService *AnswerBoardsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiGetanswerboardRequest) Actas(actas string) ApiGetanswerboardRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiGetanswerboardRequest) ClientVersion(clientVersion string) ApiGetanswerboardRequest
The version of the client making the request.
func (r ApiGetanswerboardRequest) Domain(domain string) ApiGetanswerboardRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiGetanswerboardRequest) Eids(eids []int64) ApiGetanswerboardRequest
List of experiment ids to force for incoming request.
func (r ApiGetanswerboardRequest) Execute() (*GetAnswerBoardResponse, *http.Response, error)
func (r ApiGetanswerboardRequest) Payload(payload GetAnswerBoardRequest) ApiGetanswerboardRequest
GetAnswerBoard request
Type ApiGetdisplayablelistsRequest
type ApiGetdisplayablelistsRequest struct {
ApiService *DisplayableListsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiGetdisplayablelistsRequest) Actas(actas string) ApiGetdisplayablelistsRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiGetdisplayablelistsRequest) ClientVersion(clientVersion string) ApiGetdisplayablelistsRequest
The version of the client making the request.
func (r ApiGetdisplayablelistsRequest) Domain(domain string) ApiGetdisplayablelistsRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiGetdisplayablelistsRequest) Eids(eids []int64) ApiGetdisplayablelistsRequest
List of experiment ids to force for incoming request.
func (r ApiGetdisplayablelistsRequest) Execute() (*GetDisplayableListsResponse, *http.Response, error)
func (r ApiGetdisplayablelistsRequest) Payload(payload GetDisplayableListsRequest) ApiGetdisplayablelistsRequest
Type ApiGetpinRequest
type ApiGetpinRequest struct {
ApiService *PinsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiGetpinRequest) Actas(actas string) ApiGetpinRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiGetpinRequest) ClientVersion(clientVersion string) ApiGetpinRequest
The version of the client making the request.
func (r ApiGetpinRequest) Domain(domain string) ApiGetpinRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiGetpinRequest) Eids(eids []int64) ApiGetpinRequest
List of experiment ids to force for incoming request.
func (r ApiGetpinRequest) Execute() (*GetPinResponse, *http.Response, error)
func (r ApiGetpinRequest) Payload(payload GetPinRequest) ApiGetpinRequest
Get pin request
Type ApiImagesRequest
type ApiImagesRequest struct {
ApiService *ImagesApiService
// contains filtered or unexported fields
}
Methods
func (r ApiImagesRequest) Cid(cid string) ApiImagesRequest
Content id to differentitate multiple images that can have the same type and datasource e.g. thumnail or image from content of UGC. It can also be empty.
func (r ApiImagesRequest) ClientVersion(clientVersion string) ApiImagesRequest
The version of the client making the request.
func (r ApiImagesRequest) Domain(domain string) ApiImagesRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiImagesRequest) Ds(ds string) ApiImagesRequest
A specific datasource for which an image is requested for. The ds may have different meaning for each type and can also be empty for some.
func (r ApiImagesRequest) Eids(eids []int64) ApiImagesRequest
List of experiment ids to force for incoming request.
func (r ApiImagesRequest) Execute() (*os.File, *http.Response, error)
func (r ApiImagesRequest) Id(id string) ApiImagesRequest
ID, if a specific entity/type is requested. The id may have different meaning for each type. for user, it is user id, for UGC, it is the id of the content, and so on.
func (r ApiImagesRequest) Key(key string) ApiImagesRequest
Primary key for the image being asked. The key is returned by the API when an image is uploaded. If key is used, other parameters should not be used.
func (r ApiImagesRequest) Type_(type_ ImageType) ApiImagesRequest
The type of image requested. Supported values are listed in ImageMetadata.type enum.
Type ApiInsightsRequest
type ApiInsightsRequest struct {
ApiService *InsightsApiService
// contains filtered or unexported fields
}
Methods
func (r ApiInsightsRequest) Actas(actas string) ApiInsightsRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiInsightsRequest) ClientVersion(clientVersion string) ApiInsightsRequest
The version of the client making the request.
func (r ApiInsightsRequest) Domain(domain string) ApiInsightsRequest
The domain of the top-level page in which the client is being run. For embedded search and NSR, it will be the domain of the embedding page. For sidebar, it will be the domain of the embedding page if it's a recognized workplace app. For NTP and app.glean.com requests, it will be empty.
func (r ApiInsightsRequest) Eids(eids []int64) ApiInsightsRequest
List of experiment ids to force for incoming request.
func (r ApiInsightsRequest) Execute() (*InsightsResponse, *http.Response, error)
func (r ApiInsightsRequest) Payload(payload InsightsRequest) ApiInsightsRequest
Includes request params for insights dashboard data.
Type ApiInviteRequest
type ApiInviteRequest struct {
ApiService *UserApiService
// contains filtered or unexported fields
}
Methods
func (r ApiInviteRequest) Actas(actas string) ApiInviteRequest
Email of another user to act as for debugging purposes. Requires sufficient permissions.
func (r ApiInviteRequest) ClientVersion(clientVersion string) ApiInviteRequest