google-apis-ideahub_v1alpha 0.1.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fb8711cb7565aae9e1fcc11ec535a2ef59d2235a6b4f0e85b696a1ee49b48cb
4
- data.tar.gz: bf59b24e350190f956ad338207f60a69995294ea1cec9f1fd0894839810ac8bc
3
+ metadata.gz: 786c87ace9c02591f11ab81a511645c202da148245277a4ce76a5cfb1945fb14
4
+ data.tar.gz: c053bc618706b3e2828e205835471df2252f943a095487337f0ec3859e5e394c
5
5
  SHA512:
6
- metadata.gz: df7c438ddfbb6fb3e42c575c52505d53b744a26f160dbc5a1858531396520b9bbf207f78d3d145a89b169a5b579781d28540fadff41c4b877d103bc56e58fc83
7
- data.tar.gz: 12686673afb9585669072b4e5594c55b854104b1dd999b45b63a29365b5c31047a24c249c3a2aa72d016d3a89865ef9e20f952823d87fb67ee6dd4debc98b86b
6
+ metadata.gz: c96fa8760c5b43140866277dd4d6af0a1c8750258bc4454ace0ef05e297f75adc6485faefb7a329f7295bb5e4f39f17ca327dbc1ce4d3b846e20ac935a4b9356
7
+ data.tar.gz: e41b72d49f4079436bee01624864d772b6b07fe637f252eed6c1e23e60cfdfd1e9ea842668d8f1c6d607f83df1b49d118ba15c09921a721f89eefa64927cf52f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-ideahub_v1alpha
2
2
 
3
+ ### v0.5.0 (2021-07-30)
4
+
5
+ * Regenerated from discovery document revision 20210728
6
+
7
+ ### v0.4.0 (2021-07-09)
8
+
9
+ * Regenerated from discovery document revision 20210707
10
+
11
+ ### v0.3.0 (2021-06-29)
12
+
13
+ * Regenerated using generator version 0.4.0
14
+
15
+ ### v0.2.0 (2021-06-24)
16
+
17
+ * Regenerated from discovery document revision 20210622
18
+ * Regenerated using generator version 0.3.0
19
+
3
20
  ### v0.1.0 (2021-06-01)
4
21
 
5
22
  * Regenerated from discovery document revision 20210528
@@ -79,6 +79,50 @@ module Google
79
79
  end
80
80
  end
81
81
 
82
+ # An idea activity entry.
83
+ class GoogleSearchIdeahubV1alphaIdeaActivity
84
+ include Google::Apis::Core::Hashable
85
+
86
+ # The Idea IDs for this entry.
87
+ # Corresponds to the JSON property `ideas`
88
+ # @return [Array<String>]
89
+ attr_accessor :ideas
90
+
91
+ # Unique identifier for the idea activity. Format: platforms/`platform`/
92
+ # properties/`property`/ideaActivities/`idea_activity`
93
+ # Corresponds to the JSON property `name`
94
+ # @return [String]
95
+ attr_accessor :name
96
+
97
+ # The Topic IDs for this entry.
98
+ # Corresponds to the JSON property `topics`
99
+ # @return [Array<String>]
100
+ attr_accessor :topics
101
+
102
+ # The type of activity performed.
103
+ # Corresponds to the JSON property `type`
104
+ # @return [String]
105
+ attr_accessor :type
106
+
107
+ # The uri the activity relates to.
108
+ # Corresponds to the JSON property `uri`
109
+ # @return [String]
110
+ attr_accessor :uri
111
+
112
+ def initialize(**args)
113
+ update!(**args)
114
+ end
115
+
116
+ # Update properties of this object
117
+ def update!(**args)
118
+ @ideas = args[:ideas] if args.key?(:ideas)
119
+ @name = args[:name] if args.key?(:name)
120
+ @topics = args[:topics] if args.key?(:topics)
121
+ @type = args[:type] if args.key?(:type)
122
+ @uri = args[:uri] if args.key?(:uri)
123
+ end
124
+ end
125
+
82
126
  # Represents idea state specific to a web property.
83
127
  class GoogleSearchIdeahubV1alphaIdeaState
84
128
  include Google::Apis::Core::Hashable
@@ -180,6 +224,11 @@ module Google
180
224
  # @return [String]
181
225
  attr_accessor :mid
182
226
 
227
+ # Unique identifier for the topic. Format: topics/`topic`
228
+ # Corresponds to the JSON property `name`
229
+ # @return [String]
230
+ attr_accessor :name
231
+
183
232
  def initialize(**args)
184
233
  update!(**args)
185
234
  end
@@ -188,6 +237,41 @@ module Google
188
237
  def update!(**args)
189
238
  @display_name = args[:display_name] if args.key?(:display_name)
