google-apis-ideahub_v1alpha 0.2.0 → 0.6.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: 46dd3bfab2d34825757b76d85c2152ef6f5c7c23070170a2f079c84450dca532
4
- data.tar.gz: 3a00cd42db016dff4f562f81ad5fcc922a9ad194006df71d236cc3962e1b0406
3
+ metadata.gz: e4328cff73aa934815d747b0b572433aebfaeb6b1676e5acd2b0858c15b44669
4
+ data.tar.gz: e98c556c93da260a668dab9b0470d4d53c37d6fe8cd7cd71a026c0230294df62
5
5
  SHA512:
6
- metadata.gz: 31eab5a08f92aa0a02b462495d49718ba25b51c32a180e60087032904ff76e8d9d480e0b4f45fddab1f6c64050c74c78f28446e4a6f67230494c62dfaf027dd4
7
- data.tar.gz: ad7c2b6498c96dd40b535df48c28a6ff1de24bbac310505a9f8c707c7551c093f622c5250bdbcbf404a36edd984346d6bd829b73116e3e46da443d55bc075099
6
+ metadata.gz: f35589494f2fe4c581e6a7e11fa2b36f388498210ee1e78e21bbc09de144759f3c138aa1468822f8b9782cba45f295051770491b02f85450c8b16cb04bd6f03f
7
+ data.tar.gz: 7c77f568769fd90a91c722dd032cb7f7c742b27c1347fbb99e2d9a14231abbe22a084377d3898c691e256b05a38321a512c49b5329a96a652a4976b3050e2de5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-ideahub_v1alpha
2
2
 
3
+ ### v0.6.0 (2021-08-19)
4
+
5
+ * Regenerated from discovery document revision 20210818
6
+
7
+ ### v0.5.0 (2021-07-30)
8
+
9
+ * Regenerated from discovery document revision 20210728
10
+
11
+ ### v0.4.0 (2021-07-09)
12
+
13
+ * Regenerated from discovery document revision 20210707
14
+
15
+ ### v0.3.0 (2021-06-29)
16
+
17
+ * Regenerated using generator version 0.4.0
18
+
3
19
  ### v0.2.0 (2021-06-24)
4
20
 
5
21
  * Regenerated from discovery document revision 20210622
@@ -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,7 @@ 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)
191
241
  end
192
242
  end
193
243
 
@@ -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.2.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210622"
25
+ REVISION = "20210818"
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
 
@@ -82,6 +88,17 @@ module Google
82
88
  end
83
89
  end
84
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
+
85
102
  class GoogleSearchIdeahubV1alphaIdeaState
86
103
  # @private
87
104
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -114,6 +131,7 @@ module Google
114
131
  class Representation < Google::Apis::Core::JsonRepresentation
115
132
  property :display_name, as: 'displayName'
116
133
  property :mid, as: 'mid'
134
+ property :name, as: 'name'
117
135
  end
118
136
  end
119
137
 
@@ -50,10 +50,6 @@ module Google
50
50
  end
51
51
 
52
52
  # List ideas for a given Creator and filter and sort options.
53
- # @param [String] creator_platform
54
- # Identifies the platform from which this user is accessing Idea Hub.
55
- # @param [String] creator_platform_id
56
- # Identifies the platform account (blog/site/etc.) for which to fetch Ideas.
57
53
  # @param [String] filter
58
54
  # Allows filtering. Supported syntax: * Filter expressions are made up of one or
59
55
  # more restrictions. * Restrictions are implicitly combined, as if the `AND`
@@ -92,12 +88,10 @@ module Google
92
88
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
93
89
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
94
90
  # @raise [Google::Apis::AuthorizationError] Authorization is required
95
- def list_ideas(creator_platform: nil, creator_platform_id: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
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)
96
92
  command = make_simple_command(:get, 'v1alpha/ideas', options)
97
93
  command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListIdeasResponse::Representation
98
94
  command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListIdeasResponse
