gleansdk

package module
v0.0.0-...-a1bc676 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 22 Imported by: 10

README ΒΆ

Package cloudeng.io/glean/gleansdk

import cloudeng.io/glean/gleansdk

Variables

ContextOAuth2, ContextBasicAuth, ContextAccessToken, ContextAPIKeys, ContextHttpSignatureAuth, ContextServerIndex, ContextOperationServerIndices, ContextServerVariables, ContextOperationServerVariables
// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
ContextOAuth2 = contextKey("token")
// ContextBasicAuth takes BasicAuth as authentication for the request.
ContextBasicAuth = contextKey("basic")
// ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAccessToken = contextKey("accesstoken")
// ContextAPIKeys takes a string apikey as authentication for the request
ContextAPIKeys = contextKey("apiKeys")
// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
ContextHttpSignatureAuth = contextKey("httpsignature")
// ContextServerIndex uses a server configuration from the index.
ContextServerIndex = contextKey("serverIndex")
// ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerIndices = contextKey("serverOperationIndices")
// ContextServerVariables overrides a server configuration variables.
ContextServerVariables = contextKey("serverVariables")
// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextOperationServerVariables = contextKey("serverOperationVariables")

AllowedConnectorTypeEnumValues
AllowedConnectorTypeEnumValues = []ConnectorType{
	"API_CRAWL",
	"BROWSER_CRAWL",
	"BROWSER_HISTORY",
	"BUILTIN",
	"FEDERATED_SEARCH",
	"PUSH_API",
	"WEB_CRAWL",
	"NATIVE_HISTORY",
}

All allowed values of ConnectorType enum

Functions

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

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

Func PtrBool
func PtrBool(v bool) *bool

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

Func PtrFloat32
func PtrFloat32(v float32) *float32

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

Func PtrFloat64
func PtrFloat64(v float64) *float64

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

Func PtrInt
func PtrInt(v int) *int

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

Func PtrInt32
func PtrInt32(v int32) *int32

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

Func PtrInt64
func PtrInt64(v int64) *int64

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

Func PtrString
func PtrString(v string) *string

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

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

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

Types

Type APIClient
type APIClient struct {
	DatasourcesApi *DatasourcesApiService

	DocumentsApi *DocumentsApiService

	PeopleApi *PeopleApiService

	PermissionsApi *PermissionsApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Glean Indexing 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 AdditionalFieldDefinition
type AdditionalFieldDefinition struct {
	// Key to reference this field, e.g. \"languages\".
	Key *string `json:"key,omitempty"`
	// List of type string or HypertextField.  HypertextField is defined as ``` {   anchor: string,    // Anchor text for the hypertext field.   hyperlink: string, // URL for the hypertext field. } ``` Example: ```{\"anchor\":\"Glean\",\"hyperlink\":\"https://glean.com\"}```  When OpenAPI Generator supports oneOf, we will semantically enforce this in the docs.
	Value []map[string]interface{} `json:"value,omitempty"`
}

AdditionalFieldDefinition Additional information about the employee.

Functions
func NewAdditionalFieldDefinition() *AdditionalFieldDefinition

NewAdditionalFieldDefinition instantiates a new AdditionalFieldDefinition 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 NewAdditionalFieldDefinitionWithDefaults() *AdditionalFieldDefinition

NewAdditionalFieldDefinitionWithDefaults instantiates a new AdditionalFieldDefinition 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 *AdditionalFieldDefinition) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (o *AdditionalFieldDefinition) GetKeyOk() (*string, bool)

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

func (o *AdditionalFieldDefinition) GetValue() []map[string]interface{}

GetValue returns the Value field value if set, zero value otherwise.

func (o *AdditionalFieldDefinition) GetValueOk() ([]map[string]interface{}, bool)

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

func (o *AdditionalFieldDefinition) HasKey() bool

HasKey returns a boolean if a field has been set.

func (o *AdditionalFieldDefinition) HasValue() bool

HasValue returns a boolean if a field has been set.

func (o AdditionalFieldDefinition) MarshalJSON() ([]byte, error)
func (o *AdditionalFieldDefinition) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (o *AdditionalFieldDefinition) SetValue(v []map[string]interface{})

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

Type ApiAdddatasourcePostRequest
type ApiAdddatasourcePostRequest struct {
	ApiService *DatasourcesApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiAdddatasourcePostRequest) CustomDatasourceConfig(customDatasourceConfig CustomDatasourceConfig) ApiAdddatasourcePostRequest
func (r ApiAdddatasourcePostRequest) Execute() (*http.Response, error)
Type ApiBetausersPostRequest
type ApiBetausersPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiBetausersPostRequest) Execute() (*http.Response, error)
func (r ApiBetausersPostRequest) GreenlistUsersRequest(greenlistUsersRequest GreenlistUsersRequest) ApiBetausersPostRequest
Type ApiBulkindexdocumentsPostRequest
type ApiBulkindexdocumentsPostRequest struct {
	ApiService *DocumentsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiBulkindexdocumentsPostRequest) BulkIndexDocumentsRequest(bulkIndexDocumentsRequest BulkIndexDocumentsRequest) ApiBulkindexdocumentsPostRequest
func (r ApiBulkindexdocumentsPostRequest) Execute() (*http.Response, error)
Type ApiBulkindexemployeesPostRequest
type ApiBulkindexemployeesPostRequest struct {
	ApiService *PeopleApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiBulkindexemployeesPostRequest) BulkIndexEmployeesRequest(bulkIndexEmployeesRequest BulkIndexEmployeesRequest) ApiBulkindexemployeesPostRequest
func (r ApiBulkindexemployeesPostRequest) Execute() (*http.Response, error)
Type ApiBulkindexgroupsPostRequest
type ApiBulkindexgroupsPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiBulkindexgroupsPostRequest) BulkIndexGroupsRequest(bulkIndexGroupsRequest BulkIndexGroupsRequest) ApiBulkindexgroupsPostRequest
func (r ApiBulkindexgroupsPostRequest) Execute() (*http.Response, error)
Type ApiBulkindexmembershipsPostRequest
type ApiBulkindexmembershipsPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiBulkindexmembershipsPostRequest) BulkIndexMembershipsRequest(bulkIndexMembershipsRequest BulkIndexMembershipsRequest) ApiBulkindexmembershipsPostRequest
func (r ApiBulkindexmembershipsPostRequest) Execute() (*http.Response, error)
Type ApiBulkindexteamsPostRequest
type ApiBulkindexteamsPostRequest struct {
	ApiService *PeopleApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiBulkindexteamsPostRequest) BulkIndexTeamsRequest(bulkIndexTeamsRequest BulkIndexTeamsRequest) ApiBulkindexteamsPostRequest
func (r ApiBulkindexteamsPostRequest) Execute() (*http.Response, error)
Type ApiBulkindexusersPostRequest
type ApiBulkindexusersPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiBulkindexusersPostRequest) BulkIndexUsersRequest(bulkIndexUsersRequest BulkIndexUsersRequest) ApiBulkindexusersPostRequest
func (r ApiBulkindexusersPostRequest) Execute() (*http.Response, error)
Type ApiCheckdocumentaccessPostRequest
type ApiCheckdocumentaccessPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiCheckdocumentaccessPostRequest) CheckDocumentAccessRequest(checkDocumentAccessRequest CheckDocumentAccessRequest) ApiCheckdocumentaccessPostRequest
func (r ApiCheckdocumentaccessPostRequest) Execute() (*CheckDocumentAccessResponse, *http.Response, error)
Type ApiDeletedocumentPostRequest
type ApiDeletedocumentPostRequest struct {
	ApiService *DocumentsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiDeletedocumentPostRequest) DeleteDocumentRequest(deleteDocumentRequest DeleteDocumentRequest) ApiDeletedocumentPostRequest
func (r ApiDeletedocumentPostRequest) Execute() (*http.Response, error)
Type ApiDeleteemployeePostRequest
type ApiDeleteemployeePostRequest struct {
	ApiService *PeopleApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiDeleteemployeePostRequest) DeleteEmployeeRequest(deleteEmployeeRequest DeleteEmployeeRequest) ApiDeleteemployeePostRequest
func (r ApiDeleteemployeePostRequest) Execute() (*http.Response, error)
Type ApiDeletegroupPostRequest
type ApiDeletegroupPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiDeletegroupPostRequest) DeleteGroupRequest(deleteGroupRequest DeleteGroupRequest) ApiDeletegroupPostRequest
func (r ApiDeletegroupPostRequest) Execute() (*http.Response, error)
Type ApiDeletemembershipPostRequest
type ApiDeletemembershipPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiDeletemembershipPostRequest) DeleteMembershipRequest(deleteMembershipRequest DeleteMembershipRequest) ApiDeletemembershipPostRequest
func (r ApiDeletemembershipPostRequest) Execute() (*http.Response, error)
Type ApiDeleteuserPostRequest
type ApiDeleteuserPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiDeleteuserPostRequest) DeleteUserRequest(deleteUserRequest DeleteUserRequest) ApiDeleteuserPostRequest
func (r ApiDeleteuserPostRequest) Execute() (*http.Response, error)
Type ApiGetdatasourceconfigPostRequest
type ApiGetdatasourceconfigPostRequest struct {
	ApiService *DatasourcesApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiGetdatasourceconfigPostRequest) Execute() (*CustomDatasourceConfig, *http.Response, error)
func (r ApiGetdatasourceconfigPostRequest) GetDatasourceConfigRequest(getDatasourceConfigRequest GetDatasourceConfigRequest) ApiGetdatasourceconfigPostRequest
Type ApiGetdocumentcountPostRequest
type ApiGetdocumentcountPostRequest struct {
	ApiService *DocumentsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiGetdocumentcountPostRequest) Execute() (*GetDocumentCountResponse, *http.Response, error)
func (r ApiGetdocumentcountPostRequest) GetDocumentCountRequest(getDocumentCountRequest GetDocumentCountRequest) ApiGetdocumentcountPostRequest
Type ApiGetdocumentstatusPostRequest
type ApiGetdocumentstatusPostRequest struct {
	ApiService *DocumentsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiGetdocumentstatusPostRequest) Execute() (*GetDocumentStatusResponse, *http.Response, error)
func (r ApiGetdocumentstatusPostRequest) GetDocumentStatusRequest(getDocumentStatusRequest GetDocumentStatusRequest) ApiGetdocumentstatusPostRequest
Type ApiGetusercountPostRequest
type ApiGetusercountPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiGetusercountPostRequest) Execute() (*GetUserCountResponse, *http.Response, error)
func (r ApiGetusercountPostRequest) GetUserCountRequest(getUserCountRequest GetUserCountRequest) ApiGetusercountPostRequest
Type ApiIndexdocumentPostRequest
type ApiIndexdocumentPostRequest struct {
	ApiService *DocumentsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiIndexdocumentPostRequest) Execute() (*http.Response, error)
func (r ApiIndexdocumentPostRequest) IndexDocumentRequest(indexDocumentRequest IndexDocumentRequest) ApiIndexdocumentPostRequest
Type ApiIndexemployeePostRequest
type ApiIndexemployeePostRequest struct {
	ApiService *PeopleApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiIndexemployeePostRequest) Execute() (*http.Response, error)
func (r ApiIndexemployeePostRequest) IndexEmployeeRequest(indexEmployeeRequest IndexEmployeeRequest) ApiIndexemployeePostRequest
Type ApiIndexemployeelistPostRequest
type ApiIndexemployeelistPostRequest struct {
	ApiService *PeopleApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiIndexemployeelistPostRequest) Execute() (*http.Response, error)
func (r ApiIndexemployeelistPostRequest) IndexEmployeeListRequest(indexEmployeeListRequest IndexEmployeeListRequest) ApiIndexemployeelistPostRequest
Type ApiIndexgroupPostRequest
type ApiIndexgroupPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiIndexgroupPostRequest) Execute() (*http.Response, error)
func (r ApiIndexgroupPostRequest) IndexGroupRequest(indexGroupRequest IndexGroupRequest) ApiIndexgroupPostRequest
Type ApiIndexmembershipPostRequest
type ApiIndexmembershipPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiIndexmembershipPostRequest) Execute() (*http.Response, error)
func (r ApiIndexmembershipPostRequest) IndexMembershipRequest(indexMembershipRequest IndexMembershipRequest) ApiIndexmembershipPostRequest
Type ApiIndexteamPostRequest
type ApiIndexteamPostRequest struct {
	ApiService *PeopleApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiIndexteamPostRequest) Execute() (*http.Response, error)
func (r ApiIndexteamPostRequest) IndexTeamRequest(indexTeamRequest IndexTeamRequest) ApiIndexteamPostRequest
Type ApiIndexuserPostRequest
type ApiIndexuserPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiIndexuserPostRequest) Execute() (*http.Response, error)
func (r ApiIndexuserPostRequest) IndexUserRequest(indexUserRequest IndexUserRequest) ApiIndexuserPostRequest
Type ApiProcessalldocumentsPostRequest
type ApiProcessalldocumentsPostRequest struct {
	ApiService *DocumentsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiProcessalldocumentsPostRequest) Execute() (*http.Response, error)
func (r ApiProcessalldocumentsPostRequest) ProcessAllDocumentsRequest(processAllDocumentsRequest ProcessAllDocumentsRequest) ApiProcessalldocumentsPostRequest
Type ApiProcessallmembershipsPostRequest
type ApiProcessallmembershipsPostRequest struct {
	ApiService *PermissionsApiService
	// contains filtered or unexported fields
}
Methods
func (r ApiProcessallmembershipsPostRequest) Execute() (*http.Response, error)
func (r ApiProcessallmembershipsPostRequest) ProcessAllMembershipsRequest(processAllMembershipsRequest ProcessAllMembershipsRequest) ApiProcessallmembershipsPostRequest
Type BasicAuth
type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

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

Type BulkIndexDocumentsRequest
type BulkIndexDocumentsRequest struct {
	// Unique id that must be used for this instance of datasource employees upload
	UploadId string `json:"uploadId"`
	// true if this is the first page of the upload. Defaults to false
	IsFirstPage *bool `json:"isFirstPage,omitempty"`
	// true if this is the last page of the upload. Defaults to false
	IsLastPage *bool `json:"isLastPage,omitempty"`
	// Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true
	ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"`
	// Datasource of the documents
	Datasource string `json:"datasource"`
	// Batch of documents for the datasource
	Documents []DocumentDefinition `json:"documents"`
	// True if older documents need to be force deleted after the upload completes. Defaults to older documents being deleted asynchronously. This must only be set when `isLastPage = true`
	DisableStaleDocumentDeletionCheck *bool `json:"disableStaleDocumentDeletionCheck,omitempty"`
}

BulkIndexDocumentsRequest Describes the request body of the /bulkindexdocuments API call

Functions
func NewBulkIndexDocumentsRequest(uploadId string, datasource string, documents []DocumentDefinition) *BulkIndexDocumentsRequest

NewBulkIndexDocumentsRequest instantiates a new BulkIndexDocumentsRequest 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 NewBulkIndexDocumentsRequestWithDefaults() *BulkIndexDocumentsRequest

NewBulkIndexDocumentsRequestWithDefaults instantiates a new BulkIndexDocumentsRequest 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 *BulkIndexDocumentsRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *BulkIndexDocumentsRequest) GetDatasourceOk() (*string, bool)

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

func (o *BulkIndexDocumentsRequest) GetDisableStaleDocumentDeletionCheck() bool

GetDisableStaleDocumentDeletionCheck returns the DisableStaleDocumentDeletionCheck field value if set, zero value otherwise.

func (o *BulkIndexDocumentsRequest) GetDisableStaleDocumentDeletionCheckOk() (*bool, bool)

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

func (o *BulkIndexDocumentsRequest) GetDocuments() []DocumentDefinition

GetDocuments returns the Documents field value

func (o *BulkIndexDocumentsRequest) GetDocumentsOk() ([]DocumentDefinition, bool)

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

func (o *BulkIndexDocumentsRequest) GetForceRestartUpload() bool

GetForceRestartUpload returns the ForceRestartUpload field value if set, zero value otherwise.

func (o *BulkIndexDocumentsRequest) GetForceRestartUploadOk() (*bool, bool)

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

func (o *BulkIndexDocumentsRequest) GetIsFirstPage() bool

GetIsFirstPage returns the IsFirstPage field value if set, zero value otherwise.

func (o *BulkIndexDocumentsRequest) GetIsFirstPageOk() (*bool, bool)

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

func (o *BulkIndexDocumentsRequest) GetIsLastPage() bool

GetIsLastPage returns the IsLastPage field value if set, zero value otherwise.

func (o *BulkIndexDocumentsRequest) GetIsLastPageOk() (*bool, bool)

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

func (o *BulkIndexDocumentsRequest) GetUploadId() string

GetUploadId returns the UploadId field value

func (o *BulkIndexDocumentsRequest) GetUploadIdOk() (*string, bool)

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

func (o *BulkIndexDocumentsRequest) HasDisableStaleDocumentDeletionCheck() bool

HasDisableStaleDocumentDeletionCheck returns a boolean if a field has been set.

func (o *BulkIndexDocumentsRequest) HasForceRestartUpload() bool

HasForceRestartUpload returns a boolean if a field has been set.

func (o *BulkIndexDocumentsRequest) HasIsFirstPage() bool

HasIsFirstPage returns a boolean if a field has been set.

func (o *BulkIndexDocumentsRequest) HasIsLastPage() bool

HasIsLastPage returns a boolean if a field has been set.

func (o BulkIndexDocumentsRequest) MarshalJSON() ([]byte, error)
func (o *BulkIndexDocumentsRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *BulkIndexDocumentsRequest) SetDisableStaleDocumentDeletionCheck(v bool)

SetDisableStaleDocumentDeletionCheck gets a reference to the given bool and assigns it to the DisableStaleDocumentDeletionCheck field.