190
239
  @mid = args[:mid] if args.key?(:mid)
240
+ @name = args[:name] if args.key?(:name)
241
+ end
242
+ end
243
+
244
+ # Represents topic state specific to a web property.
245
+ class GoogleSearchIdeahubV1alphaTopicState
246
+ include Google::Apis::Core::Hashable
247
+
248
+ # Whether the topic is dismissed.
249
+ # Corresponds to the JSON property `dismissed`
250
+ # @return [Boolean]
251
+ attr_accessor :dismissed
252
+ alias_method :dismissed?, :dismissed
253
+
254
+ # Unique identifier for the topic state. Format: platforms/`platform`/properties/
255
+ # `property`/topicStates/`topic_state`
256
+ # Corresponds to the JSON property `name`
257
+ # @return [String]
258
+ attr_accessor :name
259
+
260
+ # Whether the topic is saved.
261
+ # Corresponds to the JSON property `saved`
262
+ # @return [Boolean]
263
+ attr_accessor :saved
264
+ alias_method :saved?, :saved
265
+
266
+ def initialize(**args)
267
+ update!(**args)
268
+ end
269
+
270
+ # Update properties of this object
271
+ def update!(**args)
272
+ @dismissed = args[:dismissed] if args.key?(:dismissed)
273
+ @name = args[:name] if args.key?(:name)
274
+ @saved = args[:saved] if args.key?(:saved)
191
275
  end
192
276
  end
193
277
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module IdeahubV1alpha
18
18
  # Version of the google-apis-ideahub_v1alpha gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210528"
25
+ REVISION = "20210728"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class GoogleSearchIdeahubV1alphaIdeaActivity
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class GoogleSearchIdeahubV1alphaIdeaState
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -58,6 +64,12 @@ module Google
58
64
  include Google::Apis::Core::JsonObjectSupport
59
65
  end
60
66
 
67
+ class GoogleSearchIdeahubV1alphaTopicState
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class GoogleSearchIdeahubV1alphaAvailableLocale
62
74
  # @private
63
75
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -76,6 +88,17 @@ module Google
76
88
  end
77
89
  end
78
90
 
91
+ class GoogleSearchIdeahubV1alphaIdeaActivity
92
+ # @private
93
+ class Representation < Google::Apis::Core::JsonRepresentation
94
+ collection :ideas, as: 'ideas'
95
+ property :name, as: 'name'
96
+ collection :topics, as: 'topics'
97
+ property :type, as: 'type'
98
+ property :uri, as: 'uri'
99
+ end
100
+ end
101
+
79
102
  class GoogleSearchIdeahubV1alphaIdeaState
80
103
  # @private
81
104
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -108,6 +131,16 @@ module Google
108
131
  class Representation < Google::Apis::Core::JsonRepresentation
109
132
  property :display_name, as: 'displayName'
110
133
  property :mid, as: 'mid'
134
+ property :name, as: 'name'
135
+ end
136
+ end
137
+
138
+ class GoogleSearchIdeahubV1alphaTopicState
139
+ # @private
140
+ class Representation < Google::Apis::Core::JsonRepresentation
141
+ property :dismissed, as: 'dismissed'
142
+ property :name, as: 'name'
143
+ property :saved, as: 'saved'
111
144
  end
112
145
  end
113
146
  end
@@ -55,7 +55,16 @@ module Google
55
55
  # @param [String] creator_platform_id
56
56
  # Identifies the platform account (blog/site/etc.) for which to fetch Ideas.
57
57
  # @param [String] filter
58
- # Filter semantics described below.
58
+ # Allows filtering. Supported syntax: * Filter expressions are made up of one or
59
+ # more restrictions. * Restrictions are implicitly combined, as if the `AND`
60
+ # operator was always used. The `OR` operator is currently unsupported. *
61
+ # Supported functions: - `saved(bool)`: If set to true, fetches only saved ideas.
62
+ # If set to false, fetches all except saved ideas. Can't be simultaneously used
63
+ # with `dismissed(bool)`. - `dismissed(bool)`: If set to true, fetches only
64
+ # dismissed ideas. Can't be simultaneously used with `saved(bool)`. The `false`
65
+ # value is currently unsupported. Examples: * `saved(true)` * `saved(false)` * `
66
+ # dismissed(true)` The length of this field should be no more than 500
67
+ # characters.
59
68
  # @param [String] order_by
60
69
  # Order semantics described below.
61
70
  # @param [Fixnum] page_size
@@ -99,6 +108,40 @@ module Google
99
108
  execute_or_queue_command(command, &block)
100
109
  end
101
110
 
