google-apis-blogger_v3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e641d79c633003924aa62fdf5f9ea9a63092ef80eeb9e9115efc8f4e7bfa182b
4
+ data.tar.gz: f98550f3841d286511eb3663cded698950d35dc24b45896f713b1760d384c9ee
5
+ SHA512:
6
+ metadata.gz: 2e202db0df411864237eb042ccbbfbdf27c2e05f7531435494870e37b2a067888df490ad9ed4fabe2942b7bd24f703c7b5d86e60c6bf474e0c685c1196b3bbe7
7
+ data.tar.gz: 4e8f88ec92f46c9ce6f82624ea1f749507d332d338dbce18d848e15f4914d037dcf4cc05c3846b46acbd3c0ffa019aa9ec5b6dec32753cd0c71006e7157b06c7
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-blogger_v3
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/blogger_v3/*.rb
9
+ lib/google/apis/blogger_v3.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-blogger_v3
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20200801
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V3 of the Blogger API v3
2
+
3
+ This is a simple client library for version V3 of the Blogger API v3. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/blogger.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-blogger_v3', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-blogger_v3
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/blogger_v3"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::BloggerV3::BloggerService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Blogger service in particular.)
67
+
68
+ For reference information on specific calls in the Blogger API v3, see the {Google::Apis::BloggerV3::BloggerService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-blogger_v3`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://developers.google.com/blogger/docs/3.0/getting_started) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/blogger_v3"
@@ -0,0 +1,39 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/blogger_v3/service.rb'
16
+ require 'google/apis/blogger_v3/classes.rb'
17
+ require 'google/apis/blogger_v3/representations.rb'
18
+ require 'google/apis/blogger_v3/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Blogger API v3
23
+ #
24
+ # The Blogger API provides access to posts, comments and pages of a Blogger blog.
25
+ #
26
+ # @see https://developers.google.com/blogger/docs/3.0/getting_started
27
+ module BloggerV3
28
+ # Version of the Blogger API v3 this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V3'
31
+
32
+ # Manage your Blogger account
33
+ AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'
34
+
35
+ # View your Blogger account
36
+ AUTH_BLOGGER_READONLY = 'https://www.googleapis.com/auth/blogger.readonly'
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,1360 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module BloggerV3
24
+
25
+ #
26
+ class Blog
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The JSON custom meta-data for the Blog.
30
+ # Corresponds to the JSON property `customMetaData`
31
+ # @return [String]
32
+ attr_accessor :custom_meta_data
33
+
34
+ # The description of this blog. This is displayed underneath the title.
35
+ # Corresponds to the JSON property `description`
36
+ # @return [String]
37
+ attr_accessor :description
38
+
39
+ # The identifier for this resource.
40
+ # Corresponds to the JSON property `id`
41
+ # @return [String]
42
+ attr_accessor :id
43
+
44
+ # The kind of this entry. Always blogger#blog.
45
+ # Corresponds to the JSON property `kind`
46
+ # @return [String]
47
+ attr_accessor :kind
48
+
49
+ # The locale this Blog is set to.
50
+ # Corresponds to the JSON property `locale`
51
+ # @return [Google::Apis::BloggerV3::Blog::Locale]
52
+ attr_accessor :locale
53
+
54
+ # The name of this blog. This is displayed as the title.
55
+ # Corresponds to the JSON property `name`
56
+ # @return [String]
57
+ attr_accessor :name
58
+
59
+ # The container of pages in this blog.
60
+ # Corresponds to the JSON property `pages`
61
+ # @return [Google::Apis::BloggerV3::Blog::Pages]
62
+ attr_accessor :pages
63
+
64
+ # The container of posts in this blog.
65
+ # Corresponds to the JSON property `posts`
66
+ # @return [Google::Apis::BloggerV3::Blog::Posts]
67
+ attr_accessor :posts
68
+
69
+ # RFC 3339 date-time when this blog was published.
70
+ # Corresponds to the JSON property `published`
71
+ # @return [String]
72
+ attr_accessor :published
73
+
74
+ # The API REST URL to fetch this resource from.
75
+ # Corresponds to the JSON property `selfLink`
76
+ # @return [String]
77
+ attr_accessor :self_link
78
+
79
+ # The status of the blog.
80
+ # Corresponds to the JSON property `status`
81
+ # @return [String]
82
+ attr_accessor :status
83
+
84
+ # RFC 3339 date-time when this blog was last updated.
85
+ # Corresponds to the JSON property `updated`
86
+ # @return [String]
87
+ attr_accessor :updated
88
+
89
+ # The URL where this blog is published.
90
+ # Corresponds to the JSON property `url`
91
+ # @return [String]
92
+ attr_accessor :url
93
+
94
+ def initialize(**args)
95
+ update!(**args)
96
+ end
97
+
98
+ # Update properties of this object
99
+ def update!(**args)
100
+ @custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data)
101
+ @description = args[:description] if args.key?(:description)
102
+ @id = args[:id] if args.key?(:id)
103
+ @kind = args[:kind] if args.key?(:kind)
104
+ @locale = args[:locale] if args.key?(:locale)
105
+ @name = args[:name] if args.key?(:name)
106
+ @pages = args[:pages] if args.key?(:pages)
107
+ @posts = args[:posts] if args.key?(:posts)
108
+ @published = args[:published] if args.key?(:published)
109
+ @self_link = args[:self_link] if args.key?(:self_link)
110
+ @status = args[:status] if args.key?(:status)
111
+ @updated = args[:updated] if args.key?(:updated)
112
+ @url = args[:url] if args.key?(:url)
113
+ end
114
+
115
+ # The locale this Blog is set to.
116
+ class Locale
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # The country this blog's locale is set to.
120
+ # Corresponds to the JSON property `country`
121
+ # @return [String]
122
+ attr_accessor :country
123
+
124
+ # The language this blog is authored in.
125
+ # Corresponds to the JSON property `language`
126
+ # @return [String]
127
+ attr_accessor :language
128
+
129
+ # The language variant this blog is authored in.
130
+ # Corresponds to the JSON property `variant`
131
+ # @return [String]
132
+ attr_accessor :variant
133
+
134
+ def initialize(**args)
135
+ update!(**args)
136
+ end
137
+
138
+ # Update properties of this object
139
+ def update!(**args)
140
+ @country = args[:country] if args.key?(:country)
141
+ @language = args[:language] if args.key?(:language)
142
+ @variant = args[:variant] if args.key?(:variant)
143
+ end
144
+ end
145
+
146
+ # The container of pages in this blog.
147
+ class Pages
148
+ include Google::Apis::Core::Hashable
149
+
150
+ # The URL of the container for pages in this blog.
151
+ # Corresponds to the JSON property `selfLink`
152
+ # @return [String]
153
+ attr_accessor :self_link
154
+
155
+ # The count of pages in this blog.
156
+ # Corresponds to the JSON property `totalItems`
157
+ # @return [Fixnum]
158
+ attr_accessor :total_items
159
+
160
+ def initialize(**args)
161
+ update!(**args)
162
+ end
163
+
164
+ # Update properties of this object
165
+ def update!(**args)
166
+ @self_link = args[:self_link] if args.key?(:self_link)
167
+ @total_items = args[:total_items] if args.key?(:total_items)
168
+ end
169
+ end
170
+
171
+ # The container of posts in this blog.
172
+ class Posts
173
+ include Google::Apis::Core::Hashable
174
+
175
+ # The List of Posts for this Blog.
176
+ # Corresponds to the JSON property `items`
177
+ # @return [Array<Google::Apis::BloggerV3::Post>]
178
+ attr_accessor :items
179
+
180
+ # The URL of the container for posts in this blog.
181
+ # Corresponds to the JSON property `selfLink`
182
+ # @return [String]
183
+ attr_accessor :self_link
184
+
185
+ # The count of posts in this blog.
186
+ # Corresponds to the JSON property `totalItems`
187
+ # @return [Fixnum]
188
+ attr_accessor :total_items
189
+
190
+ def initialize(**args)
191
+ update!(**args)
192
+ end
193
+
194
+ # Update properties of this object
195
+ def update!(**args)
196
+ @items = args[:items] if args.key?(:items)
197
+ @self_link = args[:self_link] if args.key?(:self_link)
198
+ @total_items = args[:total_items] if args.key?(:total_items)
199
+ end
200
+ end
201
+ end
202
+
203
+ #
204
+ class BlogList
205
+ include Google::Apis::Core::Hashable
206
+
207
+ # Admin level list of blog per-user information.
208
+ # Corresponds to the JSON property `blogUserInfos`
209
+ # @return [Array<Google::Apis::BloggerV3::BlogUserInfo>]
210
+ attr_accessor :blog_user_infos
211
+
212
+ # The list of Blogs this user has Authorship or Admin rights over.
213
+ # Corresponds to the JSON property `items`
214
+ # @return [Array<Google::Apis::BloggerV3::Blog>]
215
+ attr_accessor :items
216
+
217
+ # The kind of this entity. Always blogger#blogList.
218
+ # Corresponds to the JSON property `kind`
219
+ # @return [String]
220
+ attr_accessor :kind
221
+
222
+ def initialize(**args)
223
+ update!(**args)
224
+ end
225
+
226
+ # Update properties of this object
227
+ def update!(**args)
228
+ @blog_user_infos = args[:blog_user_infos] if args.key?(:blog_user_infos)
229
+ @items = args[:items] if args.key?(:items)
230
+ @kind = args[:kind] if args.key?(:kind)
231
+ end
232
+ end
233
+
234
+ #
235
+ class BlogPerUserInfo
236
+ include Google::Apis::Core::Hashable
237
+
238
+ # ID of the Blog resource.
239
+ # Corresponds to the JSON property `blogId`
240
+ # @return [String]
241
+ attr_accessor :blog_id
242
+
243
+ # True if the user has Admin level access to the blog.
244
+ # Corresponds to the JSON property `hasAdminAccess`
245
+ # @return [Boolean]
246
+ attr_accessor :has_admin_access
247
+ alias_method :has_admin_access?, :has_admin_access
248
+
249
+ # The kind of this entity. Always blogger#blogPerUserInfo.
250
+ # Corresponds to the JSON property `kind`
251
+ # @return [String]
252
+ attr_accessor :kind
253
+
254
+ # The Photo Album Key for the user when adding photos to the blog.
255
+ # Corresponds to the JSON property `photosAlbumKey`
256
+ # @return [String]
257
+ attr_accessor :photos_album_key
258
+
259
+ # Access permissions that the user has for the blog (ADMIN, AUTHOR, or READER).
260
+ # Corresponds to the JSON property `role`
261
+ # @return [String]
262
+ attr_accessor :role
263
+
264
+ # ID of the User.
265
+ # Corresponds to the JSON property `userId`
266
+ # @return [String]
267
+ attr_accessor :user_id
268
+
269
+ def initialize(**args)
270
+ update!(**args)
271
+ end
272
+
273
+ # Update properties of this object
274
+ def update!(**args)
275
+ @blog_id = args[:blog_id] if args.key?(:blog_id)
276
+ @has_admin_access = args[:has_admin_access] if args.key?(:has_admin_access)
277
+ @kind = args[:kind] if args.key?(:kind)
278
+ @photos_album_key = args[:photos_album_key] if args.key?(:photos_album_key)
279
+ @role = args[:role] if args.key?(:role)
280
+ @user_id = args[:user_id] if args.key?(:user_id)
281
+ end
282
+ end
283
+
284
+ #
285
+ class BlogUserInfo
286
+ include Google::Apis::Core::Hashable
287
+
288
+ # The Blog resource.
289
+ # Corresponds to the JSON property `blog`
290
+ # @return [Google::Apis::BloggerV3::Blog]
291
+ attr_accessor :blog
292
+
293
+ # Information about a User for the Blog.
294
+ # Corresponds to the JSON property `blog_user_info`
295
+ # @return [Google::Apis::BloggerV3::BlogPerUserInfo]
296
+ attr_accessor :blog_user_info
297
+
298
+ # The kind of this entity. Always blogger#blogUserInfo.
299
+ # Corresponds to the JSON property `kind`
300
+ # @return [String]
301
+ attr_accessor :kind
302
+
303
+ def initialize(**args)
304
+ update!(**args)
305
+ end
306
+
307
+ # Update properties of this object
308
+ def update!(**args)
309
+ @blog = args[:blog] if args.key?(:blog)
310
+ @blog_user_info = args[:blog_user_info] if args.key?(:blog_user_info)
311
+ @kind = args[:kind] if args.key?(:kind)
312
+ end
313
+ end
314
+
315
+ #
316
+ class Comment
317
+ include Google::Apis::Core::Hashable
318
+
319
+ # The author of this Comment.
320
+ # Corresponds to the JSON property `author`
321
+ # @return [Google::Apis::BloggerV3::Comment::Author]
322
+ attr_accessor :author
323
+
324
+ # Data about the blog containing this comment.
325
+ # Corresponds to the JSON property `blog`
326
+ # @return [Google::Apis::BloggerV3::Comment::Blog]
327
+ attr_accessor :blog
328
+
329
+ # The actual content of the comment. May include HTML markup.
330
+ # Corresponds to the JSON property `content`
331
+ # @return [String]
332
+ attr_accessor :content
333
+
334
+ # The identifier for this resource.
335
+ # Corresponds to the JSON property `id`
336
+ # @return [String]
337
+ attr_accessor :id
338
+
339
+ # Data about the comment this is in reply to.
340
+ # Corresponds to the JSON property `inReplyTo`
341
+ # @return [Google::Apis::BloggerV3::Comment::InReplyTo]
342
+ attr_accessor :in_reply_to
343
+
344
+ # The kind of this entry. Always blogger#comment.
345
+ # Corresponds to the JSON property `kind`
346
+ # @return [String]
347
+ attr_accessor :kind
348
+
349
+ # Data about the post containing this comment.
350
+ # Corresponds to the JSON property `post`
351
+ # @return [Google::Apis::BloggerV3::Comment::Post]
352
+ attr_accessor :post
353
+
354
+ # RFC 3339 date-time when this comment was published.
355
+ # Corresponds to the JSON property `published`
356
+ # @return [String]
357
+ attr_accessor :published
358
+
359
+ # The API REST URL to fetch this resource from.
360
+ # Corresponds to the JSON property `selfLink`
361
+ # @return [String]
362
+ attr_accessor :self_link
363
+
364
+ # The status of the comment (only populated for admin users).
365
+ # Corresponds to the JSON property `status`
366
+ # @return [String]
367
+ attr_accessor :status
368
+
369
+ # RFC 3339 date-time when this comment was last updated.
370
+ # Corresponds to the JSON property `updated`
371
+ # @return [String]
372
+ attr_accessor :updated
373
+
374
+ def initialize(**args)
375
+ update!(**args)
376
+ end
377
+
378
+ # Update properties of this object
379
+ def update!(**args)
380
+ @author = args[:author] if args.key?(:author)
381
+ @blog = args[:blog] if args.key?(:blog)
382
+ @content = args[:content] if args.key?(:content)
383
+ @id = args[:id] if args.key?(:id)
384
+ @in_reply_to = args[:in_reply_to] if args.key?(:in_reply_to)
385
+ @kind = args[:kind] if args.key?(:kind)
386
+ @post = args[:post] if args.key?(:post)
387
+ @published = args[:published] if args.key?(:published)
388
+ @self_link = args[:self_link] if args.key?(:self_link)
389
+ @status = args[:status] if args.key?(:status)
390
+ @updated = args[:updated] if args.key?(:updated)
391
+ end
392
+
393
+ # The author of this Comment.
394
+ class Author
395
+ include Google::Apis::Core::Hashable
396
+
397
+ # The display name.
398
+ # Corresponds to the JSON property `displayName`
399
+ # @return [String]
400
+ attr_accessor :display_name
401
+
402
+ # The identifier of the creator.
403
+ # Corresponds to the JSON property `id`
404
+ # @return [String]
405
+ attr_accessor :id
406
+
407
+ # The creator's avatar.
408
+ # Corresponds to the JSON property `image`
409
+ # @return [Google::Apis::BloggerV3::Comment::Author::Image]
410
+ attr_accessor :image
411
+
412
+ # The URL of the creator's Profile page.
413
+ # Corresponds to the JSON property `url`
414
+ # @return [String]
415
+ attr_accessor :url
416
+
417
+ def initialize(**args)
418
+ update!(**args)
419
+ end
420
+
421
+ # Update properties of this object
422
+ def update!(**args)
423
+ @display_name = args[:display_name] if args.key?(:display_name)
424
+ @id = args[:id] if args.key?(:id)
425
+ @image = args[:image] if args.key?(:image)
426
+ @url = args[:url] if args.key?(:url)
427
+ end
428
+
429
+ # The creator's avatar.
430
+ class Image
431
+ include Google::Apis::Core::Hashable
432
+
433
+ # The creator's avatar URL.
434
+ # Corresponds to the JSON property `url`
435
+ # @return [String]
436
+ attr_accessor :url
437
+
438
+ def initialize(**args)
439
+ update!(**args)
440
+ end
441
+
442
+ # Update properties of this object
443
+ def update!(**args)
444
+ @url = args[:url] if args.key?(:url)
445
+ end
446
+ end
447
+ end
448
+
449
+ # Data about the blog containing this comment.
450
+ class Blog
451
+ include Google::Apis::Core::Hashable
452
+
453
+ # The identifier of the blog containing this comment.
454
+ # Corresponds to the JSON property `id`
455
+ # @return [String]
456
+ attr_accessor :id
457
+
458
+ def initialize(**args)
459
+ update!(**args)
460
+ end
461
+
462
+ # Update properties of this object
463
+ def update!(**args)
464
+ @id = args[:id] if args.key?(:id)
465
+ end
466
+ end
467
+
468
+ # Data about the comment this is in reply to.
469
+ class InReplyTo
470
+ include Google::Apis::Core::Hashable
471
+
472
+ # The identified of the parent of this comment.
473
+ # Corresponds to the JSON property `id`
474
+ # @return [String]
475
+ attr_accessor :id
476
+
477
+ def initialize(**args)
478
+ update!(**args)
479
+ end
480
+
481
+ # Update properties of this object
482
+ def update!(**args)
483
+ @id = args[:id] if args.key?(:id)
484
+ end
485
+ end
486
+
487
+ # Data about the post containing this comment.
488
+ class Post
489
+ include Google::Apis::Core::Hashable
490
+
491
+ # The identifier of the post containing this comment.
492
+ # Corresponds to the JSON property `id`
493
+ # @return [String]
494
+ attr_accessor :id
495
+
496
+ def initialize(**args)
497
+ update!(**args)
498
+ end
499
+
500
+ # Update properties of this object
501
+ def update!(**args)
502
+ @id = args[:id] if args.key?(:id)
503
+ end
504
+ end
505
+ end
506
+
507
+ #
508
+ class CommentList
509
+ include Google::Apis::Core::Hashable
510
+
511
+ # Etag of the response.
512
+ # Corresponds to the JSON property `etag`
513
+ # @return [String]
514
+ attr_accessor :etag
515
+
516
+ # The List of Comments for a Post.
517
+ # Corresponds to the JSON property `items`
518
+ # @return [Array<Google::Apis::BloggerV3::Comment>]
519
+ attr_accessor :items
520
+
521
+ # The kind of this entry. Always blogger#commentList.
522
+ # Corresponds to the JSON property `kind`
523
+ # @return [String]
524
+ attr_accessor :kind
525
+
526
+ # Pagination token to fetch the next page, if one exists.
527
+ # Corresponds to the JSON property `nextPageToken`
528
+ # @return [String]
529
+ attr_accessor :next_page_token
530
+
531
+ # Pagination token to fetch the previous page, if one exists.
532
+ # Corresponds to the JSON property `prevPageToken`
533
+ # @return [String]
534
+ attr_accessor :prev_page_token
535
+
536
+ def initialize(**args)
537
+ update!(**args)
538
+ end
539
+
540
+ # Update properties of this object
541
+ def update!(**args)
542
+ @etag = args[:etag] if args.key?(:etag)
543
+ @items = args[:items] if args.key?(:items)
544
+ @kind = args[:kind] if args.key?(:kind)
545
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
546
+ @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token)
547
+ end
548
+ end
549
+
550
+ #
551
+ class Page
552
+ include Google::Apis::Core::Hashable
553
+
554
+ # The author of this Page.
555
+ # Corresponds to the JSON property `author`
556
+ # @return [Google::Apis::BloggerV3::Page::Author]
557
+ attr_accessor :author
558
+
559
+ # Data about the blog containing this Page.
560
+ # Corresponds to the JSON property `blog`
561
+ # @return [Google::Apis::BloggerV3::Page::Blog]
562
+ attr_accessor :blog
563
+
564
+ # The body content of this Page, in HTML.
565
+ # Corresponds to the JSON property `content`
566
+ # @return [String]
567
+ attr_accessor :content
568
+
569
+ # Etag of the resource.
570
+ # Corresponds to the JSON property `etag`
571
+ # @return [String]
572
+ attr_accessor :etag
573
+
574
+ # The identifier for this resource.
575
+ # Corresponds to the JSON property `id`
576
+ # @return [String]
577
+ attr_accessor :id
578
+
579
+ # The kind of this entity. Always blogger#page.
580
+ # Corresponds to the JSON property `kind`
581
+ # @return [String]
582
+ attr_accessor :kind
583
+
584
+ # RFC 3339 date-time when this Page was published.
585
+ # Corresponds to the JSON property `published`
586
+ # @return [String]
587
+ attr_accessor :published
588
+
589
+ # The API REST URL to fetch this resource from.
590
+ # Corresponds to the JSON property `selfLink`
591
+ # @return [String]
592
+ attr_accessor :self_link
593
+
594
+ # The status of the page for admin resources (either LIVE or DRAFT).
595
+ # Corresponds to the JSON property `status`
596
+ # @return [String]
597
+ attr_accessor :status
598
+
599
+ # The title of this entity. This is the name displayed in the Admin user
600
+ # interface.
601
+ # Corresponds to the JSON property `title`
602
+ # @return [String]
603
+ attr_accessor :title
604
+
605
+ # RFC 3339 date-time when this Page was last updated.
606
+ # Corresponds to the JSON property `updated`
607
+ # @return [String]
608
+ attr_accessor :updated
609
+
610
+ # The URL that this Page is displayed at.
611
+ # Corresponds to the JSON property `url`
612
+ # @return [String]
613
+ attr_accessor :url
614
+
615
+ def initialize(**args)
616
+ update!(**args)
617
+ end
618
+
619
+ # Update properties of this object
620
+ def update!(**args)
621
+ @author = args[:author] if args.key?(:author)
622
+ @blog = args[:blog] if args.key?(:blog)
623
+ @content = args[:content] if args.key?(:content)
624
+ @etag = args[:etag] if args.key?(:etag)
625
+ @id = args[:id] if args.key?(:id)
626
+ @kind = args[:kind] if args.key?(:kind)
627
+ @published = args[:published] if args.key?(:published)
628
+ @self_link = args[:self_link] if args.key?(:self_link)
629
+ @status = args[:status] if args.key?(:status)
630
+ @title = args[:title] if args.key?(:title)
631
+ @updated = args[:updated] if args.key?(:updated)
632
+ @url = args[:url] if args.key?(:url)
633
+ end
634
+
635
+ # The author of this Page.
636
+ class Author
637
+ include Google::Apis::Core::Hashable
638
+
639
+ # The display name.
640
+ # Corresponds to the JSON property `displayName`
641
+ # @return [String]
642
+ attr_accessor :display_name
643
+
644
+ # The identifier of the creator.
645
+ # Corresponds to the JSON property `id`
646
+ # @return [String]
647
+ attr_accessor :id
648
+
649
+ # The creator's avatar.
650
+ # Corresponds to the JSON property `image`
651
+ # @return [Google::Apis::BloggerV3::Page::Author::Image]
652
+ attr_accessor :image
653
+
654
+ # The URL of the creator's Profile page.
655
+ # Corresponds to the JSON property `url`
656
+ # @return [String]
657
+ attr_accessor :url
658
+
659
+ def initialize(**args)
660
+ update!(**args)
661
+ end
662
+
663
+ # Update properties of this object
664
+ def update!(**args)
665
+ @display_name = args[:display_name] if args.key?(:display_name)
666
+ @id = args[:id] if args.key?(:id)
667
+ @image = args[:image] if args.key?(:image)
668
+ @url = args[:url] if args.key?(:url)
669
+ end
670
+
671
+ # The creator's avatar.
672
+ class Image
673
+ include Google::Apis::Core::Hashable
674
+
675
+ # The creator's avatar URL.
676
+ # Corresponds to the JSON property `url`
677
+ # @return [String]
678
+ attr_accessor :url
679
+
680
+ def initialize(**args)
681
+ update!(**args)
682
+ end
683
+
684
+ # Update properties of this object
685
+ def update!(**args)
686
+ @url = args[:url] if args.key?(:url)
687
+ end
688
+ end
689
+ end
690
+
691
+ # Data about the blog containing this Page.
692
+ class Blog
693
+ include Google::Apis::Core::Hashable
694
+
695
+ # The identifier of the blog containing this page.
696
+ # Corresponds to the JSON property `id`
697
+ # @return [String]
698
+ attr_accessor :id
699
+
700
+ def initialize(**args)
701
+ update!(**args)
702
+ end
703
+
704
+ # Update properties of this object
705
+ def update!(**args)
706
+ @id = args[:id] if args.key?(:id)
707
+ end
708
+ end
709
+ end
710
+
711
+ #
712
+ class PageList
713
+ include Google::Apis::Core::Hashable
714
+
715
+ # Etag of the response.
716
+ # Corresponds to the JSON property `etag`
717
+ # @return [String]
718
+ attr_accessor :etag
719
+
720
+ # The list of Pages for a Blog.
721
+ # Corresponds to the JSON property `items`
722
+ # @return [Array<Google::Apis::BloggerV3::Page>]
723
+ attr_accessor :items
724
+
725
+ # The kind of this entity. Always blogger#pageList.
726
+ # Corresponds to the JSON property `kind`
727
+ # @return [String]
728
+ attr_accessor :kind
729
+
730
+ # Pagination token to fetch the next page, if one exists.
731
+ # Corresponds to the JSON property `nextPageToken`
732
+ # @return [String]
733
+ attr_accessor :next_page_token
734
+
735
+ def initialize(**args)
736
+ update!(**args)
737
+ end
738
+
739
+ # Update properties of this object
740
+ def update!(**args)
741
+ @etag = args[:etag] if args.key?(:etag)
742
+ @items = args[:items] if args.key?(:items)
743
+ @kind = args[:kind] if args.key?(:kind)
744
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
745
+ end
746
+ end
747
+
748
+ #
749
+ class Pageviews
750
+ include Google::Apis::Core::Hashable
751
+
752
+ # Blog Id.
753
+ # Corresponds to the JSON property `blogId`
754
+ # @return [String]
755
+ attr_accessor :blog_id
756
+
757
+ # The container of posts in this blog.
758
+ # Corresponds to the JSON property `counts`
759
+ # @return [Array<Google::Apis::BloggerV3::Pageviews::Count>]
760
+ attr_accessor :counts
761
+
762
+ # The kind of this entry. Always blogger#page_views.
763
+ # Corresponds to the JSON property `kind`
764
+ # @return [String]
765
+ attr_accessor :kind
766
+
767
+ def initialize(**args)
768
+ update!(**args)
769
+ end
770
+
771
+ # Update properties of this object
772
+ def update!(**args)
773
+ @blog_id = args[:blog_id] if args.key?(:blog_id)
774
+ @counts = args[:counts] if args.key?(:counts)
775
+ @kind = args[:kind] if args.key?(:kind)
776
+ end
777
+
778
+ #
779
+ class Count
780
+ include Google::Apis::Core::Hashable
781
+
782
+ # Count of page views for the given time range.
783
+ # Corresponds to the JSON property `count`
784
+ # @return [Fixnum]
785
+ attr_accessor :count
786
+
787
+ # Time range the given count applies to.
788
+ # Corresponds to the JSON property `timeRange`
789
+ # @return [String]
790
+ attr_accessor :time_range
791
+
792
+ def initialize(**args)
793
+ update!(**args)
794
+ end
795
+
796
+ # Update properties of this object
797
+ def update!(**args)
798
+ @count = args[:count] if args.key?(:count)
799
+ @time_range = args[:time_range] if args.key?(:time_range)
800
+ end
801
+ end
802
+ end
803
+
804
+ #
805
+ class Post
806
+ include Google::Apis::Core::Hashable
807
+
808
+ # The author of this Post.
809
+ # Corresponds to the JSON property `author`
810
+ # @return [Google::Apis::BloggerV3::Post::Author]
811
+ attr_accessor :author
812
+
813
+ # Data about the blog containing this Post.
814
+ # Corresponds to the JSON property `blog`
815
+ # @return [Google::Apis::BloggerV3::Post::Blog]
816
+ attr_accessor :blog
817
+
818
+ # The content of the Post. May contain HTML markup.
819
+ # Corresponds to the JSON property `content`
820
+ # @return [String]
821
+ attr_accessor :content
822
+
823
+ # The JSON meta-data for the Post.
824
+ # Corresponds to the JSON property `customMetaData`
825
+ # @return [String]
826
+ attr_accessor :custom_meta_data
827
+
828
+ # Etag of the resource.
829
+ # Corresponds to the JSON property `etag`
830
+ # @return [String]
831
+ attr_accessor :etag
832
+
833
+ # The identifier of this Post.
834
+ # Corresponds to the JSON property `id`
835
+ # @return [String]
836
+ attr_accessor :id
837
+
838
+ # Display image for the Post.
839
+ # Corresponds to the JSON property `images`
840
+ # @return [Array<Google::Apis::BloggerV3::Post::Image>]
841
+ attr_accessor :images
842
+
843
+ # The kind of this entity. Always blogger#post.
844
+ # Corresponds to the JSON property `kind`
845
+ # @return [String]
846
+ attr_accessor :kind
847
+
848
+ # The list of labels this Post was tagged with.
849
+ # Corresponds to the JSON property `labels`
850
+ # @return [Array<String>]
851
+ attr_accessor :labels
852
+
853
+ # The location for geotagged posts.
854
+ # Corresponds to the JSON property `location`
855
+ # @return [Google::Apis::BloggerV3::Post::Location]
856
+ attr_accessor :location
857
+
858
+ # RFC 3339 date-time when this Post was published.
859
+ # Corresponds to the JSON property `published`
860
+ # @return [String]
861
+ attr_accessor :published
862
+
863
+ # Comment control and display setting for readers of this post.
864
+ # Corresponds to the JSON property `readerComments`
865
+ # @return [String]
866
+ attr_accessor :reader_comments
867
+
868
+ # The container of comments on this Post.
869
+ # Corresponds to the JSON property `replies`
870
+ # @return [Google::Apis::BloggerV3::Post::Replies]
871
+ attr_accessor :replies
872
+
873
+ # The API REST URL to fetch this resource from.
874
+ # Corresponds to the JSON property `selfLink`
875
+ # @return [String]
876
+ attr_accessor :self_link
877
+
878
+ # Status of the post. Only set for admin-level requests.
879
+ # Corresponds to the JSON property `status`
880
+ # @return [String]
881
+ attr_accessor :status
882
+
883
+ # The title of the Post.
884
+ # Corresponds to the JSON property `title`
885
+ # @return [String]
886
+ attr_accessor :title
887
+
888
+ # The title link URL, similar to atom's related link.
889
+ # Corresponds to the JSON property `titleLink`
890
+ # @return [String]
891
+ attr_accessor :title_link
892
+
893
+ # RFC 3339 date-time when this Post was last updated.
894
+ # Corresponds to the JSON property `updated`
895
+ # @return [String]
896
+ attr_accessor :updated
897
+
898
+ # The URL where this Post is displayed.
899
+ # Corresponds to the JSON property `url`
900
+ # @return [String]
901
+ attr_accessor :url
902
+
903
+ def initialize(**args)
904
+ update!(**args)
905
+ end
906
+
907
+ # Update properties of this object
908
+ def update!(**args)
909
+ @author = args[:author] if args.key?(:author)
910
+ @blog = args[:blog] if args.key?(:blog)
911
+ @content = args[:content] if args.key?(:content)
912
+ @custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data)
913
+ @etag = args[:etag] if args.key?(:etag)
914
+ @id = args[:id] if args.key?(:id)
915
+ @images = args[:images] if args.key?(:images)
916
+ @kind = args[:kind] if args.key?(:kind)
917
+ @labels = args[:labels] if args.key?(:labels)
918
+ @location = args[:location] if args.key?(:location)
919
+ @published = args[:published] if args.key?(:published)
920
+ @reader_comments = args[:reader_comments] if args.key?(:reader_comments)
921
+ @replies = args[:replies] if args.key?(:replies)
922
+ @self_link = args[:self_link] if args.key?(:self_link)
923
+ @status = args[:status] if args.key?(:status)
924
+ @title = args[:title] if args.key?(:title)
925
+ @title_link = args[:title_link] if args.key?(:title_link)
926
+ @updated = args[:updated] if args.key?(:updated)
927
+ @url = args[:url] if args.key?(:url)
928
+ end
929
+
930
+ # The author of this Post.
931
+ class Author
932
+ include Google::Apis::Core::Hashable
933
+
934
+ # The display name.
935
+ # Corresponds to the JSON property `displayName`
936
+ # @return [String]
937
+ attr_accessor :display_name
938
+
939
+ # The identifier of the creator.
940
+ # Corresponds to the JSON property `id`
941
+ # @return [String]
942
+ attr_accessor :id
943
+
944
+ # The creator's avatar.
945
+ # Corresponds to the JSON property `image`
946
+ # @return [Google::Apis::BloggerV3::Post::Author::Image]
947
+ attr_accessor :image
948
+
949
+ # The URL of the creator's Profile page.
950
+ # Corresponds to the JSON property `url`
951
+ # @return [String]
952
+ attr_accessor :url
953
+
954
+ def initialize(**args)
955
+ update!(**args)
956
+ end
957
+
958
+ # Update properties of this object
959
+ def update!(**args)
960
+ @display_name = args[:display_name] if args.key?(:display_name)
961
+ @id = args[:id] if args.key?(:id)
962
+ @image = args[:image] if args.key?(:image)
963
+ @url = args[:url] if args.key?(:url)
964
+ end
965
+
966
+ # The creator's avatar.
967
+ class Image
968
+ include Google::Apis::Core::Hashable
969
+
970
+ # The creator's avatar URL.
971
+ # Corresponds to the JSON property `url`
972
+ # @return [String]
973
+ attr_accessor :url
974
+
975
+ def initialize(**args)
976
+ update!(**args)
977
+ end
978
+
979
+ # Update properties of this object
980
+ def update!(**args)
981
+ @url = args[:url] if args.key?(:url)
982
+ end
983
+ end
984
+ end
985
+
986
+ # Data about the blog containing this Post.
987
+ class Blog
988
+ include Google::Apis::Core::Hashable
989
+
990
+ # The identifier of the Blog that contains this Post.
991
+ # Corresponds to the JSON property `id`
992
+ # @return [String]
993
+ attr_accessor :id
994
+
995
+ def initialize(**args)
996
+ update!(**args)
997
+ end
998
+
999
+ # Update properties of this object
1000
+ def update!(**args)
1001
+ @id = args[:id] if args.key?(:id)
1002
+ end
1003
+ end
1004
+
1005
+ #
1006
+ class Image
1007
+ include Google::Apis::Core::Hashable
1008
+
1009
+ #
1010
+ # Corresponds to the JSON property `url`
1011
+ # @return [String]
1012
+ attr_accessor :url
1013
+
1014
+ def initialize(**args)
1015
+ update!(**args)
1016
+ end
1017
+
1018
+ # Update properties of this object
1019
+ def update!(**args)
1020
+ @url = args[:url] if args.key?(:url)
1021
+ end
1022
+ end
1023
+
1024
+ # The location for geotagged posts.
1025
+ class Location
1026
+ include Google::Apis::Core::Hashable
1027
+
1028
+ # Location's latitude.
1029
+ # Corresponds to the JSON property `lat`
1030
+ # @return [Float]
1031
+ attr_accessor :lat
1032
+
1033
+ # Location's longitude.
1034
+ # Corresponds to the JSON property `lng`
1035
+ # @return [Float]
1036
+ attr_accessor :lng
1037
+
1038
+ # Location name.
1039
+ # Corresponds to the JSON property `name`
1040
+ # @return [String]
1041
+ attr_accessor :name
1042
+
1043
+ # Location's viewport span. Can be used when rendering a map preview.
1044
+ # Corresponds to the JSON property `span`
1045
+ # @return [String]
1046
+ attr_accessor :span
1047
+
1048
+ def initialize(**args)
1049
+ update!(**args)
1050
+ end
1051
+
1052
+ # Update properties of this object
1053
+ def update!(**args)
1054
+ @lat = args[:lat] if args.key?(:lat)
1055
+ @lng = args[:lng] if args.key?(:lng)
1056
+ @name = args[:name] if args.key?(:name)
1057
+ @span = args[:span] if args.key?(:span)
1058
+ end
1059
+ end
1060
+
1061
+ # The container of comments on this Post.
1062
+ class Replies
1063
+ include Google::Apis::Core::Hashable
1064
+
1065
+ # The List of Comments for this Post.
1066
+ # Corresponds to the JSON property `items`
1067
+ # @return [Array<Google::Apis::BloggerV3::Comment>]
1068
+ attr_accessor :items
1069
+
1070
+ # The URL of the comments on this post.
1071
+ # Corresponds to the JSON property `selfLink`
1072
+ # @return [String]
1073
+ attr_accessor :self_link
1074
+
1075
+ # The count of comments on this post.
1076
+ # Corresponds to the JSON property `totalItems`
1077
+ # @return [Fixnum]
1078
+ attr_accessor :total_items
1079
+
1080
+ def initialize(**args)
1081
+ update!(**args)
1082
+ end
1083
+
1084
+ # Update properties of this object
1085
+ def update!(**args)
1086
+ @items = args[:items] if args.key?(:items)
1087
+ @self_link = args[:self_link] if args.key?(:self_link)
1088
+ @total_items = args[:total_items] if args.key?(:total_items)
1089
+ end
1090
+ end
1091
+ end
1092
+
1093
+ #
1094
+ class PostList
1095
+ include Google::Apis::Core::Hashable
1096
+
1097
+ # Etag of the response.
1098
+ # Corresponds to the JSON property `etag`
1099
+ # @return [String]
1100
+ attr_accessor :etag
1101
+
1102
+ # The list of Posts for this Blog.
1103
+ # Corresponds to the JSON property `items`
1104
+ # @return [Array<Google::Apis::BloggerV3::Post>]
1105
+ attr_accessor :items
1106
+
1107
+ # The kind of this entity. Always blogger#postList.
1108
+ # Corresponds to the JSON property `kind`
1109
+ # @return [String]
1110
+ attr_accessor :kind
1111
+
1112
+ # Pagination token to fetch the next page, if one exists.
1113
+ # Corresponds to the JSON property `nextPageToken`
1114
+ # @return [String]
1115
+ attr_accessor :next_page_token
1116
+
1117
+ # Pagination token to fetch the previous page, if one exists.
1118
+ # Corresponds to the JSON property `prevPageToken`
1119
+ # @return [String]
1120
+ attr_accessor :prev_page_token
1121
+
1122
+ def initialize(**args)
1123
+ update!(**args)
1124
+ end
1125
+
1126
+ # Update properties of this object
1127
+ def update!(**args)
1128
+ @etag = args[:etag] if args.key?(:etag)
1129
+ @items = args[:items] if args.key?(:items)
1130
+ @kind = args[:kind] if args.key?(:kind)
1131
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1132
+ @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token)
1133
+ end
1134
+ end
1135
+
1136
+ #
1137
+ class PostPerUserInfo
1138
+ include Google::Apis::Core::Hashable
1139
+
1140
+ # ID of the Blog that the post resource belongs to.
1141
+ # Corresponds to the JSON property `blogId`
1142
+ # @return [String]
1143
+ attr_accessor :blog_id
1144
+
1145
+ # True if the user has Author level access to the post.
1146
+ # Corresponds to the JSON property `hasEditAccess`
1147
+ # @return [Boolean]
1148
+ attr_accessor :has_edit_access
1149
+ alias_method :has_edit_access?, :has_edit_access
1150
+
1151
+ # The kind of this entity. Always blogger#postPerUserInfo.
1152
+ # Corresponds to the JSON property `kind`
1153
+ # @return [String]
1154
+ attr_accessor :kind
1155
+
1156
+ # ID of the Post resource.
1157
+ # Corresponds to the JSON property `postId`
1158
+ # @return [String]
1159
+ attr_accessor :post_id
1160
+
1161
+ # ID of the User.
1162
+ # Corresponds to the JSON property `userId`
1163
+ # @return [String]
1164
+ attr_accessor :user_id
1165
+
1166
+ def initialize(**args)
1167
+ update!(**args)
1168
+ end
1169
+
1170
+ # Update properties of this object
1171
+ def update!(**args)
1172
+ @blog_id = args[:blog_id] if args.key?(:blog_id)
1173
+ @has_edit_access = args[:has_edit_access] if args.key?(:has_edit_access)
1174
+ @kind = args[:kind] if args.key?(:kind)
1175
+ @post_id = args[:post_id] if args.key?(:post_id)
1176
+ @user_id = args[:user_id] if args.key?(:user_id)
1177
+ end
1178
+ end
1179
+
1180
+ #
1181
+ class PostUserInfo
1182
+ include Google::Apis::Core::Hashable
1183
+
1184
+ # The kind of this entity. Always blogger#postUserInfo.
1185
+ # Corresponds to the JSON property `kind`
1186
+ # @return [String]
1187
+ attr_accessor :kind
1188
+
1189
+ # The Post resource.
1190
+ # Corresponds to the JSON property `post`
1191
+ # @return [Google::Apis::BloggerV3::Post]
1192
+ attr_accessor :post
1193
+
1194
+ # Information about a User for the Post.
1195
+ # Corresponds to the JSON property `post_user_info`
1196
+ # @return [Google::Apis::BloggerV3::PostPerUserInfo]
1197
+ attr_accessor :post_user_info
1198
+
1199
+ def initialize(**args)
1200
+ update!(**args)
1201
+ end
1202
+
1203
+ # Update properties of this object
1204
+ def update!(**args)
1205
+ @kind = args[:kind] if args.key?(:kind)
1206
+ @post = args[:post] if args.key?(:post)
1207
+ @post_user_info = args[:post_user_info] if args.key?(:post_user_info)
1208
+ end
1209
+ end
1210
+
1211
+ #
1212
+ class PostUserInfosList
1213
+ include Google::Apis::Core::Hashable
1214
+
1215
+ # The list of Posts with User information for the post, for this Blog.
1216
+ # Corresponds to the JSON property `items`
1217
+ # @return [Array<Google::Apis::BloggerV3::PostUserInfo>]
1218
+ attr_accessor :items
1219
+
1220
+ # The kind of this entity. Always blogger#postList.
1221
+ # Corresponds to the JSON property `kind`
1222
+ # @return [String]
1223
+ attr_accessor :kind
1224
+
1225
+ # Pagination token to fetch the next page, if one exists.
1226
+ # Corresponds to the JSON property `nextPageToken`
1227
+ # @return [String]
1228
+ attr_accessor :next_page_token
1229
+
1230
+ def initialize(**args)
1231
+ update!(**args)
1232
+ end
1233
+
1234
+ # Update properties of this object
1235
+ def update!(**args)
1236
+ @items = args[:items] if args.key?(:items)
1237
+ @kind = args[:kind] if args.key?(:kind)
1238
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1239
+ end
1240
+ end
1241
+
1242
+ #
1243
+ class User
1244
+ include Google::Apis::Core::Hashable
1245
+
1246
+ # Profile summary information.
1247
+ # Corresponds to the JSON property `about`
1248
+ # @return [String]
1249
+ attr_accessor :about
1250
+
1251
+ # The container of blogs for this user.
1252
+ # Corresponds to the JSON property `blogs`
1253
+ # @return [Google::Apis::BloggerV3::User::Blogs]
1254
+ attr_accessor :blogs
1255
+
1256
+ # The timestamp of when this profile was created, in seconds since epoch.
1257
+ # Corresponds to the JSON property `created`
1258
+ # @return [String]
1259
+ attr_accessor :created
1260
+
1261
+ # The display name.
1262
+ # Corresponds to the JSON property `displayName`
1263
+ # @return [String]
1264
+ attr_accessor :display_name
1265
+
1266
+ # The identifier for this User.
1267
+ # Corresponds to the JSON property `id`
1268
+ # @return [String]
1269
+ attr_accessor :id
1270
+
1271
+ # The kind of this entity. Always blogger#user.
1272
+ # Corresponds to the JSON property `kind`
1273
+ # @return [String]
1274
+ attr_accessor :kind
1275
+
1276
+ # This user's locale
1277
+ # Corresponds to the JSON property `locale`
1278
+ # @return [Google::Apis::BloggerV3::User::Locale]
1279
+ attr_accessor :locale
1280
+
1281
+ # The API REST URL to fetch this resource from.
1282
+ # Corresponds to the JSON property `selfLink`
1283
+ # @return [String]
1284
+ attr_accessor :self_link
1285
+
1286
+ # The user's profile page.
1287
+ # Corresponds to the JSON property `url`
1288
+ # @return [String]
1289
+ attr_accessor :url
1290
+
1291
+ def initialize(**args)
1292
+ update!(**args)
1293
+ end
1294
+
1295
+ # Update properties of this object
1296
+ def update!(**args)
1297
+ @about = args[:about] if args.key?(:about)
1298
+ @blogs = args[:blogs] if args.key?(:blogs)
1299
+ @created = args[:created] if args.key?(:created)
1300
+ @display_name = args[:display_name] if args.key?(:display_name)
1301
+ @id = args[:id] if args.key?(:id)
1302
+ @kind = args[:kind] if args.key?(:kind)
1303
+ @locale = args[:locale] if args.key?(:locale)
1304
+ @self_link = args[:self_link] if args.key?(:self_link)
1305
+ @url = args[:url] if args.key?(:url)
1306
+ end
1307
+
1308
+ # The container of blogs for this user.
1309
+ class Blogs
1310
+ include Google::Apis::Core::Hashable
1311
+
1312
+ # The URL of the Blogs for this user.
1313
+ # Corresponds to the JSON property `selfLink`
1314
+ # @return [String]
1315
+ attr_accessor :self_link
1316
+
1317
+ def initialize(**args)
1318
+ update!(**args)
1319
+ end
1320
+
1321
+ # Update properties of this object
1322
+ def update!(**args)
1323
+ @self_link = args[:self_link] if args.key?(:self_link)
1324
+ end
1325
+ end
1326
+
1327
+ # This user's locale
1328
+ class Locale
1329
+ include Google::Apis::Core::Hashable
1330
+
1331
+ # The country this blog's locale is set to.
1332
+ # Corresponds to the JSON property `country`
1333
+ # @return [String]
1334
+ attr_accessor :country
1335
+
1336
+ # The language this blog is authored in.
1337
+ # Corresponds to the JSON property `language`
1338
+ # @return [String]
1339
+ attr_accessor :language
1340
+
1341
+ # The language variant this blog is authored in.
1342
+ # Corresponds to the JSON property `variant`
1343
+ # @return [String]
1344
+ attr_accessor :variant
1345
+
1346
+ def initialize(**args)
1347
+ update!(**args)
1348
+ end
1349
+
1350
+ # Update properties of this object
1351
+ def update!(**args)
1352
+ @country = args[:country] if args.key?(:country)
1353
+ @language = args[:language] if args.key?(:language)
1354
+ @variant = args[:variant] if args.key?(:variant)
1355
+ end
1356
+ end
1357
+ end
1358
+ end
1359
+ end
1360
+ end