google-api-client 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -0
- data/README.md +2 -2
- data/api_names.yaml +19 -0
- data/api_names_out.yaml +843 -269
- data/bin/generate-api +18 -4
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +249 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +208 -1
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +68 -0
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +38 -0
- data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +12 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +1 -1
- data/generated/google/apis/admin_directory_v1/representations.rb +118 -0
- data/generated/google/apis/admin_reports_v1/representations.rb +26 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +0 -7
- data/generated/google/apis/adsense_v1_4/representations.rb +62 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/representations.rb +40 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/representations.rb +188 -0
- data/generated/google/apis/analytics_v3/service.rb +3 -3
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/representations.rb +76 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +6 -2
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/representations.rb +92 -0
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +22 -1
- data/generated/google/apis/appengine_v1beta5/representations.rb +69 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +43 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +22 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/representations.rb +8 -0
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +32 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +31 -0
- data/generated/google/apis/bigquery_v2/representations.rb +98 -0
- data/generated/google/apis/blogger_v3/representations.rb +70 -0
- data/generated/google/apis/books_v1/representations.rb +196 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/representations.rb +64 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +40 -0
- data/generated/google/apis/classroom_v1/representations.rb +28 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +8 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/representations.rb +24 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/representations.rb +54 -0
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +14 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +42 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +15 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -1
- data/generated/google/apis/cloudtrace_v1/representations.rb +10 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +38 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +512 -0
- data/generated/google/apis/compute_beta/representations.rb +599 -0
- data/generated/google/apis/compute_beta/service.rb +415 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/representations.rb +386 -0
- data/generated/google/apis/container_v1/representations.rb +20 -0
- data/generated/google/apis/content_v2/representations.rb +296 -0
- data/generated/google/apis/coordinate_v1/representations.rb +36 -0
- data/generated/google/apis/customsearch_v1/representations.rb +26 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1415 -0
- data/generated/google/apis/dataproc_v1/representations.rb +569 -0
- data/generated/google/apis/dataproc_v1/service.rb +581 -4
- data/generated/google/apis/datastore_v1beta2/representations.rb +68 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +58 -0
- data/generated/google/apis/dfareporting_v2_3/representations.rb +386 -0
- data/generated/google/apis/discovery_v1/representations.rb +40 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +2 -2
- data/generated/google/apis/dns_v1/representations.rb +16 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +42 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +34 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +7 -0
- data/generated/google/apis/drive_v2/representations.rb +83 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +7 -0
- data/generated/google/apis/drive_v3/representations.rb +51 -0
- data/generated/google/apis/fitness_v1/representations.rb +40 -0
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/representations.rb +48 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +22 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/representations.rb +30 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/representations.rb +198 -0
- data/generated/google/apis/gan_v1beta1/representations.rb +34 -0
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2 -211
- data/generated/google/apis/genomics_v1/representations.rb +119 -84
- data/generated/google/apis/gmail_v1/representations.rb +44 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +2 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +105 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +99 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +36 -1
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/representations.rb +6 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +40 -0
- data/generated/google/apis/manager_v1beta2/representations.rb +70 -0
- data/generated/google/apis/mirror_v1/representations.rb +40 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/representations.rb +8 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +28 -0
- data/generated/google/apis/partners_v2/representations.rb +52 -0
- data/generated/google/apis/people_v1.rb +11 -11
- data/generated/google/apis/people_v1/classes.rb +888 -961
- data/generated/google/apis/people_v1/representations.rb +295 -225
- data/generated/google/apis/people_v1/service.rb +61 -65
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/representations.rb +124 -0
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/representations.rb +102 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
- data/generated/google/apis/prediction_v1_6/representations.rb +42 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +38 -0
- data/generated/google/apis/pubsub_v1/representations.rb +42 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +48 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +28 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +30 -0
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +6 -0
- data/generated/google/apis/reseller_v1/representations.rb +23 -0
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +32 -0
- data/generated/google/apis/script_v1/representations.rb +12 -0
- data/generated/google/apis/site_verification_v1/representations.rb +12 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +50 -21
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +98 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -3
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/representations.rb +52 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +48 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +110 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +96 -0
- data/generated/google/apis/tagmanager_v1/service.rb +303 -1
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +12 -0
- data/generated/google/apis/tasks_v1/representations.rb +10 -0
- data/generated/google/apis/translate_v2.rb +1 -1
- data/generated/google/apis/translate_v2/representations.rb +12 -0
- data/generated/google/apis/urlshortener_v1/representations.rb +10 -0
- data/generated/google/apis/vision_v1.rb +37 -0
- data/generated/google/apis/vision_v1/classes.rb +1259 -0
- data/generated/google/apis/vision_v1/representations.rb +418 -0
- data/generated/google/apis/vision_v1/service.rb +91 -0
- data/generated/google/apis/webmasters_v3/representations.rb +32 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +30 -0
- data/generated/google/apis/youtube_v3/representations.rb +332 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +16 -0
- data/google-api-client.gemspec +0 -2
- data/lib/google/api_client/client_secrets.rb +3 -4
- data/lib/google/apis/core/api_command.rb +5 -4
- data/lib/google/apis/core/http_command.rb +20 -4
- data/lib/google/apis/core/json_representation.rb +20 -2
- data/lib/google/apis/generator/annotator.rb +1 -1
- data/lib/google/apis/generator/templates/_representation_stub.tmpl +2 -0
- data/lib/google/apis/version.rb +1 -1
- data/script/generate +2 -1
- data/spec/google/api_client/client_secrets_spec.rb +2 -2
- data/spec/google/apis/core/api_command_spec.rb +2 -2
- data/spec/google/apis/core/http_command_spec.rb +19 -0
- data/spec/google/apis/core/json_representation_spec.rb +14 -7
- data/spec/google/apis/generator/generator_spec.rb +52 -0
- metadata +6 -30
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/accounts/docs/OAuth2
|
26
26
|
module Oauth2V2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160217'
|
29
29
|
|
30
30
|
# Know the list of people in your circles, your age range, and language
|
31
31
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
@@ -27,15 +27,23 @@ module Google
|
|
27
27
|
|
28
28
|
class Key
|
29
29
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
30
|
+
|
31
|
+
include Google::Apis::Core::JsonObjectSupport
|
30
32
|
end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
31
35
|
end
|
32
36
|
|
33
37
|
class Tokeninfo
|
34
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
41
|
end
|
36
42
|
|
37
43
|
class Userinfoplus
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
39
47
|
end
|
40
48
|
|
41
49
|
class Jwk
|
@@ -30,12 +30,20 @@ module Google
|
|
30
30
|
|
31
31
|
class Rect
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
33
35
|
end
|
34
36
|
|
35
37
|
class SecondaryRect
|
36
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
37
41
|
end
|
42
|
+
|
43
|
+
include Google::Apis::Core::JsonObjectSupport
|
38
44
|
end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
39
47
|
end
|
40
48
|
|
41
49
|
class Image
|
@@ -43,7 +51,11 @@ module Google
|
|
43
51
|
|
44
52
|
class PageRect
|
45
53
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
54
|
+
|
55
|
+
include Google::Apis::Core::JsonObjectSupport
|
46
56
|
end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
59
|
end
|
48
60
|
|
49
61
|
class Result
|
@@ -60,22 +72,38 @@ module Google
|
|
60
72
|
|
61
73
|
class Url
|
62
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
63
77
|
end
|
78
|
+
|
79
|
+
include Google::Apis::Core::JsonObjectSupport
|
64
80
|
end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
83
|
end
|
84
|
+
|
85
|
+
include Google::Apis::Core::JsonObjectSupport
|
66
86
|
end
|
67
87
|
|
68
88
|
class PageStats
|
69
89
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
90
|
+
|
91
|
+
include Google::Apis::Core::JsonObjectSupport
|
70
92
|
end
|
71
93
|
|
72
94
|
class RuleGroup
|
73
95
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
96
|
+
|
97
|
+
include Google::Apis::Core::JsonObjectSupport
|
74
98
|
end
|
75
99
|
|
76
100
|
class Version
|
77
101
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
102
|
+
|
103
|
+
include Google::Apis::Core::JsonObjectSupport
|
78
104
|
end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
79
107
|
end
|
80
108
|
|
81
109
|
class FormatString
|
@@ -24,106 +24,158 @@ module Google
|
|
24
24
|
|
25
25
|
class LogUserEventRequest
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
27
29
|
end
|
28
30
|
|
29
31
|
class RequestMetadata
|
30
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
31
35
|
end
|
32
36
|
|
33
37
|
class UserOverrides
|
34
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
41
|
end
|
36
42
|
|
37
43
|
class TrafficSource
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
39
47
|
end
|
40
48
|
|
41
49
|
class EventData
|
42
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
43
53
|
end
|
44
54
|
|
45
55
|
class Lead
|
46
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
59
|
end
|
48
60
|
|
49
61
|
class Money
|
50
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
51
65
|
end
|
52
66
|
|
53
67
|
class LogUserEventResponse
|
54
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
55
71
|
end
|
56
72
|
|
57
73
|
class ResponseMetadata
|
58
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
77
|
end
|
60
78
|
|
61
79
|
class DebugInfo
|
62
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
63
83
|
end
|
64
84
|
|
65
85
|
class LogMessageRequest
|
66
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
67
89
|
end
|
68
90
|
|
69
91
|
class LogMessageResponse
|
70
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
95
|
end
|
72
96
|
|
73
97
|
class ListUserStatesResponse
|
74
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
75
101
|
end
|
76
102
|
|
77
103
|
class GetCompanyResponse
|
78
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
79
107
|
end
|
80
108
|
|
81
109
|
class Company
|
82
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
113
|
end
|
84
114
|
|
85
115
|
class LocalizedCompanyInfo
|
86
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
87
119
|
end
|
88
120
|
|
89
121
|
class Location
|
90
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
91
125
|
end
|
92
126
|
|
93
127
|
class LatLng
|
94
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
131
|
end
|
96
132
|
|
97
133
|
class PublicProfile
|
98
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
99
137
|
end
|
100
138
|
|
101
139
|
class CertificationStatus
|
102
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
103
143
|
end
|
104
144
|
|
105
145
|
class CertificationExamStatus
|
106
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
149
|
end
|
108
150
|
|
109
151
|
class Rank
|
110
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
111
155
|
end
|
112
156
|
|
113
157
|
class ListCompaniesResponse
|
114
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
115
161
|
end
|
116
162
|
|
117
163
|
class CreateLeadRequest
|
118
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
167
|
end
|
120
168
|
|
121
169
|
class RecaptchaChallenge
|
122
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
123
173
|
end
|
124
174
|
|
125
175
|
class CreateLeadResponse
|
126
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
127
179
|
end
|
128
180
|
|
129
181
|
class LogUserEventRequest
|
@@ -28,32 +28,32 @@ module Google
|
|
28
28
|
VERSION = 'V1'
|
29
29
|
REVISION = '20160210'
|
30
30
|
|
31
|
-
#
|
32
|
-
|
31
|
+
# Manage your contacts
|
32
|
+
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
33
|
+
|
34
|
+
# View your contacts
|
35
|
+
AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
|
33
36
|
|
34
37
|
# Know your basic profile info and list of people in your circles.
|
35
38
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
36
39
|
|
37
|
-
#
|
38
|
-
|
40
|
+
# View your street addresses
|
41
|
+
AUTH_USER_ADDRESSES_READ = 'https://www.googleapis.com/auth/user.addresses.read'
|
39
42
|
|
40
43
|
# View your complete date of birth
|
41
44
|
AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read'
|
42
45
|
|
43
|
-
# View your email
|
44
|
-
|
46
|
+
# View your email addresses
|
47
|
+
AUTH_USER_EMAILS_READ = 'https://www.googleapis.com/auth/user.emails.read'
|
45
48
|
|
46
49
|
# View your phone numbers
|
47
50
|
AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read'
|
48
51
|
|
49
|
-
# View your email
|
50
|
-
|
52
|
+
# View your email address
|
53
|
+
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
51
54
|
|
52
55
|
# View your basic profile info
|
53
56
|
AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
|
54
|
-
|
55
|
-
# View your contacts
|
56
|
-
AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
@@ -22,31 +22,160 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PeopleV1
|
24
24
|
|
25
|
-
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
|
25
|
+
# Information about a person merged from various data sources such as the
|
26
|
+
# authenticated user's contacts and profile data. Fields other than IDs,
|
27
|
+
# metadata, and group memberships are user-edited. Most fields can have multiple
|
28
|
+
# items. The items in a field have no guaranteed order, but each non-empty field
|
29
|
+
# is guaranteed to have exactly one field with `metadata.primary` set to true.
|
30
|
+
class Person
|
29
31
|
include Google::Apis::Core::Hashable
|
30
32
|
|
31
|
-
#
|
32
|
-
#
|
33
|
+
# The resource name for the person, assigned by the server. An ASCII string with
|
34
|
+
# a max length of 27 characters. Always starts with `people/`.
|
35
|
+
# Corresponds to the JSON property `resourceName`
|
33
36
|
# @return [String]
|
34
|
-
attr_accessor :
|
37
|
+
attr_accessor :resource_name
|
35
38
|
|
36
|
-
#
|
39
|
+
# The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource.
|
40
|
+
# Used for web cache validation.
|
41
|
+
# Corresponds to the JSON property `etag`
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :etag
|
44
|
+
|
45
|
+
# Metadata about a person.
|
37
46
|
# Corresponds to the JSON property `metadata`
|
38
|
-
# @return [Google::Apis::PeopleV1::
|
47
|
+
# @return [Google::Apis::PeopleV1::PersonMetadata]
|
39
48
|
attr_accessor :metadata
|
40
49
|
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
|
45
|
-
|
46
|
-
#
|
47
|
-
# Corresponds to the JSON property `
|
48
|
-
# @return [Google::Apis::PeopleV1::
|
49
|
-
attr_accessor :
|
50
|
+
# The person's locale preferences.
|
51
|
+
# Corresponds to the JSON property `locales`
|
52
|
+
# @return [Array<Google::Apis::PeopleV1::Locale>]
|
53
|
+
attr_accessor :locales
|
54
|
+
|
55
|
+
# The person's names.
|
56
|
+
# Corresponds to the JSON property `names`
|
57
|
+
# @return [Array<Google::Apis::PeopleV1::Name>]
|
58
|
+
attr_accessor :names
|
59
|
+
|
60
|
+
# The person's nicknames.
|
61
|
+
# Corresponds to the JSON property `nicknames`
|
62
|
+
# @return [Array<Google::Apis::PeopleV1::Nickname>]
|
63
|
+
attr_accessor :nicknames
|
64
|
+
|
65
|
+
# The person's cover photos.
|
66
|
+
# Corresponds to the JSON property `coverPhotos`
|
67
|
+
# @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
|
68
|
+
attr_accessor :cover_photos
|
69
|
+
|
70
|
+
# The person's photos.
|
71
|
+
# Corresponds to the JSON property `photos`
|
72
|
+
# @return [Array<Google::Apis::PeopleV1::Photo>]
|
73
|
+
attr_accessor :photos
|
74
|
+
|
75
|
+
# The person's genders.
|
76
|
+
# Corresponds to the JSON property `genders`
|
77
|
+
# @return [Array<Google::Apis::PeopleV1::Gender>]
|
78
|
+
attr_accessor :genders
|
79
|
+
|
80
|
+
# The person's age range.
|
81
|
+
# Corresponds to the JSON property `ageRange`
|
82
|
+
# @return [String]
|
83
|
+
attr_accessor :age_range
|
84
|
+
|
85
|
+
# The person's birthdays.
|
86
|
+
# Corresponds to the JSON property `birthdays`
|
87
|
+
# @return [Array<Google::Apis::PeopleV1::Birthday>]
|
88
|
+
attr_accessor :birthdays
|
89
|
+
|
90
|
+
# The person's events.
|
91
|
+
# Corresponds to the JSON property `events`
|
92
|
+
# @return [Array<Google::Apis::PeopleV1::Event>]
|
93
|
+
attr_accessor :events
|
94
|
+
|
95
|
+
# The person's street addresses.
|
96
|
+
# Corresponds to the JSON property `addresses`
|
97
|
+
# @return [Array<Google::Apis::PeopleV1::Address>]
|
98
|
+
attr_accessor :addresses
|
99
|
+
|
100
|
+
# The person's residences.
|
101
|
+
# Corresponds to the JSON property `residences`
|
102
|
+
# @return [Array<Google::Apis::PeopleV1::Residence>]
|
103
|
+
attr_accessor :residences
|
104
|
+
|
105
|
+
# The person's email addresses.
|
106
|
+
# Corresponds to the JSON property `emailAddresses`
|
107
|
+
# @return [Array<Google::Apis::PeopleV1::EmailAddress>]
|
108
|
+
attr_accessor :email_addresses
|
109
|
+
|
110
|
+
# The person's phone numbers.
|
111
|
+
# Corresponds to the JSON property `phoneNumbers`
|
112
|
+
# @return [Array<Google::Apis::PeopleV1::PhoneNumber>]
|
113
|
+
attr_accessor :phone_numbers
|
114
|
+
|
115
|
+
# The person's instant messaging clients.
|
116
|
+
# Corresponds to the JSON property `imClients`
|
117
|
+
# @return [Array<Google::Apis::PeopleV1::ImClient>]
|
118
|
+
attr_accessor :im_clients
|
119
|
+
|
120
|
+
# The person's taglines.
|
121
|
+
# Corresponds to the JSON property `taglines`
|
122
|
+
# @return [Array<Google::Apis::PeopleV1::Tagline>]
|
123
|
+
attr_accessor :taglines
|
124
|
+
|
125
|
+
# The person's biographies.
|
126
|
+
# Corresponds to the JSON property `biographies`
|
127
|
+
# @return [Array<Google::Apis::PeopleV1::Biography>]
|
128
|
+
attr_accessor :biographies
|
129
|
+
|
130
|
+
# The person's associated URLs.
|
131
|
+
# Corresponds to the JSON property `urls`
|
132
|
+
# @return [Array<Google::Apis::PeopleV1::Url>]
|
133
|
+
attr_accessor :urls
|
134
|
+
|
135
|
+
# The person's past or current organizations.
|
136
|
+
# Corresponds to the JSON property `organizations`
|
137
|
+
# @return [Array<Google::Apis::PeopleV1::Organization>]
|
138
|
+
attr_accessor :organizations
|
139
|
+
|
140
|
+
# The person's occupations.
|
141
|
+
# Corresponds to the JSON property `occupations`
|
142
|
+
# @return [Array<Google::Apis::PeopleV1::Occupation>]
|
143
|
+
attr_accessor :occupations
|
144
|
+
|
145
|
+
# The person's interests.
|
146
|
+
# Corresponds to the JSON property `interests`
|
147
|
+
# @return [Array<Google::Apis::PeopleV1::Interest>]
|
148
|
+
attr_accessor :interests
|
149
|
+
|
150
|
+
# The person's skills.
|
151
|
+
# Corresponds to the JSON property `skills`
|
152
|
+
# @return [Array<Google::Apis::PeopleV1::Skill>]
|
153
|
+
attr_accessor :skills
|
154
|
+
|
155
|
+
# The person's bragging rights.
|
156
|
+
# Corresponds to the JSON property `braggingRights`
|
157
|
+
# @return [Array<Google::Apis::PeopleV1::BraggingRights>]
|
158
|
+
attr_accessor :bragging_rights
|
159
|
+
|
160
|
+
# The person's relations.
|
161
|
+
# Corresponds to the JSON property `relations`
|
162
|
+
# @return [Array<Google::Apis::PeopleV1::Relation>]
|
163
|
+
attr_accessor :relations
|
164
|
+
|
165
|
+
# The kind of relationship the person is looking for.
|
166
|
+
# Corresponds to the JSON property `relationshipInterests`
|
167
|
+
# @return [Array<Google::Apis::PeopleV1::RelationshipInterest>]
|
168
|
+
attr_accessor :relationship_interests
|
169
|
+
|
170
|
+
# The person's relationship statuses.
|
171
|
+
# Corresponds to the JSON property `relationshipStatuses`
|
172
|
+
# @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]
|
173
|
+
attr_accessor :relationship_statuses
|
174
|
+
|
175
|
+
# The person's group memberships.
|
176
|
+
# Corresponds to the JSON property `memberships`
|
177
|
+
# @return [Array<Google::Apis::PeopleV1::Membership>]
|
178
|
+
attr_accessor :memberships
|
50
179
|
|
51
180
|
def initialize(**args)
|
52
181
|
update!(**args)
|
@@ -54,32 +183,68 @@ module Google
|
|
54
183
|
|
55
184
|
# Update properties of this object
|
56
185
|
def update!(**args)
|
57
|
-
@
|
186
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
187
|
+
@etag = args[:etag] if args.key?(:etag)
|
58
188
|
@metadata = args[:metadata] if args.key?(:metadata)
|
59
|
-
@
|
189
|
+
@locales = args[:locales] if args.key?(:locales)
|
190
|
+
@names = args[:names] if args.key?(:names)
|
191
|
+
@nicknames = args[:nicknames] if args.key?(:nicknames)
|
192
|
+
@cover_photos = args[:cover_photos] if args.key?(:cover_photos)
|
193
|
+
@photos = args[:photos] if args.key?(:photos)
|
194
|
+
@genders = args[:genders] if args.key?(:genders)
|
195
|
+
@age_range = args[:age_range] if args.key?(:age_range)
|
196
|
+
@birthdays = args[:birthdays] if args.key?(:birthdays)
|
197
|
+
@events = args[:events] if args.key?(:events)
|
198
|
+
@addresses = args[:addresses] if args.key?(:addresses)
|
199
|
+
@residences = args[:residences] if args.key?(:residences)
|
200
|
+
@email_addresses = args[:email_addresses] if args.key?(:email_addresses)
|
201
|
+
@phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
|
202
|
+
@im_clients = args[:im_clients] if args.key?(:im_clients)
|
203
|
+
@taglines = args[:taglines] if args.key?(:taglines)
|
204
|
+
@biographies = args[:biographies] if args.key?(:biographies)
|
205
|
+
@urls = args[:urls] if args.key?(:urls)
|
206
|
+
@organizations = args[:organizations] if args.key?(:organizations)
|
207
|
+
@occupations = args[:occupations] if args.key?(:occupations)
|
208
|
+
@interests = args[:interests] if args.key?(:interests)
|
209
|
+
@skills = args[:skills] if args.key?(:skills)
|
210
|
+
@bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights)
|
211
|
+
@relations = args[:relations] if args.key?(:relations)
|
212
|
+
@relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
|
213
|
+
@relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
|
214
|
+
@memberships = args[:memberships] if args.key?(:memberships)
|
60
215
|
end
|
61
216
|
end
|
62
217
|
|
63
|
-
#
|
64
|
-
class
|
218
|
+
# Metadata about a person.
|
219
|
+
class PersonMetadata
|
65
220
|
include Google::Apis::Core::Hashable
|
66
221
|
|
67
|
-
# The
|
68
|
-
# Corresponds to the JSON property `
|
69
|
-
# @return [
|
70
|
-
attr_accessor :
|
222
|
+
# The sources of data for the person.
|
223
|
+
# Corresponds to the JSON property `sources`
|
224
|
+
# @return [Array<Google::Apis::PeopleV1::Source>]
|
225
|
+
attr_accessor :sources
|
71
226
|
|
72
|
-
#
|
73
|
-
#
|
74
|
-
#
|
75
|
-
|
227
|
+
# Any former resource names this person has had. Populated only for [`
|
228
|
+
# connections.list`](/people/api/rest/v1/people.connections/list) requests that
|
229
|
+
# include a sync token. The resource name may change when adding or removing
|
230
|
+
# fields that link a contact and profile such as a verified email, verified
|
231
|
+
# phone number, or profile URL.
|
232
|
+
# Corresponds to the JSON property `previousResourceNames`
|
233
|
+
# @return [Array<String>]
|
234
|
+
attr_accessor :previous_resource_names
|
76
235
|
|
77
|
-
# True if the
|
78
|
-
#
|
79
|
-
#
|
236
|
+
# True if the person resource has been deleted. Populated only for [`connections.
|
237
|
+
# list`](/people/api/rest/v1/people.connections/list) requests that include a
|
238
|
+
# sync token.
|
239
|
+
# Corresponds to the JSON property `deleted`
|
80
240
|
# @return [Boolean]
|
81
|
-
attr_accessor :
|
82
|
-
alias_method :
|
241
|
+
attr_accessor :deleted
|
242
|
+
alias_method :deleted?, :deleted
|
243
|
+
|
244
|
+
# The type of the person object.
|
245
|
+
# Corresponds to the JSON property `objectType`
|
246
|
+
# @return [String]
|
247
|
+
attr_accessor :object_type
|
83
248
|
|
84
249
|
def initialize(**args)
|
85
250
|
update!(**args)
|
@@ -87,38 +252,26 @@ module Google
|
|
87
252
|
|
88
253
|
# Update properties of this object
|
89
254
|
def update!(**args)
|
90
|
-
@
|
91
|
-
@
|
92
|
-
@
|
255
|
+
@sources = args[:sources] if args.key?(:sources)
|
256
|
+
@previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names)
|
257
|
+
@deleted = args[:deleted] if args.key?(:deleted)
|
258
|
+
@object_type = args[:object_type] if args.key?(:object_type)
|
93
259
|
end
|
94
260
|
end
|
95
261
|
|
96
|
-
# The
|
97
|
-
class
|
262
|
+
# The source of a field.
|
263
|
+
class Source
|
98
264
|
include Google::Apis::Core::Hashable
|
99
265
|
|
100
|
-
# The
|
101
|
-
#
|
102
|
-
# following values:
|
103
|
-
# * `friend`
|
104
|
-
# * `date`
|
105
|
-
# * `relationship`
|
106
|
-
# * `networking`
|
107
|
-
# Corresponds to the JSON property `value`
|
266
|
+
# The source type.
|
267
|
+
# Corresponds to the JSON property `type`
|
108
268
|
# @return [String]
|
109
|
-
attr_accessor :
|
110
|
-
|
111
|
-
# Metadata about a field.
|
112
|
-
# Corresponds to the JSON property `metadata`
|
113
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
114
|
-
attr_accessor :metadata
|
269
|
+
attr_accessor :type
|
115
270
|
|
116
|
-
#
|
117
|
-
#
|
118
|
-
# HTTP header.
|
119
|
-
# Corresponds to the JSON property `formattedValue`
|
271
|
+
# A unique identifier within the source type generated by the server.
|
272
|
+
# Corresponds to the JSON property `id`
|
120
273
|
# @return [String]
|
121
|
-
attr_accessor :
|
274
|
+
attr_accessor :id
|
122
275
|
|
123
276
|
def initialize(**args)
|
124
277
|
update!(**args)
|
@@ -126,69 +279,60 @@ module Google
|
|
126
279
|
|
127
280
|
# Update properties of this object
|
128
281
|
def update!(**args)
|
129
|
-
@
|
130
|
-
@
|
131
|
-
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
282
|
+
@type = args[:type] if args.key?(:type)
|
283
|
+
@id = args[:id] if args.key?(:id)
|
132
284
|
end
|
133
285
|
end
|
134
286
|
|
135
|
-
# A
|
136
|
-
class
|
287
|
+
# A person's locale preference.
|
288
|
+
class Locale
|
137
289
|
include Google::Apis::Core::Hashable
|
138
290
|
|
139
|
-
# The tagline.
|
140
|
-
# Corresponds to the JSON property `value`
|
141
|
-
# @return [String]
|
142
|
-
attr_accessor :value
|
143
|
-
|
144
291
|
# Metadata about a field.
|
145
292
|
# Corresponds to the JSON property `metadata`
|
146
293
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
147
294
|
attr_accessor :metadata
|
148
295
|
|
296
|
+
# The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) language tag
|
297
|
+
# representing the locale.
|
298
|
+
# Corresponds to the JSON property `value`
|
299
|
+
# @return [String]
|
300
|
+
attr_accessor :value
|
301
|
+
|
149
302
|
def initialize(**args)
|
150
303
|
update!(**args)
|
151
304
|
end
|
152
305
|
|
153
306
|
# Update properties of this object
|
154
307
|
def update!(**args)
|
155
|
-
@value = args[:value] if args.key?(:value)
|
156
308
|
@metadata = args[:metadata] if args.key?(:metadata)
|
309
|
+
@value = args[:value] if args.key?(:value)
|
157
310
|
end
|
158
311
|
end
|
159
312
|
|
160
|
-
#
|
161
|
-
class
|
313
|
+
# Metadata about a field.
|
314
|
+
class FieldMetadata
|
162
315
|
include Google::Apis::Core::Hashable
|
163
316
|
|
164
|
-
#
|
165
|
-
#
|
166
|
-
# Corresponds to the JSON property `
|
167
|
-
# @return [
|
168
|
-
attr_accessor :
|
169
|
-
|
170
|
-
# Metadata about a field.
|
171
|
-
# Corresponds to the JSON property `metadata`
|
172
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
173
|
-
attr_accessor :metadata
|
317
|
+
# True if the field is the primary field; false if the field is a secondary
|
318
|
+
# field.
|
319
|
+
# Corresponds to the JSON property `primary`
|
320
|
+
# @return [Boolean]
|
321
|
+
attr_accessor :primary
|
322
|
+
alias_method :primary?, :primary
|
174
323
|
|
175
|
-
#
|
176
|
-
#
|
177
|
-
#
|
178
|
-
#
|
179
|
-
#
|
180
|
-
|
181
|
-
|
324
|
+
# True if the field is verified; false if the field is unverified. A verified
|
325
|
+
# field is typically a name, email address, phone number, or website that has
|
326
|
+
# been confirmed to be owned by the person.
|
327
|
+
# Corresponds to the JSON property `verified`
|
328
|
+
# @return [Boolean]
|
329
|
+
attr_accessor :verified
|
330
|
+
alias_method :verified?, :verified
|
182
331
|
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
|
187
|
-
# month where the day is not significant. The year may be 0 to represent a month
|
188
|
-
# and day independent of year; for example, anniversary date.
|
189
|
-
# Corresponds to the JSON property `date`
|
190
|
-
# @return [Google::Apis::PeopleV1::Date]
|
191
|
-
attr_accessor :date
|
332
|
+
# The source of a field.
|
333
|
+
# Corresponds to the JSON property `source`
|
334
|
+
# @return [Google::Apis::PeopleV1::Source]
|
335
|
+
attr_accessor :source
|
192
336
|
|
193
337
|
def initialize(**args)
|
194
338
|
update!(**args)
|
@@ -196,35 +340,95 @@ module Google
|
|
196
340
|
|
197
341
|
# Update properties of this object
|
198
342
|
def update!(**args)
|
199
|
-
@
|
200
|
-
@
|
201
|
-
@
|
202
|
-
@date = args[:date] if args.key?(:date)
|
343
|
+
@primary = args[:primary] if args.key?(:primary)
|
344
|
+
@verified = args[:verified] if args.key?(:verified)
|
345
|
+
@source = args[:source] if args.key?(:source)
|
203
346
|
end
|
204
347
|
end
|
205
348
|
|
206
|
-
# A
|
207
|
-
class
|
349
|
+
# A person's name. If the name is a mononym, the family name is empty.
|
350
|
+
class Name
|
208
351
|
include Google::Apis::Core::Hashable
|
209
352
|
|
210
|
-
# The skill; for example, `underwater basket weaving`.
|
211
|
-
# Corresponds to the JSON property `value`
|
212
|
-
# @return [String]
|
213
|
-
attr_accessor :value
|
214
|
-
|
215
353
|
# Metadata about a field.
|
216
354
|
# Corresponds to the JSON property `metadata`
|
217
355
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
218
356
|
attr_accessor :metadata
|
219
357
|
|
358
|
+
# The display name formatted according to the locale specified by the viewer's
|
359
|
+
# account or the Accept-Language HTTP header.
|
360
|
+
# Corresponds to the JSON property `displayName`
|
361
|
+
# @return [String]
|
362
|
+
attr_accessor :display_name
|
363
|
+
|
364
|
+
# The family name.
|
365
|
+
# Corresponds to the JSON property `familyName`
|
366
|
+
# @return [String]
|
367
|
+
attr_accessor :family_name
|
368
|
+
|
369
|
+
# The given name.
|
370
|
+
# Corresponds to the JSON property `givenName`
|
371
|
+
# @return [String]
|
372
|
+
attr_accessor :given_name
|
373
|
+
|
374
|
+
# The middle name(s).
|
375
|
+
# Corresponds to the JSON property `middleName`
|
376
|
+
# @return [String]
|
377
|
+
attr_accessor :middle_name
|
378
|
+
|
379
|
+
# The honorific prefixes, such as `Mrs.` or `Dr.`
|
380
|
+
# Corresponds to the JSON property `honorificPrefix`
|
381
|
+
# @return [String]
|
382
|
+
attr_accessor :honorific_prefix
|
383
|
+
|
384
|
+
# The honorific suffixes, such as `Jr.`
|
385
|
+
# Corresponds to the JSON property `honorificSuffix`
|
386
|
+
# @return [String]
|
387
|
+
attr_accessor :honorific_suffix
|
388
|
+
|
389
|
+
# The family name spelled as it sounds.
|
390
|
+
# Corresponds to the JSON property `phoneticFamilyName`
|
391
|
+
# @return [String]
|
392
|
+
attr_accessor :phonetic_family_name
|
393
|
+
|
394
|
+
# The given name spelled as it sounds.
|
395
|
+
# Corresponds to the JSON property `phoneticGivenName`
|
396
|
+
# @return [String]
|
397
|
+
attr_accessor :phonetic_given_name
|
398
|
+
|
399
|
+
# The middle name(s) spelled as they sound.
|
400
|
+
# Corresponds to the JSON property `phoneticMiddleName`
|
401
|
+
# @return [String]
|
402
|
+
attr_accessor :phonetic_middle_name
|
403
|
+
|
404
|
+
# The honorific prefixes spelled as they sound.
|
405
|
+
# Corresponds to the JSON property `phoneticHonorificPrefix`
|
406
|
+
# @return [String]
|
407
|
+
attr_accessor :phonetic_honorific_prefix
|
408
|
+
|
409
|
+
# The honorific suffixes spelled as they sound.
|
410
|
+
# Corresponds to the JSON property `phoneticHonorificSuffix`
|
411
|
+
# @return [String]
|
412
|
+
attr_accessor :phonetic_honorific_suffix
|
413
|
+
|
220
414
|
def initialize(**args)
|
221
415
|
update!(**args)
|
222
416
|
end
|
223
417
|
|
224
418
|
# Update properties of this object
|
225
419
|
def update!(**args)
|
226
|
-
@value = args[:value] if args.key?(:value)
|
227
420
|
@metadata = args[:metadata] if args.key?(:metadata)
|
421
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
422
|
+
@family_name = args[:family_name] if args.key?(:family_name)
|
423
|
+
@given_name = args[:given_name] if args.key?(:given_name)
|
424
|
+
@middle_name = args[:middle_name] if args.key?(:middle_name)
|
425
|
+
@honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
|
426
|
+
@honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
|
427
|
+
@phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name)
|
428
|
+
@phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
|
429
|
+
@phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name)
|
430
|
+
@phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
|
431
|
+
@phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
|
228
432
|
end
|
229
433
|
end
|
230
434
|
|
@@ -232,16 +436,16 @@ module Google
|
|
232
436
|
class Nickname
|
233
437
|
include Google::Apis::Core::Hashable
|
234
438
|
|
235
|
-
# The nickname.
|
236
|
-
# Corresponds to the JSON property `value`
|
237
|
-
# @return [String]
|
238
|
-
attr_accessor :value
|
239
|
-
|
240
439
|
# Metadata about a field.
|
241
440
|
# Corresponds to the JSON property `metadata`
|
242
441
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
243
442
|
attr_accessor :metadata
|
244
443
|
|
444
|
+
# The nickname.
|
445
|
+
# Corresponds to the JSON property `value`
|
446
|
+
# @return [String]
|
447
|
+
attr_accessor :value
|
448
|
+
|
245
449
|
# The type of the nickname.
|
246
450
|
# Corresponds to the JSON property `type`
|
247
451
|
# @return [String]
|
@@ -253,30 +457,33 @@ module Google
|
|
253
457
|
|
254
458
|
# Update properties of this object
|
255
459
|
def update!(**args)
|
256
|
-
@value = args[:value] if args.key?(:value)
|
257
460
|
@metadata = args[:metadata] if args.key?(:metadata)
|
461
|
+
@value = args[:value] if args.key?(:value)
|
258
462
|
@type = args[:type] if args.key?(:type)
|
259
463
|
end
|
260
464
|
end
|
261
465
|
|
262
|
-
# A person's
|
263
|
-
|
466
|
+
# A person's cover photo. A large image shown on the person's profile page that
|
467
|
+
# represents who they are or what they care about.
|
468
|
+
class CoverPhoto
|
264
469
|
include Google::Apis::Core::Hashable
|
265
470
|
|
266
|
-
# A Google contact group membership.
|
267
|
-
# Corresponds to the JSON property `contactGroupMembership`
|
268
|
-
# @return [Google::Apis::PeopleV1::ContactGroupMembership]
|
269
|
-
attr_accessor :contact_group_membership
|
270
|
-
|
271
471
|
# Metadata about a field.
|
272
472
|
# Corresponds to the JSON property `metadata`
|
273
473
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
274
474
|
attr_accessor :metadata
|
275
475
|
|
276
|
-
#
|
277
|
-
# Corresponds to the JSON property `
|
278
|
-
# @return [
|
279
|
-
attr_accessor :
|
476
|
+
# The URL of the cover photo.
|
477
|
+
# Corresponds to the JSON property `url`
|
478
|
+
# @return [String]
|
479
|
+
attr_accessor :url
|
480
|
+
|
481
|
+
# True if the cover photo is the default cover photo; false if the cover photo
|
482
|
+
# is a user-provided cover photo.
|
483
|
+
# Corresponds to the JSON property `default`
|
484
|
+
# @return [Boolean]
|
485
|
+
attr_accessor :default
|
486
|
+
alias_method :default?, :default
|
280
487
|
|
281
488
|
def initialize(**args)
|
282
489
|
update!(**args)
|
@@ -284,25 +491,26 @@ module Google
|
|
284
491
|
|
285
492
|
# Update properties of this object
|
286
493
|
def update!(**args)
|
287
|
-
@contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
|
288
494
|
@metadata = args[:metadata] if args.key?(:metadata)
|
289
|
-
@
|
495
|
+
@url = args[:url] if args.key?(:url)
|
496
|
+
@default = args[:default] if args.key?(:default)
|
290
497
|
end
|
291
498
|
end
|
292
499
|
|
293
|
-
#
|
294
|
-
|
500
|
+
# A person's photo. A picture shown next to the person's name to help others
|
501
|
+
# recognize the person.
|
502
|
+
class Photo
|
295
503
|
include Google::Apis::Core::Hashable
|
296
504
|
|
297
|
-
#
|
298
|
-
# Corresponds to the JSON property `
|
299
|
-
# @return [
|
300
|
-
attr_accessor :
|
505
|
+
# Metadata about a field.
|
506
|
+
# Corresponds to the JSON property `metadata`
|
507
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
508
|
+
attr_accessor :metadata
|
301
509
|
|
302
|
-
#
|
303
|
-
# Corresponds to the JSON property `
|
510
|
+
# The URL of the photo.
|
511
|
+
# Corresponds to the JSON property `url`
|
304
512
|
# @return [String]
|
305
|
-
attr_accessor :
|
513
|
+
attr_accessor :url
|
306
514
|
|
307
515
|
def initialize(**args)
|
308
516
|
update!(**args)
|
@@ -310,8 +518,8 @@ module Google
|
|
310
518
|
|
311
519
|
# Update properties of this object
|
312
520
|
def update!(**args)
|
313
|
-
@
|
314
|
-
@
|
521
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
522
|
+
@url = args[:url] if args.key?(:url)
|
315
523
|
end
|
316
524
|
end
|
317
525
|
|
@@ -319,22 +527,18 @@ module Google
|
|
319
527
|
class Gender
|
320
528
|
include Google::Apis::Core::Hashable
|
321
529
|
|
322
|
-
# The gender for the person. The gender can be custom or predefined.
|
323
|
-
# Possible values include, but are not limited to, the
|
324
|
-
# following:
|
325
|
-
# * `male`
|
326
|
-
# * `female`
|
327
|
-
# * `other`
|
328
|
-
# * `unknown`
|
329
|
-
# Corresponds to the JSON property `value`
|
330
|
-
# @return [String]
|
331
|
-
attr_accessor :value
|
332
|
-
|
333
530
|
# Metadata about a field.
|
334
531
|
# Corresponds to the JSON property `metadata`
|
335
532
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
336
533
|
attr_accessor :metadata
|
337
534
|
|
535
|
+
# The gender for the person. The gender can be custom or predefined. Possible
|
536
|
+
# values include, but are not limited to, the following: * `male` * `female` * `
|
537
|
+
# other` * `unknown`
|
538
|
+
# Corresponds to the JSON property `value`
|
539
|
+
# @return [String]
|
540
|
+
attr_accessor :value
|
541
|
+
|
338
542
|
# The read-only value of the gender translated and formatted in the viewer's
|
339
543
|
# account locale or the `Accept-Language` HTTP header locale.
|
340
544
|
# Corresponds to the JSON property `formattedValue`
|
@@ -347,258 +551,199 @@ module Google
|
|
347
551
|
|
348
552
|
# Update properties of this object
|
349
553
|
def update!(**args)
|
350
|
-
@value = args[:value] if args.key?(:value)
|
351
554
|
@metadata = args[:metadata] if args.key?(:metadata)
|
555
|
+
@value = args[:value] if args.key?(:value)
|
352
556
|
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
353
557
|
end
|
354
558
|
end
|
355
559
|
|
356
|
-
#
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
# True if the field is verified; false if the field is unverified. A
|
361
|
-
# verified field is typically a name, email address, phone number, or
|
362
|
-
# website that has been confirmed to be owned by the person.
|
363
|
-
# Corresponds to the JSON property `verified`
|
364
|
-
# @return [Boolean]
|
365
|
-
attr_accessor :verified
|
366
|
-
alias_method :verified?, :verified
|
367
|
-
|
368
|
-
# The source of a field.
|
369
|
-
# Corresponds to the JSON property `source`
|
370
|
-
# @return [Google::Apis::PeopleV1::Source]
|
371
|
-
attr_accessor :source
|
372
|
-
|
373
|
-
# True if the field is the primary field; false if the field is a secondary
|
374
|
-
# field.
|
375
|
-
# Corresponds to the JSON property `primary`
|
376
|
-
# @return [Boolean]
|
377
|
-
attr_accessor :primary
|
378
|
-
alias_method :primary?, :primary
|
379
|
-
|
380
|
-
def initialize(**args)
|
381
|
-
update!(**args)
|
382
|
-
end
|
383
|
-
|
384
|
-
# Update properties of this object
|
385
|
-
def update!(**args)
|
386
|
-
@verified = args[:verified] if args.key?(:verified)
|
387
|
-
@source = args[:source] if args.key?(:source)
|
388
|
-
@primary = args[:primary] if args.key?(:primary)
|
389
|
-
end
|
390
|
-
end
|
391
|
-
|
392
|
-
# A person's locale preference.
|
393
|
-
class Locale
|
560
|
+
# A person's birthday. At least one of the `date` and `text` fields are
|
561
|
+
# specified. The `date` and `text` fields typically represent the same date, but
|
562
|
+
# are not guaranteed to.
|
563
|
+
class Birthday
|
394
564
|
include Google::Apis::Core::Hashable
|
395
565
|
|
396
|
-
# The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47)
|
397
|
-
# language tag representing the locale.
|
398
|
-
# Corresponds to the JSON property `value`
|
399
|
-
# @return [String]
|
400
|
-
attr_accessor :value
|
401
|
-
|
402
566
|
# Metadata about a field.
|
403
567
|
# Corresponds to the JSON property `metadata`
|
404
568
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
405
569
|
attr_accessor :metadata
|
406
570
|
|
571
|
+
# Represents a whole calendar date, for example a date of birth. The time of day
|
572
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
573
|
+
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
574
|
+
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
575
|
+
# month where the day is not significant. The year may be 0 to represent a month
|
576
|
+
# and day independent of year; for example, anniversary date.
|
577
|
+
# Corresponds to the JSON property `date`
|
578
|
+
# @return [Google::Apis::PeopleV1::Date]
|
579
|
+
attr_accessor :date
|
580
|
+
|
581
|
+
# A free-form string representing the user's birthday.
|
582
|
+
# Corresponds to the JSON property `text`
|
583
|
+
# @return [String]
|
584
|
+
attr_accessor :text
|
585
|
+
|
407
586
|
def initialize(**args)
|
408
587
|
update!(**args)
|
409
588
|
end
|
410
589
|
|
411
590
|
# Update properties of this object
|
412
591
|
def update!(**args)
|
413
|
-
@value = args[:value] if args.key?(:value)
|
414
592
|
@metadata = args[:metadata] if args.key?(:metadata)
|
593
|
+
@date = args[:date] if args.key?(:date)
|
594
|
+
@text = args[:text] if args.key?(:text)
|
415
595
|
end
|
416
596
|
end
|
417
597
|
|
418
|
-
#
|
419
|
-
# are
|
420
|
-
|
598
|
+
# Represents a whole calendar date, for example a date of birth. The time of day
|
599
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
600
|
+
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
601
|
+
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
602
|
+
# month where the day is not significant. The year may be 0 to represent a month
|
603
|
+
# and day independent of year; for example, anniversary date.
|
604
|
+
class Date
|
421
605
|
include Google::Apis::Core::Hashable
|
422
606
|
|
423
|
-
#
|
424
|
-
# Corresponds to the JSON property `
|
425
|
-
# @return [
|
426
|
-
attr_accessor :
|
607
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
|
608
|
+
# Corresponds to the JSON property `year`
|
609
|
+
# @return [Fixnum]
|
610
|
+
attr_accessor :year
|
427
611
|
|
428
|
-
#
|
429
|
-
# Corresponds to the JSON property `
|
430
|
-
# @return [
|
431
|
-
attr_accessor :
|
612
|
+
# Month of year. Must be from 1 to 12.
|
613
|
+
# Corresponds to the JSON property `month`
|
614
|
+
# @return [Fixnum]
|
615
|
+
attr_accessor :month
|
432
616
|
|
433
|
-
#
|
434
|
-
#
|
435
|
-
# Corresponds to the JSON property `
|
436
|
-
# @return [
|
437
|
-
attr_accessor :
|
617
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
|
618
|
+
# specifying a year/month where the day is not significant.
|
619
|
+
# Corresponds to the JSON property `day`
|
620
|
+
# @return [Fixnum]
|
621
|
+
attr_accessor :day
|
438
622
|
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
# @return [String]
|
443
|
-
attr_accessor :formatted_value
|
623
|
+
def initialize(**args)
|
624
|
+
update!(**args)
|
625
|
+
end
|
444
626
|
|
445
|
-
#
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
627
|
+
# Update properties of this object
|
628
|
+
def update!(**args)
|
629
|
+
@year = args[:year] if args.key?(:year)
|
630
|
+
@month = args[:month] if args.key?(:month)
|
631
|
+
@day = args[:day] if args.key?(:day)
|
632
|
+
end
|
633
|
+
end
|
450
634
|
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
attr_accessor :extended_address
|
635
|
+
# An event related to the person.
|
636
|
+
class Event
|
637
|
+
include Google::Apis::Core::Hashable
|
455
638
|
|
456
639
|
# Metadata about a field.
|
457
640
|
# Corresponds to the JSON property `metadata`
|
458
641
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
459
642
|
attr_accessor :metadata
|
460
643
|
|
461
|
-
#
|
462
|
-
#
|
463
|
-
#
|
464
|
-
|
465
|
-
|
466
|
-
#
|
467
|
-
# Corresponds to the JSON property `
|
468
|
-
# @return [
|
469
|
-
attr_accessor :
|
470
|
-
|
471
|
-
# The P.O. box of the address.
|
472
|
-
# Corresponds to the JSON property `poBox`
|
473
|
-
# @return [String]
|
474
|
-
attr_accessor :po_box
|
475
|
-
|
476
|
-
# The street address.
|
477
|
-
# Corresponds to the JSON property `streetAddress`
|
478
|
-
# @return [String]
|
479
|
-
attr_accessor :street_address
|
644
|
+
# Represents a whole calendar date, for example a date of birth. The time of day
|
645
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
646
|
+
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
647
|
+
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
648
|
+
# month where the day is not significant. The year may be 0 to represent a month
|
649
|
+
# and day independent of year; for example, anniversary date.
|
650
|
+
# Corresponds to the JSON property `date`
|
651
|
+
# @return [Google::Apis::PeopleV1::Date]
|
652
|
+
attr_accessor :date
|
480
653
|
|
481
|
-
# The type of the
|
482
|
-
#
|
483
|
-
# * `home`
|
484
|
-
# * `work`
|
485
|
-
# * `other`
|
654
|
+
# The type of the event. The type can be custom or predefined. Possible values
|
655
|
+
# include, but are not limited to, the following: * `anniversary` * `other`
|
486
656
|
# Corresponds to the JSON property `type`
|
487
657
|
# @return [String]
|
488
658
|
attr_accessor :type
|
489
659
|
|
660
|
+
# The read-only type of the event translated and formatted in the viewer's
|
661
|
+
# account locale or the `Accept-Language` HTTP header locale.
|
662
|
+
# Corresponds to the JSON property `formattedType`
|
663
|
+
# @return [String]
|
664
|
+
attr_accessor :formatted_type
|
665
|
+
|
490
666
|
def initialize(**args)
|
491
667
|
update!(**args)
|
492
668
|
end
|
493
669
|
|
494
670
|
# Update properties of this object
|
495
671
|
def update!(**args)
|
496
|
-
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
497
|
-
@city = args[:city] if args.key?(:city)
|
498
|
-
@country_code = args[:country_code] if args.key?(:country_code)
|
499
|
-
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
500
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
501
|
-
@extended_address = args[:extended_address] if args.key?(:extended_address)
|
502
672
|
@metadata = args[:metadata] if args.key?(:metadata)
|
503
|
-
@
|
504
|
-
@country = args[:country] if args.key?(:country)
|
505
|
-
@po_box = args[:po_box] if args.key?(:po_box)
|
506
|
-
@street_address = args[:street_address] if args.key?(:street_address)
|
673
|
+
@date = args[:date] if args.key?(:date)
|
507
674
|
@type = args[:type] if args.key?(:type)
|
675
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
508
676
|
end
|
509
677
|
end
|
510
678
|
|
511
|
-
# A person's
|
512
|
-
#
|
513
|
-
class
|
679
|
+
# A person's physical address. May be a P.O. box or street address. All fields
|
680
|
+
# are optional.
|
681
|
+
class Address
|
514
682
|
include Google::Apis::Core::Hashable
|
515
683
|
|
516
|
-
#
|
517
|
-
# Corresponds to the JSON property `
|
684
|
+
# Metadata about a field.
|
685
|
+
# Corresponds to the JSON property `metadata`
|
686
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
687
|
+
attr_accessor :metadata
|
688
|
+
|
689
|
+
# The read-only value of the address formatted in the viewer's account locale or
|
690
|
+
# the `Accept-Language` HTTP header locale.
|
691
|
+
# Corresponds to the JSON property `formattedValue`
|
518
692
|
# @return [String]
|
519
|
-
attr_accessor :
|
693
|
+
attr_accessor :formatted_value
|
520
694
|
|
521
|
-
# The
|
522
|
-
#
|
695
|
+
# The type of the address. The type can be custom or predefined. Possible values
|
696
|
+
# include, but are not limited to, the following: * `home` * `work` * `other`
|
697
|
+
# Corresponds to the JSON property `type`
|
523
698
|
# @return [String]
|
524
|
-
attr_accessor :
|
699
|
+
attr_accessor :type
|
525
700
|
|
526
|
-
# The read-only type of the
|
527
|
-
#
|
701
|
+
# The read-only type of the address translated and formatted in the viewer's
|
702
|
+
# account locale or the `Accept-Language` HTTP header locale.
|
528
703
|
# Corresponds to the JSON property `formattedType`
|
529
704
|
# @return [String]
|
530
705
|
attr_accessor :formatted_type
|
531
706
|
|
532
|
-
# The
|
533
|
-
# Corresponds to the JSON property `
|
707
|
+
# The P.O. box of the address.
|
708
|
+
# Corresponds to the JSON property `poBox`
|
534
709
|
# @return [String]
|
535
|
-
attr_accessor :
|
710
|
+
attr_accessor :po_box
|
536
711
|
|
537
|
-
# The
|
538
|
-
#
|
539
|
-
# Corresponds to the JSON property `symbol`
|
712
|
+
# The street address.
|
713
|
+
# Corresponds to the JSON property `streetAddress`
|
540
714
|
# @return [String]
|
541
|
-
attr_accessor :
|
715
|
+
attr_accessor :street_address
|
542
716
|
|
543
|
-
# The
|
544
|
-
# Corresponds to the JSON property `
|
717
|
+
# The extended address of the address; for example, the apartment number.
|
718
|
+
# Corresponds to the JSON property `extendedAddress`
|
545
719
|
# @return [String]
|
546
|
-
attr_accessor :
|
547
|
-
|
548
|
-
# Metadata about a field.
|
549
|
-
# Corresponds to the JSON property `metadata`
|
550
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
551
|
-
attr_accessor :metadata
|
552
|
-
|
553
|
-
# Represents a whole calendar date, for example a date of birth. The time of day
|
554
|
-
# and time zone are either specified elsewhere or are not significant. The date
|
555
|
-
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
556
|
-
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
557
|
-
# month where the day is not significant. The year may be 0 to represent a month
|
558
|
-
# and day independent of year; for example, anniversary date.
|
559
|
-
# Corresponds to the JSON property `endDate`
|
560
|
-
# @return [Google::Apis::PeopleV1::Date]
|
561
|
-
attr_accessor :end_date
|
562
|
-
|
563
|
-
# True if the organization is the person's current organization;
|
564
|
-
# false if the organization is a past organization.
|
565
|
-
# Corresponds to the JSON property `current`
|
566
|
-
# @return [Boolean]
|
567
|
-
attr_accessor :current
|
568
|
-
alias_method :current?, :current
|
720
|
+
attr_accessor :extended_address
|
569
721
|
|
570
|
-
# The
|
571
|
-
# Corresponds to the JSON property `
|
722
|
+
# The city of the address.
|
723
|
+
# Corresponds to the JSON property `city`
|
572
724
|
# @return [String]
|
573
|
-
attr_accessor :
|
725
|
+
attr_accessor :city
|
574
726
|
|
575
|
-
# The
|
576
|
-
# Corresponds to the JSON property `
|
727
|
+
# The region of the address; for example, the state or province.
|
728
|
+
# Corresponds to the JSON property `region`
|
577
729
|
# @return [String]
|
578
|
-
attr_accessor :
|
730
|
+
attr_accessor :region
|
579
731
|
|
580
|
-
#
|
581
|
-
#
|
582
|
-
#
|
583
|
-
|
584
|
-
# month where the day is not significant. The year may be 0 to represent a month
|
585
|
-
# and day independent of year; for example, anniversary date.
|
586
|
-
# Corresponds to the JSON property `startDate`
|
587
|
-
# @return [Google::Apis::PeopleV1::Date]
|
588
|
-
attr_accessor :start_date
|
732
|
+
# The postal code of the address.
|
733
|
+
# Corresponds to the JSON property `postalCode`
|
734
|
+
# @return [String]
|
735
|
+
attr_accessor :postal_code
|
589
736
|
|
590
|
-
# The
|
591
|
-
# Corresponds to the JSON property `
|
737
|
+
# The country of the address.
|
738
|
+
# Corresponds to the JSON property `country`
|
592
739
|
# @return [String]
|
593
|
-
attr_accessor :
|
740
|
+
attr_accessor :country
|
594
741
|
|
595
|
-
# The
|
596
|
-
#
|
597
|
-
#
|
598
|
-
# * `school`
|
599
|
-
# Corresponds to the JSON property `type`
|
742
|
+
# The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
|
743
|
+
# code of the address.
|
744
|
+
# Corresponds to the JSON property `countryCode`
|
600
745
|
# @return [String]
|
601
|
-
attr_accessor :
|
746
|
+
attr_accessor :country_code
|
602
747
|
|
603
748
|
def initialize(**args)
|
604
749
|
update!(**args)
|
@@ -606,52 +751,41 @@ module Google
|
|
606
751
|
|
607
752
|
# Update properties of this object
|
608
753
|
def update!(**args)
|
609
|
-
@location = args[:location] if args.key?(:location)
|
610
|
-
@title = args[:title] if args.key?(:title)
|
611
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
612
|
-
@job_description = args[:job_description] if args.key?(:job_description)
|
613
|
-
@symbol = args[:symbol] if args.key?(:symbol)
|
614
|
-
@domain = args[:domain] if args.key?(:domain)
|
615
754
|
@metadata = args[:metadata] if args.key?(:metadata)
|
616
|
-
@
|
617
|
-
@current = args[:current] if args.key?(:current)
|
618
|
-
@name = args[:name] if args.key?(:name)
|
619
|
-
@phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
|
620
|
-
@start_date = args[:start_date] if args.key?(:start_date)
|
621
|
-
@department = args[:department] if args.key?(:department)
|
755
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
622
756
|
@type = args[:type] if args.key?(:type)
|
757
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
758
|
+
@po_box = args[:po_box] if args.key?(:po_box)
|
759
|
+
@street_address = args[:street_address] if args.key?(:street_address)
|
760
|
+
@extended_address = args[:extended_address] if args.key?(:extended_address)
|
761
|
+
@city = args[:city] if args.key?(:city)
|
762
|
+
@region = args[:region] if args.key?(:region)
|
763
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
764
|
+
@country = args[:country] if args.key?(:country)
|
765
|
+
@country_code = args[:country_code] if args.key?(:country_code)
|
623
766
|
end
|
624
767
|
end
|
625
768
|
|
626
|
-
# A person's
|
627
|
-
class
|
769
|
+
# A person's past or current residence.
|
770
|
+
class Residence
|
628
771
|
include Google::Apis::Core::Hashable
|
629
772
|
|
630
|
-
# The relationship status. The value can be custom or predefined.
|
631
|
-
# Possible values include, but are not limited to, the following:
|
632
|
-
# * `single`
|
633
|
-
# * `inARelationship`
|
634
|
-
# * `engaged`
|
635
|
-
# * `married`
|
636
|
-
# * `itsComplicated`
|
637
|
-
# * `openRelationship`
|
638
|
-
# * `widowed`
|
639
|
-
# * `inDomesticPartnership`
|
640
|
-
# * `inCivilUnion`
|
641
|
-
# Corresponds to the JSON property `value`
|
642
|
-
# @return [String]
|
643
|
-
attr_accessor :value
|
644
|
-
|
645
773
|
# Metadata about a field.
|
646
774
|
# Corresponds to the JSON property `metadata`
|
647
775
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
648
776
|
attr_accessor :metadata
|
649
777
|
|
650
|
-
# The
|
651
|
-
#
|
652
|
-
# Corresponds to the JSON property `formattedValue`
|
778
|
+
# The address of the residence.
|
779
|
+
# Corresponds to the JSON property `value`
|
653
780
|
# @return [String]
|
654
|
-
attr_accessor :
|
781
|
+
attr_accessor :value
|
782
|
+
|
783
|
+
# True if the residence is the person's current residence; false if the
|
784
|
+
# residence is a past residence.
|
785
|
+
# Corresponds to the JSON property `current`
|
786
|
+
# @return [Boolean]
|
787
|
+
attr_accessor :current
|
788
|
+
alias_method :current?, :current
|
655
789
|
|
656
790
|
def initialize(**args)
|
657
791
|
update!(**args)
|
@@ -659,256 +793,85 @@ module Google
|
|
659
793
|
|
660
794
|
# Update properties of this object
|
661
795
|
def update!(**args)
|
662
|
-
@value = args[:value] if args.key?(:value)
|
663
796
|
@metadata = args[:metadata] if args.key?(:metadata)
|
664
|
-
@
|
797
|
+
@value = args[:value] if args.key?(:value)
|
798
|
+
@current = args[:current] if args.key?(:current)
|
665
799
|
end
|
666
800
|
end
|
667
801
|
|
668
|
-
# A
|
669
|
-
class
|
802
|
+
# A person's email address.
|
803
|
+
class EmailAddress
|
670
804
|
include Google::Apis::Core::Hashable
|
671
805
|
|
672
|
-
# The contact group ID for the contact group membership. The contact group
|
673
|
-
# ID can be custom or predefined. Possible values include, but are not
|
674
|
-
# limited to, the following:
|
675
|
-
# * `myContacts`
|
676
|
-
# * `starred`
|
677
|
-
# * A numerical ID for user-created groups.
|
678
|
-
# Corresponds to the JSON property `contactGroupId`
|
679
|
-
# @return [String]
|
680
|
-
attr_accessor :contact_group_id
|
681
|
-
|
682
|
-
def initialize(**args)
|
683
|
-
update!(**args)
|
684
|
-
end
|
685
|
-
|
686
|
-
# Update properties of this object
|
687
|
-
def update!(**args)
|
688
|
-
@contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
|
689
|
-
end
|
690
|
-
end
|
691
|
-
|
692
|
-
# A person's instant messaging client.
|
693
|
-
class ImClient
|
694
|
-
include Google::Apis::Core::Hashable
|
695
|
-
|
696
|
-
# The protocol of the IM client. The protocol can be custom or predefined.
|
697
|
-
# Possible values include, but are not limited to, the following:
|
698
|
-
# * `aim`
|
699
|
-
# * `msn`
|
700
|
-
# * `yahoo`
|
701
|
-
# * `skype`
|
702
|
-
# * `qq`
|
703
|
-
# * `googleTalk`
|
704
|
-
# * `icq`
|
705
|
-
# * `jabber`
|
706
|
-
# * `netMeeting`
|
707
|
-
# Corresponds to the JSON property `protocol`
|
708
|
-
# @return [String]
|
709
|
-
attr_accessor :protocol
|
710
|
-
|
711
|
-
# The read-only type of the IM client translated and formatted in the
|
712
|
-
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
713
|
-
# Corresponds to the JSON property `formattedType`
|
714
|
-
# @return [String]
|
715
|
-
attr_accessor :formatted_type
|
716
|
-
|
717
806
|
# Metadata about a field.
|
718
807
|
# Corresponds to the JSON property `metadata`
|
719
808
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
720
809
|
attr_accessor :metadata
|
721
810
|
|
722
|
-
# The
|
723
|
-
# Corresponds to the JSON property `
|
724
|
-
# @return [String]
|
725
|
-
attr_accessor :username
|
726
|
-
|
727
|
-
# The read-only protocol of the IM client formatted in the viewer's account
|
728
|
-
# locale or the `Accept-Language` HTTP header locale.
|
729
|
-
# Corresponds to the JSON property `formattedProtocol`
|
811
|
+
# The email address.
|
812
|
+
# Corresponds to the JSON property `value`
|
730
813
|
# @return [String]
|
731
|
-
attr_accessor :
|
814
|
+
attr_accessor :value
|
732
815
|
|
733
|
-
# The type of the
|
734
|
-
#
|
735
|
-
#
|
736
|
-
# * `work`
|
737
|
-
# * `other`
|
816
|
+
# The type of the email address. The type can be custom or predefined. Possible
|
817
|
+
# values include, but are not limited to, the following: * `home` * `work` * `
|
818
|
+
# other`
|
738
819
|
# Corresponds to the JSON property `type`
|
739
820
|
# @return [String]
|
740
821
|
attr_accessor :type
|
741
822
|
|
823
|
+
# The read-only type of the email address translated and formatted in the viewer'
|
824
|
+
# s account locale or the `Accept-Language` HTTP header locale.
|
825
|
+
# Corresponds to the JSON property `formattedType`
|
826
|
+
# @return [String]
|
827
|
+
attr_accessor :formatted_type
|
828
|
+
|
742
829
|
def initialize(**args)
|
743
830
|
update!(**args)
|
744
831
|
end
|
745
832
|
|
746
833
|
# Update properties of this object
|
747
834
|
def update!(**args)
|
748
|
-
@protocol = args[:protocol] if args.key?(:protocol)
|
749
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
750
835
|
@metadata = args[:metadata] if args.key?(:metadata)
|
751
|
-
@
|
752
|
-
@formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
|
836
|
+
@value = args[:value] if args.key?(:value)
|
753
837
|
@type = args[:type] if args.key?(:type)
|
838
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
754
839
|
end
|
755
840
|
end
|
756
841
|
|
757
|
-
#
|
758
|
-
|
759
|
-
# metadata, and group memberships are user-edited.
|
760
|
-
# Most fields can have multiple items. The items in a field have no guaranteed
|
761
|
-
# order, but each non-empty field is guaranteed to have exactly one field with
|
762
|
-
# `metadata.primary` set to true.
|
763
|
-
class Person
|
842
|
+
# A person's phone number.
|
843
|
+
class PhoneNumber
|
764
844
|
include Google::Apis::Core::Hashable
|
765
845
|
|
766
|
-
#
|
767
|
-
# Corresponds to the JSON property `
|
768
|
-
# @return [
|
769
|
-
attr_accessor :
|
770
|
-
|
771
|
-
# The person's birthdays.
|
772
|
-
# Corresponds to the JSON property `birthdays`
|
773
|
-
# @return [Array<Google::Apis::PeopleV1::Birthday>]
|
774
|
-
attr_accessor :birthdays
|
775
|
-
|
776
|
-
# The person's relations.
|
777
|
-
# Corresponds to the JSON property `relations`
|
778
|
-
# @return [Array<Google::Apis::PeopleV1::Relation>]
|
779
|
-
attr_accessor :relations
|
780
|
-
|
781
|
-
# The person's nicknames.
|
782
|
-
# Corresponds to the JSON property `nicknames`
|
783
|
-
# @return [Array<Google::Apis::PeopleV1::Nickname>]
|
784
|
-
attr_accessor :nicknames
|
785
|
-
|
786
|
-
# The person's biographies.
|
787
|
-
# Corresponds to the JSON property `biographies`
|
788
|
-
# @return [Array<Google::Apis::PeopleV1::Biography>]
|
789
|
-
attr_accessor :biographies
|
790
|
-
|
791
|
-
# The person's instant messaging clients.
|
792
|
-
# Corresponds to the JSON property `imClients`
|
793
|
-
# @return [Array<Google::Apis::PeopleV1::ImClient>]
|
794
|
-
attr_accessor :im_clients
|
795
|
-
|
796
|
-
# The person's bragging rights.
|
797
|
-
# Corresponds to the JSON property `braggingRights`
|
798
|
-
# @return [Array<Google::Apis::PeopleV1::BraggingRights>]
|
799
|
-
attr_accessor :bragging_rights
|
800
|
-
|
801
|
-
# The person's locale preferences.
|
802
|
-
# Corresponds to the JSON property `locales`
|
803
|
-
# @return [Array<Google::Apis::PeopleV1::Locale>]
|
804
|
-
attr_accessor :locales
|
805
|
-
|
806
|
-
# The person's relationship statuses.
|
807
|
-
# Corresponds to the JSON property `relationshipStatuses`
|
808
|
-
# @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]
|
809
|
-
attr_accessor :relationship_statuses
|
846
|
+
# Metadata about a field.
|
847
|
+
# Corresponds to the JSON property `metadata`
|
848
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
849
|
+
attr_accessor :metadata
|
810
850
|
|
811
|
-
# The
|
812
|
-
# Corresponds to the JSON property `
|
851
|
+
# The phone number.
|
852
|
+
# Corresponds to the JSON property `value`
|
813
853
|
# @return [String]
|
814
|
-
attr_accessor :
|
815
|
-
|
816
|
-
# The person's events.
|
817
|
-
# Corresponds to the JSON property `events`
|
818
|
-
# @return [Array<Google::Apis::PeopleV1::Event>]
|
819
|
-
attr_accessor :events
|
820
|
-
|
821
|
-
# The person's interests.
|
822
|
-
# Corresponds to the JSON property `interests`
|
823
|
-
# @return [Array<Google::Apis::PeopleV1::Interest>]
|
824
|
-
attr_accessor :interests
|
825
|
-
|
826
|
-
# The kind of relationship the person is looking for.
|
827
|
-
# Corresponds to the JSON property `relationshipInterests`
|
828
|
-
# @return [Array<Google::Apis::PeopleV1::RelationshipInterest>]
|
829
|
-
attr_accessor :relationship_interests
|
854
|
+
attr_accessor :value
|
830
855
|
|
831
|
-
# The [
|
832
|
-
#
|
833
|
-
# Corresponds to the JSON property `
|
856
|
+
# The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
|
857
|
+
# ibr/004/itu-t.E.164.1.2008.pdf) form of the phone number.
|
858
|
+
# Corresponds to the JSON property `canonicalForm`
|
834
859
|
# @return [String]
|
835
|
-
attr_accessor :
|
836
|
-
|
837
|
-
# The person's past or current organizations.
|
838
|
-
# Corresponds to the JSON property `organizations`
|
839
|
-
# @return [Array<Google::Apis::PeopleV1::Organization>]
|
840
|
-
attr_accessor :organizations
|
860
|
+
attr_accessor :canonical_form
|
841
861
|
|
842
|
-
# The
|
843
|
-
#
|
844
|
-
#
|
862
|
+
# The type of the phone number. The type can be custom or predefined. Possible
|
863
|
+
# values include, but are not limited to, the following: * `home` * `work` * `
|
864
|
+
# mobile` * `homeFax` * `workFax` * `otherFax` * `pager` * `workMobile` * `
|
865
|
+
# workPager` * `main` * `googleVoice` * `other`
|
866
|
+
# Corresponds to the JSON property `type`
|
845
867
|
# @return [String]
|
846
|
-
attr_accessor :
|
847
|
-
|
848
|
-
# The person's group memberships.
|
849
|
-
# Corresponds to the JSON property `memberships`
|
850
|
-
# @return [Array<Google::Apis::PeopleV1::Membership>]
|
851
|
-
attr_accessor :memberships
|
852
|
-
|
853
|
-
# Metadata about a person.
|
854
|
-
# Corresponds to the JSON property `metadata`
|
855
|
-
# @return [Google::Apis::PeopleV1::PersonMetadata]
|
856
|
-
attr_accessor :metadata
|
857
|
-
|
858
|
-
# The person's occupations.
|
859
|
-
# Corresponds to the JSON property `occupations`
|
860
|
-
# @return [Array<Google::Apis::PeopleV1::Occupation>]
|
861
|
-
attr_accessor :occupations
|
862
|
-
|
863
|
-
# The person's names.
|
864
|
-
# Corresponds to the JSON property `names`
|
865
|
-
# @return [Array<Google::Apis::PeopleV1::Name>]
|
866
|
-
attr_accessor :names
|
867
|
-
|
868
|
-
# The person's email addresses.
|
869
|
-
# Corresponds to the JSON property `emailAddresses`
|
870
|
-
# @return [Array<Google::Apis::PeopleV1::EmailAddress>]
|
871
|
-
attr_accessor :email_addresses
|
872
|
-
|
873
|
-
# The person's residences.
|
874
|
-
# Corresponds to the JSON property `residences`
|
875
|
-
# @return [Array<Google::Apis::PeopleV1::Residence>]
|
876
|
-
attr_accessor :residences
|
877
|
-
|
878
|
-
# The person's skills.
|
879
|
-
# Corresponds to the JSON property `skills`
|
880
|
-
# @return [Array<Google::Apis::PeopleV1::Skill>]
|
881
|
-
attr_accessor :skills
|
882
|
-
|
883
|
-
# The person's cover photos.
|
884
|
-
# Corresponds to the JSON property `coverPhotos`
|
885
|
-
# @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
|
886
|
-
attr_accessor :cover_photos
|
887
|
-
|
888
|
-
# The person's taglines.
|
889
|
-
# Corresponds to the JSON property `taglines`
|
890
|
-
# @return [Array<Google::Apis::PeopleV1::Tagline>]
|
891
|
-
attr_accessor :taglines
|
892
|
-
|
893
|
-
# The person's phone numbers.
|
894
|
-
# Corresponds to the JSON property `phoneNumbers`
|
895
|
-
# @return [Array<Google::Apis::PeopleV1::PhoneNumber>]
|
896
|
-
attr_accessor :phone_numbers
|
897
|
-
|
898
|
-
# The person's street addresses.
|
899
|
-
# Corresponds to the JSON property `addresses`
|
900
|
-
# @return [Array<Google::Apis::PeopleV1::Address>]
|
901
|
-
attr_accessor :addresses
|
902
|
-
|
903
|
-
# The person's photos.
|
904
|
-
# Corresponds to the JSON property `photos`
|
905
|
-
# @return [Array<Google::Apis::PeopleV1::Photo>]
|
906
|
-
attr_accessor :photos
|
868
|
+
attr_accessor :type
|
907
869
|
|
908
|
-
# The
|
909
|
-
#
|
910
|
-
#
|
911
|
-
|
870
|
+
# The read-only type of the phone number translated and formatted in the viewer'
|
871
|
+
# s account locale or the the `Accept-Language` HTTP header locale.
|
872
|
+
# Corresponds to the JSON property `formattedType`
|
873
|
+
# @return [String]
|
874
|
+
attr_accessor :formatted_type
|
912
875
|
|
913
876
|
def initialize(**args)
|
914
877
|
update!(**args)
|
@@ -916,46 +879,53 @@ module Google
|
|
916
879
|
|
917
880
|
# Update properties of this object
|
918
881
|
def update!(**args)
|
919
|
-
@urls = args[:urls] if args.key?(:urls)
|
920
|
-
@birthdays = args[:birthdays] if args.key?(:birthdays)
|
921
|
-
@relations = args[:relations] if args.key?(:relations)
|
922
|
-
@nicknames = args[:nicknames] if args.key?(:nicknames)
|
923
|
-
@biographies = args[:biographies] if args.key?(:biographies)
|
924
|
-
@im_clients = args[:im_clients] if args.key?(:im_clients)
|
925
|
-
@bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights)
|
926
|
-
@locales = args[:locales] if args.key?(:locales)
|
927
|
-
@relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
|
928
|
-
@age_range = args[:age_range] if args.key?(:age_range)
|
929
|
-
@events = args[:events] if args.key?(:events)
|
930
|
-
@interests = args[:interests] if args.key?(:interests)
|
931
|
-
@relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
|
932
|
-
@etag = args[:etag] if args.key?(:etag)
|
933
|
-
@organizations = args[:organizations] if args.key?(:organizations)
|
934
|
-
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
935
|
-
@memberships = args[:memberships] if args.key?(:memberships)
|
936
882
|
@metadata = args[:metadata] if args.key?(:metadata)
|
937
|
-
@
|
938
|
-
@
|
939
|
-
@
|
940
|
-
@
|
941
|
-
@skills = args[:skills] if args.key?(:skills)
|
942
|
-
@cover_photos = args[:cover_photos] if args.key?(:cover_photos)
|
943
|
-
@taglines = args[:taglines] if args.key?(:taglines)
|
944
|
-
@phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
|
945
|
-
@addresses = args[:addresses] if args.key?(:addresses)
|
946
|
-
@photos = args[:photos] if args.key?(:photos)
|
947
|
-
@genders = args[:genders] if args.key?(:genders)
|
883
|
+
@value = args[:value] if args.key?(:value)
|
884
|
+
@canonical_form = args[:canonical_form] if args.key?(:canonical_form)
|
885
|
+
@type = args[:type] if args.key?(:type)
|
886
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
948
887
|
end
|
949
888
|
end
|
950
889
|
|
951
|
-
#
|
952
|
-
class
|
890
|
+
# A person's instant messaging client.
|
891
|
+
class ImClient
|
953
892
|
include Google::Apis::Core::Hashable
|
954
893
|
|
955
|
-
#
|
956
|
-
# Corresponds to the JSON property `
|
957
|
-
# @return [
|
958
|
-
attr_accessor :
|
894
|
+
# Metadata about a field.
|
895
|
+
# Corresponds to the JSON property `metadata`
|
896
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
897
|
+
attr_accessor :metadata
|
898
|
+
|
899
|
+
# The user name used in the IM client.
|
900
|
+
# Corresponds to the JSON property `username`
|
901
|
+
# @return [String]
|
902
|
+
attr_accessor :username
|
903
|
+
|
904
|
+
# The type of the IM client. The type can be custom or predefined. Possible
|
905
|
+
# values include, but are not limited to, the following: * `home` * `work` * `
|
906
|
+
# other`
|
907
|
+
# Corresponds to the JSON property `type`
|
908
|
+
# @return [String]
|
909
|
+
attr_accessor :type
|
910
|
+
|
911
|
+
# The read-only type of the IM client translated and formatted in the viewer's
|
912
|
+
# account locale or the `Accept-Language` HTTP header locale.
|
913
|
+
# Corresponds to the JSON property `formattedType`
|
914
|
+
# @return [String]
|
915
|
+
attr_accessor :formatted_type
|
916
|
+
|
917
|
+
# The protocol of the IM client. The protocol can be custom or predefined.
|
918
|
+
# Possible values include, but are not limited to, the following: * `aim` * `msn`
|
919
|
+
# * `yahoo` * `skype` * `qq` * `googleTalk` * `icq` * `jabber` * `netMeeting`
|
920
|
+
# Corresponds to the JSON property `protocol`
|
921
|
+
# @return [String]
|
922
|
+
attr_accessor :protocol
|
923
|
+
|
924
|
+
# The read-only protocol of the IM client formatted in the viewer's account
|
925
|
+
# locale or the `Accept-Language` HTTP header locale.
|
926
|
+
# Corresponds to the JSON property `formattedProtocol`
|
927
|
+
# @return [String]
|
928
|
+
attr_accessor :formatted_protocol
|
959
929
|
|
960
930
|
def initialize(**args)
|
961
931
|
update!(**args)
|
@@ -963,41 +933,28 @@ module Google
|
|
963
933
|
|
964
934
|
# Update properties of this object
|
965
935
|
def update!(**args)
|
966
|
-
@
|
936
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
937
|
+
@username = args[:username] if args.key?(:username)
|
938
|
+
@type = args[:type] if args.key?(:type)
|
939
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
940
|
+
@protocol = args[:protocol] if args.key?(:protocol)
|
941
|
+
@formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
|
967
942
|
end
|
968
943
|
end
|
969
944
|
|
970
|
-
#
|
971
|
-
class
|
945
|
+
# A brief one-line description of the person.
|
946
|
+
class Tagline
|
972
947
|
include Google::Apis::Core::Hashable
|
973
948
|
|
974
|
-
#
|
975
|
-
# Corresponds to the JSON property `
|
976
|
-
# @return [
|
977
|
-
attr_accessor :
|
978
|
-
|
979
|
-
# Any former resource names this person has had. Populated only for
|
980
|
-
# [`connections.list`](/people/api/rest/v1/people.connections/list) requests
|
981
|
-
# that include a sync token.
|
982
|
-
# The resource name may change when adding or removing fields that link a
|
983
|
-
# contact and profile such as a verified email, verified phone number, or
|
984
|
-
# profile URL.
|
985
|
-
# Corresponds to the JSON property `previousResourceNames`
|
986
|
-
# @return [Array<String>]
|
987
|
-
attr_accessor :previous_resource_names
|
988
|
-
|
989
|
-
# The sources of data for the person.
|
990
|
-
# Corresponds to the JSON property `sources`
|
991
|
-
# @return [Array<Google::Apis::PeopleV1::Source>]
|
992
|
-
attr_accessor :sources
|
949
|
+
# Metadata about a field.
|
950
|
+
# Corresponds to the JSON property `metadata`
|
951
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
952
|
+
attr_accessor :metadata
|
993
953
|
|
994
|
-
#
|
995
|
-
#
|
996
|
-
#
|
997
|
-
|
998
|
-
# @return [Boolean]
|
999
|
-
attr_accessor :deleted
|
1000
|
-
alias_method :deleted?, :deleted
|
954
|
+
# The tagline.
|
955
|
+
# Corresponds to the JSON property `value`
|
956
|
+
# @return [String]
|
957
|
+
attr_accessor :value
|
1001
958
|
|
1002
959
|
def initialize(**args)
|
1003
960
|
update!(**args)
|
@@ -1005,40 +962,24 @@ module Google
|
|
1005
962
|
|
1006
963
|
# Update properties of this object
|
1007
964
|
def update!(**args)
|
1008
|
-
@
|
1009
|
-
@
|
1010
|
-
@sources = args[:sources] if args.key?(:sources)
|
1011
|
-
@deleted = args[:deleted] if args.key?(:deleted)
|
965
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
966
|
+
@value = args[:value] if args.key?(:value)
|
1012
967
|
end
|
1013
968
|
end
|
1014
969
|
|
1015
|
-
#
|
1016
|
-
class
|
970
|
+
# A person's short biography.
|
971
|
+
class Biography
|
1017
972
|
include Google::Apis::Core::Hashable
|
1018
973
|
|
1019
|
-
#
|
1020
|
-
#
|
1021
|
-
#
|
1022
|
-
|
1023
|
-
# order, but each non-empty field is guaranteed to have exactly one field with
|
1024
|
-
# `metadata.primary` set to true.
|
1025
|
-
# Corresponds to the JSON property `person`
|
1026
|
-
# @return [Google::Apis::PeopleV1::Person]
|
1027
|
-
attr_accessor :person
|
974
|
+
# Metadata about a field.
|
975
|
+
# Corresponds to the JSON property `metadata`
|
976
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
977
|
+
attr_accessor :metadata
|
1028
978
|
|
1029
|
-
# The
|
1030
|
-
#
|
1031
|
-
# The resource name can change when adding or removing fields that link a
|
1032
|
-
# contact and profile such as a verified email, verified phone number, or a
|
1033
|
-
# profile URL.
|
1034
|
-
# Corresponds to the JSON property `requestedResourceName`
|
979
|
+
# The short biography.
|
980
|
+
# Corresponds to the JSON property `value`
|
1035
981
|
# @return [String]
|
1036
|
-
attr_accessor :
|
1037
|
-
|
1038
|
-
# [HTTP 1.1 status code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
|
1039
|
-
# Corresponds to the JSON property `httpStatusCode`
|
1040
|
-
# @return [Fixnum]
|
1041
|
-
attr_accessor :http_status_code
|
982
|
+
attr_accessor :value
|
1042
983
|
|
1043
984
|
def initialize(**args)
|
1044
985
|
update!(**args)
|
@@ -1046,60 +987,161 @@ module Google
|
|
1046
987
|
|
1047
988
|
# Update properties of this object
|
1048
989
|
def update!(**args)
|
1049
|
-
@
|
1050
|
-
@
|
1051
|
-
@http_status_code = args[:http_status_code] if args.key?(:http_status_code)
|
990
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
991
|
+
@value = args[:value] if args.key?(:value)
|
1052
992
|
end
|
1053
993
|
end
|
1054
994
|
|
1055
|
-
# A person's
|
1056
|
-
class
|
995
|
+
# A person's associated URLs.
|
996
|
+
class Url
|
1057
997
|
include Google::Apis::Core::Hashable
|
1058
998
|
|
1059
|
-
# The short biography.
|
1060
|
-
# Corresponds to the JSON property `value`
|
1061
|
-
# @return [String]
|
1062
|
-
attr_accessor :value
|
1063
|
-
|
1064
999
|
# Metadata about a field.
|
1065
1000
|
# Corresponds to the JSON property `metadata`
|
1066
1001
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1067
1002
|
attr_accessor :metadata
|
1068
1003
|
|
1004
|
+
# The URL.
|
1005
|
+
# Corresponds to the JSON property `value`
|
1006
|
+
# @return [String]
|
1007
|
+
attr_accessor :value
|
1008
|
+
|
1009
|
+
# The type of the URL. The type can be custom or predefined. Possible values
|
1010
|
+
# include, but are not limited to, the following: * `home` * `work` * `blog` * `
|
1011
|
+
# profile` * `homePage` * `ftp` * `reservations` * `appInstallPage`: website for
|
1012
|
+
# a Google+ application. * `other`
|
1013
|
+
# Corresponds to the JSON property `type`
|
1014
|
+
# @return [String]
|
1015
|
+
attr_accessor :type
|
1016
|
+
|
1017
|
+
# The read-only type of the URL translated and formatted in the viewer's account
|
1018
|
+
# locale or the `Accept-Language` HTTP header locale.
|
1019
|
+
# Corresponds to the JSON property `formattedType`
|
1020
|
+
# @return [String]
|
1021
|
+
attr_accessor :formatted_type
|
1022
|
+
|
1069
1023
|
def initialize(**args)
|
1070
1024
|
update!(**args)
|
1071
1025
|
end
|
1072
1026
|
|
1073
1027
|
# Update properties of this object
|
1074
1028
|
def update!(**args)
|
1075
|
-
@value = args[:value] if args.key?(:value)
|
1076
1029
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1030
|
+
@value = args[:value] if args.key?(:value)
|
1031
|
+
@type = args[:type] if args.key?(:type)
|
1032
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1077
1033
|
end
|
1078
1034
|
end
|
1079
1035
|
|
1080
|
-
# A person's
|
1081
|
-
|
1082
|
-
class Photo
|
1036
|
+
# A person's past or current organization. Overlapping date ranges are permitted.
|
1037
|
+
class Organization
|
1083
1038
|
include Google::Apis::Core::Hashable
|
1084
1039
|
|
1085
|
-
# The URL of the photo.
|
1086
|
-
# Corresponds to the JSON property `url`
|
1087
|
-
# @return [String]
|
1088
|
-
attr_accessor :url
|
1089
|
-
|
1090
1040
|
# Metadata about a field.
|
1091
1041
|
# Corresponds to the JSON property `metadata`
|
1092
1042
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1093
1043
|
attr_accessor :metadata
|
1094
1044
|
|
1045
|
+
# The type of the organization. The type can be custom or predefined. Possible
|
1046
|
+
# values include, but are not limited to, the following: * `work` * `school`
|
1047
|
+
# Corresponds to the JSON property `type`
|
1048
|
+
# @return [String]
|
1049
|
+
attr_accessor :type
|
1050
|
+
|
1051
|
+
# The read-only type of the organization translated and formatted in the viewer'
|
1052
|
+
# s account locale or the `Accept-Language` HTTP header locale.
|
1053
|
+
# Corresponds to the JSON property `formattedType`
|
1054
|
+
# @return [String]
|
1055
|
+
attr_accessor :formatted_type
|
1056
|
+
|
1057
|
+
# Represents a whole calendar date, for example a date of birth. The time of day
|
1058
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
1059
|
+
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
1060
|
+
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
1061
|
+
# month where the day is not significant. The year may be 0 to represent a month
|
1062
|
+
# and day independent of year; for example, anniversary date.
|
1063
|
+
# Corresponds to the JSON property `startDate`
|
1064
|
+
# @return [Google::Apis::PeopleV1::Date]
|
1065
|
+
attr_accessor :start_date
|
1066
|
+
|
1067
|
+
# Represents a whole calendar date, for example a date of birth. The time of day
|
1068
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
1069
|
+
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
1070
|
+
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
1071
|
+
# month where the day is not significant. The year may be 0 to represent a month
|
1072
|
+
# and day independent of year; for example, anniversary date.
|
1073
|
+
# Corresponds to the JSON property `endDate`
|
1074
|
+
# @return [Google::Apis::PeopleV1::Date]
|
1075
|
+
attr_accessor :end_date
|
1076
|
+
|
1077
|
+
# True if the organization is the person's current organization; false if the
|
1078
|
+
# organization is a past organization.
|
1079
|
+
# Corresponds to the JSON property `current`
|
1080
|
+
# @return [Boolean]
|
1081
|
+
attr_accessor :current
|
1082
|
+
alias_method :current?, :current
|
1083
|
+
|
1084
|
+
# The name of the organization.
|
1085
|
+
# Corresponds to the JSON property `name`
|
1086
|
+
# @return [String]
|
1087
|
+
attr_accessor :name
|
1088
|
+
|
1089
|
+
# The phonetic name of the organization.
|
1090
|
+
# Corresponds to the JSON property `phoneticName`
|
1091
|
+
# @return [String]
|
1092
|
+
attr_accessor :phonetic_name
|
1093
|
+
|
1094
|
+
# The person's department at the organization.
|
1095
|
+
# Corresponds to the JSON property `department`
|
1096
|
+
# @return [String]
|
1097
|
+
attr_accessor :department
|
1098
|
+
|
1099
|
+
# The person's job title at the organization.
|
1100
|
+
# Corresponds to the JSON property `title`
|
1101
|
+
# @return [String]
|
1102
|
+
attr_accessor :title
|
1103
|
+
|
1104
|
+
# The person's job description at the organization.
|
1105
|
+
# Corresponds to the JSON property `jobDescription`
|
1106
|
+
# @return [String]
|
1107
|
+
attr_accessor :job_description
|
1108
|
+
|
1109
|
+
# The symbol associated with the organization; for example, a stock ticker
|
1110
|
+
# symbol, abbreviation, or acronym.
|
1111
|
+
# Corresponds to the JSON property `symbol`
|
1112
|
+
# @return [String]
|
1113
|
+
attr_accessor :symbol
|
1114
|
+
|
1115
|
+
# The domain name associated with the organization; for example, `google.com`.
|
1116
|
+
# Corresponds to the JSON property `domain`
|
1117
|
+
# @return [String]
|
1118
|
+
attr_accessor :domain
|
1119
|
+
|
1120
|
+
# The location of the organization office the person works at.
|
1121
|
+
# Corresponds to the JSON property `location`
|
1122
|
+
# @return [String]
|
1123
|
+
attr_accessor :location
|
1124
|
+
|
1095
1125
|
def initialize(**args)
|
1096
1126
|
update!(**args)
|
1097
1127
|
end
|
1098
1128
|
|
1099
1129
|
# Update properties of this object
|
1100
1130
|
def update!(**args)
|
1101
|
-
@url = args[:url] if args.key?(:url)
|
1102
1131
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1132
|
+
@type = args[:type] if args.key?(:type)
|
1133
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1134
|
+
@start_date = args[:start_date] if args.key?(:start_date)
|
1135
|
+
@end_date = args[:end_date] if args.key?(:end_date)
|
1136
|
+
@current = args[:current] if args.key?(:current)
|
1137
|
+
@name = args[:name] if args.key?(:name)
|
1138
|
+
@phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
|
1139
|
+
@department = args[:department] if args.key?(:department)
|
1140
|
+
@title = args[:title] if args.key?(:title)
|
1141
|
+
@job_description = args[:job_description] if args.key?(:job_description)
|
1142
|
+
@symbol = args[:symbol] if args.key?(:symbol)
|
1143
|
+
@domain = args[:domain] if args.key?(:domain)
|
1144
|
+
@location = args[:location] if args.key?(:location)
|
1103
1145
|
end
|
1104
1146
|
end
|
1105
1147
|
|
@@ -1107,95 +1149,65 @@ module Google
|
|
1107
1149
|
class Occupation
|
1108
1150
|
include Google::Apis::Core::Hashable
|
1109
1151
|
|
1110
|
-
# The occupation; for example, `carpenter`.
|
1111
|
-
# Corresponds to the JSON property `value`
|
1112
|
-
# @return [String]
|
1113
|
-
attr_accessor :value
|
1114
|
-
|
1115
1152
|
# Metadata about a field.
|
1116
1153
|
# Corresponds to the JSON property `metadata`
|
1117
1154
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1118
1155
|
attr_accessor :metadata
|
1119
1156
|
|
1157
|
+
# The occupation; for example, `carpenter`.
|
1158
|
+
# Corresponds to the JSON property `value`
|
1159
|
+
# @return [String]
|
1160
|
+
attr_accessor :value
|
1161
|
+
|
1120
1162
|
def initialize(**args)
|
1121
1163
|
update!(**args)
|
1122
1164
|
end
|
1123
1165
|
|
1124
1166
|
# Update properties of this object
|
1125
1167
|
def update!(**args)
|
1126
|
-
@value = args[:value] if args.key?(:value)
|
1127
1168
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1169
|
+
@value = args[:value] if args.key?(:value)
|
1128
1170
|
end
|
1129
1171
|
end
|
1130
1172
|
|
1131
|
-
#
|
1132
|
-
|
1133
|
-
class CoverPhoto
|
1173
|
+
# One of the person's interests.
|
1174
|
+
class Interest
|
1134
1175
|
include Google::Apis::Core::Hashable
|
1135
1176
|
|
1136
|
-
# True if the cover photo is the default cover photo;
|
1137
|
-
# false if the cover photo is a user-provided cover photo.
|
1138
|
-
# Corresponds to the JSON property `default`
|
1139
|
-
# @return [Boolean]
|
1140
|
-
attr_accessor :default
|
1141
|
-
alias_method :default?, :default
|
1142
|
-
|
1143
|
-
# The URL of the cover photo.
|
1144
|
-
# Corresponds to the JSON property `url`
|
1145
|
-
# @return [String]
|
1146
|
-
attr_accessor :url
|
1147
|
-
|
1148
1177
|
# Metadata about a field.
|
1149
1178
|
# Corresponds to the JSON property `metadata`
|
1150
1179
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1151
1180
|
attr_accessor :metadata
|
1152
1181
|
|
1182
|
+
# The interest; for example, `stargazing`.
|
1183
|
+
# Corresponds to the JSON property `value`
|
1184
|
+
# @return [String]
|
1185
|
+
attr_accessor :value
|
1186
|
+
|
1153
1187
|
def initialize(**args)
|
1154
1188
|
update!(**args)
|
1155
1189
|
end
|
1156
1190
|
|
1157
1191
|
# Update properties of this object
|
1158
1192
|
def update!(**args)
|
1159
|
-
@default = args[:default] if args.key?(:default)
|
1160
|
-
@url = args[:url] if args.key?(:url)
|
1161
1193
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1194
|
+
@value = args[:value] if args.key?(:value)
|
1162
1195
|
end
|
1163
1196
|
end
|
1164
1197
|
|
1165
|
-
# A person
|
1166
|
-
class
|
1198
|
+
# A skill that the person has.
|
1199
|
+
class Skill
|
1167
1200
|
include Google::Apis::Core::Hashable
|
1168
1201
|
|
1169
|
-
# The URL.
|
1170
|
-
# Corresponds to the JSON property `value`
|
1171
|
-
# @return [String]
|
1172
|
-
attr_accessor :value
|
1173
|
-
|
1174
|
-
# The read-only type of the URL translated and formatted in the viewer's
|
1175
|
-
# account locale or the `Accept-Language` HTTP header locale.
|
1176
|
-
# Corresponds to the JSON property `formattedType`
|
1177
|
-
# @return [String]
|
1178
|
-
attr_accessor :formatted_type
|
1179
|
-
|
1180
1202
|
# Metadata about a field.
|
1181
1203
|
# Corresponds to the JSON property `metadata`
|
1182
1204
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1183
1205
|
attr_accessor :metadata
|
1184
1206
|
|
1185
|
-
# The
|
1186
|
-
#
|
1187
|
-
# * `home`
|
1188
|
-
# * `work`
|
1189
|
-
# * `blog`
|
1190
|
-
# * `profile`
|
1191
|
-
# * `homePage`
|
1192
|
-
# * `ftp`
|
1193
|
-
# * `reservations`
|
1194
|
-
# * `appInstallPage`: website for a Google+ application.
|
1195
|
-
# * `other`
|
1196
|
-
# Corresponds to the JSON property `type`
|
1207
|
+
# The skill; for example, `underwater basket weaving`.
|
1208
|
+
# Corresponds to the JSON property `value`
|
1197
1209
|
# @return [String]
|
1198
|
-
attr_accessor :
|
1210
|
+
attr_accessor :value
|
1199
1211
|
|
1200
1212
|
def initialize(**args)
|
1201
1213
|
update!(**args)
|
@@ -1203,10 +1215,8 @@ module Google
|
|
1203
1215
|
|
1204
1216
|
# Update properties of this object
|
1205
1217
|
def update!(**args)
|
1206
|
-
@value = args[:value] if args.key?(:value)
|
1207
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1208
1218
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1209
|
-
@
|
1219
|
+
@value = args[:value] if args.key?(:value)
|
1210
1220
|
end
|
1211
1221
|
end
|
1212
1222
|
|
@@ -1214,45 +1224,90 @@ module Google
|
|
1214
1224
|
class BraggingRights
|
1215
1225
|
include Google::Apis::Core::Hashable
|
1216
1226
|
|
1227
|
+
# Metadata about a field.
|
1228
|
+
# Corresponds to the JSON property `metadata`
|
1229
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1230
|
+
attr_accessor :metadata
|
1231
|
+
|
1217
1232
|
# The bragging rights; for example, `climbed mount everest`.
|
1218
1233
|
# Corresponds to the JSON property `value`
|
1219
1234
|
# @return [String]
|
1220
1235
|
attr_accessor :value
|
1221
1236
|
|
1237
|
+
def initialize(**args)
|
1238
|
+
update!(**args)
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
# Update properties of this object
|
1242
|
+
def update!(**args)
|
1243
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1244
|
+
@value = args[:value] if args.key?(:value)
|
1245
|
+
end
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
# A person's relation to another person.
|
1249
|
+
class Relation
|
1250
|
+
include Google::Apis::Core::Hashable
|
1251
|
+
|
1222
1252
|
# Metadata about a field.
|
1223
1253
|
# Corresponds to the JSON property `metadata`
|
1224
1254
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1225
1255
|
attr_accessor :metadata
|
1226
1256
|
|
1257
|
+
# The name of the other person this relation refers to.
|
1258
|
+
# Corresponds to the JSON property `person`
|
1259
|
+
# @return [String]
|
1260
|
+
attr_accessor :person
|
1261
|
+
|
1262
|
+
# The person's relation to the other person. The type can be custom or
|
1263
|
+
# predefined. Possible values include, but are not limited to, the following
|
1264
|
+
# values: * `spouse` * `child` * `mother` * `father` * `parent` * `brother` * `
|
1265
|
+
# sister` * `friend` * `relative` * `domesticPartner` * `manager` * `assistant` *
|
1266
|
+
# `referredBy` * `partner`
|
1267
|
+
# Corresponds to the JSON property `type`
|
1268
|
+
# @return [String]
|
1269
|
+
attr_accessor :type
|
1270
|
+
|
1271
|
+
# The type of the relation translated and formatted in the viewer's account
|
1272
|
+
# locale or the locale specified in the Accept-Language HTTP header.
|
1273
|
+
# Corresponds to the JSON property `formattedType`
|
1274
|
+
# @return [String]
|
1275
|
+
attr_accessor :formatted_type
|
1276
|
+
|
1227
1277
|
def initialize(**args)
|
1228
1278
|
update!(**args)
|
1229
1279
|
end
|
1230
1280
|
|
1231
1281
|
# Update properties of this object
|
1232
1282
|
def update!(**args)
|
1233
|
-
@value = args[:value] if args.key?(:value)
|
1234
1283
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1284
|
+
@person = args[:person] if args.key?(:person)
|
1285
|
+
@type = args[:type] if args.key?(:type)
|
1286
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1235
1287
|
end
|
1236
1288
|
end
|
1237
1289
|
|
1238
|
-
#
|
1239
|
-
class
|
1290
|
+
# The kind of relationship the person is looking for.
|
1291
|
+
class RelationshipInterest
|
1240
1292
|
include Google::Apis::Core::Hashable
|
1241
1293
|
|
1242
|
-
#
|
1243
|
-
# Corresponds to the JSON property `
|
1244
|
-
# @return [
|
1245
|
-
attr_accessor :
|
1294
|
+
# Metadata about a field.
|
1295
|
+
# Corresponds to the JSON property `metadata`
|
1296
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1297
|
+
attr_accessor :metadata
|
1246
1298
|
|
1247
|
-
# The
|
1248
|
-
#
|
1299
|
+
# The kind of relationship the person is looking for. The value can be custom or
|
1300
|
+
# predefined. Possible values include, but are not limited to, the following
|
1301
|
+
# values: * `friend` * `date` * `relationship` * `networking`
|
1302
|
+
# Corresponds to the JSON property `value`
|
1249
1303
|
# @return [String]
|
1250
|
-
attr_accessor :
|
1304
|
+
attr_accessor :value
|
1251
1305
|
|
1252
|
-
# The
|
1253
|
-
#
|
1254
|
-
#
|
1255
|
-
|
1306
|
+
# The value of the relationship interest translated and formatted in the viewer'
|
1307
|
+
# s account locale or the locale specified in the Accept-Language HTTP header.
|
1308
|
+
# Corresponds to the JSON property `formattedValue`
|
1309
|
+
# @return [String]
|
1310
|
+
attr_accessor :formatted_value
|
1256
1311
|
|
1257
1312
|
def initialize(**args)
|
1258
1313
|
update!(**args)
|
@@ -1260,40 +1315,34 @@ module Google
|
|
1260
1315
|
|
1261
1316
|
# Update properties of this object
|
1262
1317
|
def update!(**args)
|
1263
|
-
@
|
1264
|
-
@
|
1265
|
-
@
|
1318
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1319
|
+
@value = args[:value] if args.key?(:value)
|
1320
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
1266
1321
|
end
|
1267
1322
|
end
|
1268
1323
|
|
1269
|
-
# A person's
|
1270
|
-
class
|
1324
|
+
# A person's relationship status.
|
1325
|
+
class RelationshipStatus
|
1271
1326
|
include Google::Apis::Core::Hashable
|
1272
1327
|
|
1273
|
-
# The email address.
|
1274
|
-
# Corresponds to the JSON property `value`
|
1275
|
-
# @return [String]
|
1276
|
-
attr_accessor :value
|
1277
|
-
|
1278
|
-
# The read-only type of the email address translated and formatted in the
|
1279
|
-
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
1280
|
-
# Corresponds to the JSON property `formattedType`
|
1281
|
-
# @return [String]
|
1282
|
-
attr_accessor :formatted_type
|
1283
|
-
|
1284
1328
|
# Metadata about a field.
|
1285
1329
|
# Corresponds to the JSON property `metadata`
|
1286
1330
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1287
1331
|
attr_accessor :metadata
|
1288
1332
|
|
1289
|
-
# The
|
1290
|
-
#
|
1291
|
-
# * `
|
1292
|
-
# * `
|
1293
|
-
#
|
1294
|
-
# Corresponds to the JSON property `type`
|
1333
|
+
# The relationship status. The value can be custom or predefined. Possible
|
1334
|
+
# values include, but are not limited to, the following: * `single` * `
|
1335
|
+
# inARelationship` * `engaged` * `married` * `itsComplicated` * `
|
1336
|
+
# openRelationship` * `widowed` * `inDomesticPartnership` * `inCivilUnion`
|
1337
|
+
# Corresponds to the JSON property `value`
|
1295
1338
|
# @return [String]
|
1296
|
-
attr_accessor :
|
1339
|
+
attr_accessor :value
|
1340
|
+
|
1341
|
+
# The read-only value of the relationship status translated and formatted in the
|
1342
|
+
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
1343
|
+
# Corresponds to the JSON property `formattedValue`
|
1344
|
+
# @return [String]
|
1345
|
+
attr_accessor :formatted_value
|
1297
1346
|
|
1298
1347
|
def initialize(**args)
|
1299
1348
|
update!(**args)
|
@@ -1301,57 +1350,30 @@ module Google
|
|
1301
1350
|
|
1302
1351
|
# Update properties of this object
|
1303
1352
|
def update!(**args)
|
1304
|
-
@value = args[:value] if args.key?(:value)
|
1305
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1306
1353
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1307
|
-
@
|
1354
|
+
@value = args[:value] if args.key?(:value)
|
1355
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
1308
1356
|
end
|
1309
1357
|
end
|
1310
1358
|
|
1311
|
-
# A person's
|
1312
|
-
class
|
1359
|
+
# A person's membership in a group.
|
1360
|
+
class Membership
|
1313
1361
|
include Google::Apis::Core::Hashable
|
1314
1362
|
|
1315
|
-
# The phone number.
|
1316
|
-
# Corresponds to the JSON property `value`
|
1317
|
-
# @return [String]
|
1318
|
-
attr_accessor :value
|
1319
|
-
|
1320
|
-
# The read-only type of the phone number translated and formatted in the
|
1321
|
-
# viewer's account locale or the the `Accept-Language` HTTP header locale.
|
1322
|
-
# Corresponds to the JSON property `formattedType`
|
1323
|
-
# @return [String]
|
1324
|
-
attr_accessor :formatted_type
|
1325
|
-
|
1326
1363
|
# Metadata about a field.
|
1327
1364
|
# Corresponds to the JSON property `metadata`
|
1328
1365
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1329
1366
|
attr_accessor :metadata
|
1330
1367
|
|
1331
|
-
#
|
1332
|
-
#
|
1333
|
-
#
|
1334
|
-
|
1335
|
-
# * `mobile`
|
1336
|
-
# * `homeFax`
|
1337
|
-
# * `workFax`
|
1338
|
-
# * `otherFax`
|
1339
|
-
# * `pager`
|
1340
|
-
# * `workMobile`
|
1341
|
-
# * `workPager`
|
1342
|
-
# * `main`
|
1343
|
-
# * `googleVoice`
|
1344
|
-
# * `other`
|
1345
|
-
# Corresponds to the JSON property `type`
|
1346
|
-
# @return [String]
|
1347
|
-
attr_accessor :type
|
1368
|
+
# A Google contact group membership.
|
1369
|
+
# Corresponds to the JSON property `contactGroupMembership`
|
1370
|
+
# @return [Google::Apis::PeopleV1::ContactGroupMembership]
|
1371
|
+
attr_accessor :contact_group_membership
|
1348
1372
|
|
1349
|
-
#
|
1350
|
-
#
|
1351
|
-
#
|
1352
|
-
|
1353
|
-
# @return [String]
|
1354
|
-
attr_accessor :canonical_form
|
1373
|
+
# A Google Apps Domain membership.
|
1374
|
+
# Corresponds to the JSON property `domainMembership`
|
1375
|
+
# @return [Google::Apis::PeopleV1::DomainMembership]
|
1376
|
+
attr_accessor :domain_membership
|
1355
1377
|
|
1356
1378
|
def initialize(**args)
|
1357
1379
|
update!(**args)
|
@@ -1359,39 +1381,23 @@ module Google
|
|
1359
1381
|
|
1360
1382
|
# Update properties of this object
|
1361
1383
|
def update!(**args)
|
1362
|
-
@value = args[:value] if args.key?(:value)
|
1363
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1364
1384
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1365
|
-
@
|
1366
|
-
@
|
1385
|
+
@contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
|
1386
|
+
@domain_membership = args[:domain_membership] if args.key?(:domain_membership)
|
1367
1387
|
end
|
1368
1388
|
end
|
1369
1389
|
|
1370
|
-
#
|
1371
|
-
|
1372
|
-
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
1373
|
-
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
1374
|
-
# month where the day is not significant. The year may be 0 to represent a month
|
1375
|
-
# and day independent of year; for example, anniversary date.
|
1376
|
-
class Date
|
1390
|
+
# A Google contact group membership.
|
1391
|
+
class ContactGroupMembership
|
1377
1392
|
include Google::Apis::Core::Hashable
|
1378
1393
|
|
1379
|
-
#
|
1380
|
-
#
|
1381
|
-
#
|
1382
|
-
|
1383
|
-
|
1384
|
-
#
|
1385
|
-
|
1386
|
-
# Corresponds to the JSON property `day`
|
1387
|
-
# @return [Fixnum]
|
1388
|
-
attr_accessor :day
|
1389
|
-
|
1390
|
-
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
1391
|
-
# a year.
|
1392
|
-
# Corresponds to the JSON property `year`
|
1393
|
-
# @return [Fixnum]
|
1394
|
-
attr_accessor :year
|
1394
|
+
# The contact group ID for the contact group membership. The contact group ID
|
1395
|
+
# can be custom or predefined. Possible values include, but are not limited to,
|
1396
|
+
# the following: * `myContacts` * `starred` * A numerical ID for user-created
|
1397
|
+
# groups.
|
1398
|
+
# Corresponds to the JSON property `contactGroupId`
|
1399
|
+
# @return [String]
|
1400
|
+
attr_accessor :contact_group_id
|
1395
1401
|
|
1396
1402
|
def initialize(**args)
|
1397
1403
|
update!(**args)
|
@@ -1399,9 +1405,7 @@ module Google
|
|
1399
1405
|
|
1400
1406
|
# Update properties of this object
|
1401
1407
|
def update!(**args)
|
1402
|
-
@
|
1403
|
-
@day = args[:day] if args.key?(:day)
|
1404
|
-
@year = args[:year] if args.key?(:year)
|
1408
|
+
@contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
|
1405
1409
|
end
|
1406
1410
|
end
|
1407
1411
|
|
@@ -1425,19 +1429,14 @@ module Google
|
|
1425
1429
|
end
|
1426
1430
|
end
|
1427
1431
|
|
1428
|
-
#
|
1429
|
-
class
|
1432
|
+
#
|
1433
|
+
class GetPeopleResponse
|
1430
1434
|
include Google::Apis::Core::Hashable
|
1431
1435
|
|
1432
|
-
# The
|
1433
|
-
# Corresponds to the JSON property `
|
1434
|
-
# @return [
|
1435
|
-
attr_accessor :
|
1436
|
-
|
1437
|
-
# Metadata about a field.
|
1438
|
-
# Corresponds to the JSON property `metadata`
|
1439
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1440
|
-
attr_accessor :metadata
|
1436
|
+
# The response for each requested resource name.
|
1437
|
+
# Corresponds to the JSON property `responses`
|
1438
|
+
# @return [Array<Google::Apis::PeopleV1::PersonResponse>]
|
1439
|
+
attr_accessor :responses
|
1441
1440
|
|
1442
1441
|
def initialize(**args)
|
1443
1442
|
update!(**args)
|
@@ -1445,51 +1444,35 @@ module Google
|
|
1445
1444
|
|
1446
1445
|
# Update properties of this object
|
1447
1446
|
def update!(**args)
|
1448
|
-
@
|
1449
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
1447
|
+
@responses = args[:responses] if args.key?(:responses)
|
1450
1448
|
end
|
1451
1449
|
end
|
1452
1450
|
|
1453
|
-
#
|
1454
|
-
class
|
1451
|
+
# The response for a single person
|
1452
|
+
class PersonResponse
|
1455
1453
|
include Google::Apis::Core::Hashable
|
1456
1454
|
|
1457
|
-
#
|
1458
|
-
#
|
1459
|
-
#
|
1460
|
-
|
1461
|
-
attr_accessor :formatted_type
|
1455
|
+
# [HTTP 1.1 status code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
|
1456
|
+
# Corresponds to the JSON property `httpStatusCode`
|
1457
|
+
# @return [Fixnum]
|
1458
|
+
attr_accessor :http_status_code
|
1462
1459
|
|
1463
|
-
#
|
1460
|
+
# Information about a person merged from various data sources such as the
|
1461
|
+
# authenticated user's contacts and profile data. Fields other than IDs,
|
1462
|
+
# metadata, and group memberships are user-edited. Most fields can have multiple
|
1463
|
+
# items. The items in a field have no guaranteed order, but each non-empty field
|
1464
|
+
# is guaranteed to have exactly one field with `metadata.primary` set to true.
|
1464
1465
|
# Corresponds to the JSON property `person`
|
1465
|
-
# @return [
|
1466
|
+
# @return [Google::Apis::PeopleV1::Person]
|
1466
1467
|
attr_accessor :person
|
1467
1468
|
|
1468
|
-
#
|
1469
|
-
#
|
1470
|
-
#
|
1471
|
-
|
1472
|
-
|
1473
|
-
# The person's relation to the other person. The type can be custom or
|
1474
|
-
# predefined.
|
1475
|
-
# Possible values include, but are not limited to, the following values:
|
1476
|
-
# * `spouse`
|
1477
|
-
# * `child`
|
1478
|
-
# * `mother`
|
1479
|
-
# * `father`
|
1480
|
-
# * `parent`
|
1481
|
-
# * `brother`
|
1482
|
-
# * `sister`
|
1483
|
-
# * `friend`
|
1484
|
-
# * `relative`
|
1485
|
-
# * `domesticPartner`
|
1486
|
-
# * `manager`
|
1487
|
-
# * `assistant`
|
1488
|
-
# * `referredBy`
|
1489
|
-
# * `partner`
|
1490
|
-
# Corresponds to the JSON property `type`
|
1469
|
+
# The original requested resource name. May be different than the resource name
|
1470
|
+
# on the returned person. The resource name can change when adding or removing
|
1471
|
+
# fields that link a contact and profile such as a verified email, verified
|
1472
|
+
# phone number, or a profile URL.
|
1473
|
+
# Corresponds to the JSON property `requestedResourceName`
|
1491
1474
|
# @return [String]
|
1492
|
-
attr_accessor :
|
1475
|
+
attr_accessor :requested_resource_name
|
1493
1476
|
|
1494
1477
|
def initialize(**args)
|
1495
1478
|
update!(**args)
|
@@ -1497,77 +1480,30 @@ module Google
|
|
1497
1480
|
|
1498
1481
|
# Update properties of this object
|
1499
1482
|
def update!(**args)
|
1500
|
-
@
|
1483
|
+
@http_status_code = args[:http_status_code] if args.key?(:http_status_code)
|
1501
1484
|
@person = args[:person] if args.key?(:person)
|
1502
|
-
@
|
1503
|
-
@type = args[:type] if args.key?(:type)
|
1485
|
+
@requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
|
1504
1486
|
end
|
1505
1487
|
end
|
1506
1488
|
|
1507
|
-
#
|
1508
|
-
class
|
1489
|
+
#
|
1490
|
+
class ListConnectionsResponse
|
1509
1491
|
include Google::Apis::Core::Hashable
|
1510
1492
|
|
1511
|
-
# The
|
1512
|
-
# Corresponds to the JSON property `
|
1513
|
-
# @return [
|
1514
|
-
attr_accessor :
|
1515
|
-
|
1516
|
-
# The given name.
|
1517
|
-
# Corresponds to the JSON property `givenName`
|
1518
|
-
# @return [String]
|
1519
|
-
attr_accessor :given_name
|
1520
|
-
|
1521
|
-
# The middle name(s) spelled as they sound.
|
1522
|
-
# Corresponds to the JSON property `phoneticMiddleName`
|
1523
|
-
# @return [String]
|
1524
|
-
attr_accessor :phonetic_middle_name
|
1525
|
-
|
1526
|
-
# The middle name(s).
|
1527
|
-
# Corresponds to the JSON property `middleName`
|
1528
|
-
# @return [String]
|
1529
|
-
attr_accessor :middle_name
|
1530
|
-
|
1531
|
-
# The given name spelled as it sounds.
|
1532
|
-
# Corresponds to the JSON property `phoneticGivenName`
|
1533
|
-
# @return [String]
|
1534
|
-
attr_accessor :phonetic_given_name
|
1535
|
-
|
1536
|
-
# The honorific prefixes, such as `Mrs.` or `Dr.`
|
1537
|
-
# Corresponds to the JSON property `honorificPrefix`
|
1538
|
-
# @return [String]
|
1539
|
-
attr_accessor :honorific_prefix
|
1540
|
-
|
1541
|
-
# The honorific prefixes spelled as they sound.
|
1542
|
-
# Corresponds to the JSON property `phoneticHonorificPrefix`
|
1543
|
-
# @return [String]
|
1544
|
-
attr_accessor :phonetic_honorific_prefix
|
1545
|
-
|
1546
|
-
# Metadata about a field.
|
1547
|
-
# Corresponds to the JSON property `metadata`
|
1548
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1549
|
-
attr_accessor :metadata
|
1550
|
-
|
1551
|
-
# The honorific suffixes spelled as they sound.
|
1552
|
-
# Corresponds to the JSON property `phoneticHonorificSuffix`
|
1553
|
-
# @return [String]
|
1554
|
-
attr_accessor :phonetic_honorific_suffix
|
1555
|
-
|
1556
|
-
# The family name.
|
1557
|
-
# Corresponds to the JSON property `familyName`
|
1558
|
-
# @return [String]
|
1559
|
-
attr_accessor :family_name
|
1493
|
+
# The list of people that the requestor is connected to.
|
1494
|
+
# Corresponds to the JSON property `connections`
|
1495
|
+
# @return [Array<Google::Apis::PeopleV1::Person>]
|
1496
|
+
attr_accessor :connections
|
1560
1497
|
|
1561
|
-
# The
|
1562
|
-
#
|
1563
|
-
# Corresponds to the JSON property `displayName`
|
1498
|
+
# The token that can be used to retrieve the next page of results.
|
1499
|
+
# Corresponds to the JSON property `nextPageToken`
|
1564
1500
|
# @return [String]
|
1565
|
-
attr_accessor :
|
1501
|
+
attr_accessor :next_page_token
|
1566
1502
|
|
1567
|
-
# The
|
1568
|
-
# Corresponds to the JSON property `
|
1503
|
+
# The token that can be used to retrieve changes since the last request.
|
1504
|
+
# Corresponds to the JSON property `nextSyncToken`
|
1569
1505
|
# @return [String]
|
1570
|
-
attr_accessor :
|
1506
|
+
attr_accessor :next_sync_token
|
1571
1507
|
|
1572
1508
|
def initialize(**args)
|
1573
1509
|
update!(**args)
|
@@ -1575,18 +1511,9 @@ module Google
|
|
1575
1511
|
|
1576
1512
|
# Update properties of this object
|
1577
1513
|
def update!(**args)
|
1578
|
-
@
|
1579
|
-
@
|
1580
|
-
@
|
1581
|
-
@middle_name = args[:middle_name] if args.key?(:middle_name)
|
1582
|
-
@phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
|
1583
|
-
@honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
|
1584
|
-
@phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
|
1585
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
1586
|
-
@phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
|
1587
|
-
@family_name = args[:family_name] if args.key?(:family_name)
|
1588
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
1589
|
-
@honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
|
1514
|
+
@connections = args[:connections] if args.key?(:connections)
|
1515
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1516
|
+
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
|
1590
1517
|
end
|
1591
1518
|
end
|
1592
1519
|
end
|