func (o *BulkIndexDocumentsRequest) SetDocuments(v []DocumentDefinition)

SetDocuments sets field value

func (o *BulkIndexDocumentsRequest) SetForceRestartUpload(v bool)

SetForceRestartUpload gets a reference to the given bool and assigns it to the ForceRestartUpload field.

func (o *BulkIndexDocumentsRequest) SetIsFirstPage(v bool)

SetIsFirstPage gets a reference to the given bool and assigns it to the IsFirstPage field.

func (o *BulkIndexDocumentsRequest) SetIsLastPage(v bool)

SetIsLastPage gets a reference to the given bool and assigns it to the IsLastPage field.

func (o *BulkIndexDocumentsRequest) SetUploadId(v string)

SetUploadId sets field value

Type BulkIndexDocumentsRequestAllOf
type BulkIndexDocumentsRequestAllOf struct {
	// Datasource of the documents
	Datasource string `json:"datasource"`
	// Batch of documents for the datasource
	Documents []DocumentDefinition `json:"documents"`
	// True if older documents need to be force deleted after the upload completes. Defaults to older documents being deleted asynchronously. This must only be set when `isLastPage = true`
	DisableStaleDocumentDeletionCheck *bool `json:"disableStaleDocumentDeletionCheck,omitempty"`
}

BulkIndexDocumentsRequestAllOf struct for BulkIndexDocumentsRequestAllOf

Functions
func NewBulkIndexDocumentsRequestAllOf(datasource string, documents []DocumentDefinition) *BulkIndexDocumentsRequestAllOf

NewBulkIndexDocumentsRequestAllOf instantiates a new BulkIndexDocumentsRequestAllOf 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 NewBulkIndexDocumentsRequestAllOfWithDefaults() *BulkIndexDocumentsRequestAllOf

NewBulkIndexDocumentsRequestAllOfWithDefaults instantiates a new BulkIndexDocumentsRequestAllOf 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 *BulkIndexDocumentsRequestAllOf) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *BulkIndexDocumentsRequestAllOf) GetDatasourceOk() (*string, bool)

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

func (o *BulkIndexDocumentsRequestAllOf) GetDisableStaleDocumentDeletionCheck() bool

GetDisableStaleDocumentDeletionCheck returns the DisableStaleDocumentDeletionCheck field value if set, zero value otherwise.

func (o *BulkIndexDocumentsRequestAllOf) GetDisableStaleDocumentDeletionCheckOk() (*bool, bool)

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

func (o *BulkIndexDocumentsRequestAllOf) GetDocuments() []DocumentDefinition

GetDocuments returns the Documents field value

func (o *BulkIndexDocumentsRequestAllOf) GetDocumentsOk() ([]DocumentDefinition, bool)

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

func (o *BulkIndexDocumentsRequestAllOf) HasDisableStaleDocumentDeletionCheck() bool

HasDisableStaleDocumentDeletionCheck returns a boolean if a field has been set.

func (o BulkIndexDocumentsRequestAllOf) MarshalJSON() ([]byte, error)
func (o *BulkIndexDocumentsRequestAllOf) SetDatasource(v string)

SetDatasource sets field value

func (o *BulkIndexDocumentsRequestAllOf) SetDisableStaleDocumentDeletionCheck(v bool)

SetDisableStaleDocumentDeletionCheck gets a reference to the given bool and assigns it to the DisableStaleDocumentDeletionCheck field.

func (o *BulkIndexDocumentsRequestAllOf) SetDocuments(v []DocumentDefinition)

SetDocuments sets field value

Type BulkIndexEmployeesRequest
type BulkIndexEmployeesRequest struct {
	// Unique id that must be used for this instance of datasource employees upload
	UploadId string `json:"uploadId"`
	// true if this is the first page of the upload. Defaults to false
	IsFirstPage *bool `json:"isFirstPage,omitempty"`
	// true if this is the last page of the upload. Defaults to false
	IsLastPage *bool `json:"isLastPage,omitempty"`
	// Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true
	ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"`
	// Batch of employee information
	Employees []EmployeeInfoDefinition `json:"employees"`
}

BulkIndexEmployeesRequest Describes the request body of the /bulkindexemployees API call

Functions
func NewBulkIndexEmployeesRequest(uploadId string, employees []EmployeeInfoDefinition) *BulkIndexEmployeesRequest

NewBulkIndexEmployeesRequest instantiates a new BulkIndexEmployeesRequest 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 NewBulkIndexEmployeesRequestWithDefaults() *BulkIndexEmployeesRequest

NewBulkIndexEmployeesRequestWithDefaults instantiates a new BulkIndexEmployeesRequest 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 *BulkIndexEmployeesRequest) GetEmployees() []EmployeeInfoDefinition

GetEmployees returns the Employees field value

func (o *BulkIndexEmployeesRequest) GetEmployeesOk() ([]EmployeeInfoDefinition, bool)

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

func (o *BulkIndexEmployeesRequest) GetForceRestartUpload() bool

GetForceRestartUpload returns the ForceRestartUpload field value if set, zero value otherwise.

func (o *BulkIndexEmployeesRequest) GetForceRestartUploadOk() (*bool, bool)

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

func (o *BulkIndexEmployeesRequest) GetIsFirstPage() bool

GetIsFirstPage returns the IsFirstPage field value if set, zero value otherwise.

func (o *BulkIndexEmployeesRequest) GetIsFirstPageOk() (*bool, bool)

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

func (o *BulkIndexEmployeesRequest) GetIsLastPage() bool

GetIsLastPage returns the IsLastPage field value if set, zero value otherwise.

func (o *BulkIndexEmployeesRequest) GetIsLastPageOk() (*bool, bool)

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

func (o *BulkIndexEmployeesRequest) GetUploadId() string

GetUploadId returns the UploadId field value

func (o *BulkIndexEmployeesRequest) GetUploadIdOk() (*string, bool)

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

func (o *BulkIndexEmployeesRequest) HasForceRestartUpload() bool

HasForceRestartUpload returns a boolean if a field has been set.

func (o *BulkIndexEmployeesRequest) HasIsFirstPage() bool

HasIsFirstPage returns a boolean if a field has been set.

func (o *BulkIndexEmployeesRequest) HasIsLastPage() bool

HasIsLastPage returns a boolean if a field has been set.

func (o BulkIndexEmployeesRequest) MarshalJSON() ([]byte, error)
func (o *BulkIndexEmployeesRequest) SetEmployees(v []EmployeeInfoDefinition)

SetEmployees sets field value

func (o *BulkIndexEmployeesRequest) SetForceRestartUpload(v bool)

SetForceRestartUpload gets a reference to the given bool and assigns it to the ForceRestartUpload field.

func (o *BulkIndexEmployeesRequest) SetIsFirstPage(v bool)

SetIsFirstPage gets a reference to the given bool and assigns it to the IsFirstPage field.

func (o *BulkIndexEmployeesRequest) SetIsLastPage(v bool)

SetIsLastPage gets a reference to the given bool and assigns it to the IsLastPage field.

func (o *BulkIndexEmployeesRequest) SetUploadId(v string)

SetUploadId sets field value

Type BulkIndexEmployeesRequestAllOf
type BulkIndexEmployeesRequestAllOf struct {
	// Batch of employee information
	Employees []EmployeeInfoDefinition `json:"employees"`
}

BulkIndexEmployeesRequestAllOf struct for BulkIndexEmployeesRequestAllOf

Functions
func NewBulkIndexEmployeesRequestAllOf(employees []EmployeeInfoDefinition) *BulkIndexEmployeesRequestAllOf

NewBulkIndexEmployeesRequestAllOf instantiates a new BulkIndexEmployeesRequestAllOf 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 NewBulkIndexEmployeesRequestAllOfWithDefaults() *BulkIndexEmployeesRequestAllOf

NewBulkIndexEmployeesRequestAllOfWithDefaults instantiates a new BulkIndexEmployeesRequestAllOf 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 *BulkIndexEmployeesRequestAllOf) GetEmployees() []EmployeeInfoDefinition

GetEmployees returns the Employees field value

func (o *BulkIndexEmployeesRequestAllOf) GetEmployeesOk() ([]EmployeeInfoDefinition, bool)

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

func (o BulkIndexEmployeesRequestAllOf) MarshalJSON() ([]byte, error)
func (o *BulkIndexEmployeesRequestAllOf) SetEmployees(v []EmployeeInfoDefinition)

SetEmployees sets field value

Type BulkIndexGroupsRequest
type BulkIndexGroupsRequest struct {
	// Unique id that must be used for this instance of datasource groups upload
	UploadId string `json:"uploadId"`
	// true if this is the first page of the upload. Defaults to false
	IsFirstPage *bool `json:"isFirstPage,omitempty"`
	// true if this is the last page of the upload. Defaults to false
	IsLastPage *bool `json:"isLastPage,omitempty"`
	// Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true
	ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"`
	// datasource of the groups
	Datasource string `json:"datasource"`
	// batch of groups for the datasource
	Groups []DatasourceGroupDefinition `json:"groups"`
}

BulkIndexGroupsRequest Describes the request body for the /bulkindexgroups API call

Functions
func NewBulkIndexGroupsRequest(uploadId string, datasource string, groups []DatasourceGroupDefinition) *BulkIndexGroupsRequest

NewBulkIndexGroupsRequest instantiates a new BulkIndexGroupsRequest 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 NewBulkIndexGroupsRequestWithDefaults() *BulkIndexGroupsRequest

NewBulkIndexGroupsRequestWithDefaults instantiates a new BulkIndexGroupsRequest 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 *BulkIndexGroupsRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *BulkIndexGroupsRequest) GetDatasourceOk() (*string, bool)

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

func (o *BulkIndexGroupsRequest) GetForceRestartUpload() bool

GetForceRestartUpload returns the ForceRestartUpload field value if set, zero value otherwise.

func (o *BulkIndexGroupsRequest) GetForceRestartUploadOk() (*bool, bool)

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

func (o *BulkIndexGroupsRequest) GetGroups() []DatasourceGroupDefinition

GetGroups returns the Groups field value

func (o *BulkIndexGroupsRequest) GetGroupsOk() ([]DatasourceGroupDefinition, bool)

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

func (o *BulkIndexGroupsRequest) GetIsFirstPage() bool

GetIsFirstPage returns the IsFirstPage field value if set, zero value otherwise.

func (o *BulkIndexGroupsRequest) GetIsFirstPageOk() (*bool, bool)

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

func (o *BulkIndexGroupsRequest) GetIsLastPage() bool

GetIsLastPage returns the IsLastPage field value if set, zero value otherwise.

func (o *BulkIndexGroupsRequest) GetIsLastPageOk() (*bool, bool)

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

func (o *BulkIndexGroupsRequest) GetUploadId() string

GetUploadId returns the UploadId field value

func (o *BulkIndexGroupsRequest) GetUploadIdOk() (*string, bool)

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

func (o *BulkIndexGroupsRequest) HasForceRestartUpload() bool

HasForceRestartUpload returns a boolean if a field has been set.

func (o *BulkIndexGroupsRequest) HasIsFirstPage() bool

HasIsFirstPage returns a boolean if a field has been set.

func (o *BulkIndexGroupsRequest) HasIsLastPage() bool

HasIsLastPage returns a boolean if a field has been set.

func (o BulkIndexGroupsRequest) MarshalJSON() ([]byte, error)
func (o *BulkIndexGroupsRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *BulkIndexGroupsRequest) SetForceRestartUpload(v bool)

SetForceRestartUpload gets a reference to the given bool and assigns it to the ForceRestartUpload field.

func (o *BulkIndexGroupsRequest) SetGroups(v []DatasourceGroupDefinition)

SetGroups sets field value

func (o *BulkIndexGroupsRequest) SetIsFirstPage(v bool)

SetIsFirstPage gets a reference to the given bool and assigns it to the IsFirstPage field.

func (o *BulkIndexGroupsRequest) SetIsLastPage(v bool)

SetIsLastPage gets a reference to the given bool and assigns it to the IsLastPage field.

func (o *BulkIndexGroupsRequest) SetUploadId(v string)

SetUploadId sets field value

Type BulkIndexMembershipsRequest
type BulkIndexMembershipsRequest struct {
	// Unique id that must be used for this instance of datasource group memberships upload
	UploadId string `json:"uploadId"`
	// true if this is the first page of the upload. Defaults to false
	IsFirstPage *bool `json:"isFirstPage,omitempty"`
	// true if this is the last page of the upload. Defaults to false
	IsLastPage *bool `json:"isLastPage,omitempty"`
	// Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true
	ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"`
	// datasource of the memberships
	Datasource string `json:"datasource"`
	// group who's memberships are specified
	Group *string `json:"group,omitempty"`
	// batch of memberships for the group
	Memberships []DatasourceBulkMembershipDefinition `json:"memberships"`
}

BulkIndexMembershipsRequest Describes the request body for the /bulkindexmemberships API call

Functions
func NewBulkIndexMembershipsRequest(uploadId string, datasource string, memberships []DatasourceBulkMembershipDefinition) *BulkIndexMembershipsRequest

NewBulkIndexMembershipsRequest instantiates a new BulkIndexMembershipsRequest 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 NewBulkIndexMembershipsRequestWithDefaults() *BulkIndexMembershipsRequest

NewBulkIndexMembershipsRequestWithDefaults instantiates a new BulkIndexMembershipsRequest 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 *BulkIndexMembershipsRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *BulkIndexMembershipsRequest) GetDatasourceOk() (*string, bool)

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

func (o *BulkIndexMembershipsRequest) GetForceRestartUpload() bool

GetForceRestartUpload returns the ForceRestartUpload field value if set, zero value otherwise.

func (o *BulkIndexMembershipsRequest) GetForceRestartUploadOk() (*bool, bool)

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

func (o *BulkIndexMembershipsRequest) GetGroup() string

GetGroup returns the Group field value if set, zero value otherwise.

func (o *BulkIndexMembershipsRequest) GetGroupOk() (*string, bool)

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

func (o *BulkIndexMembershipsRequest) GetIsFirstPage() bool

GetIsFirstPage returns the IsFirstPage field value if set, zero value otherwise.

func (o *BulkIndexMembershipsRequest) GetIsFirstPageOk() (*bool, bool)

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

func (o *BulkIndexMembershipsRequest) GetIsLastPage() bool

GetIsLastPage returns the IsLastPage field value if set, zero value otherwise.

func (o *BulkIndexMembershipsRequest) GetIsLastPageOk() (*bool, bool)

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

func (o *BulkIndexMembershipsRequest) GetMemberships() []DatasourceBulkMembershipDefinition

GetMemberships returns the Memberships field value

func (o *BulkIndexMembershipsRequest) GetMembershipsOk() ([]DatasourceBulkMembershipDefinition, bool)

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

func (o *BulkIndexMembershipsRequest) GetUploadId() string

GetUploadId returns the UploadId field value

func (o *BulkIndexMembershipsRequest) GetUploadIdOk() (*string, bool)

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

func (o *BulkIndexMembershipsRequest) HasForceRestartUpload() bool

HasForceRestartUpload returns a boolean if a field has been set.

func (o *BulkIndexMembershipsRequest) HasGroup() bool

HasGroup returns a boolean if a field has been set.

func (o *BulkIndexMembershipsRequest) HasIsFirstPage() bool

HasIsFirstPage returns a boolean if a field has been set.

func (o *BulkIndexMembershipsRequest) HasIsLastPage() bool

HasIsLastPage returns a boolean if a field has been set.

func (o BulkIndexMembershipsRequest) MarshalJSON() ([]byte, error)
func (o *BulkIndexMembershipsRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *BulkIndexMembershipsRequest) SetForceRestartUpload(v bool)

SetForceRestartUpload gets a reference to the given bool and assigns it to the ForceRestartUpload field.

func (o *BulkIndexMembershipsRequest) SetGroup(v string)

SetGroup gets a reference to the given string and assigns it to the Group field.

func (o *BulkIndexMembershipsRequest) SetIsFirstPage(v bool)

SetIsFirstPage gets a reference to the given bool and assigns it to the IsFirstPage field.

func (o *BulkIndexMembershipsRequest) SetIsLastPage(v bool)

SetIsLastPage gets a reference to the given bool and assigns it to the IsLastPage field.

func (o *BulkIndexMembershipsRequest) SetMemberships(v []DatasourceBulkMembershipDefinition)

SetMemberships sets field value

func (o *BulkIndexMembershipsRequest) SetUploadId(v string)

SetUploadId sets field value

Type BulkIndexRequest
type BulkIndexRequest struct {
	// Unique id that must be used for this instance of datasource employees upload
	UploadId string `json:"uploadId"`
	// true if this is the first page of the upload. Defaults to false
	IsFirstPage *bool `json:"isFirstPage,omitempty"`
	// true if this is the last page of the upload. Defaults to false
	IsLastPage *bool `json:"isLastPage,omitempty"`
	// Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true
	ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"`
}

BulkIndexRequest Describes the request body of the /bulkindexteams API call

Functions
func NewBulkIndexRequest(uploadId string) *BulkIndexRequest

NewBulkIndexRequest instantiates a new BulkIndexRequest 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 NewBulkIndexRequestWithDefaults() *BulkIndexRequest

NewBulkIndexRequestWithDefaults instantiates a new BulkIndexRequest 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 *BulkIndexRequest) GetForceRestartUpload() bool

GetForceRestartUpload returns the ForceRestartUpload field value if set, zero value otherwise.

func (o *BulkIndexRequest) GetForceRestartUploadOk() (*bool, bool)

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

func (o *BulkIndexRequest) GetIsFirstPage() bool

GetIsFirstPage returns the IsFirstPage field value if set, zero value otherwise.

func (o *BulkIndexRequest) GetIsFirstPageOk() (*bool, bool)

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

func (o *BulkIndexRequest) GetIsLastPage() bool