99
- command.query['creator.platform'] = creator_platform unless creator_platform.nil?
100
- command.query['creator.platformId'] = creator_platform_id unless creator_platform_id.nil?
101
95
  command.query['filter'] = filter unless filter.nil?
102
96
  command.query['orderBy'] = order_by unless order_by.nil?
103
97
  command.query['pageSize'] = page_size unless page_size.nil?
@@ -108,6 +102,40 @@ module Google
108
102
  execute_or_queue_command(command, &block)
109
103
  end
110
104
 
105
+ # Creates an idea activity entry.
106
+ # @param [String] parent
107
+ # Required. The parent resource where this idea activity will be created. Format:
108
+ # platforms/`platform`/property/`property`
109
+ # @param [Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity] google_search_ideahub_v1alpha_idea_activity_object
110
+ # @param [String] fields
111
+ # Selector specifying which fields to include in a partial response.
112
+ # @param [String] quota_user
113
+ # Available to use for quota purposes for server-side applications. Can be any
114
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
115
+ # @param [Google::Apis::RequestOptions] options
116
+ # Request-specific options
117
+ #
118
+ # @yield [result, err] Result & error if block supplied
119
+ # @yieldparam result [Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity] parsed result object
120
+ # @yieldparam err [StandardError] error object if request failed
121
+ #
122
+ # @return [Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity]
123
+ #
124
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
125
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
126
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
127
+ def create_platform_property_idea_activity(parent, google_search_ideahub_v1alpha_idea_activity_object = nil, fields: nil, quota_user: nil, options: nil, &block)
128
+ command = make_simple_command(:post, 'v1alpha/{+parent}/ideaActivities', options)
129
+ command.request_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity::Representation
130
+ command.request_object = google_search_ideahub_v1alpha_idea_activity_object
131
+ command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity::Representation
132
+ command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity
133
+ command.params['parent'] = parent unless parent.nil?
134
+ command.query['fields'] = fields unless fields.nil?
135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
136
+ execute_or_queue_command(command, &block)
137
+ end
138
+
111
139
  # Update an idea state resource.
112
140
  # @param [String] name
113
141
  # Unique identifier for the idea state. Format: platforms/`platform`/properties/`
@@ -149,10 +177,6 @@ module Google
149
177
  # @param [String] parent
150
178
  # If defined, specifies the creator for which to filter by. Format: publishers/`
151
179
  # publisher`/properties/`property`
152
- # @param [String] creator_platform
153
- # Identifies the platform from which this user is accessing Idea Hub.
154
- # @param [String] creator_platform_id
155
- # Identifies the platform account (blog/site/etc.) for which to fetch Ideas.
156
180
  # @param [String] filter
157
181
  # Allows filtering. Supported syntax: * Filter expressions are made up of one or
158
182
  # more restrictions. * Restrictions are implicitly combined, as if the `AND`
@@ -188,13 +212,11 @@ module Google
188
212
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
189
213
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
190
214
  # @raise [Google::Apis::AuthorizationError] Authorization is required
191
- def list_platform_property_ideas(parent, creator_platform: nil, creator_platform_id: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
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)
192
216
  command = make_simple_command(:get, 'v1alpha/{+parent}/ideas', options)
193
217
  command.response_representation = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListIdeasResponse::Representation
194
218
  command.response_class = Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaListIdeasResponse
195
219
  command.params['parent'] = parent unless parent.nil?
196
- command.query['creator.platform'] = creator_platform unless creator_platform.nil?
197
- command.query['creator.platformId'] = creator_platform_id unless creator_platform_id.nil?
198
220
  command.query['filter'] = filter unless filter.nil?
199
221
  command.query['orderBy'] = order_by unless order_by.nil?
200
222
  command.query['pageSize'] = page_size unless page_size.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-ideahub_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.6.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-28 00:00:00.000000000 Z
11
+ date: 2021-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-ideahub_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-ideahub_v1alpha/v0.2.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ideahub_v1alpha/v0.6.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-ideahub_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []