google-apis-blogger_v2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-blogger_v2.rb +15 -0
- data/lib/google/apis/blogger_v2.rb +36 -0
- data/lib/google/apis/blogger_v2/classes.rb +1198 -0
- data/lib/google/apis/blogger_v2/gem_version.rb +28 -0
- data/lib/google/apis/blogger_v2/representations.rb +544 -0
- data/lib/google/apis/blogger_v2/service.rb +350 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6d652e9a797f8b248dd160656df942c24da1293703bc937c63bbb0bdedfc1cf1
|
4
|
+
data.tar.gz: eb159e9b76ec2ddef944d9cdd56789f3e1da645f9ccf0205fe5d61c8f53a6654
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ed4ba47c114ae662971eaf552adaa3a63b09e681d355efa99c915ace485eb5567373ef250aed4c7aa119e161db00fd1da920613b49799c7af32182fbba787076
|
7
|
+
data.tar.gz: 54d253d30394fac7eab44b7b95bfa5778ab999c83e34eba6d790c9d720ae7a20201b7d3eb9a536c699da33941de83f95ca75d71410a75e5a49bce8aa7128c529
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-blogger_v2
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/blogger_v2/*.rb
|
9
|
+
lib/google/apis/blogger_v2.rb
|
10
|
+
-
|
11
|
+
OVERVIEW.md
|
12
|
+
CHANGELOG.md
|
13
|
+
LICENSE.md
|
data/CHANGELOG.md
ADDED
data/LICENSE.md
ADDED
@@ -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.
|
data/OVERVIEW.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Simple REST client for version V2 of the Blogger API v3
|
2
|
+
|
3
|
+
This is a simple client library for version V2 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_v2', '~> 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_v2
|
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_v2"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::BloggerV2::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::BloggerV2::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_v2`, 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_v2"
|
@@ -0,0 +1,36 @@
|
|
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_v2/service.rb'
|
16
|
+
require 'google/apis/blogger_v2/classes.rb'
|
17
|
+
require 'google/apis/blogger_v2/representations.rb'
|
18
|
+
require 'google/apis/blogger_v2/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 BloggerV2
|
28
|
+
# Version of the Blogger API v3 this client connects to.
|
29
|
+
# This is NOT the gem version.
|
30
|
+
VERSION = 'V2'
|
31
|
+
|
32
|
+
# Manage your Blogger account
|
33
|
+
AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,1198 @@
|
|
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 BloggerV2
|
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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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::BloggerV2::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 Post
|
750
|
+
include Google::Apis::Core::Hashable
|
751
|
+
|
752
|
+
# The author of this Post.
|
753
|
+
# Corresponds to the JSON property `author`
|
754
|
+
# @return [Google::Apis::BloggerV2::Post::Author]
|
755
|
+
attr_accessor :author
|
756
|
+
|
757
|
+
# Data about the blog containing this Post.
|
758
|
+
# Corresponds to the JSON property `blog`
|
759
|
+
# @return [Google::Apis::BloggerV2::Post::Blog]
|
760
|
+
attr_accessor :blog
|
761
|
+
|
762
|
+
# The content of the Post. May contain HTML markup.
|
763
|
+
# Corresponds to the JSON property `content`
|
764
|
+
# @return [String]
|
765
|
+
attr_accessor :content
|
766
|
+
|
767
|
+
# The JSON meta-data for the Post.
|
768
|
+
# Corresponds to the JSON property `customMetaData`
|
769
|
+
# @return [String]
|
770
|
+
attr_accessor :custom_meta_data
|
771
|
+
|
772
|
+
# Etag of the resource.
|
773
|
+
# Corresponds to the JSON property `etag`
|
774
|
+
# @return [String]
|
775
|
+
attr_accessor :etag
|
776
|
+
|
777
|
+
# The identifier of this Post.
|
778
|
+
# Corresponds to the JSON property `id`
|
779
|
+
# @return [String]
|
780
|
+
attr_accessor :id
|
781
|
+
|
782
|
+
# Display image for the Post.
|
783
|
+
# Corresponds to the JSON property `images`
|
784
|
+
# @return [Array<Google::Apis::BloggerV2::Post::Image>]
|
785
|
+
attr_accessor :images
|
786
|
+
|
787
|
+
# The kind of this entity. Always blogger#post.
|
788
|
+
# Corresponds to the JSON property `kind`
|
789
|
+
# @return [String]
|
790
|
+
attr_accessor :kind
|
791
|
+
|
792
|
+
# The list of labels this Post was tagged with.
|
793
|
+
# Corresponds to the JSON property `labels`
|
794
|
+
# @return [Array<String>]
|
795
|
+
attr_accessor :labels
|
796
|
+
|
797
|
+
# The location for geotagged posts.
|
798
|
+
# Corresponds to the JSON property `location`
|
799
|
+
# @return [Google::Apis::BloggerV2::Post::Location]
|
800
|
+
attr_accessor :location
|
801
|
+
|
802
|
+
# RFC 3339 date-time when this Post was published.
|
803
|
+
# Corresponds to the JSON property `published`
|
804
|
+
# @return [String]
|
805
|
+
attr_accessor :published
|
806
|
+
|
807
|
+
# Comment control and display setting for readers of this post.
|
808
|
+
# Corresponds to the JSON property `readerComments`
|
809
|
+
# @return [String]
|
810
|
+
attr_accessor :reader_comments
|
811
|
+
|
812
|
+
# The container of comments on this Post.
|
813
|
+
# Corresponds to the JSON property `replies`
|
814
|
+
# @return [Google::Apis::BloggerV2::Post::Replies]
|
815
|
+
attr_accessor :replies
|
816
|
+
|
817
|
+
# The API REST URL to fetch this resource from.
|
818
|
+
# Corresponds to the JSON property `selfLink`
|
819
|
+
# @return [String]
|
820
|
+
attr_accessor :self_link
|
821
|
+
|
822
|
+
# Status of the post. Only set for admin-level requests.
|
823
|
+
# Corresponds to the JSON property `status`
|
824
|
+
# @return [String]
|
825
|
+
attr_accessor :status
|
826
|
+
|
827
|
+
# The title of the Post.
|
828
|
+
# Corresponds to the JSON property `title`
|
829
|
+
# @return [String]
|
830
|
+
attr_accessor :title
|
831
|
+
|
832
|
+
# The title link URL, similar to atom's related link.
|
833
|
+
# Corresponds to the JSON property `titleLink`
|
834
|
+
# @return [String]
|
835
|
+
attr_accessor :title_link
|
836
|
+
|
837
|
+
# RFC 3339 date-time when this Post was last updated.
|
838
|
+
# Corresponds to the JSON property `updated`
|
839
|
+
# @return [String]
|
840
|
+
attr_accessor :updated
|
841
|
+
|
842
|
+
# The URL where this Post is displayed.
|
843
|
+
# Corresponds to the JSON property `url`
|
844
|
+
# @return [String]
|
845
|
+
attr_accessor :url
|
846
|
+
|
847
|
+
def initialize(**args)
|
848
|
+
update!(**args)
|
849
|
+
end
|
850
|
+
|
851
|
+
# Update properties of this object
|
852
|
+
def update!(**args)
|
853
|
+
@author = args[:author] if args.key?(:author)
|
854
|
+
@blog = args[:blog] if args.key?(:blog)
|
855
|
+
@content = args[:content] if args.key?(:content)
|
856
|
+
@custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data)
|
857
|
+
@etag = args[:etag] if args.key?(:etag)
|
858
|
+
@id = args[:id] if args.key?(:id)
|
859
|
+
@images = args[:images] if args.key?(:images)
|
860
|
+
@kind = args[:kind] if args.key?(:kind)
|
861
|
+
@labels = args[:labels] if args.key?(:labels)
|
862
|
+
@location = args[:location] if args.key?(:location)
|
863
|
+
@published = args[:published] if args.key?(:published)
|
864
|
+
@reader_comments = args[:reader_comments] if args.key?(:reader_comments)
|
865
|
+
@replies = args[:replies] if args.key?(:replies)
|
866
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
867
|
+
@status = args[:status] if args.key?(:status)
|
868
|
+
@title = args[:title] if args.key?(:title)
|
869
|
+
@title_link = args[:title_link] if args.key?(:title_link)
|
870
|
+
@updated = args[:updated] if args.key?(:updated)
|
871
|
+
@url = args[:url] if args.key?(:url)
|
872
|
+
end
|
873
|
+
|
874
|
+
# The author of this Post.
|
875
|
+
class Author
|
876
|
+
include Google::Apis::Core::Hashable
|
877
|
+
|
878
|
+
# The display name.
|
879
|
+
# Corresponds to the JSON property `displayName`
|
880
|
+
# @return [String]
|
881
|
+
attr_accessor :display_name
|
882
|
+
|
883
|
+
# The identifier of the creator.
|
884
|
+
# Corresponds to the JSON property `id`
|
885
|
+
# @return [String]
|
886
|
+
attr_accessor :id
|
887
|
+
|
888
|
+
# The creator's avatar.
|
889
|
+
# Corresponds to the JSON property `image`
|
890
|
+
# @return [Google::Apis::BloggerV2::Post::Author::Image]
|
891
|
+
attr_accessor :image
|
892
|
+
|
893
|
+
# The URL of the creator's Profile page.
|
894
|
+
# Corresponds to the JSON property `url`
|
895
|
+
# @return [String]
|
896
|
+
attr_accessor :url
|
897
|
+
|
898
|
+
def initialize(**args)
|
899
|
+
update!(**args)
|
900
|
+
end
|
901
|
+
|
902
|
+
# Update properties of this object
|
903
|
+
def update!(**args)
|
904
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
905
|
+
@id = args[:id] if args.key?(:id)
|
906
|
+
@image = args[:image] if args.key?(:image)
|
907
|
+
@url = args[:url] if args.key?(:url)
|
908
|
+
end
|
909
|
+
|
910
|
+
# The creator's avatar.
|
911
|
+
class Image
|
912
|
+
include Google::Apis::Core::Hashable
|
913
|
+
|
914
|
+
# The creator's avatar URL.
|
915
|
+
# Corresponds to the JSON property `url`
|
916
|
+
# @return [String]
|
917
|
+
attr_accessor :url
|
918
|
+
|
919
|
+
def initialize(**args)
|
920
|
+
update!(**args)
|
921
|
+
end
|
922
|
+
|
923
|
+
# Update properties of this object
|
924
|
+
def update!(**args)
|
925
|
+
@url = args[:url] if args.key?(:url)
|
926
|
+
end
|
927
|
+
end
|
928
|
+
end
|
929
|
+
|
930
|
+
# Data about the blog containing this Post.
|
931
|
+
class Blog
|
932
|
+
include Google::Apis::Core::Hashable
|
933
|
+
|
934
|
+
# The identifier of the Blog that contains this Post.
|
935
|
+
# Corresponds to the JSON property `id`
|
936
|
+
# @return [String]
|
937
|
+
attr_accessor :id
|
938
|
+
|
939
|
+
def initialize(**args)
|
940
|
+
update!(**args)
|
941
|
+
end
|
942
|
+
|
943
|
+
# Update properties of this object
|
944
|
+
def update!(**args)
|
945
|
+
@id = args[:id] if args.key?(:id)
|
946
|
+
end
|
947
|
+
end
|
948
|
+
|
949
|
+
#
|
950
|
+
class Image
|
951
|
+
include Google::Apis::Core::Hashable
|
952
|
+
|
953
|
+
#
|
954
|
+
# Corresponds to the JSON property `url`
|
955
|
+
# @return [String]
|
956
|
+
attr_accessor :url
|
957
|
+
|
958
|
+
def initialize(**args)
|
959
|
+
update!(**args)
|
960
|
+
end
|
961
|
+
|
962
|
+
# Update properties of this object
|
963
|
+
def update!(**args)
|
964
|
+
@url = args[:url] if args.key?(:url)
|
965
|
+
end
|
966
|
+
end
|
967
|
+
|
968
|
+
# The location for geotagged posts.
|
969
|
+
class Location
|
970
|
+
include Google::Apis::Core::Hashable
|
971
|
+
|
972
|
+
# Location's latitude.
|
973
|
+
# Corresponds to the JSON property `lat`
|
974
|
+
# @return [Float]
|
975
|
+
attr_accessor :lat
|
976
|
+
|
977
|
+
# Location's longitude.
|
978
|
+
# Corresponds to the JSON property `lng`
|
979
|
+
# @return [Float]
|
980
|
+
attr_accessor :lng
|
981
|
+
|
982
|
+
# Location name.
|
983
|
+
# Corresponds to the JSON property `name`
|
984
|
+
# @return [String]
|
985
|
+
attr_accessor :name
|
986
|
+
|
987
|
+
# Location's viewport span. Can be used when rendering a map preview.
|
988
|
+
# Corresponds to the JSON property `span`
|
989
|
+
# @return [String]
|
990
|
+
attr_accessor :span
|
991
|
+
|
992
|
+
def initialize(**args)
|
993
|
+
update!(**args)
|
994
|
+
end
|
995
|
+
|
996
|
+
# Update properties of this object
|
997
|
+
def update!(**args)
|
998
|
+
@lat = args[:lat] if args.key?(:lat)
|
999
|
+
@lng = args[:lng] if args.key?(:lng)
|
1000
|
+
@name = args[:name] if args.key?(:name)
|
1001
|
+
@span = args[:span] if args.key?(:span)
|
1002
|
+
end
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
# The container of comments on this Post.
|
1006
|
+
class Replies
|
1007
|
+
include Google::Apis::Core::Hashable
|
1008
|
+
|
1009
|
+
# The List of Comments for this Post.
|
1010
|
+
# Corresponds to the JSON property `items`
|
1011
|
+
# @return [Array<Google::Apis::BloggerV2::Comment>]
|
1012
|
+
attr_accessor :items
|
1013
|
+
|
1014
|
+
# The URL of the comments on this post.
|
1015
|
+
# Corresponds to the JSON property `selfLink`
|
1016
|
+
# @return [String]
|
1017
|
+
attr_accessor :self_link
|
1018
|
+
|
1019
|
+
# The count of comments on this post.
|
1020
|
+
# Corresponds to the JSON property `totalItems`
|
1021
|
+
# @return [Fixnum]
|
1022
|
+
attr_accessor :total_items
|
1023
|
+
|
1024
|
+
def initialize(**args)
|
1025
|
+
update!(**args)
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
# Update properties of this object
|
1029
|
+
def update!(**args)
|
1030
|
+
@items = args[:items] if args.key?(:items)
|
1031
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
1032
|
+
@total_items = args[:total_items] if args.key?(:total_items)
|
1033
|
+
end
|
1034
|
+
end
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
#
|
1038
|
+
class PostList
|
1039
|
+
include Google::Apis::Core::Hashable
|
1040
|
+
|
1041
|
+
# Etag of the response.
|
1042
|
+
# Corresponds to the JSON property `etag`
|
1043
|
+
# @return [String]
|
1044
|
+
attr_accessor :etag
|
1045
|
+
|
1046
|
+
# The list of Posts for this Blog.
|
1047
|
+
# Corresponds to the JSON property `items`
|
1048
|
+
# @return [Array<Google::Apis::BloggerV2::Post>]
|
1049
|
+
attr_accessor :items
|
1050
|
+
|
1051
|
+
# The kind of this entity. Always blogger#postList.
|
1052
|
+
# Corresponds to the JSON property `kind`
|
1053
|
+
# @return [String]
|
1054
|
+
attr_accessor :kind
|
1055
|
+
|
1056
|
+
# Pagination token to fetch the next page, if one exists.
|
1057
|
+
# Corresponds to the JSON property `nextPageToken`
|
1058
|
+
# @return [String]
|
1059
|
+
attr_accessor :next_page_token
|
1060
|
+
|
1061
|
+
# Pagination token to fetch the previous page, if one exists.
|
1062
|
+
# Corresponds to the JSON property `prevPageToken`
|
1063
|
+
# @return [String]
|
1064
|
+
attr_accessor :prev_page_token
|
1065
|
+
|
1066
|
+
def initialize(**args)
|
1067
|
+
update!(**args)
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
# Update properties of this object
|
1071
|
+
def update!(**args)
|
1072
|
+
@etag = args[:etag] if args.key?(:etag)
|
1073
|
+
@items = args[:items] if args.key?(:items)
|
1074
|
+
@kind = args[:kind] if args.key?(:kind)
|
1075
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1076
|
+
@prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token)
|
1077
|
+
end
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
#
|
1081
|
+
class User
|
1082
|
+
include Google::Apis::Core::Hashable
|
1083
|
+
|
1084
|
+
# Profile summary information.
|
1085
|
+
# Corresponds to the JSON property `about`
|
1086
|
+
# @return [String]
|
1087
|
+
attr_accessor :about
|
1088
|
+
|
1089
|
+
# The container of blogs for this user.
|
1090
|
+
# Corresponds to the JSON property `blogs`
|
1091
|
+
# @return [Google::Apis::BloggerV2::User::Blogs]
|
1092
|
+
attr_accessor :blogs
|
1093
|
+
|
1094
|
+
# The timestamp of when this profile was created, in seconds since epoch.
|
1095
|
+
# Corresponds to the JSON property `created`
|
1096
|
+
# @return [String]
|
1097
|
+
attr_accessor :created
|
1098
|
+
|
1099
|
+
# The display name.
|
1100
|
+
# Corresponds to the JSON property `displayName`
|
1101
|
+
# @return [String]
|
1102
|
+
attr_accessor :display_name
|
1103
|
+
|
1104
|
+
# The identifier for this User.
|
1105
|
+
# Corresponds to the JSON property `id`
|
1106
|
+
# @return [String]
|
1107
|
+
attr_accessor :id
|
1108
|
+
|
1109
|
+
# The kind of this entity. Always blogger#user.
|
1110
|
+
# Corresponds to the JSON property `kind`
|
1111
|
+
# @return [String]
|
1112
|
+
attr_accessor :kind
|
1113
|
+
|
1114
|
+
# This user's locale
|
1115
|
+
# Corresponds to the JSON property `locale`
|
1116
|
+
# @return [Google::Apis::BloggerV2::User::Locale]
|
1117
|
+
attr_accessor :locale
|
1118
|
+
|
1119
|
+
# The API REST URL to fetch this resource from.
|
1120
|
+
# Corresponds to the JSON property `selfLink`
|
1121
|
+
# @return [String]
|
1122
|
+
attr_accessor :self_link
|
1123
|
+
|
1124
|
+
# The user's profile page.
|
1125
|
+
# Corresponds to the JSON property `url`
|
1126
|
+
# @return [String]
|
1127
|
+
attr_accessor :url
|
1128
|
+
|
1129
|
+
def initialize(**args)
|
1130
|
+
update!(**args)
|
1131
|
+
end
|
1132
|
+
|
1133
|
+
# Update properties of this object
|
1134
|
+
def update!(**args)
|
1135
|
+
@about = args[:about] if args.key?(:about)
|
1136
|
+
@blogs = args[:blogs] if args.key?(:blogs)
|
1137
|
+
@created = args[:created] if args.key?(:created)
|
1138
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1139
|
+
@id = args[:id] if args.key?(:id)
|
1140
|
+
@kind = args[:kind] if args.key?(:kind)
|
1141
|
+
@locale = args[:locale] if args.key?(:locale)
|
1142
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
1143
|
+
@url = args[:url] if args.key?(:url)
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
# The container of blogs for this user.
|
1147
|
+
class Blogs
|
1148
|
+
include Google::Apis::Core::Hashable
|
1149
|
+
|
1150
|
+
# The URL of the Blogs for this user.
|
1151
|
+
# Corresponds to the JSON property `selfLink`
|
1152
|
+
# @return [String]
|
1153
|
+
attr_accessor :self_link
|
1154
|
+
|
1155
|
+
def initialize(**args)
|
1156
|
+
update!(**args)
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
# Update properties of this object
|
1160
|
+
def update!(**args)
|
1161
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
1162
|
+
end
|
1163
|
+
end
|
1164
|
+
|
1165
|
+
# This user's locale
|
1166
|
+
class Locale
|
1167
|
+
include Google::Apis::Core::Hashable
|
1168
|
+
|
1169
|
+
# The country this blog's locale is set to.
|
1170
|
+
# Corresponds to the JSON property `country`
|
1171
|
+
# @return [String]
|
1172
|
+
attr_accessor :country
|
1173
|
+
|
1174
|
+
# The language this blog is authored in.
|
1175
|
+
# Corresponds to the JSON property `language`
|
1176
|
+
# @return [String]
|
1177
|
+
attr_accessor :language
|
1178
|
+
|
1179
|
+
# The language variant this blog is authored in.
|
1180
|
+
# Corresponds to the JSON property `variant`
|
1181
|
+
# @return [String]
|
1182
|
+
attr_accessor :variant
|
1183
|
+
|
1184
|
+
def initialize(**args)
|
1185
|
+
update!(**args)
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
# Update properties of this object
|
1189
|
+
def update!(**args)
|
1190
|
+
@country = args[:country] if args.key?(:country)
|
1191
|
+
@language = args[:language] if args.key?(:language)
|
1192
|
+
@variant = args[:variant] if args.key?(:variant)
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
end
|
1196
|
+
end
|
1197
|
+
end
|
1198
|
+
end
|