GetIsLastPage returns the IsLastPage field value if set, zero value otherwise.

func (o *BulkIndexRequest) GetIsLastPageOk() (*bool, bool)

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

func (o *BulkIndexRequest) GetUploadId() string

GetUploadId returns the UploadId field value

func (o *BulkIndexRequest) GetUploadIdOk() (*string, bool)

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

func (o *BulkIndexRequest) HasForceRestartUpload() bool

HasForceRestartUpload returns a boolean if a field has been set.

func (o *BulkIndexRequest) HasIsFirstPage() bool

HasIsFirstPage returns a boolean if a field has been set.

func (o *BulkIndexRequest) HasIsLastPage() bool

HasIsLastPage returns a boolean if a field has been set.

func (o BulkIndexRequest) MarshalJSON() ([]byte, error)
func (o *BulkIndexRequest) SetForceRestartUpload(v bool)

SetForceRestartUpload gets a reference to the given bool and assigns it to the ForceRestartUpload field.

func (o *BulkIndexRequest) SetIsFirstPage(v bool)

SetIsFirstPage gets a reference to the given bool and assigns it to the IsFirstPage field.

func (o *BulkIndexRequest) SetIsLastPage(v bool)

SetIsLastPage gets a reference to the given bool and assigns it to the IsLastPage field.

func (o *BulkIndexRequest) SetUploadId(v string)

SetUploadId sets field value

Type BulkIndexTeamsRequest
type BulkIndexTeamsRequest struct {
	// Unique id that must be used for this instance of datasource employees upload
	UploadId string `json:"uploadId"`
	// true if this is the first page of the upload. Defaults to false
	IsFirstPage *bool `json:"isFirstPage,omitempty"`
	// true if this is the last page of the upload. Defaults to false
	IsLastPage *bool `json:"isLastPage,omitempty"`
	// Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true
	ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"`
	// Batch of team information
	Teams []TeamInfoDefinition `json:"teams"`
}

BulkIndexTeamsRequest Describes the request body of the /bulkindexteams API call

Functions
func NewBulkIndexTeamsRequest(uploadId string, teams []TeamInfoDefinition) *BulkIndexTeamsRequest

NewBulkIndexTeamsRequest instantiates a new BulkIndexTeamsRequest 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 NewBulkIndexTeamsRequestWithDefaults() *BulkIndexTeamsRequest

NewBulkIndexTeamsRequestWithDefaults instantiates a new BulkIndexTeamsRequest 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 *BulkIndexTeamsRequest) GetForceRestartUpload() bool

GetForceRestartUpload returns the ForceRestartUpload field value if set, zero value otherwise.

func (o *BulkIndexTeamsRequest) GetForceRestartUploadOk() (*bool, bool)

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

func (o *BulkIndexTeamsRequest) GetIsFirstPage() bool

GetIsFirstPage returns the IsFirstPage field value if set, zero value otherwise.

func (o *BulkIndexTeamsRequest) GetIsFirstPageOk() (*bool, bool)

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

func (o *BulkIndexTeamsRequest) GetIsLastPage() bool

GetIsLastPage returns the IsLastPage field value if set, zero value otherwise.

func (o *BulkIndexTeamsRequest) GetIsLastPageOk() (*bool, bool)

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

func (o *BulkIndexTeamsRequest) GetTeams() []TeamInfoDefinition

GetTeams returns the Teams field value

func (o *BulkIndexTeamsRequest) GetTeamsOk() ([]TeamInfoDefinition, bool)

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

func (o *BulkIndexTeamsRequest) GetUploadId() string

GetUploadId returns the UploadId field value

func (o *BulkIndexTeamsRequest) GetUploadIdOk() (*string, bool)

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

func (o *BulkIndexTeamsRequest) HasForceRestartUpload() bool

HasForceRestartUpload returns a boolean if a field has been set.

func (o *BulkIndexTeamsRequest) HasIsFirstPage() bool

HasIsFirstPage returns a boolean if a field has been set.

func (o *BulkIndexTeamsRequest) HasIsLastPage() bool

HasIsLastPage returns a boolean if a field has been set.

func (o BulkIndexTeamsRequest) MarshalJSON() ([]byte, error)
func (o *BulkIndexTeamsRequest) SetForceRestartUpload(v bool)

SetForceRestartUpload gets a reference to the given bool and assigns it to the ForceRestartUpload field.

func (o *BulkIndexTeamsRequest) SetIsFirstPage(v bool)

SetIsFirstPage gets a reference to the given bool and assigns it to the IsFirstPage field.

func (o *BulkIndexTeamsRequest) SetIsLastPage(v bool)

SetIsLastPage gets a reference to the given bool and assigns it to the IsLastPage field.

func (o *BulkIndexTeamsRequest) SetTeams(v []TeamInfoDefinition)

SetTeams sets field value

func (o *BulkIndexTeamsRequest) SetUploadId(v string)

SetUploadId sets field value

Type BulkIndexTeamsRequestAllOf
type BulkIndexTeamsRequestAllOf struct {
	// Batch of team information
	Teams []TeamInfoDefinition `json:"teams"`
}

BulkIndexTeamsRequestAllOf struct for BulkIndexTeamsRequestAllOf

Functions
func NewBulkIndexTeamsRequestAllOf(teams []TeamInfoDefinition) *BulkIndexTeamsRequestAllOf

NewBulkIndexTeamsRequestAllOf instantiates a new BulkIndexTeamsRequestAllOf 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 NewBulkIndexTeamsRequestAllOfWithDefaults() *BulkIndexTeamsRequestAllOf

NewBulkIndexTeamsRequestAllOfWithDefaults instantiates a new BulkIndexTeamsRequestAllOf 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 *BulkIndexTeamsRequestAllOf) GetTeams() []TeamInfoDefinition

GetTeams returns the Teams field value

func (o *BulkIndexTeamsRequestAllOf) GetTeamsOk() ([]TeamInfoDefinition, bool)

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

func (o BulkIndexTeamsRequestAllOf) MarshalJSON() ([]byte, error)
func (o *BulkIndexTeamsRequestAllOf) SetTeams(v []TeamInfoDefinition)

SetTeams sets field value

Type BulkIndexUsersRequest
type BulkIndexUsersRequest struct {
	// Unique id that must be used for this instance of datasource users upload
	UploadId string `json:"uploadId"`
	// true if this is the first page of the upload. Defaults to false
	IsFirstPage *bool `json:"isFirstPage,omitempty"`
	// true if this is the last page of the upload. Defaults to false
	IsLastPage *bool `json:"isLastPage,omitempty"`
	// Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true
	ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"`
	// datasource of the users
	Datasource string `json:"datasource"`
	// batch of users for the datasource
	Users []DatasourceUserDefinition `json:"users"`
}

BulkIndexUsersRequest Describes the request body for the /bulkindexusers API call

Functions
func NewBulkIndexUsersRequest(uploadId string, datasource string, users []DatasourceUserDefinition) *BulkIndexUsersRequest

NewBulkIndexUsersRequest instantiates a new BulkIndexUsersRequest 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 NewBulkIndexUsersRequestWithDefaults() *BulkIndexUsersRequest

NewBulkIndexUsersRequestWithDefaults instantiates a new BulkIndexUsersRequest 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 *BulkIndexUsersRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *BulkIndexUsersRequest) GetDatasourceOk() (*string, bool)

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

func (o *BulkIndexUsersRequest) GetForceRestartUpload() bool

GetForceRestartUpload returns the ForceRestartUpload field value if set, zero value otherwise.

func (o *BulkIndexUsersRequest) GetForceRestartUploadOk() (*bool, bool)

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

func (o *BulkIndexUsersRequest) GetIsFirstPage() bool

GetIsFirstPage returns the IsFirstPage field value if set, zero value otherwise.

func (o *BulkIndexUsersRequest) GetIsFirstPageOk() (*bool, bool)

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

func (o *BulkIndexUsersRequest) GetIsLastPage() bool

GetIsLastPage returns the IsLastPage field value if set, zero value otherwise.

func (o *BulkIndexUsersRequest) GetIsLastPageOk() (*bool, bool)

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

func (o *BulkIndexUsersRequest) GetUploadId() string

GetUploadId returns the UploadId field value

func (o *BulkIndexUsersRequest) GetUploadIdOk() (*string, bool)

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

func (o *BulkIndexUsersRequest) GetUsers() []DatasourceUserDefinition

GetUsers returns the Users field value

func (o *BulkIndexUsersRequest) GetUsersOk() ([]DatasourceUserDefinition, bool)

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

func (o *BulkIndexUsersRequest) HasForceRestartUpload() bool

HasForceRestartUpload returns a boolean if a field has been set.

func (o *BulkIndexUsersRequest) HasIsFirstPage() bool

HasIsFirstPage returns a boolean if a field has been set.

func (o *BulkIndexUsersRequest) HasIsLastPage() bool

HasIsLastPage returns a boolean if a field has been set.

func (o BulkIndexUsersRequest) MarshalJSON() ([]byte, error)
func (o *BulkIndexUsersRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *BulkIndexUsersRequest) SetForceRestartUpload(v bool)

SetForceRestartUpload gets a reference to the given bool and assigns it to the ForceRestartUpload field.

func (o *BulkIndexUsersRequest) SetIsFirstPage(v bool)

SetIsFirstPage gets a reference to the given bool and assigns it to the IsFirstPage field.

func (o *BulkIndexUsersRequest) SetIsLastPage(v bool)

SetIsLastPage gets a reference to the given bool and assigns it to the IsLastPage field.

func (o *BulkIndexUsersRequest) SetUploadId(v string)

SetUploadId sets field value

func (o *BulkIndexUsersRequest) SetUsers(v []DatasourceUserDefinition)

SetUsers sets field value

Type CanonicalizingRegexType
type CanonicalizingRegexType struct {
	// Regular expression to match to an arbitrary string.
	MatchRegex *string `json:"matchRegex,omitempty"`
	// Regular expression to transform into a canonical string.
	RewriteRegex *string `json:"rewriteRegex,omitempty"`
}

CanonicalizingRegexType Regular expression to apply to an arbitrary string to transform it into a canonical string.

Functions
func NewCanonicalizingRegexType() *CanonicalizingRegexType

NewCanonicalizingRegexType instantiates a new CanonicalizingRegexType 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 NewCanonicalizingRegexTypeWithDefaults() *CanonicalizingRegexType

NewCanonicalizingRegexTypeWithDefaults instantiates a new CanonicalizingRegexType 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 *CanonicalizingRegexType) GetMatchRegex() string

GetMatchRegex returns the MatchRegex field value if set, zero value otherwise.

func (o *CanonicalizingRegexType) GetMatchRegexOk() (*string, bool)

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

func (o *CanonicalizingRegexType) GetRewriteRegex() string

GetRewriteRegex returns the RewriteRegex field value if set, zero value otherwise.

func (o *CanonicalizingRegexType) GetRewriteRegexOk() (*string, bool)

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

func (o *CanonicalizingRegexType) HasMatchRegex() bool

HasMatchRegex returns a boolean if a field has been set.

func (o *CanonicalizingRegexType) HasRewriteRegex() bool

HasRewriteRegex returns a boolean if a field has been set.

func (o CanonicalizingRegexType) MarshalJSON() ([]byte, error)
func (o *CanonicalizingRegexType) SetMatchRegex(v string)

SetMatchRegex gets a reference to the given string and assigns it to the MatchRegex field.

func (o *CanonicalizingRegexType) SetRewriteRegex(v string)

SetRewriteRegex gets a reference to the given string and assigns it to the RewriteRegex field.

Type CheckDocumentAccessRequest
type CheckDocumentAccessRequest struct {
	// Datasource of document to get check access for
	Datasource string `json:"datasource"`
	// Object type of document to get check access for
	ObjectType string `json:"objectType"`
	// ID of document to get check access for
	DocId string `json:"docId"`
	// Email of user to check access for
	UserEmail string `json:"userEmail"`
}

CheckDocumentAccessRequest Describes the request body of the /checkdocumentaccess API call

Functions
func NewCheckDocumentAccessRequest(datasource string, objectType string, docId string, userEmail string) *CheckDocumentAccessRequest

NewCheckDocumentAccessRequest instantiates a new CheckDocumentAccessRequest 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 NewCheckDocumentAccessRequestWithDefaults() *CheckDocumentAccessRequest

NewCheckDocumentAccessRequestWithDefaults instantiates a new CheckDocumentAccessRequest 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 *CheckDocumentAccessRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *CheckDocumentAccessRequest) GetDatasourceOk() (*string, bool)

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

func (o *CheckDocumentAccessRequest) GetDocId() string

GetDocId returns the DocId field value

func (o *CheckDocumentAccessRequest) GetDocIdOk() (*string, bool)

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

func (o *CheckDocumentAccessRequest) GetObjectType() string

GetObjectType returns the ObjectType field value

func (o *CheckDocumentAccessRequest) GetObjectTypeOk() (*string, bool)

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

func (o *CheckDocumentAccessRequest) GetUserEmail() string

GetUserEmail returns the UserEmail field value

func (o *CheckDocumentAccessRequest) GetUserEmailOk() (*string, bool)

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

func (o CheckDocumentAccessRequest) MarshalJSON() ([]byte, error)
func (o *CheckDocumentAccessRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *CheckDocumentAccessRequest) SetDocId(v string)

SetDocId sets field value

func (o *CheckDocumentAccessRequest) SetObjectType(v string)

SetObjectType sets field value

func (o *CheckDocumentAccessRequest) SetUserEmail(v string)

SetUserEmail sets field value

Type CheckDocumentAccessResponse
type CheckDocumentAccessResponse struct {
	// If true, user has access to document for search
	HasAccess *bool `json:"hasAccess,omitempty"`
}

CheckDocumentAccessResponse Describes the response body of the /checkdocumentaccess API call

Functions
func NewCheckDocumentAccessResponse() *CheckDocumentAccessResponse

NewCheckDocumentAccessResponse instantiates a new CheckDocumentAccessResponse 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 NewCheckDocumentAccessResponseWithDefaults() *CheckDocumentAccessResponse

NewCheckDocumentAccessResponseWithDefaults instantiates a new CheckDocumentAccessResponse 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 *CheckDocumentAccessResponse) GetHasAccess() bool

GetHasAccess returns the HasAccess field value if set, zero value otherwise.

func (o *CheckDocumentAccessResponse) GetHasAccessOk() (*bool, bool)

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

func (o *CheckDocumentAccessResponse) HasHasAccess() bool

HasHasAccess returns a boolean if a field has been set.

func (o CheckDocumentAccessResponse) MarshalJSON() ([]byte, error)
func (o *CheckDocumentAccessResponse) SetHasAccess(v bool)

SetHasAccess gets a reference to the given bool and assigns it to the HasAccess field.

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

Configuration stores the configuration of the API client

Functions
func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

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

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

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

ServerURL returns URL based on server settings

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

ServerURLWithContext returns a new server URL given an endpoint

Type ConnectorType
type ConnectorType string

ConnectorType The source from which document content was pulled, e.g. an API crawl or browser history

Constants
API_CRAWL, BROWSER_CRAWL, BROWSER_HISTORY, BUILTIN, FEDERATED_SEARCH, PUSH_API, WEB_CRAWL, NATIVE_HISTORY
API_CRAWL ConnectorType = "API_CRAWL"
BROWSER_CRAWL ConnectorType = "BROWSER_CRAWL"
BROWSER_HISTORY ConnectorType = "BROWSER_HISTORY"
BUILTIN ConnectorType = "BUILTIN"
FEDERATED_SEARCH ConnectorType = "FEDERATED_SEARCH"
PUSH_API ConnectorType = "PUSH_API"
WEB_CRAWL ConnectorType = "WEB_CRAWL"
NATIVE_HISTORY ConnectorType = "NATIVE_HISTORY"

List of ConnectorType

Functions
func NewConnectorTypeFromValue(v string) (*ConnectorType, error)

NewConnectorTypeFromValue returns a pointer to a valid ConnectorType for the value passed as argument, or an error if the value passed is not allowed by the enum

Methods
func (v ConnectorType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (v ConnectorType) Ptr() *ConnectorType

Ptr returns reference to ConnectorType value

func (v *ConnectorType) UnmarshalJSON(src []byte) error
Type ContentDefinition
type ContentDefinition struct {
	MimeType string `json:"mimeType"`
	// text content. Only one of textContent or binary content can be specified
	TextContent *string `json:"textContent,omitempty"`
	// base64 encoded binary content. Only one of textContent or binary content can be specified
	BinaryContent *string `json:"binaryContent,omitempty"`
}

ContentDefinition Describes text content or base64 encoded binary content

Functions
func NewContentDefinition(mimeType string) *ContentDefinition

NewContentDefinition instantiates a new ContentDefinition 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 NewContentDefinitionWithDefaults() *ContentDefinition

NewContentDefinitionWithDefaults instantiates a new ContentDefinition 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 *ContentDefinition) GetBinaryContent() string

GetBinaryContent returns the BinaryContent field value if set, zero value otherwise.

func (o *ContentDefinition) GetBinaryContentOk() (*string, bool)

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

func (o *ContentDefinition) GetMimeType() string

GetMimeType returns the MimeType field value

func (o *ContentDefinition) GetMimeTypeOk() (*string, bool)

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

func (o *ContentDefinition) GetTextContent() string

GetTextContent returns the TextContent field value if set, zero value otherwise.

func (o *ContentDefinition) GetTextContentOk() (*string, bool)

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

func (o *ContentDefinition) HasBinaryContent() bool

HasBinaryContent returns a boolean if a field has been set.

func (o *ContentDefinition) HasTextContent() bool

HasTextContent returns a boolean if a field has been set.

func (o ContentDefinition) MarshalJSON() ([]byte, error)
func (o *ContentDefinition) SetBinaryContent(v string)

