Class: Google::Apis::IdeahubV1beta::IdeahubService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::IdeahubV1beta::IdeahubService
- Defined in:
- lib/google/apis/ideahub_v1beta/service.rb
Overview
Idea Hub API
This is an invitation-only API.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#create_platform_property_idea_activity(parent, google_search_ideahub_v1beta_idea_activity_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaActivity
Creates an idea activity entry.
-
#initialize ⇒ IdeahubService
constructor
A new instance of IdeahubService.
-
#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::IdeahubV1beta::GoogleSearchIdeahubV1betaListIdeasResponse
List ideas for a given Creator and filter and sort options.
-
#list_platform_property_locales(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaListAvailableLocalesResponse
Returns which locales ideas are available in for a given Creator.
-
#patch_platform_property_idea_state(name, google_search_ideahub_v1beta_idea_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaState
Update an idea state resource.
-
#patch_platform_property_topic_state(name, google_search_ideahub_v1beta_topic_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaTopicState
Update a topic state resource.
Constructor Details
#initialize ⇒ IdeahubService
Returns a new instance of IdeahubService.
45 46 47 48 49 50 |
# File 'lib/google/apis/ideahub_v1beta/service.rb', line 45 def initialize super('https://ideahub.googleapis.com/', '', client_name: 'google-apis-ideahub_v1beta', client_version: Google::Apis::IdeahubV1beta::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
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.
38 39 40 |
# File 'lib/google/apis/ideahub_v1beta/service.rb', line 38 def key @key end |
#quota_user ⇒ String
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.
43 44 45 |
# File 'lib/google/apis/ideahub_v1beta/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#create_platform_property_idea_activity(parent, google_search_ideahub_v1beta_idea_activity_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaActivity
Creates an idea activity entry.
74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/google/apis/ideahub_v1beta/service.rb', line 74 def create_platform_property_idea_activity(parent, google_search_ideahub_v1beta_idea_activity_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta/{+parent}/ideaActivities', ) command.request_representation = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaActivity::Representation command.request_object = google_search_ideahub_v1beta_idea_activity_object command.response_representation = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaActivity::Representation command.response_class = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaActivity 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_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::IdeahubV1beta::GoogleSearchIdeahubV1betaListIdeasResponse
List ideas for a given Creator and filter and sort options.
162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/google/apis/ideahub_v1beta/service.rb', line 162 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, 'v1beta/{+parent}/ideas', ) command.response_representation = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaListIdeasResponse::Representation command.response_class = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaListIdeasResponse 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::IdeahubV1beta::GoogleSearchIdeahubV1betaListAvailableLocalesResponse
Returns which locales ideas are available in for a given Creator.
206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/google/apis/ideahub_v1beta/service.rb', line 206 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, 'v1beta/{+parent}/locales', ) command.response_representation = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaListAvailableLocalesResponse::Representation command.response_class = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaListAvailableLocalesResponse 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_v1beta_idea_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaState
Update an idea state resource.
110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/google/apis/ideahub_v1beta/service.rb', line 110 def patch_platform_property_idea_state(name, google_search_ideahub_v1beta_idea_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta/{+name}', ) command.request_representation = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaState::Representation command.request_object = google_search_ideahub_v1beta_idea_state_object command.response_representation = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaState::Representation command.response_class = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaState 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_v1beta_topic_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaTopicState
Update a topic state resource.
242 243 244 245 246 247 248 249 250 251 252 253 |
# File 'lib/google/apis/ideahub_v1beta/service.rb', line 242 def patch_platform_property_topic_state(name, google_search_ideahub_v1beta_topic_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta/{+name}', ) command.request_representation = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaTopicState::Representation command.request_object = google_search_ideahub_v1beta_topic_state_object command.response_representation = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaTopicState::Representation command.response_class = Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaTopicState 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 |