google-apis-ideahub_v1alpha 0.3.0 → 0.7.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: 5d763184f518f6f4ea7478c3264f5a461ed0a88e4e2a5f1535e45fbd81e55d22
4
- data.tar.gz: 90c40252be8d21d2acdce4cef697ec0df9c96fa41ba93feccc3f6494cea2c151
3
+ metadata.gz: 3d731cc9c7e4b082a8b9a1904d6b88933af96674db1298f6c8285a30ca12ace4
4
+ data.tar.gz: 6e08dac96fb19ccaa8cadea42540792ce6937206325dc97753309e93159914a5
5
5
  SHA512:
6
- metadata.gz: 413e05becd07014e3b8761a60502e8a096554cdc92c1f3fbe486b28246126d10bd696b8293d486605f8eba072e9e5bef9474c9872113a51576dcf5a53451d12e
7
- data.tar.gz: 599af096b85c03c782f33952d3c4f74cfdd43e83114e82a7ceccf3cef6f037e6f716a4730fb1845f5d3fd95e052b5ad4b7d55cdd7dbdfbc6359ca22ebe609da3
6
+ metadata.gz: f21eaef0b19b5e7c1858d2f7d56afe8f30dfd92f03ee8588f044b9f50a79cbec1786418e31b71018d67a3006359b5cc843d31f8fd955641f3598b11e26b5c1c0
7
+ data.tar.gz: 86e9e73a55aed2ac15631cc17b5ffa56c7efc054735b5cc30ce738674a59c8cf793147562dadcf132225192bc58474be43c8c260ebfd2611b80507769919100d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-ideahub_v1alpha
2
2
 
3
+ ### v0.7.0 (2021-08-27)
4
+
5
+ * Regenerated from discovery document revision 20210825
6
+
7
+ ### v0.6.0 (2021-08-19)
8
+
9
+ * Regenerated from discovery document revision 20210818
10
+
11
+ ### v0.5.0 (2021-07-30)
12
+
13
+ * Regenerated from discovery document revision 20210728
14
+
15
+ ### v0.4.0 (2021-07-09)
16
+
17
+ * Regenerated from discovery document revision 20210707
18
+
3
19
  ### v0.3.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
@@ -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. If empty, topics should be set.
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. If empty, ideas should be set.
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.3.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
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 = "20210825"
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.3.0
4
+ version: 0.7.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-07-05 00:00:00.000000000 Z
11
+ date: 2021-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ideahub_v1alpha/v0.7.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: []