SetBinaryContent gets a reference to the given string and assigns it to the BinaryContent field.

func (o *ContentDefinition) SetMimeType(v string)

SetMimeType sets field value

func (o *ContentDefinition) SetTextContent(v string)

SetTextContent gets a reference to the given string and assigns it to the TextContent field.

Type CustomDatasourceConfig
type CustomDatasourceConfig struct {
	// Unique identifier of datasource instance to which this config applies.
	Name string `json:"name"`
	// Example text for what to search for in this datasource
	SuggestionText *string `json:"suggestionText,omitempty"`
	// The user-friendly instance label to display. If omitted, falls back to the title-cased `name`.
	DisplayName *string `json:"displayName,omitempty"`
	// The URL of the landing page for this datasource instance. Should point to the most useful page for users, not the company marketing page.
	HomeUrl *string `json:"homeUrl,omitempty"`
	// This only applies to WEB_CRAWL and BROWSER_CRAWL datasources. Defines the seed urls for crawling.
	CrawlerSeedUrls []string `json:"crawlerSeedUrls,omitempty"`
	// The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs).
	IconDarkUrl *string `json:"iconDarkUrl,omitempty"`
	// The URL to an image to be displayed as an icon for this datasource instance. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs).
	IconUrl *string `json:"iconUrl,omitempty"`
	// The list of top-level `objectType`s for the datasource.
	ObjectDefinitions []ObjectDefinition `json:"objectDefinitions,omitempty"`
	// List of built-in facet types that should be hidden for the datasource.
	HideBuiltInFacets []string `json:"hideBuiltInFacets,omitempty"`
	// Regular expression that matches URLs of documents of the datasource instance. The behavior for multiple matches is non-deterministic. **Note: urlRegex is a required field for non-entity datasources (ie. datasources where isEntityDatasource is false). Please add a regex as specific as possible to this datasource instance.**
	UrlRegex *string `json:"urlRegex,omitempty"`
	// A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for this datasource instance. Regexes are to be applied in the order specified in this list.
	CanonicalizingURLRegex []CanonicalizingRegexType `json:"canonicalizingURLRegex,omitempty"`
	// A list of regular expressions to apply to an arbitrary title to transform it into a title that will be displayed in the search results
	CanonicalizingTitleRegex []CanonicalizingRegexType `json:"canonicalizingTitleRegex,omitempty"`
	// A regex that identifies titles that should not be indexed
	RedlistTitleRegex *string        `json:"redlistTitleRegex,omitempty"`
	ConnectorType     *ConnectorType `json:"connectorType,omitempty"`
	// List of actions for this datasource instance that will show up in autocomplete and app card, e.g. \"Create new issue\" for jira
	Quicklinks []Quicklink `json:"quicklinks,omitempty"`
	// The name of a render config to use for displaying results from this datasource. Any well known datasource name may be used to render the same as that source, e.g. `web` or `gdrive`.
	RenderConfigPreset *string `json:"renderConfigPreset,omitempty"`
	// Aliases that can be used as `app` operator-values.
	Aliases []string `json:"aliases,omitempty"`
	// The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED.
	DatasourceCategory *string `json:"datasourceCategory,omitempty"`
	// Whether or not this datasource is hosted on-premise.
	IsOnPrem *bool `json:"isOnPrem,omitempty"`
	// True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load.
	TrustUrlRegexForViewActivity *bool `json:"trustUrlRegexForViewActivity,omitempty"`
	// If true, a utm_source query param will be added to outbound links to this datasource within Glean.
	IncludeUtmSource *bool `json:"includeUtmSource,omitempty"`
	// If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already.
	IdentityDatasourceName *string `json:"identityDatasourceName,omitempty"`
	// If the datasource uses a specific product access group, then the name of that group.
	ProductAccessGroup *string `json:"productAccessGroup,omitempty"`
	// whether email is used to reference users in document ACLs and in group memberships.
	IsUserReferencedByEmail *bool `json:"isUserReferencedByEmail,omitempty"`
	// True if this datasource is used to push custom entities.
	IsEntityDatasource *bool `json:"isEntityDatasource,omitempty"`
	// True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings.
	IsTestDatasource *bool `json:"isTestDatasource,omitempty"`
}

CustomDatasourceConfig Structure describing config properties of a custom datasource

Functions
func NewCustomDatasourceConfig(name string) *CustomDatasourceConfig

NewCustomDatasourceConfig instantiates a new CustomDatasourceConfig 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 NewCustomDatasourceConfigWithDefaults() *CustomDatasourceConfig

NewCustomDatasourceConfigWithDefaults instantiates a new CustomDatasourceConfig 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 *CustomDatasourceConfig) GetAliases() []string

GetAliases returns the Aliases field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetAliasesOk() ([]string, bool)

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

func (o *CustomDatasourceConfig) GetCanonicalizingTitleRegex() []CanonicalizingRegexType

GetCanonicalizingTitleRegex returns the CanonicalizingTitleRegex field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetCanonicalizingTitleRegexOk() ([]CanonicalizingRegexType, bool)

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

func (o *CustomDatasourceConfig) GetCanonicalizingURLRegex() []CanonicalizingRegexType

GetCanonicalizingURLRegex returns the CanonicalizingURLRegex field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetCanonicalizingURLRegexOk() ([]CanonicalizingRegexType, bool)

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

func (o *CustomDatasourceConfig) GetConnectorType() ConnectorType

GetConnectorType returns the ConnectorType field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetConnectorTypeOk() (*ConnectorType, bool)

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

func (o *CustomDatasourceConfig) GetCrawlerSeedUrls() []string

GetCrawlerSeedUrls returns the CrawlerSeedUrls field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetCrawlerSeedUrlsOk() ([]string, bool)

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

func (o *CustomDatasourceConfig) GetDatasourceCategory() string

GetDatasourceCategory returns the DatasourceCategory field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetDatasourceCategoryOk() (*string, bool)

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

func (o *CustomDatasourceConfig) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetDisplayNameOk() (*string, bool)

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

func (o *CustomDatasourceConfig) GetHideBuiltInFacets() []string

GetHideBuiltInFacets returns the HideBuiltInFacets field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetHideBuiltInFacetsOk() ([]string, bool)

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

func (o *CustomDatasourceConfig) GetHomeUrl() string

GetHomeUrl returns the HomeUrl field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetHomeUrlOk() (*string, bool)

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

func (o *CustomDatasourceConfig) GetIconDarkUrl() string

GetIconDarkUrl returns the IconDarkUrl field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetIconDarkUrlOk() (*string, bool)

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

func (o *CustomDatasourceConfig) GetIconUrl() string

GetIconUrl returns the IconUrl field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetIconUrlOk() (*string, bool)

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

func (o *CustomDatasourceConfig) GetIdentityDatasourceName() string

GetIdentityDatasourceName returns the IdentityDatasourceName field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetIdentityDatasourceNameOk() (*string, bool)

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

func (o *CustomDatasourceConfig) GetIncludeUtmSource() bool

GetIncludeUtmSource returns the IncludeUtmSource field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetIncludeUtmSourceOk() (*bool, bool)

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

func (o *CustomDatasourceConfig) GetIsEntityDatasource() bool

GetIsEntityDatasource returns the IsEntityDatasource field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetIsEntityDatasourceOk() (*bool, bool)

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

func (o *CustomDatasourceConfig) GetIsOnPrem() bool

GetIsOnPrem returns the IsOnPrem field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetIsOnPremOk() (*bool, bool)

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

func (o *CustomDatasourceConfig) GetIsTestDatasource() bool

GetIsTestDatasource returns the IsTestDatasource field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetIsTestDatasourceOk() (*bool, bool)

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

func (o *CustomDatasourceConfig) GetIsUserReferencedByEmail() bool

GetIsUserReferencedByEmail returns the IsUserReferencedByEmail field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetIsUserReferencedByEmailOk() (*bool, bool)

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

func (o *CustomDatasourceConfig) GetName() string

GetName returns the Name field value

func (o *CustomDatasourceConfig) 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 *CustomDatasourceConfig) GetObjectDefinitions() []ObjectDefinition

GetObjectDefinitions returns the ObjectDefinitions field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetObjectDefinitionsOk() ([]ObjectDefinition, bool)

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

func (o *CustomDatasourceConfig) GetProductAccessGroup() string

GetProductAccessGroup returns the ProductAccessGroup field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetProductAccessGroupOk() (*string, bool)

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

func (o *CustomDatasourceConfig) GetQuicklinks() []Quicklink

GetQuicklinks returns the Quicklinks field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetQuicklinksOk() ([]Quicklink, bool)

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

func (o *CustomDatasourceConfig) GetRedlistTitleRegex() string

GetRedlistTitleRegex returns the RedlistTitleRegex field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetRedlistTitleRegexOk() (*string, bool)

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

func (o *CustomDatasourceConfig) GetRenderConfigPreset() string

GetRenderConfigPreset returns the RenderConfigPreset field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetRenderConfigPresetOk() (*string, bool)

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

func (o *CustomDatasourceConfig) GetSuggestionText() string

GetSuggestionText returns the SuggestionText field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetSuggestionTextOk() (*string, bool)

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

func (o *CustomDatasourceConfig) GetTrustUrlRegexForViewActivity() bool

GetTrustUrlRegexForViewActivity returns the TrustUrlRegexForViewActivity field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetTrustUrlRegexForViewActivityOk() (*bool, bool)

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

func (o *CustomDatasourceConfig) GetUrlRegex() string

GetUrlRegex returns the UrlRegex field value if set, zero value otherwise.

func (o *CustomDatasourceConfig) GetUrlRegexOk() (*string, bool)

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

func (o *CustomDatasourceConfig) HasAliases() bool

HasAliases returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasCanonicalizingTitleRegex() bool

HasCanonicalizingTitleRegex returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasCanonicalizingURLRegex() bool

HasCanonicalizingURLRegex returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasConnectorType() bool

HasConnectorType returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasCrawlerSeedUrls() bool

HasCrawlerSeedUrls returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasDatasourceCategory() bool

HasDatasourceCategory returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasHideBuiltInFacets() bool

HasHideBuiltInFacets returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasHomeUrl() bool

HasHomeUrl returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasIconDarkUrl() bool

HasIconDarkUrl returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasIconUrl() bool

HasIconUrl returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasIdentityDatasourceName() bool

HasIdentityDatasourceName returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasIncludeUtmSource() bool

HasIncludeUtmSource returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasIsEntityDatasource() bool

HasIsEntityDatasource returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasIsOnPrem() bool

HasIsOnPrem returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasIsTestDatasource() bool

HasIsTestDatasource returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasIsUserReferencedByEmail() bool

HasIsUserReferencedByEmail returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasObjectDefinitions() bool

HasObjectDefinitions returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasProductAccessGroup() bool

HasProductAccessGroup returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasQuicklinks() bool

HasQuicklinks returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasRedlistTitleRegex() bool

HasRedlistTitleRegex returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasRenderConfigPreset() bool

HasRenderConfigPreset returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasSuggestionText() bool

HasSuggestionText returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasTrustUrlRegexForViewActivity() bool

HasTrustUrlRegexForViewActivity returns a boolean if a field has been set.

func (o *CustomDatasourceConfig) HasUrlRegex() bool

HasUrlRegex returns a boolean if a field has been set.

func (o CustomDatasourceConfig) MarshalJSON() ([]byte, error)
func (o *CustomDatasourceConfig) SetAliases(v []string)

SetAliases gets a reference to the given []string and assigns it to the Aliases field.

func (o *CustomDatasourceConfig) SetCanonicalizingTitleRegex(v []CanonicalizingRegexType)

SetCanonicalizingTitleRegex gets a reference to the given []CanonicalizingRegexType and assigns it to the CanonicalizingTitleRegex field.

func (o *CustomDatasourceConfig) SetCanonicalizingURLRegex(v []CanonicalizingRegexType)

SetCanonicalizingURLRegex gets a reference to the given []CanonicalizingRegexType and assigns it to the CanonicalizingURLRegex field.

func (o *CustomDatasourceConfig) SetConnectorType(v ConnectorType)

SetConnectorType gets a reference to the given ConnectorType and assigns it to the ConnectorType field.

func (o *CustomDatasourceConfig) SetCrawlerSeedUrls(v []string)

SetCrawlerSeedUrls gets a reference to the given []string and assigns it to the CrawlerSeedUrls field.

func (o *CustomDatasourceConfig) SetDatasourceCategory(v string)

SetDatasourceCategory gets a reference to the given string and assigns it to the DatasourceCategory field.

func (o *CustomDatasourceConfig) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (o *CustomDatasourceConfig) SetHideBuiltInFacets(v []string)

SetHideBuiltInFacets gets a reference to the given []string and assigns it to the HideBuiltInFacets field.

func (o *CustomDatasourceConfig) SetHomeUrl(v string)

SetHomeUrl gets a reference to the given string and assigns it to the HomeUrl field.

func (o *CustomDatasourceConfig) SetIconDarkUrl(v string)

SetIconDarkUrl gets a reference to the given string and assigns it to the IconDarkUrl field.

func (o *CustomDatasourceConfig) SetIconUrl(v string)

SetIconUrl gets a reference to the given string and assigns it to the IconUrl field.

func (o *CustomDatasourceConfig) SetIdentityDatasourceName(v string)

SetIdentityDatasourceName gets a reference to the given string and assigns it to the IdentityDatasourceName field.

func (o *CustomDatasourceConfig) SetIncludeUtmSource(v bool)

SetIncludeUtmSource gets a reference to the given bool and assigns it to the IncludeUtmSource field.

func (o *CustomDatasourceConfig) SetIsEntityDatasource(v bool)

SetIsEntityDatasource gets a reference to the given bool and assigns it to the IsEntityDatasource field.

func (o *CustomDatasourceConfig) SetIsOnPrem(v bool)

SetIsOnPrem gets a reference to the given bool and assigns it to the IsOnPrem field.

func (o *CustomDatasourceConfig) SetIsTestDatasource(v bool)

SetIsTestDatasource gets a reference to the given bool and assigns it to the IsTestDatasource field.

func (o *CustomDatasourceConfig) SetIsUserReferencedByEmail(v bool)

SetIsUserReferencedByEmail gets a reference to the given bool and assigns it to the IsUserReferencedByEmail field.

func (o *CustomDatasourceConfig) SetName(v string)

SetName sets field value

func (o *CustomDatasourceConfig) SetObjectDefinitions(v []ObjectDefinition)

SetObjectDefinitions gets a reference to the given []ObjectDefinition and assigns it to the ObjectDefinitions field.

func (o *CustomDatasourceConfig) SetProductAccessGroup(v string)

SetProductAccessGroup gets a reference to the given string and assigns it to the ProductAccessGroup field.

func (o *CustomDatasourceConfig) SetQuicklinks(v []Quicklink)

SetQuicklinks gets a reference to the given []Quicklink and assigns it to the Quicklinks field.

func (o *CustomDatasourceConfig) SetRedlistTitleRegex(v string)

SetRedlistTitleRegex gets a reference to the given string and assigns it to the RedlistTitleRegex field.

func (o *CustomDatasourceConfig) SetRenderConfigPreset(v string)

SetRenderConfigPreset gets a reference to the given string and assigns it to the RenderConfigPreset field.

func (o *CustomDatasourceConfig) SetSuggestionText(v string)

SetSuggestionText gets a reference to the given string and assigns it to the SuggestionText field.

func (o *CustomDatasourceConfig) SetTrustUrlRegexForViewActivity(v bool)

SetTrustUrlRegexForViewActivity gets a reference to the given bool and assigns it to the TrustUrlRegexForViewActivity field.

func (o *CustomDatasourceConfig) SetUrlRegex(v string)

SetUrlRegex gets a reference to the given string and assigns it to the UrlRegex field.

Type CustomDatasourceConfigAllOf
type CustomDatasourceConfigAllOf struct {
	// If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already.
	IdentityDatasourceName *string `json:"identityDatasourceName,omitempty"`
	// If the datasource uses a specific product access group, then the name of that group.
	ProductAccessGroup *string `json:"productAccessGroup,omitempty"`
	// whether email is used to reference users in document ACLs and in group memberships.
	IsUserReferencedByEmail *bool `json:"isUserReferencedByEmail,omitempty"`
	// True if this datasource is used to push custom entities.
	IsEntityDatasource *bool `json:"isEntityDatasource,omitempty"`
	// True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings.
	IsTestDatasource *bool `json:"isTestDatasource,omitempty"`
}

CustomDatasourceConfigAllOf struct for CustomDatasourceConfigAllOf

Functions
func NewCustomDatasourceConfigAllOf() *CustomDatasourceConfigAllOf

NewCustomDatasourceConfigAllOf instantiates a new CustomDatasourceConfigAllOf 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 NewCustomDatasourceConfigAllOfWithDefaults() *CustomDatasourceConfigAllOf

NewCustomDatasourceConfigAllOfWithDefaults instantiates a new CustomDatasourceConfigAllOf 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 *CustomDatasourceConfigAllOf) GetIdentityDatasourceName() string

GetIdentityDatasourceName returns the IdentityDatasourceName field value if set, zero value otherwise.

func (o *CustomDatasourceConfigAllOf) GetIdentityDatasourceNameOk() (*string, bool)

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

func (o *CustomDatasourceConfigAllOf) GetIsEntityDatasource() bool

GetIsEntityDatasource returns the IsEntityDatasource field value if set, zero value otherwise.

func (o *CustomDatasourceConfigAllOf) GetIsEntityDatasourceOk() (*bool, bool)

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

func (o *CustomDatasourceConfigAllOf) GetIsTestDatasource() bool

GetIsTestDatasource returns the IsTestDatasource field value if set, zero value otherwise.