111
+ # Creates an idea activity entry.
112
+ # @param [String] parent
113
+ # Required. The parent resource where this idea activity will be created. Format:
114
+ # platforms/`platform`/property/`property`
115
+ # @param [Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity] google_search_ideahub_v1alpha_idea_activity_object
116
+ # @param [String] fields
117
+ # Selector specifying which fields to include in a partial response.
118
+ # @param [String] quota_user
119
+ # Available to use for quota purposes for server-side applications. Can be any
120
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
121
+ # @param [Google::Apis::RequestOptions] options
122
+ # Request-specific options
123
+ #
124
+ # @yield [result, err] Result & error if block supplied
125
+ # @yieldparam result [Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity] parsed result object
126
+ # @yieldparam err [StandardError] error object if request failed
127
+ #
128
+ # @return [Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity]
129
+ #
130
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
131
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
132
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
133
+ def create_platform_property_idea_activity(parent, google_search_ideahub_v1alpha_idea_activity_object = nil, fields: nil, quota_user: nil, options: nil, &block)
134
+ command = make_simple_command(:post, 'v1alpha/{+parent}/ideaActivities', options)
135
+ command.request_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity::Representation
136
+ command.request_object = google_search_ideahub_v1alpha_idea_activity_object
137
+ command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity::Representation
138
+ command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity
139
+ command.params['parent'] = parent unless parent.nil?
140
+ command.query['fields'] = fields unless fields.nil?
141
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
142
+ execute_or_queue_command(command, &block)
143
+ end
144
+
102
145
  # Update an idea state resource.
103
146
  # @param [String] name
104
147
  # Unique identifier for the idea state. Format: platforms/`platform`/properties/`
@@ -145,7 +188,16 @@ module Google
145
188
  # @param [String] creator_platform_id
146
189
  # Identifies the platform account (blog/site/etc.) for which to fetch Ideas.
147
190
  # @param [String] filter
148
- # Filter semantics described below.
191
+ # Allows filtering. Supported syntax: * Filter expressions are made up of one or
192
+ # more restrictions. * Restrictions are implicitly combined, as if the `AND`
193
+ # operator was always used. The `OR` operator is currently unsupported. *
194
+ # Supported functions: - `saved(bool)`: If set to true, fetches only saved ideas.
195
+ # If set to false, fetches all except saved ideas. Can't be simultaneously used
196
+ # with `dismissed(bool)`. - `dismissed(bool)`: If set to true, fetches only
197
+ # dismissed ideas. Can't be simultaneously used with `saved(bool)`. The `false`
198
+ # value is currently unsupported. Examples: * `saved(true)` * `saved(false)` * `
199
+ # dismissed(true)` The length of this field should be no more than 500
200
+ # characters.
149
201
  # @param [String] order_by
150
202
  # Order semantics described below.
151
203
  # @param [Fixnum] page_size
@@ -227,6 +279,43 @@ module Google
227
279
  command.query['quotaUser'] = quota_user unless quota_user.nil?
228
280
  execute_or_queue_command(command, &block)
229
281
  end
282
+
283
+ # Update a topic state resource.
284
+ # @param [String] name
285
+ # Unique identifier for the topic state. Format: platforms/`platform`/properties/
286
+ # `property`/topicStates/`topic_state`
287
+ # @param [Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState] google_search_ideahub_v1alpha_topic_state_object
288
+ # @param [String] update_mask
289
+ # The list of fields to be updated.
290
+ # @param [String] fields
291
+ # Selector specifying which fields to include in a partial response.
292
+ # @param [String] quota_user
293
+ # Available to use for quota purposes for server-side applications. Can be any
294
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
295
+ # @param [Google::Apis::RequestOptions] options
296
+ # Request-specific options
297
+ #
298
+ # @yield [result, err] Result & error if block supplied
299
+ # @yieldparam result [Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState] parsed result object
300
+ # @yieldparam err [StandardError] error object if request failed
301
+ #
302
+ # @return [Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState]
303
+ #
304
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
305
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
306
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
307
+ 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)
308
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
309
+ command.request_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState::Representation
310
+ command.request_object = google_search_ideahub_v1alpha_topic_state_object
311
+ command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState::Representation
312
+ command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState
313
+ command.params['name'] = name unless name.nil?
314
+ command.query['updateMask'] = update_mask unless update_mask.nil?
315
+ command.query['fields'] = fields unless fields.nil?
316
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
317
+ execute_or_queue_command(command, &block)
318
+ end
230
319
 
231
320
  protected
232
321
 
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-ideahub_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-07 00:00:00.000000000 Z
11
+ date: 2021-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Idea Hub API V1alpha. Simple REST
28
34
  clients are Ruby client libraries that provide access to Google services via their
29
35
  HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-ideahub_v1alpha/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-ideahub_v1alpha/v0.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ideahub_v1alpha/v0.5.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-ideahub_v1alpha
57
63
  post_install_message:
58
64
  rdoc_options: []