Class: Google::Apis::IdeahubV1alpha::IdeahubService

Inherits:
Core::BaseService
  • Object
show all
Defined in:
lib/google/apis/ideahub_v1alpha/service.rb

Overview

Idea Hub API

This is an invitation-only API.

Examples:

require 'google/apis/ideahub_v1alpha'

Ideahub = Google::Apis::IdeahubV1alpha # Alias the module
service = Ideahub::IdeahubService.new

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIdeahubService

Returns a new instance of IdeahubService.



45
46
47
48
49
50
# File 'lib/google/apis/ideahub_v1alpha/service.rb', line 45

def initialize
  super('https://ideahub.googleapis.com/', '',
        client_name: 'google-apis-ideahub_v1alpha',
        client_version: Google::Apis::IdeahubV1alpha::GEM_VERSION)
  @batch_path = 'batch'
end

Instance Attribute Details

#keyString

Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

Returns:

  • (String)

    API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.



38
39
40
# File 'lib/google/apis/ideahub_v1alpha/service.rb', line 38

def key
  @key
end

#quota_userString

Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

Returns:

  • (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.



43
44
45
# File 'lib/google/apis/ideahub_v1alpha/service.rb', line 43

def quota_user
  @quota_user
end

Instance Method Details

#create_platform_property_idea_activity(parent, google_search_ideahub_v1alpha_idea_activity_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity

Creates an idea activity entry.

Parameters:

  • parent (String)

    Required. The parent resource where this idea activity will be created. Format: platforms/platform/property/property

  • google_search_ideahub_v1alpha_idea_activity_object (Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



127
128
129
130
131
132
133
134
135
136
137
# File 'lib/google/apis/ideahub_v1alpha/service.rb', line 127

def create_platform_property_idea_activity(parent, google_search_ideahub_v1alpha_idea_activity_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1alpha/{+parent}/ideaActivities', options)
  command.request_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity::Representation
  command.request_object = google_search_ideahub_v1alpha_idea_activity_object
  command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity::Representation
  command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_ideas(filter: nil, order_by: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListIdeasResponse

List ideas for a given Creator and filter and sort options.

Parameters:

  • filter (String) (defaults to: nil)

    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.

  • order_by (String) (defaults to: nil)

    Order semantics described below.

  • page_size (Fixnum) (defaults to: nil)

    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.

  • page_token (String) (defaults to: nil)

    Used to fetch next page.

  • parent (String) (defaults to: nil)

    If defined, specifies the creator for which to filter by. Format: publishers/ publisher/properties/property

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/google/apis/ideahub_v1alpha/service.rb', line 91

def list_ideas(filter: nil, order_by: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha/ideas', options)
  command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListIdeasResponse::Representation
  command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListIdeasResponse
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_platform_property_ideas(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListIdeasResponse

List ideas for a given Creator and filter and sort options.

Parameters:

  • parent (String)

    If defined, specifies the creator for which to filter by. Format: publishers/ publisher/properties/property

  • filter (String) (defaults to: nil)

    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.

  • order_by (String) (defaults to: nil)

    Order semantics described below.

  • page_size (Fixnum) (defaults to: nil)

    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.

  • page_token (String) (defaults to: nil)

    Used to fetch next page.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



215
216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/google/apis/ideahub_v1alpha/service.rb', line 215

def list_platform_property_ideas(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha/{+parent}/ideas', options)
  command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListIdeasResponse::Representation
  command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListIdeasResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_platform_property_locales(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListAvailableLocalesResponse

Returns which locales ideas are available in for a given Creator.

Parameters:

  • parent (String)

    Required. The web property to check idea availability for Format: platforms/ platform/property/property

  • page_size (Fixnum) (defaults to: nil)

    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.

  • page_token (String) (defaults to: nil)

    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.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



259
260
261
262
263
264
265
266
267
268
269
# File 'lib/google/apis/ideahub_v1alpha/service.rb', line 259

def list_platform_property_locales(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1alpha/{+parent}/locales', options)
  command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListAvailableLocalesResponse::Representation
  command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListAvailableLocalesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_platform_property_idea_state(name, google_search_ideahub_v1alpha_idea_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaState

Update an idea state resource.

Parameters:

  • name (String)

    Unique identifier for the idea state. Format: platforms/platform/properties/ property/ideaStates/idea_state

  • google_search_ideahub_v1alpha_idea_state_object (Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaState) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/google/apis/ideahub_v1alpha/service.rb', line 163

def patch_platform_property_idea_state(name, google_search_ideahub_v1alpha_idea_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha/{+name}', options)
  command.request_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaState::Representation
  command.request_object = google_search_ideahub_v1alpha_idea_state_object
  command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaState::Representation
  command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaState
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_platform_property_topic_state(name, google_search_ideahub_v1alpha_topic_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState

Update a topic state resource.

Parameters:

  • name (String)

    Unique identifier for the topic state. Format: platforms/platform/properties/ property/topicStates/topic_state

  • google_search_ideahub_v1alpha_topic_state_object (Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



295
296
297
298
299
300
301
302
303
304
305
306
# File 'lib/google/apis/ideahub_v1alpha/service.rb', line 295

def patch_platform_property_topic_state(name, google_search_ideahub_v1alpha_topic_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1alpha/{+name}', options)
  command.request_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState::Representation
  command.request_object = google_search_ideahub_v1alpha_topic_state_object
  command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState::Representation
  command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end