func (o *CustomDatasourceConfigAllOf) GetIsTestDatasourceOk() (*bool, bool)

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

func (o *CustomDatasourceConfigAllOf) GetIsUserReferencedByEmail() bool

GetIsUserReferencedByEmail returns the IsUserReferencedByEmail field value if set, zero value otherwise.

func (o *CustomDatasourceConfigAllOf) GetIsUserReferencedByEmailOk() (*bool, bool)

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

func (o *CustomDatasourceConfigAllOf) GetProductAccessGroup() string

GetProductAccessGroup returns the ProductAccessGroup field value if set, zero value otherwise.

func (o *CustomDatasourceConfigAllOf) GetProductAccessGroupOk() (*string, bool)

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

func (o *CustomDatasourceConfigAllOf) HasIdentityDatasourceName() bool

HasIdentityDatasourceName returns a boolean if a field has been set.

func (o *CustomDatasourceConfigAllOf) HasIsEntityDatasource() bool

HasIsEntityDatasource returns a boolean if a field has been set.

func (o *CustomDatasourceConfigAllOf) HasIsTestDatasource() bool

HasIsTestDatasource returns a boolean if a field has been set.

func (o *CustomDatasourceConfigAllOf) HasIsUserReferencedByEmail() bool

HasIsUserReferencedByEmail returns a boolean if a field has been set.

func (o *CustomDatasourceConfigAllOf) HasProductAccessGroup() bool

HasProductAccessGroup returns a boolean if a field has been set.

func (o CustomDatasourceConfigAllOf) MarshalJSON() ([]byte, error)
func (o *CustomDatasourceConfigAllOf) SetIdentityDatasourceName(v string)

SetIdentityDatasourceName gets a reference to the given string and assigns it to the IdentityDatasourceName field.

func (o *CustomDatasourceConfigAllOf) SetIsEntityDatasource(v bool)

SetIsEntityDatasource gets a reference to the given bool and assigns it to the IsEntityDatasource field.

func (o *CustomDatasourceConfigAllOf) SetIsTestDatasource(v bool)

SetIsTestDatasource gets a reference to the given bool and assigns it to the IsTestDatasource field.

func (o *CustomDatasourceConfigAllOf) SetIsUserReferencedByEmail(v bool)

SetIsUserReferencedByEmail gets a reference to the given bool and assigns it to the IsUserReferencedByEmail field.

func (o *CustomDatasourceConfigAllOf) SetProductAccessGroup(v string)

SetProductAccessGroup gets a reference to the given string and assigns it to the ProductAccessGroup field.

Type CustomProperty
type CustomProperty struct {
	Name *string `json:"name,omitempty"`
	// Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this.
	Value interface{} `json:"value,omitempty"`
}

CustomProperty Describes the custom properties of the object.

Functions
func NewCustomProperty() *CustomProperty

NewCustomProperty instantiates a new CustomProperty 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 NewCustomPropertyWithDefaults() *CustomProperty

NewCustomPropertyWithDefaults instantiates a new CustomProperty 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 *CustomProperty) GetName() string

GetName returns the Name field value if set, zero value otherwise.

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

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

func (o *CustomProperty) GetValue() interface{}

GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).

func (o *CustomProperty) GetValueOk() (*interface{}, bool)

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, nil, true will be returned

func (o *CustomProperty) HasName() bool

HasName returns a boolean if a field has been set.

func (o *CustomProperty) HasValue() bool

HasValue returns a boolean if a field has been set.

func (o CustomProperty) MarshalJSON() ([]byte, error)
func (o *CustomProperty) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (o *CustomProperty) SetValue(v interface{})

SetValue gets a reference to the given interface{} and assigns it to the Value field.

Type DatasourceBulkMembershipDefinition
type DatasourceBulkMembershipDefinition struct {
	// If the member is a user, then the email or datasource id for the user
	MemberUserId *string `json:"memberUserId,omitempty"`
	// If the member is a group, then the name of the member group
	MemberGroupName *string `json:"memberGroupName,omitempty"`
}

DatasourceBulkMembershipDefinition describes the membership row of a group in the bulk uploaded. Only one of memberUserId and memberGroupName can be specified.

Functions
func NewDatasourceBulkMembershipDefinition() *DatasourceBulkMembershipDefinition

NewDatasourceBulkMembershipDefinition instantiates a new DatasourceBulkMembershipDefinition 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 NewDatasourceBulkMembershipDefinitionWithDefaults() *DatasourceBulkMembershipDefinition

NewDatasourceBulkMembershipDefinitionWithDefaults instantiates a new DatasourceBulkMembershipDefinition 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 *DatasourceBulkMembershipDefinition) GetMemberGroupName() string

GetMemberGroupName returns the MemberGroupName field value if set, zero value otherwise.

func (o *DatasourceBulkMembershipDefinition) GetMemberGroupNameOk() (*string, bool)

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

func (o *DatasourceBulkMembershipDefinition) GetMemberUserId() string

GetMemberUserId returns the MemberUserId field value if set, zero value otherwise.

func (o *DatasourceBulkMembershipDefinition) GetMemberUserIdOk() (*string, bool)

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

func (o *DatasourceBulkMembershipDefinition) HasMemberGroupName() bool

HasMemberGroupName returns a boolean if a field has been set.

func (o *DatasourceBulkMembershipDefinition) HasMemberUserId() bool

HasMemberUserId returns a boolean if a field has been set.

func (o DatasourceBulkMembershipDefinition) MarshalJSON() ([]byte, error)
func (o *DatasourceBulkMembershipDefinition) SetMemberGroupName(v string)

SetMemberGroupName gets a reference to the given string and assigns it to the MemberGroupName field.

func (o *DatasourceBulkMembershipDefinition) SetMemberUserId(v string)

SetMemberUserId gets a reference to the given string and assigns it to the MemberUserId field.

Type DatasourceConfigList
type DatasourceConfigList struct {
	// Datasource configuration.
	DatasourceConfig []SharedDatasourceConfig `json:"datasourceConfig"`
}

DatasourceConfigList List of datasource configurations.

Functions
func NewDatasourceConfigList(datasourceConfig []SharedDatasourceConfig) *DatasourceConfigList

NewDatasourceConfigList instantiates a new DatasourceConfigList 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 NewDatasourceConfigListWithDefaults() *DatasourceConfigList

NewDatasourceConfigListWithDefaults instantiates a new DatasourceConfigList 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 *DatasourceConfigList) GetDatasourceConfig() []SharedDatasourceConfig

GetDatasourceConfig returns the DatasourceConfig field value

func (o *DatasourceConfigList) GetDatasourceConfigOk() ([]SharedDatasourceConfig, bool)

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

func (o DatasourceConfigList) MarshalJSON() ([]byte, error)
func (o *DatasourceConfigList) SetDatasourceConfig(v []SharedDatasourceConfig)

SetDatasourceConfig sets field value

Type DatasourceGroupDefinition
type DatasourceGroupDefinition struct {
	// name of the group. Should be unique among all groups for the datasource, and cannot have spaces.
	Name string `json:"name"`
}

DatasourceGroupDefinition describes a group in the datasource

Functions
func NewDatasourceGroupDefinition(name string) *DatasourceGroupDefinition

NewDatasourceGroupDefinition instantiates a new DatasourceGroupDefinition 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 NewDatasourceGroupDefinitionWithDefaults() *DatasourceGroupDefinition

NewDatasourceGroupDefinitionWithDefaults instantiates a new DatasourceGroupDefinition 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 *DatasourceGroupDefinition) GetName() string

GetName returns the Name field value

func (o *DatasourceGroupDefinition) 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 DatasourceGroupDefinition) MarshalJSON() ([]byte, error)
func (o *DatasourceGroupDefinition) SetName(v string)

SetName sets field value

Type DatasourceMembershipDefinition
type DatasourceMembershipDefinition struct {
	// The group for which the membership is specified
	GroupName string `json:"groupName"`
	// If the member is a user, then the email or datasource id for the user
	MemberUserId *string `json:"memberUserId,omitempty"`
	// If the member is a group, then the name of the member group
	MemberGroupName *string `json:"memberGroupName,omitempty"`
}

DatasourceMembershipDefinition describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified.

Functions
func NewDatasourceMembershipDefinition(groupName string) *DatasourceMembershipDefinition

NewDatasourceMembershipDefinition instantiates a new DatasourceMembershipDefinition 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 NewDatasourceMembershipDefinitionWithDefaults() *DatasourceMembershipDefinition

NewDatasourceMembershipDefinitionWithDefaults instantiates a new DatasourceMembershipDefinition 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 *DatasourceMembershipDefinition) GetGroupName() string

GetGroupName returns the GroupName field value

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

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

func (o *DatasourceMembershipDefinition) GetMemberGroupName() string

GetMemberGroupName returns the MemberGroupName field value if set, zero value otherwise.

func (o *DatasourceMembershipDefinition) GetMemberGroupNameOk() (*string, bool)

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

func (o *DatasourceMembershipDefinition) GetMemberUserId() string

GetMemberUserId returns the MemberUserId field value if set, zero value otherwise.

func (o *DatasourceMembershipDefinition) GetMemberUserIdOk() (*string, bool)

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

func (o *DatasourceMembershipDefinition) HasMemberGroupName() bool

HasMemberGroupName returns a boolean if a field has been set.

func (o *DatasourceMembershipDefinition) HasMemberUserId() bool

HasMemberUserId returns a boolean if a field has been set.

func (o DatasourceMembershipDefinition) MarshalJSON() ([]byte, error)
func (o *DatasourceMembershipDefinition) SetGroupName(v string)

SetGroupName sets field value

func (o *DatasourceMembershipDefinition) SetMemberGroupName(v string)

SetMemberGroupName gets a reference to the given string and assigns it to the MemberGroupName field.

func (o *DatasourceMembershipDefinition) SetMemberUserId(v string)

SetMemberUserId gets a reference to the given string and assigns it to the MemberUserId field.

Type DatasourceProfile
type DatasourceProfile struct {
	// The datasource the profile is of.
	Datasource string `json:"datasource"`
	// The display name of the person in the given datasource.
	Handle string `json:"handle"`
	// URL to view the user's profile.
	Url *string `json:"url,omitempty"`
	// A deep link, if available, into the datasource's native application for the user's platform (i.e. slack://...).
	NativeAppUrl *string `json:"nativeAppUrl,omitempty"`
	// For internal use only. True iff the data source profile was manually added by a user from within Glean (aka not from the original data source)
	IsUserGenerated *bool `json:"isUserGenerated,omitempty"`
}

DatasourceProfile struct for DatasourceProfile

Functions
func NewDatasourceProfile(datasource string, handle string) *DatasourceProfile

NewDatasourceProfile instantiates a new DatasourceProfile 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 NewDatasourceProfileWithDefaults() *DatasourceProfile

NewDatasourceProfileWithDefaults instantiates a new DatasourceProfile 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 *DatasourceProfile) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *DatasourceProfile) GetDatasourceOk() (*string, bool)

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

func (o *DatasourceProfile) GetHandle() string

GetHandle returns the Handle field value

func (o *DatasourceProfile) GetHandleOk() (*string, bool)

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

func (o *DatasourceProfile) GetIsUserGenerated() bool

GetIsUserGenerated returns the IsUserGenerated field value if set, zero value otherwise.

func (o *DatasourceProfile) GetIsUserGeneratedOk() (*bool, bool)

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

func (o *DatasourceProfile) GetNativeAppUrl() string

GetNativeAppUrl returns the NativeAppUrl field value if set, zero value otherwise.

func (o *DatasourceProfile) GetNativeAppUrlOk() (*string, bool)

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

func (o *DatasourceProfile) GetUrl() string

GetUrl returns the Url field value if set, zero value otherwise.

func (o *DatasourceProfile) GetUrlOk() (*string, bool)

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

func (o *DatasourceProfile) HasIsUserGenerated() bool

HasIsUserGenerated returns a boolean if a field has been set.

func (o *DatasourceProfile) HasNativeAppUrl() bool

HasNativeAppUrl returns a boolean if a field has been set.

func (o *DatasourceProfile) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (o DatasourceProfile) MarshalJSON() ([]byte, error)
func (o *DatasourceProfile) SetDatasource(v string)

SetDatasource sets field value

func (o *DatasourceProfile) SetHandle(v string)

SetHandle sets field value

func (o *DatasourceProfile) SetIsUserGenerated(v bool)

SetIsUserGenerated gets a reference to the given bool and assigns it to the IsUserGenerated field.

func (o *DatasourceProfile) SetNativeAppUrl(v string)

SetNativeAppUrl gets a reference to the given string and assigns it to the NativeAppUrl field.

func (o *DatasourceProfile) SetUrl(v string)

SetUrl gets a reference to the given string and assigns it to the Url field.

Type DatasourceUserDefinition
type DatasourceUserDefinition struct {
	Email *string `json:"email,omitempty"`
	// To be supplied if the user id in the datasource is not the email
	UserId *string `json:"userId,omitempty"`
	Name   string  `json:"name"`
	// set to false if the user is a former employee or a bot
	IsActive *bool `json:"isActive,omitempty"`
}

DatasourceUserDefinition describes a user in the datasource

Functions
func NewDatasourceUserDefinition(name string) *DatasourceUserDefinition

NewDatasourceUserDefinition instantiates a new DatasourceUserDefinition 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 NewDatasourceUserDefinitionWithDefaults() *DatasourceUserDefinition

NewDatasourceUserDefinitionWithDefaults instantiates a new DatasourceUserDefinition 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 *DatasourceUserDefinition) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (o *DatasourceUserDefinition) GetEmailOk() (*string, bool)

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

func (o *DatasourceUserDefinition) GetIsActive() bool

GetIsActive returns the IsActive field value if set, zero value otherwise.

func (o *DatasourceUserDefinition) GetIsActiveOk() (*bool, bool)

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

func (o *DatasourceUserDefinition) GetName() string

GetName returns the Name field value

func (o *DatasourceUserDefinition) 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 *DatasourceUserDefinition) GetUserId() string

GetUserId returns the UserId field value if set, zero value otherwise.

func (o *DatasourceUserDefinition) GetUserIdOk() (*string, bool)

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

func (o *DatasourceUserDefinition) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (o *DatasourceUserDefinition) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

func (o *DatasourceUserDefinition) HasUserId() bool

HasUserId returns a boolean if a field has been set.

func (o DatasourceUserDefinition) MarshalJSON() ([]byte, error)
func (o *DatasourceUserDefinition) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (o *DatasourceUserDefinition) SetIsActive(v bool)

SetIsActive gets a reference to the given bool and assigns it to the IsActive field.

func (o *DatasourceUserDefinition) SetName(v string)

SetName sets field value

func (o *DatasourceUserDefinition) SetUserId(v string)

SetUserId gets a reference to the given string and assigns it to the UserId field.

Type DatasourcesApiService
type DatasourcesApiService service

DatasourcesApiService DatasourcesApi service

Methods
func (a *DatasourcesApiService) AdddatasourcePost(ctx context.Context) ApiAdddatasourcePostRequest

AdddatasourcePost Add datasource

API to register a custom datasource type and its schema.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAdddatasourcePostRequest
func (a *DatasourcesApiService) AdddatasourcePostExecute(r ApiAdddatasourcePostRequest) (*http.Response, error)

Execute executes the request

func (a *DatasourcesApiService) GetdatasourceconfigPost(ctx context.Context) ApiGetdatasourceconfigPostRequest

GetdatasourceconfigPost Get datasource config

Fetches the datasource config for the specified custom datasource.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetdatasourceconfigPostRequest
func (a *DatasourcesApiService) GetdatasourceconfigPostExecute(r ApiGetdatasourceconfigPostRequest) (*CustomDatasourceConfig, *http.Response, error)

Execute executes the request

@return CustomDatasourceConfig
Type DeleteDocumentRequest
type DeleteDocumentRequest struct {
	// Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done.
	Version *int64 `json:"version,omitempty"`
	// datasource of the document
	Datasource string `json:"datasource"`
	// object type of the document
	ObjectType string `json:"objectType"`
	// The id of the document
	Id string `json:"id"`
}

DeleteDocumentRequest Describes the request body of the /deletedocument API call

Functions
func NewDeleteDocumentRequest(datasource string, objectType string, id string) *DeleteDocumentRequest

NewDeleteDocumentRequest instantiates a new DeleteDocumentRequest 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 NewDeleteDocumentRequestWithDefaults() *DeleteDocumentRequest

NewDeleteDocumentRequestWithDefaults instantiates a new DeleteDocumentRequest 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 *DeleteDocumentRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *DeleteDocumentRequest) GetDatasourceOk() (*string, bool)

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

func (o *DeleteDocumentRequest) GetId() string

GetId returns the Id field value

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

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

func (o *DeleteDocumentRequest) GetObjectType() string

GetObjectType returns the ObjectType field value

func (o *DeleteDocumentRequest) GetObjectTypeOk() (*string, bool)

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

func (o *DeleteDocumentRequest) GetVersion() int64

GetVersion returns the Version field value if set, zero value otherwise.

func (o *DeleteDocumentRequest) GetVersionOk() (*int64, bool)

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

func (o *DeleteDocumentRequest) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (o DeleteDocumentRequest) MarshalJSON() ([]byte, error)
func (o *DeleteDocumentRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *DeleteDocumentRequest) SetId(v string)

SetId sets field value

func (o *DeleteDocumentRequest) SetObjectType(v string)

SetObjectType sets field value

func (o *DeleteDocumentRequest) SetVersion(v int64)

SetVersion gets a reference to the given int64 and assigns it to the Version field.

Type DeleteEmployeeRequest
type DeleteEmployeeRequest struct {
	// Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done.
	Version *int64 `json:"version,omitempty"`
	// The deleted employee's email
	EmployeeEmail string `json:"employeeEmail"`
}

