Documentation ¶
Overview ¶
Package ideahub provides access to the Idea Hub API.
For product documentation, see: https://console.cloud.google.com/apis/library/ideahub.googleapis.com
Creating a client ¶
Usage example:
import "google.golang.org/api/ideahub/v1beta" ... ctx := context.Background() ideahubService, err := ideahub.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
ideahubService, err := ideahub.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) ideahubService, err := ideahub.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- type GoogleSearchIdeahubV1betaAvailableLocale
- type GoogleSearchIdeahubV1betaIdea
- type GoogleSearchIdeahubV1betaIdeaActivity
- type GoogleSearchIdeahubV1betaIdeaState
- type GoogleSearchIdeahubV1betaListAvailableLocalesResponse
- type GoogleSearchIdeahubV1betaListIdeasResponse
- type GoogleSearchIdeahubV1betaTopic
- type GoogleSearchIdeahubV1betaTopicState
- type PlatformsPropertiesIdeaActivitiesCreateCall
- func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Context(ctx context.Context) *PlatformsPropertiesIdeaActivitiesCreateCall
- func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaIdeaActivity, error)
- func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeaActivitiesCreateCall
- func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Header() http.Header
- type PlatformsPropertiesIdeaActivitiesService
- type PlatformsPropertiesIdeaStatesPatchCall
- func (c *PlatformsPropertiesIdeaStatesPatchCall) Context(ctx context.Context) *PlatformsPropertiesIdeaStatesPatchCall
- func (c *PlatformsPropertiesIdeaStatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaIdeaState, error)
- func (c *PlatformsPropertiesIdeaStatesPatchCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeaStatesPatchCall
- func (c *PlatformsPropertiesIdeaStatesPatchCall) Header() http.Header
- func (c *PlatformsPropertiesIdeaStatesPatchCall) UpdateMask(updateMask string) *PlatformsPropertiesIdeaStatesPatchCall
- type PlatformsPropertiesIdeaStatesService
- type PlatformsPropertiesIdeasListCall
- func (c *PlatformsPropertiesIdeasListCall) Context(ctx context.Context) *PlatformsPropertiesIdeasListCall
- func (c *PlatformsPropertiesIdeasListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaListIdeasResponse, error)
- func (c *PlatformsPropertiesIdeasListCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeasListCall
- func (c *PlatformsPropertiesIdeasListCall) Filter(filter string) *PlatformsPropertiesIdeasListCall
- func (c *PlatformsPropertiesIdeasListCall) Header() http.Header
- func (c *PlatformsPropertiesIdeasListCall) IfNoneMatch(entityTag string) *PlatformsPropertiesIdeasListCall
- func (c *PlatformsPropertiesIdeasListCall) OrderBy(orderBy string) *PlatformsPropertiesIdeasListCall
- func (c *PlatformsPropertiesIdeasListCall) PageSize(pageSize int64) *PlatformsPropertiesIdeasListCall
- func (c *PlatformsPropertiesIdeasListCall) PageToken(pageToken string) *PlatformsPropertiesIdeasListCall
- func (c *PlatformsPropertiesIdeasListCall) Pages(ctx context.Context, f func(*GoogleSearchIdeahubV1betaListIdeasResponse) error) error
- type PlatformsPropertiesIdeasService
- type PlatformsPropertiesLocalesListCall
- func (c *PlatformsPropertiesLocalesListCall) Context(ctx context.Context) *PlatformsPropertiesLocalesListCall
- func (c *PlatformsPropertiesLocalesListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaListAvailableLocalesResponse, error)
- func (c *PlatformsPropertiesLocalesListCall) Fields(s ...googleapi.Field) *PlatformsPropertiesLocalesListCall
- func (c *PlatformsPropertiesLocalesListCall) Header() http.Header
- func (c *PlatformsPropertiesLocalesListCall) IfNoneMatch(entityTag string) *PlatformsPropertiesLocalesListCall
- func (c *PlatformsPropertiesLocalesListCall) PageSize(pageSize int64) *PlatformsPropertiesLocalesListCall
- func (c *PlatformsPropertiesLocalesListCall) PageToken(pageToken string) *PlatformsPropertiesLocalesListCall
- func (c *PlatformsPropertiesLocalesListCall) Pages(ctx context.Context, ...) error
- type PlatformsPropertiesLocalesService
- type PlatformsPropertiesService
- type PlatformsPropertiesTopicStatesPatchCall
- func (c *PlatformsPropertiesTopicStatesPatchCall) Context(ctx context.Context) *PlatformsPropertiesTopicStatesPatchCall
- func (c *PlatformsPropertiesTopicStatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaTopicState, error)
- func (c *PlatformsPropertiesTopicStatesPatchCall) Fields(s ...googleapi.Field) *PlatformsPropertiesTopicStatesPatchCall
- func (c *PlatformsPropertiesTopicStatesPatchCall) Header() http.Header
- func (c *PlatformsPropertiesTopicStatesPatchCall) UpdateMask(updateMask string) *PlatformsPropertiesTopicStatesPatchCall
- type PlatformsPropertiesTopicStatesService
- type PlatformsService
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleSearchIdeahubV1betaAvailableLocale ¶
type GoogleSearchIdeahubV1betaAvailableLocale struct { // Locale: A string in BCP 47 format, without a resource prefix. Locale string `json:"locale,omitempty"` // Name: A string in BCP 47 format, prefixed with the platform and // property name, and "locales/". Format: // platforms/{platform}/properties/{property}/locales/{locale} Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Locale") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Locale") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleSearchIdeahubV1betaAvailableLocale: Represents locales that are available for a web property.
func (*GoogleSearchIdeahubV1betaAvailableLocale) MarshalJSON ¶
func (s *GoogleSearchIdeahubV1betaAvailableLocale) MarshalJSON() ([]byte, error)
type GoogleSearchIdeahubV1betaIdea ¶
type GoogleSearchIdeahubV1betaIdea struct { // Name: Unique identifier for the idea. Format: ideas/{ideaId} Name string `json:"name,omitempty"` // Text: The idea’s text. Text string `json:"text,omitempty"` // Topics: The Topics that match the idea. Topics []*GoogleSearchIdeahubV1betaTopic `json:"topics,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleSearchIdeahubV1betaIdea: A single Idea that we want to show the end user.
func (*GoogleSearchIdeahubV1betaIdea) MarshalJSON ¶
func (s *GoogleSearchIdeahubV1betaIdea) MarshalJSON() ([]byte, error)
type GoogleSearchIdeahubV1betaIdeaActivity ¶
type GoogleSearchIdeahubV1betaIdeaActivity struct { // Ideas: The Idea IDs for this entry. If empty, topics should be set. Ideas []string `json:"ideas,omitempty"` // Name: Unique identifier for the idea activity. The name is ignored // when creating an idea activity. Format: // platforms/{platform}/properties/{property}/ideaActivities/{idea_activi // ty} Name string `json:"name,omitempty"` // Topics: The Topic IDs for this entry. If empty, ideas should be set. Topics []string `json:"topics,omitempty"` // Type: The type of activity performed. // // Possible values: // "TYPE_UNSPECIFIED" - An unspecified, unknown type of idea activity. // "POST_DRAFTED" - An idea activity type indicating a post has been // drafted. // "POST_PUBLISHED" - An idea activity type indicating a post has been // published. // "POST_DELETED" - An idea activity type indicating a post has been // deleted. // "POST_UNPUBLISHED" - An idea activity type indicating a post has // been unpublished. Type string `json:"type,omitempty"` // Uri: The uri the activity relates to. Uri string `json:"uri,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Ideas") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Ideas") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleSearchIdeahubV1betaIdeaActivity: An idea activity entry.
func (*GoogleSearchIdeahubV1betaIdeaActivity) MarshalJSON ¶
func (s *GoogleSearchIdeahubV1betaIdeaActivity) MarshalJSON() ([]byte, error)
type GoogleSearchIdeahubV1betaIdeaState ¶
type GoogleSearchIdeahubV1betaIdeaState struct { // Dismissed: Whether the idea is dismissed. Dismissed bool `json:"dismissed,omitempty"` // Name: Unique identifier for the idea state. Format: // platforms/{platform}/properties/{property}/ideaStates/{idea_state} Name string `json:"name,omitempty"` // Saved: Whether the idea is saved. Saved bool `json:"saved,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Dismissed") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Dismissed") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleSearchIdeahubV1betaIdeaState: Represents idea state specific to a web property.
func (*GoogleSearchIdeahubV1betaIdeaState) MarshalJSON ¶
func (s *GoogleSearchIdeahubV1betaIdeaState) MarshalJSON() ([]byte, error)
type GoogleSearchIdeahubV1betaListAvailableLocalesResponse ¶
type GoogleSearchIdeahubV1betaListAvailableLocalesResponse struct { // AvailableLocales: Locales for which ideas are available for the given // Creator. AvailableLocales []*GoogleSearchIdeahubV1betaAvailableLocale `json:"availableLocales,omitempty"` // NextPageToken: A token that can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent // pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AvailableLocales") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AvailableLocales") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleSearchIdeahubV1betaListAvailableLocalesResponse: Response for whether ideas are available for a given web property on a platform, for the currently logged-in user.
func (*GoogleSearchIdeahubV1betaListAvailableLocalesResponse) MarshalJSON ¶
func (s *GoogleSearchIdeahubV1betaListAvailableLocalesResponse) MarshalJSON() ([]byte, error)
type GoogleSearchIdeahubV1betaListIdeasResponse ¶
type GoogleSearchIdeahubV1betaListIdeasResponse struct { // Ideas: Results for the ListIdeasRequest. Ideas []*GoogleSearchIdeahubV1betaIdea `json:"ideas,omitempty"` // NextPageToken: Used to fetch the next page in a subsequent request. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Ideas") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Ideas") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*GoogleSearchIdeahubV1betaListIdeasResponse) MarshalJSON ¶
func (s *GoogleSearchIdeahubV1betaListIdeasResponse) MarshalJSON() ([]byte, error)
type GoogleSearchIdeahubV1betaTopic ¶
type GoogleSearchIdeahubV1betaTopic struct { // DisplayName: String displayed to the creator indicating the name of // the Topic. DisplayName string `json:"displayName,omitempty"` // Mid: The mID of the topic. Mid string `json:"mid,omitempty"` // Name: Unique identifier for the topic. Format: topics/{topic} Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleSearchIdeahubV1betaTopic: Represents a Topic umbrella for a list of questions that a Creator may want to respond to.
func (*GoogleSearchIdeahubV1betaTopic) MarshalJSON ¶
func (s *GoogleSearchIdeahubV1betaTopic) MarshalJSON() ([]byte, error)
type GoogleSearchIdeahubV1betaTopicState ¶
type GoogleSearchIdeahubV1betaTopicState struct { // Dismissed: Whether the topic is dismissed. Dismissed bool `json:"dismissed,omitempty"` // Name: Unique identifier for the topic state. Format: // platforms/{platform}/properties/{property}/topicStates/{topic_state} Name string `json:"name,omitempty"` // Saved: Whether the topic is saved. Saved bool `json:"saved,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Dismissed") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Dismissed") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleSearchIdeahubV1betaTopicState: Represents topic state specific to a web property.
func (*GoogleSearchIdeahubV1betaTopicState) MarshalJSON ¶
func (s *GoogleSearchIdeahubV1betaTopicState) MarshalJSON() ([]byte, error)
type PlatformsPropertiesIdeaActivitiesCreateCall ¶
type PlatformsPropertiesIdeaActivitiesCreateCall struct {
// contains filtered or unexported fields
}
func (*PlatformsPropertiesIdeaActivitiesCreateCall) Context ¶
func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Context(ctx context.Context) *PlatformsPropertiesIdeaActivitiesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PlatformsPropertiesIdeaActivitiesCreateCall) Do ¶
func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaIdeaActivity, error)
Do executes the "ideahub.platforms.properties.ideaActivities.create" call. Exactly one of *GoogleSearchIdeahubV1betaIdeaActivity or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleSearchIdeahubV1betaIdeaActivity.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsPropertiesIdeaActivitiesCreateCall) Fields ¶
func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeaActivitiesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PlatformsPropertiesIdeaActivitiesCreateCall) Header ¶
func (c *PlatformsPropertiesIdeaActivitiesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PlatformsPropertiesIdeaActivitiesService ¶
type PlatformsPropertiesIdeaActivitiesService struct {
// contains filtered or unexported fields
}
func NewPlatformsPropertiesIdeaActivitiesService ¶
func NewPlatformsPropertiesIdeaActivitiesService(s *Service) *PlatformsPropertiesIdeaActivitiesService
func (*PlatformsPropertiesIdeaActivitiesService) Create ¶
func (r *PlatformsPropertiesIdeaActivitiesService) Create(parent string, googlesearchideahubv1betaideaactivity *GoogleSearchIdeahubV1betaIdeaActivity) *PlatformsPropertiesIdeaActivitiesCreateCall
Create: Creates an idea activity entry.
- parent: The parent resource where this idea activity will be created. Format: platforms/{platform}/property/{property}.
type PlatformsPropertiesIdeaStatesPatchCall ¶
type PlatformsPropertiesIdeaStatesPatchCall struct {
// contains filtered or unexported fields
}
func (*PlatformsPropertiesIdeaStatesPatchCall) Context ¶
func (c *PlatformsPropertiesIdeaStatesPatchCall) Context(ctx context.Context) *PlatformsPropertiesIdeaStatesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PlatformsPropertiesIdeaStatesPatchCall) Do ¶
func (c *PlatformsPropertiesIdeaStatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaIdeaState, error)
Do executes the "ideahub.platforms.properties.ideaStates.patch" call. Exactly one of *GoogleSearchIdeahubV1betaIdeaState or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleSearchIdeahubV1betaIdeaState.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsPropertiesIdeaStatesPatchCall) Fields ¶
func (c *PlatformsPropertiesIdeaStatesPatchCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeaStatesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PlatformsPropertiesIdeaStatesPatchCall) Header ¶
func (c *PlatformsPropertiesIdeaStatesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PlatformsPropertiesIdeaStatesPatchCall) UpdateMask ¶
func (c *PlatformsPropertiesIdeaStatesPatchCall) UpdateMask(updateMask string) *PlatformsPropertiesIdeaStatesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated.
type PlatformsPropertiesIdeaStatesService ¶
type PlatformsPropertiesIdeaStatesService struct {
// contains filtered or unexported fields
}
func NewPlatformsPropertiesIdeaStatesService ¶
func NewPlatformsPropertiesIdeaStatesService(s *Service) *PlatformsPropertiesIdeaStatesService
func (*PlatformsPropertiesIdeaStatesService) Patch ¶
func (r *PlatformsPropertiesIdeaStatesService) Patch(nameid string, googlesearchideahubv1betaideastate *GoogleSearchIdeahubV1betaIdeaState) *PlatformsPropertiesIdeaStatesPatchCall
Patch: Update an idea state resource.
- name: Unique identifier for the idea state. Format: platforms/{platform}/properties/{property}/ideaStates/{idea_state}.
type PlatformsPropertiesIdeasListCall ¶
type PlatformsPropertiesIdeasListCall struct {
// contains filtered or unexported fields
}
func (*PlatformsPropertiesIdeasListCall) Context ¶
func (c *PlatformsPropertiesIdeasListCall) Context(ctx context.Context) *PlatformsPropertiesIdeasListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PlatformsPropertiesIdeasListCall) Do ¶
func (c *PlatformsPropertiesIdeasListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaListIdeasResponse, error)
Do executes the "ideahub.platforms.properties.ideas.list" call. Exactly one of *GoogleSearchIdeahubV1betaListIdeasResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleSearchIdeahubV1betaListIdeasResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsPropertiesIdeasListCall) Fields ¶
func (c *PlatformsPropertiesIdeasListCall) Fields(s ...googleapi.Field) *PlatformsPropertiesIdeasListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PlatformsPropertiesIdeasListCall) Filter ¶
func (c *PlatformsPropertiesIdeasListCall) Filter(filter string) *PlatformsPropertiesIdeasListCall
Filter sets the optional parameter "filter": Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions are implicitly combined, as if the `AND` operator was always used. The `OR` operator is currently unsupported. * Supported functions: - `saved(bool)`: If set to true, fetches only saved ideas. If set to false, fetches all except saved ideas. Can't be simultaneously used with `dismissed(bool)`. - `dismissed(bool)`: If set to true, fetches only dismissed ideas. Can't be simultaneously used with `saved(bool)`. The `false` value is currently unsupported. Examples: * `saved(true)` * `saved(false)` * `dismissed(true)` The length of this field should be no more than 500 characters.
func (*PlatformsPropertiesIdeasListCall) Header ¶
func (c *PlatformsPropertiesIdeasListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PlatformsPropertiesIdeasListCall) IfNoneMatch ¶
func (c *PlatformsPropertiesIdeasListCall) IfNoneMatch(entityTag string) *PlatformsPropertiesIdeasListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PlatformsPropertiesIdeasListCall) OrderBy ¶
func (c *PlatformsPropertiesIdeasListCall) OrderBy(orderBy string) *PlatformsPropertiesIdeasListCall
OrderBy sets the optional parameter "orderBy": Order semantics described below.
func (*PlatformsPropertiesIdeasListCall) PageSize ¶
func (c *PlatformsPropertiesIdeasListCall) PageSize(pageSize int64) *PlatformsPropertiesIdeasListCall
PageSize sets the optional parameter "pageSize": The maximum number of ideas per page. If unspecified, at most 10 ideas will be returned. The maximum value is 2000; values above 2000 will be coerced to 2000.
func (*PlatformsPropertiesIdeasListCall) PageToken ¶
func (c *PlatformsPropertiesIdeasListCall) PageToken(pageToken string) *PlatformsPropertiesIdeasListCall
PageToken sets the optional parameter "pageToken": Used to fetch next page.
func (*PlatformsPropertiesIdeasListCall) Pages ¶
func (c *PlatformsPropertiesIdeasListCall) Pages(ctx context.Context, f func(*GoogleSearchIdeahubV1betaListIdeasResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type PlatformsPropertiesIdeasService ¶
type PlatformsPropertiesIdeasService struct {
// contains filtered or unexported fields
}
func NewPlatformsPropertiesIdeasService ¶
func NewPlatformsPropertiesIdeasService(s *Service) *PlatformsPropertiesIdeasService
func (*PlatformsPropertiesIdeasService) List ¶
func (r *PlatformsPropertiesIdeasService) List(parent string) *PlatformsPropertiesIdeasListCall
List: List ideas for a given Creator and filter and sort options.
- parent: If defined, specifies the creator for which to filter by. Format: publishers/{publisher}/properties/{property}.
type PlatformsPropertiesLocalesListCall ¶
type PlatformsPropertiesLocalesListCall struct {
// contains filtered or unexported fields
}
func (*PlatformsPropertiesLocalesListCall) Context ¶
func (c *PlatformsPropertiesLocalesListCall) Context(ctx context.Context) *PlatformsPropertiesLocalesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PlatformsPropertiesLocalesListCall) Do ¶
func (c *PlatformsPropertiesLocalesListCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaListAvailableLocalesResponse, error)
Do executes the "ideahub.platforms.properties.locales.list" call. Exactly one of *GoogleSearchIdeahubV1betaListAvailableLocalesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleSearchIdeahubV1betaListAvailableLocalesResponse.ServerResponse. Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsPropertiesLocalesListCall) Fields ¶
func (c *PlatformsPropertiesLocalesListCall) Fields(s ...googleapi.Field) *PlatformsPropertiesLocalesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PlatformsPropertiesLocalesListCall) Header ¶
func (c *PlatformsPropertiesLocalesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PlatformsPropertiesLocalesListCall) IfNoneMatch ¶
func (c *PlatformsPropertiesLocalesListCall) IfNoneMatch(entityTag string) *PlatformsPropertiesLocalesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PlatformsPropertiesLocalesListCall) PageSize ¶
func (c *PlatformsPropertiesLocalesListCall) PageSize(pageSize int64) *PlatformsPropertiesLocalesListCall
PageSize sets the optional parameter "pageSize": The maximum number of locales to return. The service may return fewer than this value. If unspecified, at most 100 locales will be returned. The maximum value is 100; values above 100 will be coerced to 100.
func (*PlatformsPropertiesLocalesListCall) PageToken ¶
func (c *PlatformsPropertiesLocalesListCall) PageToken(pageToken string) *PlatformsPropertiesLocalesListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListAvailableLocales` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAvailableLocales` must match the call that provided the page token.
func (*PlatformsPropertiesLocalesListCall) Pages ¶
func (c *PlatformsPropertiesLocalesListCall) Pages(ctx context.Context, f func(*GoogleSearchIdeahubV1betaListAvailableLocalesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type PlatformsPropertiesLocalesService ¶
type PlatformsPropertiesLocalesService struct {
// contains filtered or unexported fields
}
func NewPlatformsPropertiesLocalesService ¶
func NewPlatformsPropertiesLocalesService(s *Service) *PlatformsPropertiesLocalesService
func (*PlatformsPropertiesLocalesService) List ¶
func (r *PlatformsPropertiesLocalesService) List(parent string) *PlatformsPropertiesLocalesListCall
List: Returns which locales ideas are available in for a given Creator.
- parent: The web property to check idea availability for Format: platforms/{platform}/property/{property}.
type PlatformsPropertiesService ¶
type PlatformsPropertiesService struct { IdeaActivities *PlatformsPropertiesIdeaActivitiesService IdeaStates *PlatformsPropertiesIdeaStatesService Ideas *PlatformsPropertiesIdeasService Locales *PlatformsPropertiesLocalesService TopicStates *PlatformsPropertiesTopicStatesService // contains filtered or unexported fields }
func NewPlatformsPropertiesService ¶
func NewPlatformsPropertiesService(s *Service) *PlatformsPropertiesService
type PlatformsPropertiesTopicStatesPatchCall ¶
type PlatformsPropertiesTopicStatesPatchCall struct {
// contains filtered or unexported fields
}
func (*PlatformsPropertiesTopicStatesPatchCall) Context ¶
func (c *PlatformsPropertiesTopicStatesPatchCall) Context(ctx context.Context) *PlatformsPropertiesTopicStatesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PlatformsPropertiesTopicStatesPatchCall) Do ¶
func (c *PlatformsPropertiesTopicStatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleSearchIdeahubV1betaTopicState, error)
Do executes the "ideahub.platforms.properties.topicStates.patch" call. Exactly one of *GoogleSearchIdeahubV1betaTopicState or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleSearchIdeahubV1betaTopicState.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PlatformsPropertiesTopicStatesPatchCall) Fields ¶
func (c *PlatformsPropertiesTopicStatesPatchCall) Fields(s ...googleapi.Field) *PlatformsPropertiesTopicStatesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PlatformsPropertiesTopicStatesPatchCall) Header ¶
func (c *PlatformsPropertiesTopicStatesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PlatformsPropertiesTopicStatesPatchCall) UpdateMask ¶
func (c *PlatformsPropertiesTopicStatesPatchCall) UpdateMask(updateMask string) *PlatformsPropertiesTopicStatesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated.
type PlatformsPropertiesTopicStatesService ¶
type PlatformsPropertiesTopicStatesService struct {
// contains filtered or unexported fields
}
func NewPlatformsPropertiesTopicStatesService ¶
func NewPlatformsPropertiesTopicStatesService(s *Service) *PlatformsPropertiesTopicStatesService
func (*PlatformsPropertiesTopicStatesService) Patch ¶
func (r *PlatformsPropertiesTopicStatesService) Patch(nameid string, googlesearchideahubv1betatopicstate *GoogleSearchIdeahubV1betaTopicState) *PlatformsPropertiesTopicStatesPatchCall
Patch: Update a topic state resource.
- name: Unique identifier for the topic state. Format: platforms/{platform}/properties/{property}/topicStates/{topic_state}.
type PlatformsService ¶
type PlatformsService struct { Properties *PlatformsPropertiesService // contains filtered or unexported fields }
func NewPlatformsService ¶
func NewPlatformsService(s *Service) *PlatformsService
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Platforms *PlatformsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.