DeleteEmployeeRequest Describes the request body of the /deleteemployee API call

Functions
func NewDeleteEmployeeRequest(employeeEmail string) *DeleteEmployeeRequest

NewDeleteEmployeeRequest instantiates a new DeleteEmployeeRequest 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 NewDeleteEmployeeRequestWithDefaults() *DeleteEmployeeRequest

NewDeleteEmployeeRequestWithDefaults instantiates a new DeleteEmployeeRequest 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 *DeleteEmployeeRequest) GetEmployeeEmail() string

GetEmployeeEmail returns the EmployeeEmail field value

func (o *DeleteEmployeeRequest) GetEmployeeEmailOk() (*string, bool)

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

func (o *DeleteEmployeeRequest) GetVersion() int64

GetVersion returns the Version field value if set, zero value otherwise.

func (o *DeleteEmployeeRequest) GetVersionOk() (*int64, bool)

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

func (o *DeleteEmployeeRequest) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (o DeleteEmployeeRequest) MarshalJSON() ([]byte, error)
func (o *DeleteEmployeeRequest) SetEmployeeEmail(v string)

SetEmployeeEmail sets field value

func (o *DeleteEmployeeRequest) SetVersion(v int64)

SetVersion gets a reference to the given int64 and assigns it to the Version field.

Type DeleteGroupRequest
type DeleteGroupRequest struct {
	// Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done.
	Version *int64 `json:"version,omitempty"`
	// The datasource for which the group is removed
	Datasource string `json:"datasource"`
	// the name of the group to be deleted
	GroupName string `json:"groupName"`
}

DeleteGroupRequest Describes the request body of the /deletegroup API call

Functions
func NewDeleteGroupRequest(datasource string, groupName string) *DeleteGroupRequest

NewDeleteGroupRequest instantiates a new DeleteGroupRequest 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 NewDeleteGroupRequestWithDefaults() *DeleteGroupRequest

NewDeleteGroupRequestWithDefaults instantiates a new DeleteGroupRequest 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 *DeleteGroupRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *DeleteGroupRequest) GetDatasourceOk() (*string, bool)

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

func (o *DeleteGroupRequest) GetGroupName() string

GetGroupName returns the GroupName field value

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

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

func (o *DeleteGroupRequest) GetVersion() int64

GetVersion returns the Version field value if set, zero value otherwise.

func (o *DeleteGroupRequest) GetVersionOk() (*int64, bool)

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

func (o *DeleteGroupRequest) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (o DeleteGroupRequest) MarshalJSON() ([]byte, error)
func (o *DeleteGroupRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *DeleteGroupRequest) SetGroupName(v string)

SetGroupName sets field value

func (o *DeleteGroupRequest) SetVersion(v int64)

SetVersion gets a reference to the given int64 and assigns it to the Version field.

Type DeleteMembershipRequest
type DeleteMembershipRequest struct {
	// Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done.
	Version *int64 `json:"version,omitempty"`
	// The datasource for which the membership is removed
	Datasource string                         `json:"datasource"`
	Membership DatasourceMembershipDefinition `json:"membership"`
}

DeleteMembershipRequest Describes the request body of the /deletemembership API call

Functions
func NewDeleteMembershipRequest(datasource string, membership DatasourceMembershipDefinition) *DeleteMembershipRequest

NewDeleteMembershipRequest instantiates a new DeleteMembershipRequest 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 NewDeleteMembershipRequestWithDefaults() *DeleteMembershipRequest

NewDeleteMembershipRequestWithDefaults instantiates a new DeleteMembershipRequest 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 *DeleteMembershipRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *DeleteMembershipRequest) GetDatasourceOk() (*string, bool)

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

func (o *DeleteMembershipRequest) GetMembership() DatasourceMembershipDefinition

GetMembership returns the Membership field value

func (o *DeleteMembershipRequest) GetMembershipOk() (*DatasourceMembershipDefinition, bool)

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

func (o *DeleteMembershipRequest) GetVersion() int64

GetVersion returns the Version field value if set, zero value otherwise.

func (o *DeleteMembershipRequest) GetVersionOk() (*int64, bool)

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

func (o *DeleteMembershipRequest) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (o DeleteMembershipRequest) MarshalJSON() ([]byte, error)
func (o *DeleteMembershipRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *DeleteMembershipRequest) SetMembership(v DatasourceMembershipDefinition)

SetMembership sets field value

func (o *DeleteMembershipRequest) SetVersion(v int64)

SetVersion gets a reference to the given int64 and assigns it to the Version field.

Type DeleteUserRequest
type DeleteUserRequest struct {
	// Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done.
	Version *int64 `json:"version,omitempty"`
	// The datasource for which the user is removed
	Datasource string `json:"datasource"`
	// The email of the user to be deleted
	Email string `json:"email"`
}

DeleteUserRequest Describes the request body of the /deleteuser API call

Functions
func NewDeleteUserRequest(datasource string, email string) *DeleteUserRequest

NewDeleteUserRequest instantiates a new DeleteUserRequest 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 NewDeleteUserRequestWithDefaults() *DeleteUserRequest

NewDeleteUserRequestWithDefaults instantiates a new DeleteUserRequest 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 *DeleteUserRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *DeleteUserRequest) GetDatasourceOk() (*string, bool)

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

func (o *DeleteUserRequest) GetEmail() string

GetEmail returns the Email field value

func (o *DeleteUserRequest) GetEmailOk() (*string, bool)

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

func (o *DeleteUserRequest) GetVersion() int64

GetVersion returns the Version field value if set, zero value otherwise.

func (o *DeleteUserRequest) GetVersionOk() (*int64, bool)

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

func (o *DeleteUserRequest) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (o DeleteUserRequest) MarshalJSON() ([]byte, error)
func (o *DeleteUserRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *DeleteUserRequest) SetEmail(v string)

SetEmail sets field value

func (o *DeleteUserRequest) SetVersion(v int64)

SetVersion gets a reference to the given int64 and assigns it to the Version field.

Type DocumentDefinition
type DocumentDefinition struct {
	// Document title, in plain text, if present.
	Title *string `json:"title,omitempty"`
	// The container for the content (Folder for example for file content).
	Container  *string `json:"container,omitempty"`
	Datasource string  `json:"datasource"`
	// The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _
	ObjectType *string `json:"objectType,omitempty"`
	// The permalink for viewing the document.
	ViewURL *string `json:"viewURL,omitempty"`
	// The datasource specific id for the document. This should not be more than 200 characters in length.
	Id          *string                        `json:"id,omitempty"`
	Summary     *ContentDefinition             `json:"summary,omitempty"`
	Body        *ContentDefinition             `json:"body,omitempty"`
	Author      *UserReferenceDefinition       `json:"author,omitempty"`
	Owner       *UserReferenceDefinition       `json:"owner,omitempty"`
	Permissions *DocumentPermissionsDefinition `json:"permissions,omitempty"`
	// The creation time, in epoch seconds.
	CreatedAt *int64 `json:"createdAt,omitempty"`
	// The last update time, in epoch seconds.
	UpdatedAt *int64                   `json:"updatedAt,omitempty"`
	UpdatedBy *UserReferenceDefinition `json:"updatedBy,omitempty"`
	// Labels associated with the document.
	Tags         []string                        `json:"tags,omitempty"`
	Interactions *DocumentInteractionsDefinition `json:"interactions,omitempty"`
	Status       *string                         `json:"status,omitempty"`
	// Additional variations of the url that this document points to.
	AdditionalUrls []string `json:"additionalUrls,omitempty"`
	// Additional metadata properties of the document.
	CustomProperties []CustomProperty `json:"customProperties,omitempty"`
}

DocumentDefinition Indexable document structure

Functions
func NewDocumentDefinition(datasource string) *DocumentDefinition

NewDocumentDefinition instantiates a new DocumentDefinition 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 NewDocumentDefinitionWithDefaults() *DocumentDefinition

NewDocumentDefinitionWithDefaults instantiates a new DocumentDefinition 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 *DocumentDefinition) GetAdditionalUrls() []string

GetAdditionalUrls returns the AdditionalUrls field value if set, zero value otherwise.

func (o *DocumentDefinition) GetAdditionalUrlsOk() ([]string, bool)

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

func (o *DocumentDefinition) GetAuthor() UserReferenceDefinition

GetAuthor returns the Author field value if set, zero value otherwise.

func (o *DocumentDefinition) GetAuthorOk() (*UserReferenceDefinition, 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 *DocumentDefinition) GetBody() ContentDefinition

GetBody returns the Body field value if set, zero value otherwise.

func (o *DocumentDefinition) GetBodyOk() (*ContentDefinition, 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 *DocumentDefinition) GetContainer() string

GetContainer returns the Container field value if set, zero value otherwise.

func (o *DocumentDefinition) GetContainerOk() (*string, bool)

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

func (o *DocumentDefinition) GetCreatedAt() int64

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

func (o *DocumentDefinition) GetCreatedAtOk() (*int64, bool)

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

func (o *DocumentDefinition) GetCustomProperties() []CustomProperty

GetCustomProperties returns the CustomProperties field value if set, zero value otherwise.

func (o *DocumentDefinition) GetCustomPropertiesOk() ([]CustomProperty, bool)

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

func (o *DocumentDefinition) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *DocumentDefinition) GetDatasourceOk() (*string, bool)

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

func (o *DocumentDefinition) GetId() string

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

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

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

func (o *DocumentDefinition) GetInteractions() DocumentInteractionsDefinition

GetInteractions returns the Interactions field value if set, zero value otherwise.

func (o *DocumentDefinition) GetInteractionsOk() (*DocumentInteractionsDefinition, bool)

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

func (o *DocumentDefinition) GetObjectType() string

GetObjectType returns the ObjectType field value if set, zero value otherwise.

func (o *DocumentDefinition) GetObjectTypeOk() (*string, bool)

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

func (o *DocumentDefinition) GetOwner() UserReferenceDefinition

GetOwner returns the Owner field value if set, zero value otherwise.

func (o *DocumentDefinition) GetOwnerOk() (*UserReferenceDefinition, bool)

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

func (o *DocumentDefinition) GetPermissions() DocumentPermissionsDefinition

GetPermissions returns the Permissions field value if set, zero value otherwise.

func (o *DocumentDefinition) GetPermissionsOk() (*DocumentPermissionsDefinition, 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 *DocumentDefinition) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

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

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

func (o *DocumentDefinition) GetSummary() ContentDefinition

GetSummary returns the Summary field value if set, zero value otherwise.

func (o *DocumentDefinition) GetSummaryOk() (*ContentDefinition, bool)

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

func (o *DocumentDefinition) GetTags() []string

GetTags returns the Tags field value if set, zero value otherwise.

func (o *DocumentDefinition) GetTagsOk() ([]string, bool)

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

func (o *DocumentDefinition) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (o *DocumentDefinition) 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 *DocumentDefinition) GetUpdatedAt() int64

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

func (o *DocumentDefinition) GetUpdatedAtOk() (*int64, bool)

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

func (o *DocumentDefinition) GetUpdatedBy() UserReferenceDefinition

GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise.

func (o *DocumentDefinition) GetUpdatedByOk() (*UserReferenceDefinition, 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 *DocumentDefinition) GetViewURL() string

GetViewURL returns the ViewURL field value if set, zero value otherwise.

func (o *DocumentDefinition) 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 *DocumentDefinition) HasAdditionalUrls() bool

HasAdditionalUrls returns a boolean if a field has been set.

func (o *DocumentDefinition) HasAuthor() bool

HasAuthor returns a boolean if a field has been set.

func (o *DocumentDefinition) HasBody() bool

HasBody returns a boolean if a field has been set.

func (o *DocumentDefinition) HasContainer() bool

HasContainer returns a boolean if a field has been set.

func (o *DocumentDefinition) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (o *DocumentDefinition) HasCustomProperties() bool

HasCustomProperties returns a boolean if a field has been set.

func (o *DocumentDefinition) HasId() bool

HasId returns a boolean if a field has been set.

func (o *DocumentDefinition) HasInteractions() bool

HasInteractions returns a boolean if a field has been set.

func (o *DocumentDefinition) HasObjectType() bool

HasObjectType returns a boolean if a field has been set.

func (o *DocumentDefinition) HasOwner() bool

HasOwner returns a boolean if a field has been set.

func (o *DocumentDefinition) HasPermissions() bool

HasPermissions returns a boolean if a field has been set.

func (o *DocumentDefinition) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (o *DocumentDefinition) HasSummary() bool

HasSummary returns a boolean if a field has been set.

func (o *DocumentDefinition) HasTags() bool

HasTags returns a boolean if a field has been set.

func (o *DocumentDefinition) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (o *DocumentDefinition) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (o *DocumentDefinition) HasUpdatedBy() bool

HasUpdatedBy returns a boolean if a field has been set.

func (o *DocumentDefinition) HasViewURL() bool

HasViewURL returns a boolean if a field has been set.

func (o DocumentDefinition) MarshalJSON() ([]byte, error)
func (o *DocumentDefinition) SetAdditionalUrls(v []string)

SetAdditionalUrls gets a reference to the given []string and assigns it to the AdditionalUrls field.

func (o *DocumentDefinition) SetAuthor(v UserReferenceDefinition)

SetAuthor gets a reference to the given UserReferenceDefinition and assigns it to the Author field.

func (o *DocumentDefinition) SetBody(v ContentDefinition)

SetBody gets a reference to the given ContentDefinition and assigns it to the Body field.

func (o *DocumentDefinition) SetContainer(v string)

SetContainer gets a reference to the given string and assigns it to the Container field.

func (o *DocumentDefinition) SetCreatedAt(v int64)

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

func (o *DocumentDefinition) SetCustomProperties(v []CustomProperty)

SetCustomProperties gets a reference to the given []CustomProperty and assigns it to the CustomProperties field.

func (o *DocumentDefinition) SetDatasource(v string)

SetDatasource sets field value

func (o *DocumentDefinition) SetId(v string)

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

func (o *DocumentDefinition) SetInteractions(v DocumentInteractionsDefinition)

SetInteractions gets a reference to the given DocumentInteractionsDefinition and assigns it to the Interactions field.

func (o *DocumentDefinition) SetObjectType(v string)

SetObjectType gets a reference to the given string and assigns it to the ObjectType field.

func (o *DocumentDefinition) SetOwner(v UserReferenceDefinition)

SetOwner gets a reference to the given UserReferenceDefinition and assigns it to the Owner field.

func (o *DocumentDefinition) SetPermissions(v DocumentPermissionsDefinition)

SetPermissions gets a reference to the given DocumentPermissionsDefinition and assigns it to the Permissions field.

func (o *DocumentDefinition) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (o *DocumentDefinition) SetSummary(v ContentDefinition)

SetSummary gets a reference to the given ContentDefinition and assigns it to the Summary field.

func (o *DocumentDefinition) SetTags(v []string)

SetTags gets a reference to the given []string and assigns it to the Tags field.

func (o *DocumentDefinition) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (o *DocumentDefinition) SetUpdatedAt(v int64)

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

func (o *DocumentDefinition) SetUpdatedBy(v UserReferenceDefinition)

SetUpdatedBy gets a reference to the given UserReferenceDefinition and assigns it to the UpdatedBy field.

func (o *DocumentDefinition) SetViewURL(v string)

SetViewURL gets a reference to the given string and assigns it to the ViewURL field.

Type DocumentInteractionsDefinition
type DocumentInteractionsDefinition struct {
	NumViews    *int32 `json:"numViews,omitempty"`
	NumLikes    *int32 `json:"numLikes,omitempty"`
	NumComments *int32 `json:"numComments,omitempty"`
}

DocumentInteractionsDefinition describes the interactions on the document

Functions
func NewDocumentInteractionsDefinition() *DocumentInteractionsDefinition

NewDocumentInteractionsDefinition instantiates a new DocumentInteractionsDefinition 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 NewDocumentInteractionsDefinitionWithDefaults() *DocumentInteractionsDefinition

NewDocumentInteractionsDefinitionWithDefaults instantiates a new DocumentInteractionsDefinition 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 *DocumentInteractionsDefinition) GetNumComments() int32

GetNumComments returns the NumComments field value if set, zero value otherwise.

func (o *DocumentInteractionsDefinition) GetNumCommentsOk() (*int32, bool)

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

func (o *DocumentInteractionsDefinition) GetNumLikes() int32

GetNumLikes returns the NumLikes field value if set, zero value otherwise.

func (o *DocumentInteractionsDefinition) GetNumLikesOk() (*int32, bool)

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

func (o *DocumentInteractionsDefinition) GetNumViews() int32

GetNumViews returns the NumViews field value if set, zero value otherwise.

func (o *DocumentInteractionsDefinition) GetNumViewsOk() (*int32, bool)

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

func (o *DocumentInteractionsDefinition) HasNumComments() bool

HasNumComments returns a boolean if a field has been set.

func (o *DocumentInteractionsDefinition) HasNumLikes() bool

HasNumLikes returns a boolean if a field has been set.

func (o *DocumentInteractionsDefinition) HasNumViews() bool

HasNumViews returns a boolean if a field has been set.

func (o DocumentInteractionsDefinition) MarshalJSON() ([]byte, error)
func (o *DocumentInteractionsDefinition) SetNumComments(v int32)

SetNumComments gets a reference to the given int32 and assigns it to the NumComments field.

func (o *DocumentInteractionsDefinition) SetNumLikes(v int32)

SetNumLikes gets a reference to the given int32 and assigns it to the NumLikes field.

func (o *DocumentInteractionsDefinition) SetNumViews(v int32)

SetNumViews gets a reference to the given int32 and assigns it to the NumViews field.

Type DocumentPermissionsDefinition
type DocumentPermissionsDefinition struct {
	// List of users who can view the document
	AllowedUsers []UserReferenceDefinition `json:"allowedUsers,omitempty"`
	// List of groups that can view the document
	AllowedGroups []string `json:"allowedGroups,omitempty"`
	// List of allowed group intersections. This describes a permissions constraint of the form ((GroupA AND GroupB AND GroupC) OR (GroupX AND GroupY) OR ...
	AllowedGroupIntersections []PermissionsGroupIntersectionDefinition `json:"allowedGroupIntersections,omitempty"`
	// If true, then any Glean user can view the document
	AllowAnonymousAccess *bool `json:"allowAnonymousAccess,omitempty"`
	// If true, then any user who has an account in the datasource can view the document.
	AllowAllDatasourceUsersAccess *bool `json:"allowAllDatasourceUsersAccess,omitempty"`
}

DocumentPermissionsDefinition describes the access control details of the document

Functions
func NewDocumentPermissionsDefinition() *DocumentPermissionsDefinition

NewDocumentPermissionsDefinition instantiates a new DocumentPermissionsDefinition 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 NewDocumentPermissionsDefinitionWithDefaults() *DocumentPermissionsDefinition

NewDocumentPermissionsDefinitionWithDefaults instantiates a new DocumentPermissionsDefinition 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 *DocumentPermissionsDefinition) GetAllowAllDatasourceUsersAccess() bool

GetAllowAllDatasourceUsersAccess returns the AllowAllDatasourceUsersAccess field value if set, zero value otherwise.

func (o *DocumentPermissionsDefinition) GetAllowAllDatasourceUsersAccessOk() (*bool, bool)

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

func (o *DocumentPermissionsDefinition) GetAllowAnonymousAccess() bool

GetAllowAnonymousAccess returns the AllowAnonymousAccess field value if set, zero value otherwise.

func (o *DocumentPermissionsDefinition) GetAllowAnonymousAccessOk() (*bool, bool)

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

func (o *DocumentPermissionsDefinition) GetAllowedGroupIntersections() []PermissionsGroupIntersectionDefinition

GetAllowedGroupIntersections returns the AllowedGroupIntersections field value if set, zero value otherwise.

func (o *DocumentPermissionsDefinition) GetAllowedGroupIntersectionsOk() ([]PermissionsGroupIntersectionDefinition, bool)

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

func (o *DocumentPermissionsDefinition) GetAllowedGroups() []string

GetAllowedGroups returns the AllowedGroups field value if set, zero value otherwise.

func (o *DocumentPermissionsDefinition) GetAllowedGroupsOk() ([]string, bool)

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

func (o *DocumentPermissionsDefinition) GetAllowedUsers() []UserReferenceDefinition

GetAllowedUsers returns the AllowedUsers field value if set, zero value otherwise.

func (o *DocumentPermissionsDefinition) GetAllowedUsersOk() ([]UserReferenceDefinition, bool)

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

func (o *DocumentPermissionsDefinition) HasAllowAllDatasourceUsersAccess() bool

HasAllowAllDatasourceUsersAccess returns a boolean if a field has been set.

func (o *DocumentPermissionsDefinition) HasAllowAnonymousAccess() bool

HasAllowAnonymousAccess returns a boolean if a field has been set.

func (o *DocumentPermissionsDefinition) HasAllowedGroupIntersections() bool

HasAllowedGroupIntersections returns a boolean if a field has been set.

func (o *DocumentPermissionsDefinition) HasAllowedGroups() bool

HasAllowedGroups returns a boolean if a field has been set.

func (o *DocumentPermissionsDefinition) HasAllowedUsers() bool

HasAllowedUsers returns a boolean if a field has been set.

func (o DocumentPermissionsDefinition) MarshalJSON() ([]byte, error)
func (o *DocumentPermissionsDefinition) SetAllowAllDatasourceUsersAccess(v bool)

SetAllowAllDatasourceUsersAccess gets a reference to the given bool and assigns it to the AllowAllDatasourceUsersAccess field.

func (o *DocumentPermissionsDefinition) SetAllowAnonymousAccess(v bool)

SetAllowAnonymousAccess gets a reference to the given bool and assigns it to the AllowAnonymousAccess field.

func (o *DocumentPermissionsDefinition) SetAllowedGroupIntersections(v []PermissionsGroupIntersectionDefinition)

SetAllowedGroupIntersections gets a reference to the given []PermissionsGroupIntersectionDefinition and assigns it to the AllowedGroupIntersections field.

func (o *DocumentPermissionsDefinition) SetAllowedGroups(v []string)

SetAllowedGroups gets a reference to the given []string and assigns it to the AllowedGroups field.

func (o *DocumentPermissionsDefinition) SetAllowedUsers(v []UserReferenceDefinition)

SetAllowedUsers gets a reference to the given []UserReferenceDefinition and assigns it to the AllowedUsers field.

Type DocumentsApiService
type DocumentsApiService service

DocumentsApiService DocumentsApi service

Methods
func (a *DocumentsApiService) BulkindexdocumentsPost(ctx context.Context) ApiBulkindexdocumentsPostRequest

BulkindexdocumentsPost Bulk index documents

Replaces the documents in a datasource using paginated batch API calls.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBulkindexdocumentsPostRequest
func (a *DocumentsApiService) BulkindexdocumentsPostExecute(r ApiBulkindexdocumentsPostRequest) (*http.Response, error)

Execute executes the request

func (a *DocumentsApiService) DeletedocumentPost(ctx context.Context) ApiDeletedocumentPostRequest

DeletedocumentPost Delete document

Deletes the specified document from the index. Succeeds if document is not present.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDeletedocumentPostRequest
func (a *DocumentsApiService) DeletedocumentPostExecute(r ApiDeletedocumentPostRequest) (*http.Response, error)

Execute executes the request

func (a *DocumentsApiService) GetdocumentcountPost(ctx context.Context) ApiGetdocumentcountPostRequest

GetdocumentcountPost Get document count

Fetches document count for the specified custom datasource.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetdocumentcountPostRequest
func (a *DocumentsApiService) GetdocumentcountPostExecute(r ApiGetdocumentcountPostRequest) (*GetDocumentCountResponse, *http.Response, error)

Execute executes the request

@return GetDocumentCountResponse
func (a *DocumentsApiService) GetdocumentstatusPost(ctx context.Context) ApiGetdocumentstatusPostRequest

GetdocumentstatusPost Get document upload and indexing status

Intended for debugging/validation. Fetches the current upload and indexing status of documents.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetdocumentstatusPostRequest
func (a *DocumentsApiService) GetdocumentstatusPostExecute(r ApiGetdocumentstatusPostRequest) (*GetDocumentStatusResponse, *http.Response, error)

Execute executes the request

@return GetDocumentStatusResponse
func (a *DocumentsApiService) IndexdocumentPost(ctx context.Context) ApiIndexdocumentPostRequest

IndexdocumentPost Index document

Adds a document to the index or updates an existing document.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiIndexdocumentPostRequest
func (a *DocumentsApiService) IndexdocumentPostExecute(r ApiIndexdocumentPostRequest) (*http.Response, error)

Execute executes the request

func (a *DocumentsApiService) ProcessalldocumentsPost(ctx context.Context) ApiProcessalldocumentsPostRequest

ProcessalldocumentsPost Schedules the processing of uploaded documents

Schedules the immediate processing of documents uploaded through the indexing API. By default the uploaded documents will be processed asynchronously but this API can be used to schedule processing of all documents on demand.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiProcessalldocumentsPostRequest
func (a *DocumentsApiService) ProcessalldocumentsPostExecute(r ApiProcessalldocumentsPostRequest) (*http.Response, error)

Execute executes the request

Type EmployeeAndVersionDefinition
type EmployeeAndVersionDefinition struct {
	Employee *EmployeeInfoDefinition `json:"employee,omitempty"`
	// Version number for the employee object. If absent or 0 then no version checks are done
	Version *int64 `json:"version,omitempty"`
}

EmployeeAndVersionDefinition describes info about an employee and optional version for that info

Functions
func NewEmployeeAndVersionDefinition() *EmployeeAndVersionDefinition

NewEmployeeAndVersionDefinition instantiates a new EmployeeAndVersionDefinition 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 NewEmployeeAndVersionDefinitionWithDefaults() *EmployeeAndVersionDefinition

NewEmployeeAndVersionDefinitionWithDefaults instantiates a new EmployeeAndVersionDefinition 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 *EmployeeAndVersionDefinition) GetEmployee() EmployeeInfoDefinition

GetEmployee returns the Employee field value if set, zero value otherwise.

func (o *EmployeeAndVersionDefinition) GetEmployeeOk() (*EmployeeInfoDefinition, bool)

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

func (o *EmployeeAndVersionDefinition) GetVersion() int64

GetVersion returns the Version field value if set, zero value otherwise.

func (o *EmployeeAndVersionDefinition) GetVersionOk() (*int64, bool)

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

func (o *EmployeeAndVersionDefinition) HasEmployee() bool

HasEmployee returns a boolean if a field has been set.

func (o *EmployeeAndVersionDefinition) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (o EmployeeAndVersionDefinition) MarshalJSON() ([]byte, error)
func (o *EmployeeAndVersionDefinition) SetEmployee(v EmployeeInfoDefinition)

SetEmployee gets a reference to the given EmployeeInfoDefinition and assigns it to the Employee field.

func (o *EmployeeAndVersionDefinition) SetVersion(v int64)

SetVersion gets a reference to the given int64 and assigns it to the Version field.

Type EmployeeInfoDefinition
type EmployeeInfoDefinition struct {
	// The employee's email
	Email string `json:"email"`
	// The first name of the employee
	FirstName *string `json:"firstName,omitempty"`
	// The last name of the employee
	LastName *string `json:"lastName,omitempty"`
	// The preferred name or nickname of the employee
	PreferredName *string `json:"preferredName,omitempty"`
	// **[Advanced]** A unique universal internal identifier for the employee. This is solely used for understanding manager relationships along with `managerId`.
	Id *string `json:"id,omitempty"`
	// The employee's phone number.
	PhoneNumber *string `json:"phoneNumber,omitempty"`
	// The employee's location (city/office name etc).
	// Deprecated
	Location           *string             `json:"location,omitempty"`
	StructuredLocation *StructuredLocation `json:"structuredLocation,omitempty"`
	// The employee's role title.
	Title *string `json:"title,omitempty"`
	// The employee's profile pic
	PhotoUrl *string `json:"photoUrl,omitempty"`
	// Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses.
	BusinessUnit *string `json:"businessUnit,omitempty"`
	// An organizational unit where everyone has a similar task, e.g. `Engineering`.
	Department string `json:"department"`
	// The datasource profiles of the employee, e.g. `Slack`,`Github`.
	DatasourceProfiles []DatasourceProfile `json:"datasourceProfiles,omitempty"`
	// Info about the employee's team(s)
	Teams []EmployeeTeamInfo `json:"teams,omitempty"`
	// The date when the employee started
	StartDate *string `json:"startDate,omitempty"`
	// If a former employee, the last date of employment.
	EndDate *string `json:"endDate,omitempty"`
	// Short biography or mission statement of the employee.
	Bio *string `json:"bio,omitempty"`
	// She/her, He/his or other pronoun.
	Pronoun *string `json:"pronoun,omitempty"`
	// Other names associated with the employee.
	AlsoKnownAs []string `json:"alsoKnownAs,omitempty"`
	// Link to internal company person profile.
	ProfileUrl *string `json:"profileUrl,omitempty"`
	// List of social network profiles.
	SocialNetworks []SocialNetworkDefinition `json:"socialNetworks,omitempty"`
	// The email of the employee's manager
	ManagerEmail *string `json:"managerEmail,omitempty"`
	// **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely used in conjunction with `id`.
	ManagerId *string `json:"managerId,omitempty"`
	// The status of the employee, an enum of `CURRENT`, `FUTURE`, `EX`
	Status *string `json:"status,omitempty"`
	// List of additional fields with more information about the employee.
	AdditionalFields []AdditionalFieldDefinition `json:"additionalFields,omitempty"`
}

EmployeeInfoDefinition Describes employee info

Functions
func NewEmployeeInfoDefinition(email string, department string) *EmployeeInfoDefinition

NewEmployeeInfoDefinition instantiates a new EmployeeInfoDefinition 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 NewEmployeeInfoDefinitionWithDefaults() *EmployeeInfoDefinition

NewEmployeeInfoDefinitionWithDefaults instantiates a new EmployeeInfoDefinition 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 *EmployeeInfoDefinition) GetAdditionalFields() []AdditionalFieldDefinition

GetAdditionalFields returns the AdditionalFields field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetAdditionalFieldsOk() ([]AdditionalFieldDefinition, bool)

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

func (o *EmployeeInfoDefinition) GetAlsoKnownAs() []string

GetAlsoKnownAs returns the AlsoKnownAs field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetAlsoKnownAsOk() ([]string, bool)

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

func (o *EmployeeInfoDefinition) GetBio() string

GetBio returns the Bio field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetBioOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetBusinessUnit() string

GetBusinessUnit returns the BusinessUnit field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetBusinessUnitOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetDatasourceProfiles() []DatasourceProfile

GetDatasourceProfiles returns the DatasourceProfiles field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetDatasourceProfilesOk() ([]DatasourceProfile, bool)

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

func (o *EmployeeInfoDefinition) GetDepartment() string

GetDepartment returns the Department field value

func (o *EmployeeInfoDefinition) GetDepartmentOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetEmail() string

GetEmail returns the Email field value

func (o *EmployeeInfoDefinition) GetEmailOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetEndDate() string

GetEndDate returns the EndDate field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetEndDateOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetFirstName() string

GetFirstName returns the FirstName field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetFirstNameOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetId() string

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

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

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

func (o *EmployeeInfoDefinition) GetLastName() string

GetLastName returns the LastName field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetLastNameOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetLocation() string

GetLocation returns the Location field value if set, zero value otherwise. Deprecated

func (o *EmployeeInfoDefinition) GetLocationOk() (*string, bool)

GetLocationOk returns a tuple with the Location field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (o *EmployeeInfoDefinition) GetManagerEmail() string

GetManagerEmail returns the ManagerEmail field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetManagerEmailOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetManagerId() string

GetManagerId returns the ManagerId field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetManagerIdOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetPhoneNumber() string

GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetPhoneNumberOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetPhotoUrl() string

GetPhotoUrl returns the PhotoUrl field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetPhotoUrlOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetPreferredName() string

GetPreferredName returns the PreferredName field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetPreferredNameOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetProfileUrl() string

GetProfileUrl returns the ProfileUrl field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetProfileUrlOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetPronoun() string

GetPronoun returns the Pronoun field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetPronounOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetSocialNetworks() []SocialNetworkDefinition

GetSocialNetworks returns the SocialNetworks field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetSocialNetworksOk() ([]SocialNetworkDefinition, bool)

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

func (o *EmployeeInfoDefinition) GetStartDate() string

GetStartDate returns the StartDate field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetStartDateOk() (*string, bool)

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

func (o *EmployeeInfoDefinition) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

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

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

func (o *EmployeeInfoDefinition) GetStructuredLocation() StructuredLocation

GetStructuredLocation returns the StructuredLocation field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetStructuredLocationOk() (*StructuredLocation, bool)

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

func (o *EmployeeInfoDefinition) GetTeams() []EmployeeTeamInfo

GetTeams returns the Teams field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) GetTeamsOk() ([]EmployeeTeamInfo, bool)

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

func (o *EmployeeInfoDefinition) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (o *EmployeeInfoDefinition) 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 *EmployeeInfoDefinition) HasAdditionalFields() bool

HasAdditionalFields returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasAlsoKnownAs() bool

HasAlsoKnownAs returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasBio() bool

HasBio returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasBusinessUnit() bool

HasBusinessUnit returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasDatasourceProfiles() bool

HasDatasourceProfiles returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasEndDate() bool

HasEndDate returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasFirstName() bool

HasFirstName returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasId() bool

HasId returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasLastName() bool

HasLastName returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasLocation() bool

HasLocation returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasManagerEmail() bool

HasManagerEmail returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasManagerId() bool

HasManagerId returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasPhoneNumber() bool

HasPhoneNumber returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasPhotoUrl() bool

HasPhotoUrl returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasPreferredName() bool

HasPreferredName returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasProfileUrl() bool

HasProfileUrl returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasPronoun() bool

HasPronoun returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasSocialNetworks() bool

HasSocialNetworks returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasStartDate() bool

HasStartDate returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasStructuredLocation() bool

HasStructuredLocation returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasTeams() bool

HasTeams returns a boolean if a field has been set.

func (o *EmployeeInfoDefinition) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (o EmployeeInfoDefinition) MarshalJSON() ([]byte, error)
func (o *EmployeeInfoDefinition) SetAdditionalFields(v []AdditionalFieldDefinition)

SetAdditionalFields gets a reference to the given []AdditionalFieldDefinition and assigns it to the AdditionalFields field.

func (o *EmployeeInfoDefinition) SetAlsoKnownAs(v []string)

SetAlsoKnownAs gets a reference to the given []string and assigns it to the AlsoKnownAs field.

func (o *EmployeeInfoDefinition) SetBio(v string)

SetBio gets a reference to the given string and assigns it to the Bio field.

func (o *EmployeeInfoDefinition) SetBusinessUnit(v string)

SetBusinessUnit gets a reference to the given string and assigns it to the BusinessUnit field.

func (o *EmployeeInfoDefinition) SetDatasourceProfiles(v []DatasourceProfile)

SetDatasourceProfiles gets a reference to the given []DatasourceProfile and assigns it to the DatasourceProfiles field.

func (o *EmployeeInfoDefinition) SetDepartment(v string)

SetDepartment sets field value

func (o *EmployeeInfoDefinition) SetEmail(v string)

SetEmail sets field value

func (o *EmployeeInfoDefinition) SetEndDate(v string)

SetEndDate gets a reference to the given string and assigns it to the EndDate field.

func (o *EmployeeInfoDefinition) SetFirstName(v string)

SetFirstName gets a reference to the given string and assigns it to the FirstName field.

func (o *EmployeeInfoDefinition) SetId(v string)

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

func (o *EmployeeInfoDefinition) SetLastName(v string)

SetLastName gets a reference to the given string and assigns it to the LastName field.

func (o *EmployeeInfoDefinition) SetLocation(v string)

SetLocation gets a reference to the given string and assigns it to the Location field. Deprecated

func (o *EmployeeInfoDefinition) SetManagerEmail(v string)

SetManagerEmail gets a reference to the given string and assigns it to the ManagerEmail field.

func (o *EmployeeInfoDefinition) SetManagerId(v string)

SetManagerId gets a reference to the given string and assigns it to the ManagerId field.

func (o *EmployeeInfoDefinition) SetPhoneNumber(v string)

SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field.

func (o *EmployeeInfoDefinition) SetPhotoUrl(v string)

SetPhotoUrl gets a reference to the given string and assigns it to the PhotoUrl field.

func (o *EmployeeInfoDefinition) SetPreferredName(v string)

SetPreferredName gets a reference to the given string and assigns it to the PreferredName field.

func (o *EmployeeInfoDefinition) SetProfileUrl(v string)

SetProfileUrl gets a reference to the given string and assigns it to the ProfileUrl field.

func (o *EmployeeInfoDefinition) SetPronoun(v string)

SetPronoun gets a reference to the given string and assigns it to the Pronoun field.

func (o *EmployeeInfoDefinition) SetSocialNetworks(v []SocialNetworkDefinition)

SetSocialNetworks gets a reference to the given []SocialNetworkDefinition and assigns it to the SocialNetworks field.

func (o *EmployeeInfoDefinition) SetStartDate(v string)

SetStartDate gets a reference to the given string and assigns it to the StartDate field.

func (o *EmployeeInfoDefinition) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (o *EmployeeInfoDefinition) SetStructuredLocation(v StructuredLocation)

SetStructuredLocation gets a reference to the given StructuredLocation and assigns it to the StructuredLocation field.

func (o *EmployeeInfoDefinition) SetTeams(v []EmployeeTeamInfo)

SetTeams gets a reference to the given []EmployeeTeamInfo and assigns it to the Teams field.

func (o *EmployeeInfoDefinition) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

Type EmployeeTeamInfo
type EmployeeTeamInfo struct {
	// unique identifier for this team
	Id *string `json:"id,omitempty"`
	// Team name
	Name *string `json:"name,omitempty"`
	// Link to internal company team page
	Url *string `json:"url,omitempty"`
}

EmployeeTeamInfo Information about which team an employee belongs to

Functions
func NewEmployeeTeamInfo() *EmployeeTeamInfo

NewEmployeeTeamInfo instantiates a new EmployeeTeamInfo 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 NewEmployeeTeamInfoWithDefaults() *EmployeeTeamInfo

NewEmployeeTeamInfoWithDefaults instantiates a new EmployeeTeamInfo 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 *EmployeeTeamInfo) GetId() string

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

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

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

func (o *EmployeeTeamInfo) GetName() string

GetName returns the Name field value if set, zero value otherwise.

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

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

func (o *EmployeeTeamInfo) GetUrl() string

GetUrl returns the Url field value if set, zero value otherwise.

func (o *EmployeeTeamInfo) GetUrlOk() (*string, bool)

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

func (o *EmployeeTeamInfo) HasId() bool

HasId returns a boolean if a field has been set.

func (o *EmployeeTeamInfo) HasName() bool

HasName returns a boolean if a field has been set.

func (o *EmployeeTeamInfo) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (o EmployeeTeamInfo) MarshalJSON() ([]byte, error)
func (o *EmployeeTeamInfo) SetId(v string)

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

func (o *EmployeeTeamInfo) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (o *EmployeeTeamInfo) SetUrl(v string)

SetUrl gets a reference to the given string and assigns it to the Url field.

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

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

Methods
func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (e GenericOpenAPIError) Error() string

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

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

Type GetDatasourceConfigRequest
type GetDatasourceConfigRequest struct {
	// Datasource name for which config is needed.
	Name *string `json:"name,omitempty"`
}

GetDatasourceConfigRequest Describes the request body of the /getdatasourceconfig API call

Functions
func NewGetDatasourceConfigRequest() *GetDatasourceConfigRequest

NewGetDatasourceConfigRequest instantiates a new GetDatasourceConfigRequest 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 NewGetDatasourceConfigRequestWithDefaults() *GetDatasourceConfigRequest

NewGetDatasourceConfigRequestWithDefaults instantiates a new GetDatasourceConfigRequest 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 *GetDatasourceConfigRequest) GetName() string

GetName returns the Name field value if set, zero value otherwise.

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

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

func (o *GetDatasourceConfigRequest) HasName() bool

HasName returns a boolean if a field has been set.

func (o GetDatasourceConfigRequest) MarshalJSON() ([]byte, error)
func (o *GetDatasourceConfigRequest) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

Type GetDocumentCountRequest
type GetDocumentCountRequest struct {
	// Datasource name for which document count is needed.
	Name string `json:"name"`
}

GetDocumentCountRequest Describes the request body of the /getdocumentcount API call

Functions
func NewGetDocumentCountRequest(name string) *GetDocumentCountRequest

NewGetDocumentCountRequest instantiates a new GetDocumentCountRequest 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 NewGetDocumentCountRequestWithDefaults() *GetDocumentCountRequest

NewGetDocumentCountRequestWithDefaults instantiates a new GetDocumentCountRequest 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 *GetDocumentCountRequest) GetName() string

GetName returns the Name field value

func (o *GetDocumentCountRequest) 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 GetDocumentCountRequest) MarshalJSON() ([]byte, error)
func (o *GetDocumentCountRequest) SetName(v string)

SetName sets field value

Type GetDocumentCountResponse
type GetDocumentCountResponse struct {
	// Number of documents corresponding to the specified custom datasource.
	DocumentCount *int32 `json:"documentCount,omitempty"`
}

GetDocumentCountResponse Describes the response body of the /getdocumentcount API call

Functions
func NewGetDocumentCountResponse() *GetDocumentCountResponse

NewGetDocumentCountResponse instantiates a new GetDocumentCountResponse 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 NewGetDocumentCountResponseWithDefaults() *GetDocumentCountResponse

NewGetDocumentCountResponseWithDefaults instantiates a new GetDocumentCountResponse 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 *GetDocumentCountResponse) GetDocumentCount() int32

GetDocumentCount returns the DocumentCount field value if set, zero value otherwise.

func (o *GetDocumentCountResponse) GetDocumentCountOk() (*int32, bool)

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

func (o *GetDocumentCountResponse) HasDocumentCount() bool

HasDocumentCount returns a boolean if a field has been set.

func (o GetDocumentCountResponse) MarshalJSON() ([]byte, error)
func (o *GetDocumentCountResponse) SetDocumentCount(v int32)

SetDocumentCount gets a reference to the given int32 and assigns it to the DocumentCount field.

Type GetDocumentStatusRequest
type GetDocumentStatusRequest struct {
	// Datasource to get fetch document status for
	Datasource string `json:"datasource"`
	// Object type of the document to get the status for
	ObjectType string `json:"objectType"`
	// Document ID within the datasource to get the status for
	DocId string `json:"docId"`
}

GetDocumentStatusRequest Describes the request body for /getdocumentstatus API call

Functions
func NewGetDocumentStatusRequest(datasource string, objectType string, docId string) *GetDocumentStatusRequest

NewGetDocumentStatusRequest instantiates a new GetDocumentStatusRequest 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 NewGetDocumentStatusRequestWithDefaults() *GetDocumentStatusRequest

NewGetDocumentStatusRequestWithDefaults instantiates a new GetDocumentStatusRequest 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 *GetDocumentStatusRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *GetDocumentStatusRequest) GetDatasourceOk() (*string, bool)

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

func (o *GetDocumentStatusRequest) GetDocId() string

GetDocId returns the DocId field value

func (o *GetDocumentStatusRequest) GetDocIdOk() (*string, bool)

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

func (o *GetDocumentStatusRequest) GetObjectType() string

GetObjectType returns the ObjectType field value

func (o *GetDocumentStatusRequest) GetObjectTypeOk() (*string, bool)

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

func (o GetDocumentStatusRequest) MarshalJSON() ([]byte, error)
func (o *GetDocumentStatusRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *GetDocumentStatusRequest) SetDocId(v string)

SetDocId sets field value

func (o *GetDocumentStatusRequest) SetObjectType(v string)

SetObjectType sets field value

Type GetDocumentStatusResponse
type GetDocumentStatusResponse struct {
	// Upload status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN
	UploadStatus *string `json:"uploadStatus,omitempty"`
	// Time of last successful upload, in epoch seconds
	LastUploadedAt *int64 `json:"lastUploadedAt,omitempty"`
	// Indexing status, enum of NOT_INDEXED, INDEXED, STATUS_UNKNOWN
	IndexingStatus *string `json:"indexingStatus,omitempty"`
	// Time of last successful indexing, in epoch seconds
	LastIndexedAt *int64 `json:"lastIndexedAt,omitempty"`
}

GetDocumentStatusResponse Describes the response body of the /getdocumentstatus API call

Functions
func NewGetDocumentStatusResponse() *GetDocumentStatusResponse

NewGetDocumentStatusResponse instantiates a new GetDocumentStatusResponse 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 NewGetDocumentStatusResponseWithDefaults() *GetDocumentStatusResponse

NewGetDocumentStatusResponseWithDefaults instantiates a new GetDocumentStatusResponse 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 *GetDocumentStatusResponse) GetIndexingStatus() string

GetIndexingStatus returns the IndexingStatus field value if set, zero value otherwise.

func (o *GetDocumentStatusResponse) GetIndexingStatusOk() (*string, bool)

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

func (o *GetDocumentStatusResponse) GetLastIndexedAt() int64

GetLastIndexedAt returns the LastIndexedAt field value if set, zero value otherwise.

func (o *GetDocumentStatusResponse) GetLastIndexedAtOk() (*int64, bool)

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

func (o *GetDocumentStatusResponse) GetLastUploadedAt() int64

GetLastUploadedAt returns the LastUploadedAt field value if set, zero value otherwise.

func (o *GetDocumentStatusResponse) GetLastUploadedAtOk() (*int64, bool)

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

func (o *GetDocumentStatusResponse) GetUploadStatus() string

GetUploadStatus returns the UploadStatus field value if set, zero value otherwise.

func (o *GetDocumentStatusResponse) GetUploadStatusOk() (*string, bool)

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

func (o *GetDocumentStatusResponse) HasIndexingStatus() bool

HasIndexingStatus returns a boolean if a field has been set.

func (o *GetDocumentStatusResponse) HasLastIndexedAt() bool

HasLastIndexedAt returns a boolean if a field has been set.

func (o *GetDocumentStatusResponse) HasLastUploadedAt() bool

HasLastUploadedAt returns a boolean if a field has been set.

func (o *GetDocumentStatusResponse) HasUploadStatus() bool

HasUploadStatus returns a boolean if a field has been set.

func (o GetDocumentStatusResponse) MarshalJSON() ([]byte, error)
func (o *GetDocumentStatusResponse) SetIndexingStatus(v string)

SetIndexingStatus gets a reference to the given string and assigns it to the IndexingStatus field.

func (o *GetDocumentStatusResponse) SetLastIndexedAt(v int64)

SetLastIndexedAt gets a reference to the given int64 and assigns it to the LastIndexedAt field.

func (o *GetDocumentStatusResponse) SetLastUploadedAt(v int64)

SetLastUploadedAt gets a reference to the given int64 and assigns it to the LastUploadedAt field.

func (o *GetDocumentStatusResponse) SetUploadStatus(v string)

SetUploadStatus gets a reference to the given string and assigns it to the UploadStatus field.

Type GetUserCountRequest
type GetUserCountRequest struct {
	// Datasource name for which user count is needed.
	Name *string `json:"name,omitempty"`
}

GetUserCountRequest Describes the request body of the /getusercount API call

Functions
func NewGetUserCountRequest() *GetUserCountRequest

NewGetUserCountRequest instantiates a new GetUserCountRequest 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 NewGetUserCountRequestWithDefaults() *GetUserCountRequest

NewGetUserCountRequestWithDefaults instantiates a new GetUserCountRequest 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 *GetUserCountRequest) GetName() string

GetName returns the Name field value if set, zero value otherwise.

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

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

func (o *GetUserCountRequest) HasName() bool

HasName returns a boolean if a field has been set.

func (o GetUserCountRequest) MarshalJSON() ([]byte, error)
func (o *GetUserCountRequest) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

Type GetUserCountResponse
type GetUserCountResponse struct {
	// Number of users corresponding to the specified custom datasource.
	UserCount *int32 `json:"userCount,omitempty"`
}

GetUserCountResponse Describes the response body of the /getusercount API call

Functions
func NewGetUserCountResponse() *GetUserCountResponse

NewGetUserCountResponse instantiates a new GetUserCountResponse 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 NewGetUserCountResponseWithDefaults() *GetUserCountResponse

NewGetUserCountResponseWithDefaults instantiates a new GetUserCountResponse 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 *GetUserCountResponse) GetUserCount() int32

GetUserCount returns the UserCount field value if set, zero value otherwise.

func (o *GetUserCountResponse) GetUserCountOk() (*int32, bool)

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

func (o *GetUserCountResponse) HasUserCount() bool

HasUserCount returns a boolean if a field has been set.

func (o GetUserCountResponse) MarshalJSON() ([]byte, error)
func (o *GetUserCountResponse) SetUserCount(v int32)

SetUserCount gets a reference to the given int32 and assigns it to the UserCount field.

Type GreenlistUsersRequest
type GreenlistUsersRequest struct {
	// Datasource which needs to be made visible to users specified in the `emails` field.
	Datasource string `json:"datasource"`
	// The emails of the beta users
	Emails []string `json:"emails"`
}

GreenlistUsersRequest Describes the request body of the /betausers API call

Functions
func NewGreenlistUsersRequest(datasource string, emails []string) *GreenlistUsersRequest

NewGreenlistUsersRequest instantiates a new GreenlistUsersRequest 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 NewGreenlistUsersRequestWithDefaults() *GreenlistUsersRequest

NewGreenlistUsersRequestWithDefaults instantiates a new GreenlistUsersRequest 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 *GreenlistUsersRequest) GetDatasource() string

GetDatasource returns the Datasource field value

func (o *GreenlistUsersRequest) GetDatasourceOk() (*string, bool)

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

func (o *GreenlistUsersRequest) GetEmails() []string

GetEmails returns the Emails field value

func (o *GreenlistUsersRequest) GetEmailsOk() ([]string, bool)

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

func (o GreenlistUsersRequest) MarshalJSON() ([]byte, error)
func (o *GreenlistUsersRequest) SetDatasource(v string)

SetDatasource sets field value

func (o *GreenlistUsersRequest) SetEmails(v []string)

SetEmails sets field value

Type HypertextField
type HypertextField struct {
	// Anchor text for the hypertext field.
	Anchor *string `json:"anchor,omitempty"`
	// URL for the hypertext field.
	Hyperlink *string `json:"hyperlink,omitempty"`
}

HypertextField struct for HypertextField

Functions
func NewHypertextField() *HypertextField

NewHypertextField instantiates a new HypertextField 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 NewHypertextFieldWithDefaults() *HypertextField

NewHypertextFieldWithDefaults instantiates a new HypertextField 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 *HypertextField) GetAnchor() string

GetAnchor returns the Anchor field value if set, zero value otherwise.

func (o *HypertextField) GetAnchorOk() (*string, bool)

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

func (o *HypertextField) GetHyperlink() string

GetHyperlink returns the Hyperlink field value if set, zero value otherwise.

func (o *HypertextField) GetHyperlinkOk() (*string, bool)

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

func (o *HypertextField) HasAnchor() bool

HasAnchor returns a boolean if a field has been set.

func (o *HypertextField) HasHyperlink() bool

HasHyperlink returns a boolean if a field has been set.

func (o HypertextField) MarshalJSON() ([]byte, error)
func (o *HypertextField) SetAnchor(v string)

SetAnchor gets a reference to the given string and assigns it to the Anchor field.

func (o *HypertextField) SetHyperlink(v string)

SetHyperlink gets a reference to the given string and assigns it to the Hyperlink field.

Type IconConfig
type IconConfig struct {
	Color    *string `json:"color,omitempty"`
	Key      *string `json:"key,omitempty"`
	IconType *string `json:"iconType,omitempty"`
	// The filename for iconType.GLYPH icons
	Name *string `json:"name,omitempty"`
	// The URL to an image to be displayed for iconType.URL icons
	Url *string `json:"url,omitempty"`
}

IconConfig Defines how to render an icon

Functions
func NewIconConfig() *IconConfig

NewIconConfig instantiates a new IconConfig 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 NewIconConfigWithDefaults() *IconConfig

NewIconConfigWithDefaults instantiates a new IconConfig 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 *IconConfig) GetColor() string

GetColor returns the Color field value if set, zero value otherwise.

func (o *IconConfig) GetColorOk() (*string, bool)

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

func (o *IconConfig) GetIconType() string

GetIconType returns the IconType field value if set, zero value otherwise.

func (o *IconConfig) GetIconTypeOk() (*string, bool)

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

func (o *IconConfig) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (o *IconConfig) GetKeyOk() (*string, bool)

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

func (o *IconConfig) GetName() string

GetName returns the Name field value if set, zero value otherwise.

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

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

func (o *IconConfig) GetUrl() string

GetUrl returns the Url field value if set, zero value otherwise.

func (o *IconConfig) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to chec