google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -25,10 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/people/
|
26
26
|
module PeopleV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
29
|
-
|
30
|
-
# Know the list of people in your circles, your age range, and language
|
31
|
-
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
28
|
+
REVISION = '20170711'
|
32
29
|
|
33
30
|
# View your basic profile info
|
34
31
|
AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
|
@@ -42,17 +39,20 @@ module Google
|
|
42
39
|
# View your street addresses
|
43
40
|
AUTH_USER_ADDRESSES_READ = 'https://www.googleapis.com/auth/user.addresses.read'
|
44
41
|
|
45
|
-
# View your email address
|
46
|
-
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
47
|
-
|
48
42
|
# View your phone numbers
|
49
43
|
AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read'
|
50
44
|
|
45
|
+
# View your email address
|
46
|
+
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
47
|
+
|
51
48
|
# View your contacts
|
52
49
|
AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
|
53
50
|
|
54
51
|
# View your complete date of birth
|
55
52
|
AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read'
|
53
|
+
|
54
|
+
# Know the list of people in your circles, your age range, and language
|
55
|
+
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
@@ -22,6 +22,394 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PeopleV1
|
24
24
|
|
25
|
+
# A person's read-only relationship status.
|
26
|
+
class RelationshipStatus
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Metadata about a field.
|
30
|
+
# Corresponds to the JSON property `metadata`
|
31
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
32
|
+
attr_accessor :metadata
|
33
|
+
|
34
|
+
# The relationship status. The value can be custom or predefined.
|
35
|
+
# Possible values include, but are not limited to, the following:
|
36
|
+
# * `single`
|
37
|
+
# * `inARelationship`
|
38
|
+
# * `engaged`
|
39
|
+
# * `married`
|
40
|
+
# * `itsComplicated`
|
41
|
+
# * `openRelationship`
|
42
|
+
# * `widowed`
|
43
|
+
# * `inDomesticPartnership`
|
44
|
+
# * `inCivilUnion`
|
45
|
+
# Corresponds to the JSON property `value`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :value
|
48
|
+
|
49
|
+
# The read-only value of the relationship status translated and formatted in
|
50
|
+
# the viewer's account locale or the `Accept-Language` HTTP header locale.
|
51
|
+
# Corresponds to the JSON property `formattedValue`
|
52
|
+
# @return [String]
|
53
|
+
attr_accessor :formatted_value
|
54
|
+
|
55
|
+
def initialize(**args)
|
56
|
+
update!(**args)
|
57
|
+
end
|
58
|
+
|
59
|
+
# Update properties of this object
|
60
|
+
def update!(**args)
|
61
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
62
|
+
@value = args[:value] if args.key?(:value)
|
63
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# A person's bragging rights.
|
68
|
+
class BraggingRights
|
69
|
+
include Google::Apis::Core::Hashable
|
70
|
+
|
71
|
+
# The bragging rights; for example, `climbed mount everest`.
|
72
|
+
# Corresponds to the JSON property `value`
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :value
|
75
|
+
|
76
|
+
# Metadata about a field.
|
77
|
+
# Corresponds to the JSON property `metadata`
|
78
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
79
|
+
attr_accessor :metadata
|
80
|
+
|
81
|
+
def initialize(**args)
|
82
|
+
update!(**args)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Update properties of this object
|
86
|
+
def update!(**args)
|
87
|
+
@value = args[:value] if args.key?(:value)
|
88
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# A person's past or current organization. Overlapping date ranges are
|
93
|
+
# permitted.
|
94
|
+
class Organization
|
95
|
+
include Google::Apis::Core::Hashable
|
96
|
+
|
97
|
+
# Metadata about a field.
|
98
|
+
# Corresponds to the JSON property `metadata`
|
99
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
100
|
+
attr_accessor :metadata
|
101
|
+
|
102
|
+
# The location of the organization office the person works at.
|
103
|
+
# Corresponds to the JSON property `location`
|
104
|
+
# @return [String]
|
105
|
+
attr_accessor :location
|
106
|
+
|
107
|
+
# The person's job title at the organization.
|
108
|
+
# Corresponds to the JSON property `title`
|
109
|
+
# @return [String]
|
110
|
+
attr_accessor :title
|
111
|
+
|
112
|
+
# True if the organization is the person's current organization;
|
113
|
+
# false if the organization is a past organization.
|
114
|
+
# Corresponds to the JSON property `current`
|
115
|
+
# @return [Boolean]
|
116
|
+
attr_accessor :current
|
117
|
+
alias_method :current?, :current
|
118
|
+
|
119
|
+
# Represents a whole calendar date, for example a date of birth. The time
|
120
|
+
# of day and time zone are either specified elsewhere or are not
|
121
|
+
# significant. The date is relative to the
|
122
|
+
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
123
|
+
# Proleptic_Gregorian_calendar).
|
124
|
+
# The day may be 0 to represent a year and month where the day is not
|
125
|
+
# significant. The year may be 0 to represent a month and day independent
|
126
|
+
# of year; for example, anniversary date.
|
127
|
+
# Corresponds to the JSON property `startDate`
|
128
|
+
# @return [Google::Apis::PeopleV1::Date]
|
129
|
+
attr_accessor :start_date
|
130
|
+
|
131
|
+
# The read-only type of the organization translated and formatted in the
|
132
|
+
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
133
|
+
# Corresponds to the JSON property `formattedType`
|
134
|
+
# @return [String]
|
135
|
+
attr_accessor :formatted_type
|
136
|
+
|
137
|
+
# The domain name associated with the organization; for example, `google.com`.
|
138
|
+
# Corresponds to the JSON property `domain`
|
139
|
+
# @return [String]
|
140
|
+
attr_accessor :domain
|
141
|
+
|
142
|
+
# The person's department at the organization.
|
143
|
+
# Corresponds to the JSON property `department`
|
144
|
+
# @return [String]
|
145
|
+
attr_accessor :department
|
146
|
+
|
147
|
+
# The type of the organization. The type can be custom or predefined.
|
148
|
+
# Possible values include, but are not limited to, the following:
|
149
|
+
# * `work`
|
150
|
+
# * `school`
|
151
|
+
# Corresponds to the JSON property `type`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :type
|
154
|
+
|
155
|
+
# The phonetic name of the organization.
|
156
|
+
# Corresponds to the JSON property `phoneticName`
|
157
|
+
# @return [String]
|
158
|
+
attr_accessor :phonetic_name
|
159
|
+
|
160
|
+
# The person's job description at the organization.
|
161
|
+
# Corresponds to the JSON property `jobDescription`
|
162
|
+
# @return [String]
|
163
|
+
attr_accessor :job_description
|
164
|
+
|
165
|
+
# Represents a whole calendar date, for example a date of birth. The time
|
166
|
+
# of day and time zone are either specified elsewhere or are not
|
167
|
+
# significant. The date is relative to the
|
168
|
+
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
169
|
+
# Proleptic_Gregorian_calendar).
|
170
|
+
# The day may be 0 to represent a year and month where the day is not
|
171
|
+
# significant. The year may be 0 to represent a month and day independent
|
172
|
+
# of year; for example, anniversary date.
|
173
|
+
# Corresponds to the JSON property `endDate`
|
174
|
+
# @return [Google::Apis::PeopleV1::Date]
|
175
|
+
attr_accessor :end_date
|
176
|
+
|
177
|
+
# The symbol associated with the organization; for example, a stock ticker
|
178
|
+
# symbol, abbreviation, or acronym.
|
179
|
+
# Corresponds to the JSON property `symbol`
|
180
|
+
# @return [String]
|
181
|
+
attr_accessor :symbol
|
182
|
+
|
183
|
+
# The name of the organization.
|
184
|
+
# Corresponds to the JSON property `name`
|
185
|
+
# @return [String]
|
186
|
+
attr_accessor :name
|
187
|
+
|
188
|
+
def initialize(**args)
|
189
|
+
update!(**args)
|
190
|
+
end
|
191
|
+
|
192
|
+
# Update properties of this object
|
193
|
+
def update!(**args)
|
194
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
195
|
+
@location = args[:location] if args.key?(:location)
|
196
|
+
@title = args[:title] if args.key?(:title)
|
197
|
+
@current = args[:current] if args.key?(:current)
|
198
|
+
@start_date = args[:start_date] if args.key?(:start_date)
|
199
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
200
|
+
@domain = args[:domain] if args.key?(:domain)
|
201
|
+
@department = args[:department] if args.key?(:department)
|
202
|
+
@type = args[:type] if args.key?(:type)
|
203
|
+
@phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
|
204
|
+
@job_description = args[:job_description] if args.key?(:job_description)
|
205
|
+
@end_date = args[:end_date] if args.key?(:end_date)
|
206
|
+
@symbol = args[:symbol] if args.key?(:symbol)
|
207
|
+
@name = args[:name] if args.key?(:name)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
# A person's age range.
|
212
|
+
class AgeRangeType
|
213
|
+
include Google::Apis::Core::Hashable
|
214
|
+
|
215
|
+
# The age range.
|
216
|
+
# Corresponds to the JSON property `ageRange`
|
217
|
+
# @return [String]
|
218
|
+
attr_accessor :age_range
|
219
|
+
|
220
|
+
# Metadata about a field.
|
221
|
+
# Corresponds to the JSON property `metadata`
|
222
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
223
|
+
attr_accessor :metadata
|
224
|
+
|
225
|
+
def initialize(**args)
|
226
|
+
update!(**args)
|
227
|
+
end
|
228
|
+
|
229
|
+
# Update properties of this object
|
230
|
+
def update!(**args)
|
231
|
+
@age_range = args[:age_range] if args.key?(:age_range)
|
232
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# The response to a list contact groups request.
|
237
|
+
class ListContactGroupsResponse
|
238
|
+
include Google::Apis::Core::Hashable
|
239
|
+
|
240
|
+
# The token that can be used to retrieve changes since the last request.
|
241
|
+
# Corresponds to the JSON property `nextSyncToken`
|
242
|
+
# @return [String]
|
243
|
+
attr_accessor :next_sync_token
|
244
|
+
|
245
|
+
# The total number of items in the list without pagination.
|
246
|
+
# Corresponds to the JSON property `totalItems`
|
247
|
+
# @return [Fixnum]
|
248
|
+
attr_accessor :total_items
|
249
|
+
|
250
|
+
# The list of contact groups. Members of the contact groups are not
|
251
|
+
# populated.
|
252
|
+
# Corresponds to the JSON property `contactGroups`
|
253
|
+
# @return [Array<Google::Apis::PeopleV1::ContactGroup>]
|
254
|
+
attr_accessor :contact_groups
|
255
|
+
|
256
|
+
# The token that can be used to retrieve the next page of results.
|
257
|
+
# Corresponds to the JSON property `nextPageToken`
|
258
|
+
# @return [String]
|
259
|
+
attr_accessor :next_page_token
|
260
|
+
|
261
|
+
def initialize(**args)
|
262
|
+
update!(**args)
|
263
|
+
end
|
264
|
+
|
265
|
+
# Update properties of this object
|
266
|
+
def update!(**args)
|
267
|
+
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
|
268
|
+
@total_items = args[:total_items] if args.key?(:total_items)
|
269
|
+
@contact_groups = args[:contact_groups] if args.key?(:contact_groups)
|
270
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
# The response for a single person
|
275
|
+
class PersonResponse
|
276
|
+
include Google::Apis::Core::Hashable
|
277
|
+
|
278
|
+
# Information about a person merged from various data sources such as the
|
279
|
+
# authenticated user's contacts and profile data.
|
280
|
+
# Most fields can have multiple items. The items in a field have no guaranteed
|
281
|
+
# order, but each non-empty field is guaranteed to have exactly one field with
|
282
|
+
# `metadata.primary` set to true.
|
283
|
+
# Corresponds to the JSON property `person`
|
284
|
+
# @return [Google::Apis::PeopleV1::Person]
|
285
|
+
attr_accessor :person
|
286
|
+
|
287
|
+
# The `Status` type defines a logical error model that is suitable for different
|
288
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
289
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
290
|
+
# - Simple to use and understand for most users
|
291
|
+
# - Flexible enough to meet unexpected needs
|
292
|
+
# # Overview
|
293
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
294
|
+
# and error details. The error code should be an enum value of
|
295
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
296
|
+
# error message should be a developer-facing English message that helps
|
297
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
298
|
+
# error message is needed, put the localized message in the error details or
|
299
|
+
# localize it in the client. The optional error details may contain arbitrary
|
300
|
+
# information about the error. There is a predefined set of error detail types
|
301
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
302
|
+
# # Language mapping
|
303
|
+
# The `Status` message is the logical representation of the error model, but it
|
304
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
305
|
+
# exposed in different client libraries and different wire protocols, it can be
|
306
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
307
|
+
# in Java, but more likely mapped to some error codes in C.
|
308
|
+
# # Other uses
|
309
|
+
# The error model and the `Status` message can be used in a variety of
|
310
|
+
# environments, either with or without APIs, to provide a
|
311
|
+
# consistent developer experience across different environments.
|
312
|
+
# Example uses of this error model include:
|
313
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
314
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
315
|
+
# errors.
|
316
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
317
|
+
# have a `Status` message for error reporting.
|
318
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
319
|
+
# `Status` message should be used directly inside batch response, one for
|
320
|
+
# each error sub-response.
|
321
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
322
|
+
# results in its response, the status of those operations should be
|
323
|
+
# represented directly using the `Status` message.
|
324
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
325
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
326
|
+
# Corresponds to the JSON property `status`
|
327
|
+
# @return [Google::Apis::PeopleV1::Status]
|
328
|
+
attr_accessor :status
|
329
|
+
|
330
|
+
# **DEPRECATED** (Please use status instead)
|
331
|
+
# [HTTP 1.1 status code]
|
332
|
+
# (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
|
333
|
+
# Corresponds to the JSON property `httpStatusCode`
|
334
|
+
# @return [Fixnum]
|
335
|
+
attr_accessor :http_status_code
|
336
|
+
|
337
|
+
# The original requested resource name. May be different than the resource
|
338
|
+
# name on the returned person.
|
339
|
+
# The resource name can change when adding or removing fields that link a
|
340
|
+
# contact and profile such as a verified email, verified phone number, or a
|
341
|
+
# profile URL.
|
342
|
+
# Corresponds to the JSON property `requestedResourceName`
|
343
|
+
# @return [String]
|
344
|
+
attr_accessor :requested_resource_name
|
345
|
+
|
346
|
+
def initialize(**args)
|
347
|
+
update!(**args)
|
348
|
+
end
|
349
|
+
|
350
|
+
# Update properties of this object
|
351
|
+
def update!(**args)
|
352
|
+
@person = args[:person] if args.key?(:person)
|
353
|
+
@status = args[:status] if args.key?(:status)
|
354
|
+
@http_status_code = args[:http_status_code] if args.key?(:http_status_code)
|
355
|
+
@requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
# A person's relation to another person.
|
360
|
+
class Relation
|
361
|
+
include Google::Apis::Core::Hashable
|
362
|
+
|
363
|
+
# The type of the relation translated and formatted in the viewer's account
|
364
|
+
# locale or the locale specified in the Accept-Language HTTP header.
|
365
|
+
# Corresponds to the JSON property `formattedType`
|
366
|
+
# @return [String]
|
367
|
+
attr_accessor :formatted_type
|
368
|
+
|
369
|
+
# The name of the other person this relation refers to.
|
370
|
+
# Corresponds to the JSON property `person`
|
371
|
+
# @return [String]
|
372
|
+
attr_accessor :person
|
373
|
+
|
374
|
+
# The person's relation to the other person. The type can be custom or
|
375
|
+
# predefined.
|
376
|
+
# Possible values include, but are not limited to, the following values:
|
377
|
+
# * `spouse`
|
378
|
+
# * `child`
|
379
|
+
# * `mother`
|
380
|
+
# * `father`
|
381
|
+
# * `parent`
|
382
|
+
# * `brother`
|
383
|
+
# * `sister`
|
384
|
+
# * `friend`
|
385
|
+
# * `relative`
|
386
|
+
# * `domesticPartner`
|
387
|
+
# * `manager`
|
388
|
+
# * `assistant`
|
389
|
+
# * `referredBy`
|
390
|
+
# * `partner`
|
391
|
+
# Corresponds to the JSON property `type`
|
392
|
+
# @return [String]
|
393
|
+
attr_accessor :type
|
394
|
+
|
395
|
+
# Metadata about a field.
|
396
|
+
# Corresponds to the JSON property `metadata`
|
397
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
398
|
+
attr_accessor :metadata
|
399
|
+
|
400
|
+
def initialize(**args)
|
401
|
+
update!(**args)
|
402
|
+
end
|
403
|
+
|
404
|
+
# Update properties of this object
|
405
|
+
def update!(**args)
|
406
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
407
|
+
@person = args[:person] if args.key?(:person)
|
408
|
+
@type = args[:type] if args.key?(:type)
|
409
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
25
413
|
# A person's occupation.
|
26
414
|
class Occupation
|
27
415
|
include Google::Apis::Core::Hashable
|
@@ -47,6 +435,76 @@ module Google
|
|
47
435
|
end
|
48
436
|
end
|
49
437
|
|
438
|
+
# A contact group.
|
439
|
+
class ContactGroup
|
440
|
+
include Google::Apis::Core::Hashable
|
441
|
+
|
442
|
+
# The resource name for the contact group, assigned by the server. An ASCII
|
443
|
+
# string, in the form of `contactGroups/<contact_group_id>`.
|
444
|
+
# Corresponds to the JSON property `resourceName`
|
445
|
+
# @return [String]
|
446
|
+
attr_accessor :resource_name
|
447
|
+
|
448
|
+
# The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
|
449
|
+
# resource. Used for web cache validation.
|
450
|
+
# Corresponds to the JSON property `etag`
|
451
|
+
# @return [String]
|
452
|
+
attr_accessor :etag
|
453
|
+
|
454
|
+
# The read-only contact group type.
|
455
|
+
# Corresponds to the JSON property `groupType`
|
456
|
+
# @return [String]
|
457
|
+
attr_accessor :group_type
|
458
|
+
|
459
|
+
# The read-only name translated and formatted in the viewer's account locale
|
460
|
+
# or the `Accept-Language` HTTP header locale for system groups names.
|
461
|
+
# Group names set by the owner are the same as name.
|
462
|
+
# Corresponds to the JSON property `formattedName`
|
463
|
+
# @return [String]
|
464
|
+
attr_accessor :formatted_name
|
465
|
+
|
466
|
+
# The list of contact person resource names that are members of the contact
|
467
|
+
# group. The field is not populated for LIST requests and can only be updated
|
468
|
+
# through the
|
469
|
+
# [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify).
|
470
|
+
# Corresponds to the JSON property `memberResourceNames`
|
471
|
+
# @return [Array<String>]
|
472
|
+
attr_accessor :member_resource_names
|
473
|
+
|
474
|
+
# The contact group name set by the group owner or a system provided name
|
475
|
+
# for system groups.
|
476
|
+
# Corresponds to the JSON property `name`
|
477
|
+
# @return [String]
|
478
|
+
attr_accessor :name
|
479
|
+
|
480
|
+
# The read-only metadata about a contact group.
|
481
|
+
# Corresponds to the JSON property `metadata`
|
482
|
+
# @return [Google::Apis::PeopleV1::ContactGroupMetadata]
|
483
|
+
attr_accessor :metadata
|
484
|
+
|
485
|
+
# The total number of contacts in the group irrespective of max members in
|
486
|
+
# specified in the request.
|
487
|
+
# Corresponds to the JSON property `memberCount`
|
488
|
+
# @return [Fixnum]
|
489
|
+
attr_accessor :member_count
|
490
|
+
|
491
|
+
def initialize(**args)
|
492
|
+
update!(**args)
|
493
|
+
end
|
494
|
+
|
495
|
+
# Update properties of this object
|
496
|
+
def update!(**args)
|
497
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
498
|
+
@etag = args[:etag] if args.key?(:etag)
|
499
|
+
@group_type = args[:group_type] if args.key?(:group_type)
|
500
|
+
@formatted_name = args[:formatted_name] if args.key?(:formatted_name)
|
501
|
+
@member_resource_names = args[:member_resource_names] if args.key?(:member_resource_names)
|
502
|
+
@name = args[:name] if args.key?(:name)
|
503
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
504
|
+
@member_count = args[:member_count] if args.key?(:member_count)
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
50
508
|
# Information about a person merged from various data sources such as the
|
51
509
|
# authenticated user's contacts and profile data.
|
52
510
|
# Most fields can have multiple items. The items in a field have no guaranteed
|
@@ -55,21 +513,16 @@ module Google
|
|
55
513
|
class Person
|
56
514
|
include Google::Apis::Core::Hashable
|
57
515
|
|
58
|
-
# The person's
|
59
|
-
# Corresponds to the JSON property `
|
60
|
-
# @return [Array<Google::Apis::PeopleV1::
|
61
|
-
attr_accessor :
|
516
|
+
# The person's names.
|
517
|
+
# Corresponds to the JSON property `names`
|
518
|
+
# @return [Array<Google::Apis::PeopleV1::Name>]
|
519
|
+
attr_accessor :names
|
62
520
|
|
63
521
|
# The person's relations.
|
64
522
|
# Corresponds to the JSON property `relations`
|
65
523
|
# @return [Array<Google::Apis::PeopleV1::Relation>]
|
66
524
|
attr_accessor :relations
|
67
525
|
|
68
|
-
# The person's names.
|
69
|
-
# Corresponds to the JSON property `names`
|
70
|
-
# @return [Array<Google::Apis::PeopleV1::Name>]
|
71
|
-
attr_accessor :names
|
72
|
-
|
73
526
|
# The person's occupations.
|
74
527
|
# Corresponds to the JSON property `occupations`
|
75
528
|
# @return [Array<Google::Apis::PeopleV1::Occupation>]
|
@@ -142,7 +595,7 @@ module Google
|
|
142
595
|
# @return [Array<Google::Apis::PeopleV1::Photo>]
|
143
596
|
attr_accessor :photos
|
144
597
|
|
145
|
-
# **DEPRECATED(Please use person.ageRanges instead)**
|
598
|
+
# **DEPRECATED** (Please use `person.ageRanges` instead)**
|
146
599
|
# The person's read-only age range.
|
147
600
|
# Corresponds to the JSON property `ageRange`
|
148
601
|
# @return [String]
|
@@ -208,15 +661,19 @@ module Google
|
|
208
661
|
# @return [Array<Google::Apis::PeopleV1::Url>]
|
209
662
|
attr_accessor :urls
|
210
663
|
|
664
|
+
# The person's nicknames.
|
665
|
+
# Corresponds to the JSON property `nicknames`
|
666
|
+
# @return [Array<Google::Apis::PeopleV1::Nickname>]
|
667
|
+
attr_accessor :nicknames
|
668
|
+
|
211
669
|
def initialize(**args)
|
212
670
|
update!(**args)
|
213
671
|
end
|
214
672
|
|
215
673
|
# Update properties of this object
|
216
674
|
def update!(**args)
|
217
|
-
@nicknames = args[:nicknames] if args.key?(:nicknames)
|
218
|
-
@relations = args[:relations] if args.key?(:relations)
|
219
675
|
@names = args[:names] if args.key?(:names)
|
676
|
+
@relations = args[:relations] if args.key?(:relations)
|
220
677
|
@occupations = args[:occupations] if args.key?(:occupations)
|
221
678
|
@email_addresses = args[:email_addresses] if args.key?(:email_addresses)
|
222
679
|
@organizations = args[:organizations] if args.key?(:organizations)
|
@@ -244,145 +701,18 @@ module Google
|
|
244
701
|
@locales = args[:locales] if args.key?(:locales)
|
245
702
|
@relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
|
246
703
|
@urls = args[:urls] if args.key?(:urls)
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
#
|
251
|
-
class GetPeopleResponse
|
252
|
-
include Google::Apis::Core::Hashable
|
253
|
-
|
254
|
-
# The response for each requested resource name.
|
255
|
-
# Corresponds to the JSON property `responses`
|
256
|
-
# @return [Array<Google::Apis::PeopleV1::PersonResponse>]
|
257
|
-
attr_accessor :responses
|
258
|
-
|
259
|
-
def initialize(**args)
|
260
|
-
update!(**args)
|
261
|
-
end
|
262
|
-
|
263
|
-
# Update properties of this object
|
264
|
-
def update!(**args)
|
265
|
-
@responses = args[:responses] if args.key?(:responses)
|
266
|
-
end
|
267
|
-
end
|
268
|
-
|
269
|
-
# A person's phone number.
|
270
|
-
class PhoneNumber
|
271
|
-
include Google::Apis::Core::Hashable
|
272
|
-
|
273
|
-
# The type of the phone number. The type can be custom or predefined.
|
274
|
-
# Possible values include, but are not limited to, the following:
|
275
|
-
# * `home`
|
276
|
-
# * `work`
|
277
|
-
# * `mobile`
|
278
|
-
# * `homeFax`
|
279
|
-
# * `workFax`
|
280
|
-
# * `otherFax`
|
281
|
-
# * `pager`
|
282
|
-
# * `workMobile`
|
283
|
-
# * `workPager`
|
284
|
-
# * `main`
|
285
|
-
# * `googleVoice`
|
286
|
-
# * `other`
|
287
|
-
# Corresponds to the JSON property `type`
|
288
|
-
# @return [String]
|
289
|
-
attr_accessor :type
|
290
|
-
|
291
|
-
# Metadata about a field.
|
292
|
-
# Corresponds to the JSON property `metadata`
|
293
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
294
|
-
attr_accessor :metadata
|
295
|
-
|
296
|
-
# The phone number.
|
297
|
-
# Corresponds to the JSON property `value`
|
298
|
-
# @return [String]
|
299
|
-
attr_accessor :value
|
300
|
-
|
301
|
-
# The read-only type of the phone number translated and formatted in the
|
302
|
-
# viewer's account locale or the the `Accept-Language` HTTP header locale.
|
303
|
-
# Corresponds to the JSON property `formattedType`
|
304
|
-
# @return [String]
|
305
|
-
attr_accessor :formatted_type
|
306
|
-
|
307
|
-
# The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
|
308
|
-
# ibr/004/itu-t.E.164.1.2008.pdf)
|
309
|
-
# form of the phone number.
|
310
|
-
# Corresponds to the JSON property `canonicalForm`
|
311
|
-
# @return [String]
|
312
|
-
attr_accessor :canonical_form
|
313
|
-
|
314
|
-
def initialize(**args)
|
315
|
-
update!(**args)
|
316
|
-
end
|
317
|
-
|
318
|
-
# Update properties of this object
|
319
|
-
def update!(**args)
|
320
|
-
@type = args[:type] if args.key?(:type)
|
321
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
322
|
-
@value = args[:value] if args.key?(:value)
|
323
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
324
|
-
@canonical_form = args[:canonical_form] if args.key?(:canonical_form)
|
325
|
-
end
|
326
|
-
end
|
327
|
-
|
328
|
-
# A person's read-only photo. A picture shown next to the person's name to
|
329
|
-
# help others recognize the person.
|
330
|
-
class Photo
|
331
|
-
include Google::Apis::Core::Hashable
|
332
|
-
|
333
|
-
# Metadata about a field.
|
334
|
-
# Corresponds to the JSON property `metadata`
|
335
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
336
|
-
attr_accessor :metadata
|
337
|
-
|
338
|
-
# The URL of the photo. You can change the desired size by appending a query
|
339
|
-
# parameter `sz=<size>` at the end of the url. Example:
|
340
|
-
# `https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/
|
341
|
-
# 00gzXvDBYqw/s100/photo.jpg?sz=50`
|
342
|
-
# Corresponds to the JSON property `url`
|
343
|
-
# @return [String]
|
344
|
-
attr_accessor :url
|
345
|
-
|
346
|
-
def initialize(**args)
|
347
|
-
update!(**args)
|
348
|
-
end
|
349
|
-
|
350
|
-
# Update properties of this object
|
351
|
-
def update!(**args)
|
352
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
353
|
-
@url = args[:url] if args.key?(:url)
|
354
|
-
end
|
355
|
-
end
|
356
|
-
|
357
|
-
#
|
358
|
-
class ListConnectionsResponse
|
359
|
-
include Google::Apis::Core::Hashable
|
360
|
-
|
361
|
-
# The token that can be used to retrieve the next page of results.
|
362
|
-
# Corresponds to the JSON property `nextPageToken`
|
363
|
-
# @return [String]
|
364
|
-
attr_accessor :next_page_token
|
365
|
-
|
366
|
-
# The total number of items in the list without pagination.
|
367
|
-
# Corresponds to the JSON property `totalItems`
|
368
|
-
# @return [Fixnum]
|
369
|
-
attr_accessor :total_items
|
370
|
-
|
371
|
-
# The token that can be used to retrieve changes since the last request.
|
372
|
-
# Corresponds to the JSON property `nextSyncToken`
|
373
|
-
# @return [String]
|
374
|
-
attr_accessor :next_sync_token
|
704
|
+
@nicknames = args[:nicknames] if args.key?(:nicknames)
|
705
|
+
end
|
706
|
+
end
|
375
707
|
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
attr_accessor :connections
|
708
|
+
# A request to update an existing contact group. Only the name can be updated.
|
709
|
+
class UpdateContactGroupRequest
|
710
|
+
include Google::Apis::Core::Hashable
|
380
711
|
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
|
385
|
-
attr_accessor :total_people
|
712
|
+
# A contact group.
|
713
|
+
# Corresponds to the JSON property `contactGroup`
|
714
|
+
# @return [Google::Apis::PeopleV1::ContactGroup]
|
715
|
+
attr_accessor :contact_group
|
386
716
|
|
387
717
|
def initialize(**args)
|
388
718
|
update!(**args)
|
@@ -390,41 +720,26 @@ module Google
|
|
390
720
|
|
391
721
|
# Update properties of this object
|
392
722
|
def update!(**args)
|
393
|
-
@
|
394
|
-
@total_items = args[:total_items] if args.key?(:total_items)
|
395
|
-
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
|
396
|
-
@connections = args[:connections] if args.key?(:connections)
|
397
|
-
@total_people = args[:total_people] if args.key?(:total_people)
|
723
|
+
@contact_group = args[:contact_group] if args.key?(:contact_group)
|
398
724
|
end
|
399
725
|
end
|
400
726
|
|
401
|
-
#
|
402
|
-
|
403
|
-
# date, but are not guaranteed to.
|
404
|
-
class Birthday
|
727
|
+
# The read-only metadata about a contact group.
|
728
|
+
class ContactGroupMetadata
|
405
729
|
include Google::Apis::Core::Hashable
|
406
730
|
|
407
|
-
#
|
408
|
-
#
|
409
|
-
#
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
415
|
-
attr_accessor :metadata
|
731
|
+
# True if the contact group resource has been deleted. Populated only for
|
732
|
+
# [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests
|
733
|
+
# that include a sync token.
|
734
|
+
# Corresponds to the JSON property `deleted`
|
735
|
+
# @return [Boolean]
|
736
|
+
attr_accessor :deleted
|
737
|
+
alias_method :deleted?, :deleted
|
416
738
|
|
417
|
-
#
|
418
|
-
#
|
419
|
-
#
|
420
|
-
|
421
|
-
# Proleptic_Gregorian_calendar).
|
422
|
-
# The day may be 0 to represent a year and month where the day is not
|
423
|
-
# significant. The year may be 0 to represent a month and day independent
|
424
|
-
# of year; for example, anniversary date.
|
425
|
-
# Corresponds to the JSON property `date`
|
426
|
-
# @return [Google::Apis::PeopleV1::Date]
|
427
|
-
attr_accessor :date
|
739
|
+
# The time the group was last updated.
|
740
|
+
# Corresponds to the JSON property `updateTime`
|
741
|
+
# @return [String]
|
742
|
+
attr_accessor :update_time
|
428
743
|
|
429
744
|
def initialize(**args)
|
430
745
|
update!(**args)
|
@@ -432,9 +747,8 @@ module Google
|
|
432
747
|
|
433
748
|
# Update properties of this object
|
434
749
|
def update!(**args)
|
435
|
-
@
|
436
|
-
@
|
437
|
-
@date = args[:date] if args.key?(:date)
|
750
|
+
@deleted = args[:deleted] if args.key?(:deleted)
|
751
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
438
752
|
end
|
439
753
|
end
|
440
754
|
|
@@ -471,212 +785,10 @@ module Google
|
|
471
785
|
end
|
472
786
|
end
|
473
787
|
|
474
|
-
# A person's physical address. May be a P.O. box or street address. All fields
|
475
|
-
# are optional.
|
476
|
-
class Address
|
477
|
-
include Google::Apis::Core::Hashable
|
478
|
-
|
479
|
-
# The P.O. box of the address.
|
480
|
-
# Corresponds to the JSON property `poBox`
|
481
|
-
# @return [String]
|
482
|
-
attr_accessor :po_box
|
483
|
-
|
484
|
-
# The postal code of the address.
|
485
|
-
# Corresponds to the JSON property `postalCode`
|
486
|
-
# @return [String]
|
487
|
-
attr_accessor :postal_code
|
488
|
-
|
489
|
-
# The region of the address; for example, the state or province.
|
490
|
-
# Corresponds to the JSON property `region`
|
491
|
-
# @return [String]
|
492
|
-
attr_accessor :region
|
493
|
-
|
494
|
-
# The street address.
|
495
|
-
# Corresponds to the JSON property `streetAddress`
|
496
|
-
# @return [String]
|
497
|
-
attr_accessor :street_address
|
498
|
-
|
499
|
-
# Metadata about a field.
|
500
|
-
# Corresponds to the JSON property `metadata`
|
501
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
502
|
-
attr_accessor :metadata
|
503
|
-
|
504
|
-
# The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
|
505
|
-
# code of the address.
|
506
|
-
# Corresponds to the JSON property `countryCode`
|
507
|
-
# @return [String]
|
508
|
-
attr_accessor :country_code
|
509
|
-
|
510
|
-
# The read-only type of the address translated and formatted in the viewer's
|
511
|
-
# account locale or the `Accept-Language` HTTP header locale.
|
512
|
-
# Corresponds to the JSON property `formattedType`
|
513
|
-
# @return [String]
|
514
|
-
attr_accessor :formatted_type
|
515
|
-
|
516
|
-
# The city of the address.
|
517
|
-
# Corresponds to the JSON property `city`
|
518
|
-
# @return [String]
|
519
|
-
attr_accessor :city
|
520
|
-
|
521
|
-
# The unstructured value of the address. If this is not set by the user it
|
522
|
-
# will be automatically constructed from structured values.
|
523
|
-
# Corresponds to the JSON property `formattedValue`
|
524
|
-
# @return [String]
|
525
|
-
attr_accessor :formatted_value
|
526
|
-
|
527
|
-
# The country of the address.
|
528
|
-
# Corresponds to the JSON property `country`
|
529
|
-
# @return [String]
|
530
|
-
attr_accessor :country
|
531
|
-
|
532
|
-
# The type of the address. The type can be custom or predefined.
|
533
|
-
# Possible values include, but are not limited to, the following:
|
534
|
-
# * `home`
|
535
|
-
# * `work`
|
536
|
-
# * `other`
|
537
|
-
# Corresponds to the JSON property `type`
|
538
|
-
# @return [String]
|
539
|
-
attr_accessor :type
|
540
|
-
|
541
|
-
# The extended address of the address; for example, the apartment number.
|
542
|
-
# Corresponds to the JSON property `extendedAddress`
|
543
|
-
# @return [String]
|
544
|
-
attr_accessor :extended_address
|
545
|
-
|
546
|
-
def initialize(**args)
|
547
|
-
update!(**args)
|
548
|
-
end
|
549
|
-
|
550
|
-
# Update properties of this object
|
551
|
-
def update!(**args)
|
552
|
-
@po_box = args[:po_box] if args.key?(:po_box)
|
553
|
-
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
554
|
-
@region = args[:region] if args.key?(:region)
|
555
|
-
@street_address = args[:street_address] if args.key?(:street_address)
|
556
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
557
|
-
@country_code = args[:country_code] if args.key?(:country_code)
|
558
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
559
|
-
@city = args[:city] if args.key?(:city)
|
560
|
-
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
561
|
-
@country = args[:country] if args.key?(:country)
|
562
|
-
@type = args[:type] if args.key?(:type)
|
563
|
-
@extended_address = args[:extended_address] if args.key?(:extended_address)
|
564
|
-
end
|
565
|
-
end
|
566
|
-
|
567
|
-
# A Google contact group membership.
|
568
|
-
class ContactGroupMembership
|
569
|
-
include Google::Apis::Core::Hashable
|
570
|
-
|
571
|
-
# The contact group ID for the contact group membership. The contact group
|
572
|
-
# ID can be custom or predefined. Possible values include, but are not
|
573
|
-
# limited to, the following:
|
574
|
-
# * `myContacts`
|
575
|
-
# * `starred`
|
576
|
-
# * A numerical ID for user-created groups.
|
577
|
-
# Corresponds to the JSON property `contactGroupId`
|
578
|
-
# @return [String]
|
579
|
-
attr_accessor :contact_group_id
|
580
|
-
|
581
|
-
def initialize(**args)
|
582
|
-
update!(**args)
|
583
|
-
end
|
584
|
-
|
585
|
-
# Update properties of this object
|
586
|
-
def update!(**args)
|
587
|
-
@contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
|
588
|
-
end
|
589
|
-
end
|
590
|
-
|
591
|
-
# The `Status` type defines a logical error model that is suitable for different
|
592
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
593
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
594
|
-
# - Simple to use and understand for most users
|
595
|
-
# - Flexible enough to meet unexpected needs
|
596
|
-
# # Overview
|
597
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
598
|
-
# and error details. The error code should be an enum value of
|
599
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
600
|
-
# error message should be a developer-facing English message that helps
|
601
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
602
|
-
# error message is needed, put the localized message in the error details or
|
603
|
-
# localize it in the client. The optional error details may contain arbitrary
|
604
|
-
# information about the error. There is a predefined set of error detail types
|
605
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
606
|
-
# # Language mapping
|
607
|
-
# The `Status` message is the logical representation of the error model, but it
|
608
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
609
|
-
# exposed in different client libraries and different wire protocols, it can be
|
610
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
611
|
-
# in Java, but more likely mapped to some error codes in C.
|
612
|
-
# # Other uses
|
613
|
-
# The error model and the `Status` message can be used in a variety of
|
614
|
-
# environments, either with or without APIs, to provide a
|
615
|
-
# consistent developer experience across different environments.
|
616
|
-
# Example uses of this error model include:
|
617
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
618
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
619
|
-
# errors.
|
620
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
621
|
-
# have a `Status` message for error reporting.
|
622
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
623
|
-
# `Status` message should be used directly inside batch response, one for
|
624
|
-
# each error sub-response.
|
625
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
626
|
-
# results in its response, the status of those operations should be
|
627
|
-
# represented directly using the `Status` message.
|
628
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
629
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
630
|
-
class Status
|
631
|
-
include Google::Apis::Core::Hashable
|
632
|
-
|
633
|
-
# The status code, which should be an enum value of google.rpc.Code.
|
634
|
-
# Corresponds to the JSON property `code`
|
635
|
-
# @return [Fixnum]
|
636
|
-
attr_accessor :code
|
637
|
-
|
638
|
-
# A developer-facing error message, which should be in English. Any
|
639
|
-
# user-facing error message should be localized and sent in the
|
640
|
-
# google.rpc.Status.details field, or localized by the client.
|
641
|
-
# Corresponds to the JSON property `message`
|
642
|
-
# @return [String]
|
643
|
-
attr_accessor :message
|
644
|
-
|
645
|
-
# A list of messages that carry the error details. There will be a
|
646
|
-
# common set of message types for APIs to use.
|
647
|
-
# Corresponds to the JSON property `details`
|
648
|
-
# @return [Array<Hash<String,Object>>]
|
649
|
-
attr_accessor :details
|
650
|
-
|
651
|
-
def initialize(**args)
|
652
|
-
update!(**args)
|
653
|
-
end
|
654
|
-
|
655
|
-
# Update properties of this object
|
656
|
-
def update!(**args)
|
657
|
-
@code = args[:code] if args.key?(:code)
|
658
|
-
@message = args[:message] if args.key?(:message)
|
659
|
-
@details = args[:details] if args.key?(:details)
|
660
|
-
end
|
661
|
-
end
|
662
|
-
|
663
788
|
# An event related to the person.
|
664
789
|
class Event
|
665
790
|
include Google::Apis::Core::Hashable
|
666
791
|
|
667
|
-
# The type of the event. The type can be custom or predefined.
|
668
|
-
# Possible values include, but are not limited to, the following:
|
669
|
-
# * `anniversary`
|
670
|
-
# * `other`
|
671
|
-
# Corresponds to the JSON property `type`
|
672
|
-
# @return [String]
|
673
|
-
attr_accessor :type
|
674
|
-
|
675
|
-
# Metadata about a field.
|
676
|
-
# Corresponds to the JSON property `metadata`
|
677
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
678
|
-
attr_accessor :metadata
|
679
|
-
|
680
792
|
# Represents a whole calendar date, for example a date of birth. The time
|
681
793
|
# of day and time zone are either specified elsewhere or are not
|
682
794
|
# significant. The date is relative to the
|
@@ -695,56 +807,40 @@ module Google
|
|
695
807
|
# @return [String]
|
696
808
|
attr_accessor :formatted_type
|
697
809
|
|
810
|
+
# The type of the event. The type can be custom or predefined.
|
811
|
+
# Possible values include, but are not limited to, the following:
|
812
|
+
# * `anniversary`
|
813
|
+
# * `other`
|
814
|
+
# Corresponds to the JSON property `type`
|
815
|
+
# @return [String]
|
816
|
+
attr_accessor :type
|
817
|
+
|
818
|
+
# Metadata about a field.
|
819
|
+
# Corresponds to the JSON property `metadata`
|
820
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
821
|
+
attr_accessor :metadata
|
822
|
+
|
698
823
|
def initialize(**args)
|
699
824
|
update!(**args)
|
700
825
|
end
|
701
826
|
|
702
827
|
# Update properties of this object
|
703
828
|
def update!(**args)
|
704
|
-
@type = args[:type] if args.key?(:type)
|
705
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
706
829
|
@date = args[:date] if args.key?(:date)
|
707
830
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
831
|
+
@type = args[:type] if args.key?(:type)
|
832
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
708
833
|
end
|
709
834
|
end
|
710
835
|
|
711
|
-
# The
|
712
|
-
class
|
836
|
+
# The response to a modify contact group members request.
|
837
|
+
class ModifyContactGroupMembersResponse
|
713
838
|
include Google::Apis::Core::Hashable
|
714
839
|
|
715
|
-
#
|
716
|
-
# Corresponds to the JSON property `
|
717
|
-
# @return [Array<String>]
|
718
|
-
attr_accessor :linked_people_resource_names
|
719
|
-
|
720
|
-
# Any former resource names this person has had. Populated only for
|
721
|
-
# [`connections.list`](/people/api/rest/v1/people.connections/list) requests
|
722
|
-
# that include a sync token.
|
723
|
-
# The resource name may change when adding or removing fields that link a
|
724
|
-
# contact and profile such as a verified email, verified phone number, or
|
725
|
-
# profile URL.
|
726
|
-
# Corresponds to the JSON property `previousResourceNames`
|
840
|
+
# The contact people resource names that were not found.
|
841
|
+
# Corresponds to the JSON property `notFoundResourceNames`
|
727
842
|
# @return [Array<String>]
|
728
|
-
attr_accessor :
|
729
|
-
|
730
|
-
# The sources of data for the person.
|
731
|
-
# Corresponds to the JSON property `sources`
|
732
|
-
# @return [Array<Google::Apis::PeopleV1::Source>]
|
733
|
-
attr_accessor :sources
|
734
|
-
|
735
|
-
# True if the person resource has been deleted. Populated only for
|
736
|
-
# [`connections.list`](/people/api/rest/v1/people.connections/list) requests
|
737
|
-
# that include a sync token.
|
738
|
-
# Corresponds to the JSON property `deleted`
|
739
|
-
# @return [Boolean]
|
740
|
-
attr_accessor :deleted
|
741
|
-
alias_method :deleted?, :deleted
|
742
|
-
|
743
|
-
# **DEPRECATED(Please use person.metadata.sources.profileMetadata instead)**
|
744
|
-
# The type of the person object.
|
745
|
-
# Corresponds to the JSON property `objectType`
|
746
|
-
# @return [String]
|
747
|
-
attr_accessor :object_type
|
843
|
+
attr_accessor :not_found_resource_names
|
748
844
|
|
749
845
|
def initialize(**args)
|
750
846
|
update!(**args)
|
@@ -752,11 +848,7 @@ module Google
|
|
752
848
|
|
753
849
|
# Update properties of this object
|
754
850
|
def update!(**args)
|
755
|
-
@
|
756
|
-
@previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names)
|
757
|
-
@sources = args[:sources] if args.key?(:sources)
|
758
|
-
@deleted = args[:deleted] if args.key?(:deleted)
|
759
|
-
@object_type = args[:object_type] if args.key?(:object_type)
|
851
|
+
@not_found_resource_names = args[:not_found_resource_names] if args.key?(:not_found_resource_names)
|
760
852
|
end
|
761
853
|
end
|
762
854
|
|
@@ -764,6 +856,11 @@ module Google
|
|
764
856
|
class ProfileMetadata
|
765
857
|
include Google::Apis::Core::Hashable
|
766
858
|
|
859
|
+
# The user types.
|
860
|
+
# Corresponds to the JSON property `userTypes`
|
861
|
+
# @return [Array<String>]
|
862
|
+
attr_accessor :user_types
|
863
|
+
|
767
864
|
# The profile object type.
|
768
865
|
# Corresponds to the JSON property `objectType`
|
769
866
|
# @return [String]
|
@@ -775,58 +872,11 @@ module Google
|
|
775
872
|
|
776
873
|
# Update properties of this object
|
777
874
|
def update!(**args)
|
875
|
+
@user_types = args[:user_types] if args.key?(:user_types)
|
778
876
|
@object_type = args[:object_type] if args.key?(:object_type)
|
779
877
|
end
|
780
878
|
end
|
781
879
|
|
782
|
-
# A person's associated URLs.
|
783
|
-
class Url
|
784
|
-
include Google::Apis::Core::Hashable
|
785
|
-
|
786
|
-
# The type of the URL. The type can be custom or predefined.
|
787
|
-
# Possible values include, but are not limited to, the following:
|
788
|
-
# * `home`
|
789
|
-
# * `work`
|
790
|
-
# * `blog`
|
791
|
-
# * `profile`
|
792
|
-
# * `homePage`
|
793
|
-
# * `ftp`
|
794
|
-
# * `reservations`
|
795
|
-
# * `appInstallPage`: website for a Google+ application.
|
796
|
-
# * `other`
|
797
|
-
# Corresponds to the JSON property `type`
|
798
|
-
# @return [String]
|
799
|
-
attr_accessor :type
|
800
|
-
|
801
|
-
# Metadata about a field.
|
802
|
-
# Corresponds to the JSON property `metadata`
|
803
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
804
|
-
attr_accessor :metadata
|
805
|
-
|
806
|
-
# The URL.
|
807
|
-
# Corresponds to the JSON property `value`
|
808
|
-
# @return [String]
|
809
|
-
attr_accessor :value
|
810
|
-
|
811
|
-
# The read-only type of the URL translated and formatted in the viewer's
|
812
|
-
# account locale or the `Accept-Language` HTTP header locale.
|
813
|
-
# Corresponds to the JSON property `formattedType`
|
814
|
-
# @return [String]
|
815
|
-
attr_accessor :formatted_type
|
816
|
-
|
817
|
-
def initialize(**args)
|
818
|
-
update!(**args)
|
819
|
-
end
|
820
|
-
|
821
|
-
# Update properties of this object
|
822
|
-
def update!(**args)
|
823
|
-
@type = args[:type] if args.key?(:type)
|
824
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
825
|
-
@value = args[:value] if args.key?(:value)
|
826
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
827
|
-
end
|
828
|
-
end
|
829
|
-
|
830
880
|
# A person's gender.
|
831
881
|
class Gender
|
832
882
|
include Google::Apis::Core::Hashable
|
@@ -899,8 +949,8 @@ module Google
|
|
899
949
|
end
|
900
950
|
end
|
901
951
|
|
902
|
-
#
|
903
|
-
class
|
952
|
+
# One of the person's interests.
|
953
|
+
class Interest
|
904
954
|
include Google::Apis::Core::Hashable
|
905
955
|
|
906
956
|
# Metadata about a field.
|
@@ -908,7 +958,63 @@ module Google
|
|
908
958
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
909
959
|
attr_accessor :metadata
|
910
960
|
|
911
|
-
# The
|
961
|
+
# The interest; for example, `stargazing`.
|
962
|
+
# Corresponds to the JSON property `value`
|
963
|
+
# @return [String]
|
964
|
+
attr_accessor :value
|
965
|
+
|
966
|
+
def initialize(**args)
|
967
|
+
update!(**args)
|
968
|
+
end
|
969
|
+
|
970
|
+
# Update properties of this object
|
971
|
+
def update!(**args)
|
972
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
973
|
+
@value = args[:value] if args.key?(:value)
|
974
|
+
end
|
975
|
+
end
|
976
|
+
|
977
|
+
# A person's nickname.
|
978
|
+
class Nickname
|
979
|
+
include Google::Apis::Core::Hashable
|
980
|
+
|
981
|
+
# The type of the nickname.
|
982
|
+
# Corresponds to the JSON property `type`
|
983
|
+
# @return [String]
|
984
|
+
attr_accessor :type
|
985
|
+
|
986
|
+
# Metadata about a field.
|
987
|
+
# Corresponds to the JSON property `metadata`
|
988
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
989
|
+
attr_accessor :metadata
|
990
|
+
|
991
|
+
# The nickname.
|
992
|
+
# Corresponds to the JSON property `value`
|
993
|
+
# @return [String]
|
994
|
+
attr_accessor :value
|
995
|
+
|
996
|
+
def initialize(**args)
|
997
|
+
update!(**args)
|
998
|
+
end
|
999
|
+
|
1000
|
+
# Update properties of this object
|
1001
|
+
def update!(**args)
|
1002
|
+
@type = args[:type] if args.key?(:type)
|
1003
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1004
|
+
@value = args[:value] if args.key?(:value)
|
1005
|
+
end
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
# A person's email address.
|
1009
|
+
class EmailAddress
|
1010
|
+
include Google::Apis::Core::Hashable
|
1011
|
+
|
1012
|
+
# The display name of the email.
|
1013
|
+
# Corresponds to the JSON property `displayName`
|
1014
|
+
# @return [String]
|
1015
|
+
attr_accessor :display_name
|
1016
|
+
|
1017
|
+
# The type of the email address. The type can be custom or predefined.
|
912
1018
|
# Possible values include, but are not limited to, the following:
|
913
1019
|
# * `home`
|
914
1020
|
# * `work`
|
@@ -917,33 +1023,17 @@ module Google
|
|
917
1023
|
# @return [String]
|
918
1024
|
attr_accessor :type
|
919
1025
|
|
920
|
-
#
|
921
|
-
#
|
922
|
-
#
|
923
|
-
|
924
|
-
# * `yahoo`
|
925
|
-
# * `skype`
|
926
|
-
# * `qq`
|
927
|
-
# * `googleTalk`
|
928
|
-
# * `icq`
|
929
|
-
# * `jabber`
|
930
|
-
# * `netMeeting`
|
931
|
-
# Corresponds to the JSON property `protocol`
|
932
|
-
# @return [String]
|
933
|
-
attr_accessor :protocol
|
934
|
-
|
935
|
-
# The user name used in the IM client.
|
936
|
-
# Corresponds to the JSON property `username`
|
937
|
-
# @return [String]
|
938
|
-
attr_accessor :username
|
1026
|
+
# Metadata about a field.
|
1027
|
+
# Corresponds to the JSON property `metadata`
|
1028
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1029
|
+
attr_accessor :metadata
|
939
1030
|
|
940
|
-
# The
|
941
|
-
#
|
942
|
-
# Corresponds to the JSON property `formattedProtocol`
|
1031
|
+
# The email address.
|
1032
|
+
# Corresponds to the JSON property `value`
|
943
1033
|
# @return [String]
|
944
|
-
attr_accessor :
|
1034
|
+
attr_accessor :value
|
945
1035
|
|
946
|
-
# The read-only type of the
|
1036
|
+
# The read-only type of the email address translated and formatted in the
|
947
1037
|
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
948
1038
|
# Corresponds to the JSON property `formattedType`
|
949
1039
|
# @return [String]
|
@@ -955,17 +1045,81 @@ module Google
|
|
955
1045
|
|
956
1046
|
# Update properties of this object
|
957
1047
|
def update!(**args)
|
958
|
-
@
|
959
|
-
@type = args[:type] if args.key?(:type)
|
960
|
-
@
|
961
|
-
@
|
962
|
-
@
|
963
|
-
|
1048
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1049
|
+
@type = args[:type] if args.key?(:type)
|
1050
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1051
|
+
@value = args[:value] if args.key?(:value)
|
1052
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1053
|
+
end
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
# A skill that the person has.
|
1057
|
+
class Skill
|
1058
|
+
include Google::Apis::Core::Hashable
|
1059
|
+
|
1060
|
+
# Metadata about a field.
|
1061
|
+
# Corresponds to the JSON property `metadata`
|
1062
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1063
|
+
attr_accessor :metadata
|
1064
|
+
|
1065
|
+
# The skill; for example, `underwater basket weaving`.
|
1066
|
+
# Corresponds to the JSON property `value`
|
1067
|
+
# @return [String]
|
1068
|
+
attr_accessor :value
|
1069
|
+
|
1070
|
+
def initialize(**args)
|
1071
|
+
update!(**args)
|
1072
|
+
end
|
1073
|
+
|
1074
|
+
# Update properties of this object
|
1075
|
+
def update!(**args)
|
1076
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1077
|
+
@value = args[:value] if args.key?(:value)
|
1078
|
+
end
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
# Represents a whole calendar date, for example a date of birth. The time
|
1082
|
+
# of day and time zone are either specified elsewhere or are not
|
1083
|
+
# significant. The date is relative to the
|
1084
|
+
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
1085
|
+
# Proleptic_Gregorian_calendar).
|
1086
|
+
# The day may be 0 to represent a year and month where the day is not
|
1087
|
+
# significant. The year may be 0 to represent a month and day independent
|
1088
|
+
# of year; for example, anniversary date.
|
1089
|
+
class Date
|
1090
|
+
include Google::Apis::Core::Hashable
|
1091
|
+
|
1092
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
1093
|
+
# if specifying a year/month where the day is not significant.
|
1094
|
+
# Corresponds to the JSON property `day`
|
1095
|
+
# @return [Fixnum]
|
1096
|
+
attr_accessor :day
|
1097
|
+
|
1098
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
1099
|
+
# a year.
|
1100
|
+
# Corresponds to the JSON property `year`
|
1101
|
+
# @return [Fixnum]
|
1102
|
+
attr_accessor :year
|
1103
|
+
|
1104
|
+
# Month of year. Must be from 1 to 12.
|
1105
|
+
# Corresponds to the JSON property `month`
|
1106
|
+
# @return [Fixnum]
|
1107
|
+
attr_accessor :month
|
1108
|
+
|
1109
|
+
def initialize(**args)
|
1110
|
+
update!(**args)
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
# Update properties of this object
|
1114
|
+
def update!(**args)
|
1115
|
+
@day = args[:day] if args.key?(:day)
|
1116
|
+
@year = args[:year] if args.key?(:year)
|
1117
|
+
@month = args[:month] if args.key?(:month)
|
964
1118
|
end
|
965
1119
|
end
|
966
1120
|
|
967
|
-
#
|
968
|
-
class
|
1121
|
+
# A read-only brief one-line description of the person.
|
1122
|
+
class Tagline
|
969
1123
|
include Google::Apis::Core::Hashable
|
970
1124
|
|
971
1125
|
# Metadata about a field.
|
@@ -973,7 +1127,7 @@ module Google
|
|
973
1127
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
974
1128
|
attr_accessor :metadata
|
975
1129
|
|
976
|
-
# The
|
1130
|
+
# The tagline.
|
977
1131
|
# Corresponds to the JSON property `value`
|
978
1132
|
# @return [String]
|
979
1133
|
attr_accessor :value
|
@@ -989,119 +1143,205 @@ module Google
|
|
989
1143
|
end
|
990
1144
|
end
|
991
1145
|
|
992
|
-
# A person's
|
993
|
-
class
|
1146
|
+
# A person's name. If the name is a mononym, the family name is empty.
|
1147
|
+
class Name
|
994
1148
|
include Google::Apis::Core::Hashable
|
995
1149
|
|
996
|
-
# The
|
997
|
-
# Corresponds to the JSON property `
|
1150
|
+
# The full name spelled as it sounds.
|
1151
|
+
# Corresponds to the JSON property `phoneticFullName`
|
998
1152
|
# @return [String]
|
999
|
-
attr_accessor :
|
1153
|
+
attr_accessor :phonetic_full_name
|
1154
|
+
|
1155
|
+
# The read-only display name with the last name first formatted according to
|
1156
|
+
# the locale specified by the viewer's account or the
|
1157
|
+
# <code>Accept-Language</code> HTTP header.
|
1158
|
+
# Corresponds to the JSON property `displayNameLastFirst`
|
1159
|
+
# @return [String]
|
1160
|
+
attr_accessor :display_name_last_first
|
1161
|
+
|
1162
|
+
# The read-only display name formatted according to the locale specified by
|
1163
|
+
# the viewer's account or the <code>Accept-Language</code> HTTP header.
|
1164
|
+
# Corresponds to the JSON property `displayName`
|
1165
|
+
# @return [String]
|
1166
|
+
attr_accessor :display_name
|
1167
|
+
|
1168
|
+
# The honorific suffixes, such as `Jr.`
|
1169
|
+
# Corresponds to the JSON property `honorificSuffix`
|
1170
|
+
# @return [String]
|
1171
|
+
attr_accessor :honorific_suffix
|
1172
|
+
|
1173
|
+
# The honorific prefixes, such as `Mrs.` or `Dr.`
|
1174
|
+
# Corresponds to the JSON property `honorificPrefix`
|
1175
|
+
# @return [String]
|
1176
|
+
attr_accessor :honorific_prefix
|
1177
|
+
|
1178
|
+
# The honorific suffixes spelled as they sound.
|
1179
|
+
# Corresponds to the JSON property `phoneticHonorificSuffix`
|
1180
|
+
# @return [String]
|
1181
|
+
attr_accessor :phonetic_honorific_suffix
|
1182
|
+
|
1183
|
+
# The given name.
|
1184
|
+
# Corresponds to the JSON property `givenName`
|
1185
|
+
# @return [String]
|
1186
|
+
attr_accessor :given_name
|
1187
|
+
|
1188
|
+
# The middle name(s).
|
1189
|
+
# Corresponds to the JSON property `middleName`
|
1190
|
+
# @return [String]
|
1191
|
+
attr_accessor :middle_name
|
1192
|
+
|
1193
|
+
# The honorific prefixes spelled as they sound.
|
1194
|
+
# Corresponds to the JSON property `phoneticHonorificPrefix`
|
1195
|
+
# @return [String]
|
1196
|
+
attr_accessor :phonetic_honorific_prefix
|
1197
|
+
|
1198
|
+
# The given name spelled as it sounds.
|
1199
|
+
# Corresponds to the JSON property `phoneticGivenName`
|
1200
|
+
# @return [String]
|
1201
|
+
attr_accessor :phonetic_given_name
|
1202
|
+
|
1203
|
+
# The family name spelled as it sounds.
|
1204
|
+
# Corresponds to the JSON property `phoneticFamilyName`
|
1205
|
+
# @return [String]
|
1206
|
+
attr_accessor :phonetic_family_name
|
1207
|
+
|
1208
|
+
# The family name.
|
1209
|
+
# Corresponds to the JSON property `familyName`
|
1210
|
+
# @return [String]
|
1211
|
+
attr_accessor :family_name
|
1212
|
+
|
1213
|
+
# The middle name(s) spelled as they sound.
|
1214
|
+
# Corresponds to the JSON property `phoneticMiddleName`
|
1215
|
+
# @return [String]
|
1216
|
+
attr_accessor :phonetic_middle_name
|
1000
1217
|
|
1001
1218
|
# Metadata about a field.
|
1002
1219
|
# Corresponds to the JSON property `metadata`
|
1003
1220
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1004
1221
|
attr_accessor :metadata
|
1005
1222
|
|
1006
|
-
# The nickname.
|
1007
|
-
# Corresponds to the JSON property `value`
|
1008
|
-
# @return [String]
|
1009
|
-
attr_accessor :value
|
1010
|
-
|
1011
1223
|
def initialize(**args)
|
1012
1224
|
update!(**args)
|
1013
1225
|
end
|
1014
1226
|
|
1015
1227
|
# Update properties of this object
|
1016
1228
|
def update!(**args)
|
1017
|
-
@
|
1229
|
+
@phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name)
|
1230
|
+
@display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first)
|
1231
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1232
|
+
@honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
|
1233
|
+
@honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
|
1234
|
+
@phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
|
1235
|
+
@given_name = args[:given_name] if args.key?(:given_name)
|
1236
|
+
@middle_name = args[:middle_name] if args.key?(:middle_name)
|
1237
|
+
@phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
|
1238
|
+
@phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
|
1239
|
+
@phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name)
|
1240
|
+
@family_name = args[:family_name] if args.key?(:family_name)
|
1241
|
+
@phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name)
|
1018
1242
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1019
|
-
@value = args[:value] if args.key?(:value)
|
1020
1243
|
end
|
1021
1244
|
end
|
1022
1245
|
|
1023
|
-
# A person's
|
1024
|
-
class
|
1246
|
+
# A person's locale preference.
|
1247
|
+
class Locale
|
1025
1248
|
include Google::Apis::Core::Hashable
|
1026
1249
|
|
1027
|
-
# The type of the email address. The type can be custom or predefined.
|
1028
|
-
# Possible values include, but are not limited to, the following:
|
1029
|
-
# * `home`
|
1030
|
-
# * `work`
|
1031
|
-
# * `other`
|
1032
|
-
# Corresponds to the JSON property `type`
|
1033
|
-
# @return [String]
|
1034
|
-
attr_accessor :type
|
1035
|
-
|
1036
1250
|
# Metadata about a field.
|
1037
1251
|
# Corresponds to the JSON property `metadata`
|
1038
1252
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1039
1253
|
attr_accessor :metadata
|
1040
1254
|
|
1041
|
-
# The
|
1255
|
+
# The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47)
|
1256
|
+
# language tag representing the locale.
|
1042
1257
|
# Corresponds to the JSON property `value`
|
1043
1258
|
# @return [String]
|
1044
1259
|
attr_accessor :value
|
1045
1260
|
|
1046
|
-
# The read-only type of the email address translated and formatted in the
|
1047
|
-
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
1048
|
-
# Corresponds to the JSON property `formattedType`
|
1049
|
-
# @return [String]
|
1050
|
-
attr_accessor :formatted_type
|
1051
|
-
|
1052
|
-
# The display name of the email.
|
1053
|
-
# Corresponds to the JSON property `displayName`
|
1054
|
-
# @return [String]
|
1055
|
-
attr_accessor :display_name
|
1056
|
-
|
1057
1261
|
def initialize(**args)
|
1058
1262
|
update!(**args)
|
1059
1263
|
end
|
1060
1264
|
|
1061
1265
|
# Update properties of this object
|
1062
1266
|
def update!(**args)
|
1063
|
-
@type = args[:type] if args.key?(:type)
|
1064
1267
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1065
1268
|
@value = args[:value] if args.key?(:value)
|
1066
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1067
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
1068
1269
|
end
|
1069
1270
|
end
|
1070
1271
|
|
1071
|
-
# A
|
1072
|
-
|
1272
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
1273
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
1274
|
+
# or the response type of an API method. For instance:
|
1275
|
+
# service Foo `
|
1276
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
1277
|
+
# `
|
1278
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
1279
|
+
class Empty
|
1073
1280
|
include Google::Apis::Core::Hashable
|
1074
1281
|
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
attr_accessor :metadata
|
1282
|
+
def initialize(**args)
|
1283
|
+
update!(**args)
|
1284
|
+
end
|
1079
1285
|
|
1080
|
-
#
|
1286
|
+
# Update properties of this object
|
1287
|
+
def update!(**args)
|
1288
|
+
end
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
# A person's short biography.
|
1292
|
+
class Biography
|
1293
|
+
include Google::Apis::Core::Hashable
|
1294
|
+
|
1295
|
+
# The short biography.
|
1081
1296
|
# Corresponds to the JSON property `value`
|
1082
1297
|
# @return [String]
|
1083
1298
|
attr_accessor :value
|
1084
1299
|
|
1300
|
+
# The content type of the biography.
|
1301
|
+
# Corresponds to the JSON property `contentType`
|
1302
|
+
# @return [String]
|
1303
|
+
attr_accessor :content_type
|
1304
|
+
|
1305
|
+
# Metadata about a field.
|
1306
|
+
# Corresponds to the JSON property `metadata`
|
1307
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1308
|
+
attr_accessor :metadata
|
1309
|
+
|
1085
1310
|
def initialize(**args)
|
1086
1311
|
update!(**args)
|
1087
1312
|
end
|
1088
1313
|
|
1089
1314
|
# Update properties of this object
|
1090
1315
|
def update!(**args)
|
1091
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
1092
1316
|
@value = args[:value] if args.key?(:value)
|
1317
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
1318
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1093
1319
|
end
|
1094
1320
|
end
|
1095
1321
|
|
1096
|
-
#
|
1097
|
-
class
|
1322
|
+
# Metadata about a field.
|
1323
|
+
class FieldMetadata
|
1098
1324
|
include Google::Apis::Core::Hashable
|
1099
1325
|
|
1100
|
-
#
|
1101
|
-
# Corresponds to the JSON property `
|
1326
|
+
# The source of a field.
|
1327
|
+
# Corresponds to the JSON property `source`
|
1328
|
+
# @return [Google::Apis::PeopleV1::Source]
|
1329
|
+
attr_accessor :source
|
1330
|
+
|
1331
|
+
# True if the field is verified; false if the field is unverified. A
|
1332
|
+
# verified field is typically a name, email address, phone number, or
|
1333
|
+
# website that has been confirmed to be owned by the person.
|
1334
|
+
# Corresponds to the JSON property `verified`
|
1102
1335
|
# @return [Boolean]
|
1103
|
-
attr_accessor :
|
1104
|
-
alias_method :
|
1336
|
+
attr_accessor :verified
|
1337
|
+
alias_method :verified?, :verified
|
1338
|
+
|
1339
|
+
# True if the field is the primary field; false if the field is a secondary
|
1340
|
+
# field.
|
1341
|
+
# Corresponds to the JSON property `primary`
|
1342
|
+
# @return [Boolean]
|
1343
|
+
attr_accessor :primary
|
1344
|
+
alias_method :primary?, :primary
|
1105
1345
|
|
1106
1346
|
def initialize(**args)
|
1107
1347
|
update!(**args)
|
@@ -1109,28 +1349,38 @@ module Google
|
|
1109
1349
|
|
1110
1350
|
# Update properties of this object
|
1111
1351
|
def update!(**args)
|
1112
|
-
@
|
1352
|
+
@source = args[:source] if args.key?(:source)
|
1353
|
+
@verified = args[:verified] if args.key?(:verified)
|
1354
|
+
@primary = args[:primary] if args.key?(:primary)
|
1113
1355
|
end
|
1114
1356
|
end
|
1115
1357
|
|
1116
|
-
# A person's read-only
|
1117
|
-
class
|
1358
|
+
# A person's read-only relationship interest .
|
1359
|
+
class RelationshipInterest
|
1118
1360
|
include Google::Apis::Core::Hashable
|
1119
1361
|
|
1362
|
+
# The value of the relationship interest translated and formatted in the
|
1363
|
+
# viewer's account locale or the locale specified in the Accept-Language
|
1364
|
+
# HTTP header.
|
1365
|
+
# Corresponds to the JSON property `formattedValue`
|
1366
|
+
# @return [String]
|
1367
|
+
attr_accessor :formatted_value
|
1368
|
+
|
1120
1369
|
# Metadata about a field.
|
1121
1370
|
# Corresponds to the JSON property `metadata`
|
1122
1371
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1123
1372
|
attr_accessor :metadata
|
1124
1373
|
|
1125
|
-
#
|
1126
|
-
#
|
1127
|
-
#
|
1128
|
-
|
1129
|
-
|
1130
|
-
#
|
1131
|
-
#
|
1132
|
-
#
|
1133
|
-
|
1374
|
+
# The kind of relationship the person is looking for. The value can be custom
|
1375
|
+
# or predefined. Possible values include, but are not limited to, the
|
1376
|
+
# following values:
|
1377
|
+
# * `friend`
|
1378
|
+
# * `date`
|
1379
|
+
# * `relationship`
|
1380
|
+
# * `networking`
|
1381
|
+
# Corresponds to the JSON property `value`
|
1382
|
+
# @return [String]
|
1383
|
+
attr_accessor :value
|
1134
1384
|
|
1135
1385
|
def initialize(**args)
|
1136
1386
|
update!(**args)
|
@@ -1138,41 +1388,43 @@ module Google
|
|
1138
1388
|
|
1139
1389
|
# Update properties of this object
|
1140
1390
|
def update!(**args)
|
1391
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
1141
1392
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1142
|
-
@
|
1143
|
-
@contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
|
1393
|
+
@value = args[:value] if args.key?(:value)
|
1144
1394
|
end
|
1145
1395
|
end
|
1146
1396
|
|
1147
|
-
#
|
1148
|
-
class
|
1397
|
+
# The source of a field.
|
1398
|
+
class Source
|
1149
1399
|
include Google::Apis::Core::Hashable
|
1150
1400
|
|
1151
|
-
# The
|
1152
|
-
#
|
1153
|
-
#
|
1401
|
+
# The source type.
|
1402
|
+
# Corresponds to the JSON property `type`
|
1403
|
+
# @return [String]
|
1404
|
+
attr_accessor :type
|
1405
|
+
|
1406
|
+
# **Only populated in `person.metadata.sources`.**
|
1407
|
+
# The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
|
1408
|
+
# source. Used for web cache validation.
|
1409
|
+
# Corresponds to the JSON property `etag`
|
1410
|
+
# @return [String]
|
1411
|
+
attr_accessor :etag
|
1412
|
+
|
1413
|
+
# The unique identifier within the source type generated by the server.
|
1414
|
+
# Corresponds to the JSON property `id`
|
1154
1415
|
# @return [String]
|
1155
|
-
attr_accessor :
|
1416
|
+
attr_accessor :id
|
1156
1417
|
|
1157
|
-
#
|
1158
|
-
# Corresponds to the JSON property `
|
1159
|
-
# @return [Google::Apis::PeopleV1::
|
1160
|
-
attr_accessor :
|
1418
|
+
# The read-only metadata about a profile.
|
1419
|
+
# Corresponds to the JSON property `profileMetadata`
|
1420
|
+
# @return [Google::Apis::PeopleV1::ProfileMetadata]
|
1421
|
+
attr_accessor :profile_metadata
|
1161
1422
|
|
1162
|
-
#
|
1163
|
-
#
|
1164
|
-
#
|
1165
|
-
# * `inARelationship`
|
1166
|
-
# * `engaged`
|
1167
|
-
# * `married`
|
1168
|
-
# * `itsComplicated`
|
1169
|
-
# * `openRelationship`
|
1170
|
-
# * `widowed`
|
1171
|
-
# * `inDomesticPartnership`
|
1172
|
-
# * `inCivilUnion`
|
1173
|
-
# Corresponds to the JSON property `value`
|
1423
|
+
# **Only populated in `person.metadata.sources`.**
|
1424
|
+
# Last update timestamp of this source.
|
1425
|
+
# Corresponds to the JSON property `updateTime`
|
1174
1426
|
# @return [String]
|
1175
|
-
attr_accessor :
|
1427
|
+
attr_accessor :update_time
|
1176
1428
|
|
1177
1429
|
def initialize(**args)
|
1178
1430
|
update!(**args)
|
@@ -1180,39 +1432,22 @@ module Google
|
|
1180
1432
|
|
1181
1433
|
# Update properties of this object
|
1182
1434
|
def update!(**args)
|
1183
|
-
@
|
1184
|
-
@
|
1185
|
-
@
|
1435
|
+
@type = args[:type] if args.key?(:type)
|
1436
|
+
@etag = args[:etag] if args.key?(:etag)
|
1437
|
+
@id = args[:id] if args.key?(:id)
|
1438
|
+
@profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata)
|
1439
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1186
1440
|
end
|
1187
1441
|
end
|
1188
1442
|
|
1189
|
-
#
|
1190
|
-
|
1191
|
-
# significant. The date is relative to the
|
1192
|
-
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
1193
|
-
# Proleptic_Gregorian_calendar).
|
1194
|
-
# The day may be 0 to represent a year and month where the day is not
|
1195
|
-
# significant. The year may be 0 to represent a month and day independent
|
1196
|
-
# of year; for example, anniversary date.
|
1197
|
-
class Date
|
1443
|
+
#
|
1444
|
+
class GetPeopleResponse
|
1198
1445
|
include Google::Apis::Core::Hashable
|
1199
1446
|
|
1200
|
-
#
|
1201
|
-
# Corresponds to the JSON property `
|
1202
|
-
# @return [
|
1203
|
-
attr_accessor :
|
1204
|
-
|
1205
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
1206
|
-
# if specifying a year/month where the day is not significant.
|
1207
|
-
# Corresponds to the JSON property `day`
|
1208
|
-
# @return [Fixnum]
|
1209
|
-
attr_accessor :day
|
1210
|
-
|
1211
|
-
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
1212
|
-
# a year.
|
1213
|
-
# Corresponds to the JSON property `year`
|
1214
|
-
# @return [Fixnum]
|
1215
|
-
attr_accessor :year
|
1447
|
+
# The response for each requested resource name.
|
1448
|
+
# Corresponds to the JSON property `responses`
|
1449
|
+
# @return [Array<Google::Apis::PeopleV1::PersonResponse>]
|
1450
|
+
attr_accessor :responses
|
1216
1451
|
|
1217
1452
|
def initialize(**args)
|
1218
1453
|
update!(**args)
|
@@ -1220,14 +1455,13 @@ module Google
|
|
1220
1455
|
|
1221
1456
|
# Update properties of this object
|
1222
1457
|
def update!(**args)
|
1223
|
-
@
|
1224
|
-
@day = args[:day] if args.key?(:day)
|
1225
|
-
@year = args[:year] if args.key?(:year)
|
1458
|
+
@responses = args[:responses] if args.key?(:responses)
|
1226
1459
|
end
|
1227
1460
|
end
|
1228
1461
|
|
1229
|
-
# A read-only
|
1230
|
-
|
1462
|
+
# A person's read-only photo. A picture shown next to the person's name to
|
1463
|
+
# help others recognize the person.
|
1464
|
+
class Photo
|
1231
1465
|
include Google::Apis::Core::Hashable
|
1232
1466
|
|
1233
1467
|
# Metadata about a field.
|
@@ -1235,10 +1469,13 @@ module Google
|
|
1235
1469
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1236
1470
|
attr_accessor :metadata
|
1237
1471
|
|
1238
|
-
# The
|
1239
|
-
#
|
1472
|
+
# The URL of the photo. You can change the desired size by appending a query
|
1473
|
+
# parameter `sz=<size>` at the end of the url. Example:
|
1474
|
+
# `https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/
|
1475
|
+
# 00gzXvDBYqw/s100/photo.jpg?sz=50`
|
1476
|
+
# Corresponds to the JSON property `url`
|
1240
1477
|
# @return [String]
|
1241
|
-
attr_accessor :
|
1478
|
+
attr_accessor :url
|
1242
1479
|
|
1243
1480
|
def initialize(**args)
|
1244
1481
|
update!(**args)
|
@@ -1247,86 +1484,98 @@ module Google
|
|
1247
1484
|
# Update properties of this object
|
1248
1485
|
def update!(**args)
|
1249
1486
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1250
|
-
@
|
1487
|
+
@url = args[:url] if args.key?(:url)
|
1251
1488
|
end
|
1252
1489
|
end
|
1253
1490
|
|
1254
|
-
# A person's
|
1255
|
-
class
|
1491
|
+
# A person's phone number.
|
1492
|
+
class PhoneNumber
|
1256
1493
|
include Google::Apis::Core::Hashable
|
1257
1494
|
|
1258
|
-
# The
|
1259
|
-
#
|
1495
|
+
# The read-only type of the phone number translated and formatted in the
|
1496
|
+
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
1497
|
+
# Corresponds to the JSON property `formattedType`
|
1260
1498
|
# @return [String]
|
1261
|
-
attr_accessor :
|
1499
|
+
attr_accessor :formatted_type
|
1262
1500
|
|
1263
|
-
# The
|
1264
|
-
#
|
1501
|
+
# The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
|
1502
|
+
# ibr/004/itu-t.E.164.1.2008.pdf)
|
1503
|
+
# form of the phone number.
|
1504
|
+
# Corresponds to the JSON property `canonicalForm`
|
1265
1505
|
# @return [String]
|
1266
|
-
attr_accessor :
|
1506
|
+
attr_accessor :canonical_form
|
1267
1507
|
|
1268
|
-
# The
|
1269
|
-
#
|
1508
|
+
# The type of the phone number. The type can be custom or predefined.
|
1509
|
+
# Possible values include, but are not limited to, the following:
|
1510
|
+
# * `home`
|
1511
|
+
# * `work`
|
1512
|
+
# * `mobile`
|
1513
|
+
# * `homeFax`
|
1514
|
+
# * `workFax`
|
1515
|
+
# * `otherFax`
|
1516
|
+
# * `pager`
|
1517
|
+
# * `workMobile`
|
1518
|
+
# * `workPager`
|
1519
|
+
# * `main`
|
1520
|
+
# * `googleVoice`
|
1521
|
+
# * `other`
|
1522
|
+
# Corresponds to the JSON property `type`
|
1270
1523
|
# @return [String]
|
1271
|
-
attr_accessor :
|
1524
|
+
attr_accessor :type
|
1272
1525
|
|
1273
1526
|
# Metadata about a field.
|
1274
1527
|
# Corresponds to the JSON property `metadata`
|
1275
1528
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1276
1529
|
attr_accessor :metadata
|
1277
1530
|
|
1278
|
-
# The
|
1279
|
-
# Corresponds to the JSON property `
|
1280
|
-
# @return [String]
|
1281
|
-
attr_accessor :phonetic_middle_name
|
1282
|
-
|
1283
|
-
# The full name spelled as it sounds.
|
1284
|
-
# Corresponds to the JSON property `phoneticFullName`
|
1531
|
+
# The phone number.
|
1532
|
+
# Corresponds to the JSON property `value`
|
1285
1533
|
# @return [String]
|
1286
|
-
attr_accessor :
|
1534
|
+
attr_accessor :value
|
1287
1535
|
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
# Corresponds to the JSON property `displayNameLastFirst`
|
1292
|
-
# @return [String]
|
1293
|
-
attr_accessor :display_name_last_first
|
1536
|
+
def initialize(**args)
|
1537
|
+
update!(**args)
|
1538
|
+
end
|
1294
1539
|
|
1295
|
-
#
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1540
|
+
# Update properties of this object
|
1541
|
+
def update!(**args)
|
1542
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1543
|
+
@canonical_form = args[:canonical_form] if args.key?(:canonical_form)
|
1544
|
+
@type = args[:type] if args.key?(:type)
|
1545
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1546
|
+
@value = args[:value] if args.key?(:value)
|
1547
|
+
end
|
1548
|
+
end
|
1300
1549
|
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
attr_accessor :honorific_suffix
|
1550
|
+
#
|
1551
|
+
class ListConnectionsResponse
|
1552
|
+
include Google::Apis::Core::Hashable
|
1305
1553
|
|
1306
|
-
# The
|
1307
|
-
# Corresponds to the JSON property `
|
1554
|
+
# The token that can be used to retrieve the next page of results.
|
1555
|
+
# Corresponds to the JSON property `nextPageToken`
|
1308
1556
|
# @return [String]
|
1309
|
-
attr_accessor :
|
1557
|
+
attr_accessor :next_page_token
|
1310
1558
|
|
1311
|
-
# The
|
1312
|
-
# Corresponds to the JSON property `
|
1313
|
-
# @return [
|
1314
|
-
attr_accessor :
|
1559
|
+
# The total number of items in the list without pagination.
|
1560
|
+
# Corresponds to the JSON property `totalItems`
|
1561
|
+
# @return [Fixnum]
|
1562
|
+
attr_accessor :total_items
|
1315
1563
|
|
1316
|
-
# The
|
1317
|
-
# Corresponds to the JSON property `
|
1564
|
+
# The token that can be used to retrieve changes since the last request.
|
1565
|
+
# Corresponds to the JSON property `nextSyncToken`
|
1318
1566
|
# @return [String]
|
1319
|
-
attr_accessor :
|
1567
|
+
attr_accessor :next_sync_token
|
1320
1568
|
|
1321
|
-
# The
|
1322
|
-
# Corresponds to the JSON property `
|
1323
|
-
# @return [
|
1324
|
-
attr_accessor :
|
1569
|
+
# The list of people that the requestor is connected to.
|
1570
|
+
# Corresponds to the JSON property `connections`
|
1571
|
+
# @return [Array<Google::Apis::PeopleV1::Person>]
|
1572
|
+
attr_accessor :connections
|
1325
1573
|
|
1326
|
-
#
|
1327
|
-
#
|
1328
|
-
#
|
1329
|
-
|
1574
|
+
# **DEPRECATED** (Please use totalItems)
|
1575
|
+
# The total number of people in the list without pagination.
|
1576
|
+
# Corresponds to the JSON property `totalPeople`
|
1577
|
+
# @return [Fixnum]
|
1578
|
+
attr_accessor :total_people
|
1330
1579
|
|
1331
1580
|
def initialize(**args)
|
1332
1581
|
update!(**args)
|
@@ -1334,36 +1583,41 @@ module Google
|
|
1334
1583
|
|
1335
1584
|
# Update properties of this object
|
1336
1585
|
def update!(**args)
|
1337
|
-
@
|
1338
|
-
@
|
1339
|
-
@
|
1340
|
-
@
|
1341
|
-
@
|
1342
|
-
@phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name)
|
1343
|
-
@display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first)
|
1344
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
1345
|
-
@honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
|
1346
|
-
@honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
|
1347
|
-
@phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
|
1348
|
-
@middle_name = args[:middle_name] if args.key?(:middle_name)
|
1349
|
-
@given_name = args[:given_name] if args.key?(:given_name)
|
1350
|
-
@phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
|
1586
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1587
|
+
@total_items = args[:total_items] if args.key?(:total_items)
|
1588
|
+
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
|
1589
|
+
@connections = args[:connections] if args.key?(:connections)
|
1590
|
+
@total_people = args[:total_people] if args.key?(:total_people)
|
1351
1591
|
end
|
1352
1592
|
end
|
1353
1593
|
|
1354
|
-
# A person's
|
1355
|
-
|
1594
|
+
# A person's birthday. At least one of the `date` and `text` fields are
|
1595
|
+
# specified. The `date` and `text` fields typically represent the same
|
1596
|
+
# date, but are not guaranteed to.
|
1597
|
+
class Birthday
|
1356
1598
|
include Google::Apis::Core::Hashable
|
1357
1599
|
|
1600
|
+
# A free-form string representing the user's birthday.
|
1601
|
+
# Corresponds to the JSON property `text`
|
1602
|
+
# @return [String]
|
1603
|
+
attr_accessor :text
|
1604
|
+
|
1358
1605
|
# Metadata about a field.
|
1359
1606
|
# Corresponds to the JSON property `metadata`
|
1360
1607
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1361
1608
|
attr_accessor :metadata
|
1362
1609
|
|
1363
|
-
#
|
1364
|
-
#
|
1365
|
-
#
|
1366
|
-
|
1610
|
+
# Represents a whole calendar date, for example a date of birth. The time
|
1611
|
+
# of day and time zone are either specified elsewhere or are not
|
1612
|
+
# significant. The date is relative to the
|
1613
|
+
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
1614
|
+
# Proleptic_Gregorian_calendar).
|
1615
|
+
# The day may be 0 to represent a year and month where the day is not
|
1616
|
+
# significant. The year may be 0 to represent a month and day independent
|
1617
|
+
# of year; for example, anniversary date.
|
1618
|
+
# Corresponds to the JSON property `date`
|
1619
|
+
# @return [Google::Apis::PeopleV1::Date]
|
1620
|
+
attr_accessor :date
|
1367
1621
|
|
1368
1622
|
def initialize(**args)
|
1369
1623
|
update!(**args)
|
@@ -1371,25 +1625,20 @@ module Google
|
|
1371
1625
|
|
1372
1626
|
# Update properties of this object
|
1373
1627
|
def update!(**args)
|
1628
|
+
@text = args[:text] if args.key?(:text)
|
1374
1629
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1375
|
-
@
|
1630
|
+
@date = args[:date] if args.key?(:date)
|
1376
1631
|
end
|
1377
1632
|
end
|
1378
1633
|
|
1379
|
-
# A
|
1380
|
-
class
|
1634
|
+
# A request to create a new contact group.
|
1635
|
+
class CreateContactGroupRequest
|
1381
1636
|
include Google::Apis::Core::Hashable
|
1382
1637
|
|
1383
|
-
#
|
1384
|
-
# Corresponds to the JSON property `
|
1385
|
-
# @return [Google::Apis::PeopleV1::
|
1386
|
-
attr_accessor :
|
1387
|
-
|
1388
|
-
# The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47)
|
1389
|
-
# language tag representing the locale.
|
1390
|
-
# Corresponds to the JSON property `value`
|
1391
|
-
# @return [String]
|
1392
|
-
attr_accessor :value
|
1638
|
+
# A contact group.
|
1639
|
+
# Corresponds to the JSON property `contactGroup`
|
1640
|
+
# @return [Google::Apis::PeopleV1::ContactGroup]
|
1641
|
+
attr_accessor :contact_group
|
1393
1642
|
|
1394
1643
|
def initialize(**args)
|
1395
1644
|
update!(**args)
|
@@ -1397,106 +1646,81 @@ module Google
|
|
1397
1646
|
|
1398
1647
|
# Update properties of this object
|
1399
1648
|
def update!(**args)
|
1400
|
-
@
|
1401
|
-
@value = args[:value] if args.key?(:value)
|
1649
|
+
@contact_group = args[:contact_group] if args.key?(:contact_group)
|
1402
1650
|
end
|
1403
1651
|
end
|
1404
1652
|
|
1405
|
-
# A person's
|
1406
|
-
#
|
1407
|
-
class
|
1653
|
+
# A person's physical address. May be a P.O. box or street address. All fields
|
1654
|
+
# are optional.
|
1655
|
+
class Address
|
1408
1656
|
include Google::Apis::Core::Hashable
|
1409
1657
|
|
1410
|
-
# The
|
1411
|
-
#
|
1412
|
-
# * `work`
|
1413
|
-
# * `school`
|
1414
|
-
# Corresponds to the JSON property `type`
|
1415
|
-
# @return [String]
|
1416
|
-
attr_accessor :type
|
1417
|
-
|
1418
|
-
# The phonetic name of the organization.
|
1419
|
-
# Corresponds to the JSON property `phoneticName`
|
1420
|
-
# @return [String]
|
1421
|
-
attr_accessor :phonetic_name
|
1422
|
-
|
1423
|
-
# The person's job description at the organization.
|
1424
|
-
# Corresponds to the JSON property `jobDescription`
|
1658
|
+
# The postal code of the address.
|
1659
|
+
# Corresponds to the JSON property `postalCode`
|
1425
1660
|
# @return [String]
|
1426
|
-
attr_accessor :
|
1427
|
-
|
1428
|
-
# Represents a whole calendar date, for example a date of birth. The time
|
1429
|
-
# of day and time zone are either specified elsewhere or are not
|
1430
|
-
# significant. The date is relative to the
|
1431
|
-
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
1432
|
-
# Proleptic_Gregorian_calendar).
|
1433
|
-
# The day may be 0 to represent a year and month where the day is not
|
1434
|
-
# significant. The year may be 0 to represent a month and day independent
|
1435
|
-
# of year; for example, anniversary date.
|
1436
|
-
# Corresponds to the JSON property `endDate`
|
1437
|
-
# @return [Google::Apis::PeopleV1::Date]
|
1438
|
-
attr_accessor :end_date
|
1661
|
+
attr_accessor :postal_code
|
1439
1662
|
|
1440
|
-
# The
|
1441
|
-
#
|
1442
|
-
# Corresponds to the JSON property `symbol`
|
1663
|
+
# The region of the address; for example, the state or province.
|
1664
|
+
# Corresponds to the JSON property `region`
|
1443
1665
|
# @return [String]
|
1444
|
-
attr_accessor :
|
1666
|
+
attr_accessor :region
|
1445
1667
|
|
1446
|
-
# The
|
1447
|
-
# Corresponds to the JSON property `
|
1668
|
+
# The street address.
|
1669
|
+
# Corresponds to the JSON property `streetAddress`
|
1448
1670
|
# @return [String]
|
1449
|
-
attr_accessor :
|
1671
|
+
attr_accessor :street_address
|
1450
1672
|
|
1451
1673
|
# Metadata about a field.
|
1452
1674
|
# Corresponds to the JSON property `metadata`
|
1453
1675
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1454
1676
|
attr_accessor :metadata
|
1455
1677
|
|
1456
|
-
# The
|
1457
|
-
#
|
1678
|
+
# The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
|
1679
|
+
# code of the address.
|
1680
|
+
# Corresponds to the JSON property `countryCode`
|
1458
1681
|
# @return [String]
|
1459
|
-
attr_accessor :
|
1682
|
+
attr_accessor :country_code
|
1460
1683
|
|
1461
|
-
# The
|
1462
|
-
#
|
1684
|
+
# The read-only type of the address translated and formatted in the viewer's
|
1685
|
+
# account locale or the `Accept-Language` HTTP header locale.
|
1686
|
+
# Corresponds to the JSON property `formattedType`
|
1463
1687
|
# @return [String]
|
1464
|
-
attr_accessor :
|
1688
|
+
attr_accessor :formatted_type
|
1465
1689
|
|
1466
|
-
#
|
1467
|
-
#
|
1468
|
-
#
|
1469
|
-
|
1470
|
-
attr_accessor :current
|
1471
|
-
alias_method :current?, :current
|
1690
|
+
# The city of the address.
|
1691
|
+
# Corresponds to the JSON property `city`
|
1692
|
+
# @return [String]
|
1693
|
+
attr_accessor :city
|
1472
1694
|
|
1473
|
-
#
|
1474
|
-
#
|
1475
|
-
#
|
1476
|
-
# [
|
1477
|
-
|
1478
|
-
# The day may be 0 to represent a year and month where the day is not
|
1479
|
-
# significant. The year may be 0 to represent a month and day independent
|
1480
|
-
# of year; for example, anniversary date.
|
1481
|
-
# Corresponds to the JSON property `startDate`
|
1482
|
-
# @return [Google::Apis::PeopleV1::Date]
|
1483
|
-
attr_accessor :start_date
|
1695
|
+
# The unstructured value of the address. If this is not set by the user it
|
1696
|
+
# will be automatically constructed from structured values.
|
1697
|
+
# Corresponds to the JSON property `formattedValue`
|
1698
|
+
# @return [String]
|
1699
|
+
attr_accessor :formatted_value
|
1484
1700
|
|
1485
|
-
# The
|
1486
|
-
#
|
1487
|
-
# Corresponds to the JSON property `formattedType`
|
1701
|
+
# The country of the address.
|
1702
|
+
# Corresponds to the JSON property `country`
|
1488
1703
|
# @return [String]
|
1489
|
-
attr_accessor :
|
1704
|
+
attr_accessor :country
|
1490
1705
|
|
1491
|
-
# The
|
1492
|
-
#
|
1706
|
+
# The type of the address. The type can be custom or predefined.
|
1707
|
+
# Possible values include, but are not limited to, the following:
|
1708
|
+
# * `home`
|
1709
|
+
# * `work`
|
1710
|
+
# * `other`
|
1711
|
+
# Corresponds to the JSON property `type`
|
1493
1712
|
# @return [String]
|
1494
|
-
attr_accessor :
|
1713
|
+
attr_accessor :type
|
1495
1714
|
|
1496
|
-
# The
|
1497
|
-
# Corresponds to the JSON property `
|
1715
|
+
# The extended address of the address; for example, the apartment number.
|
1716
|
+
# Corresponds to the JSON property `extendedAddress`
|
1498
1717
|
# @return [String]
|
1499
|
-
attr_accessor :
|
1718
|
+
attr_accessor :extended_address
|
1719
|
+
|
1720
|
+
# The P.O. box of the address.
|
1721
|
+
# Corresponds to the JSON property `poBox`
|
1722
|
+
# @return [String]
|
1723
|
+
attr_accessor :po_box
|
1500
1724
|
|
1501
1725
|
def initialize(**args)
|
1502
1726
|
update!(**args)
|
@@ -1504,41 +1728,104 @@ module Google
|
|
1504
1728
|
|
1505
1729
|
# Update properties of this object
|
1506
1730
|
def update!(**args)
|
1507
|
-
@
|
1508
|
-
@
|
1509
|
-
@
|
1510
|
-
@end_date = args[:end_date] if args.key?(:end_date)
|
1511
|
-
@symbol = args[:symbol] if args.key?(:symbol)
|
1512
|
-
@name = args[:name] if args.key?(:name)
|
1731
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
1732
|
+
@region = args[:region] if args.key?(:region)
|
1733
|
+
@street_address = args[:street_address] if args.key?(:street_address)
|
1513
1734
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1514
|
-
@
|
1515
|
-
@title = args[:title] if args.key?(:title)
|
1516
|
-
@current = args[:current] if args.key?(:current)
|
1517
|
-
@start_date = args[:start_date] if args.key?(:start_date)
|
1735
|
+
@country_code = args[:country_code] if args.key?(:country_code)
|
1518
1736
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1519
|
-
@
|
1520
|
-
@
|
1737
|
+
@city = args[:city] if args.key?(:city)
|
1738
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
1739
|
+
@country = args[:country] if args.key?(:country)
|
1740
|
+
@type = args[:type] if args.key?(:type)
|
1741
|
+
@extended_address = args[:extended_address] if args.key?(:extended_address)
|
1742
|
+
@po_box = args[:po_box] if args.key?(:po_box)
|
1521
1743
|
end
|
1522
1744
|
end
|
1523
1745
|
|
1524
|
-
# A
|
1525
|
-
class
|
1746
|
+
# A Google contact group membership.
|
1747
|
+
class ContactGroupMembership
|
1526
1748
|
include Google::Apis::Core::Hashable
|
1527
1749
|
|
1528
|
-
#
|
1529
|
-
#
|
1530
|
-
#
|
1531
|
-
|
1532
|
-
|
1533
|
-
#
|
1534
|
-
# Corresponds to the JSON property `
|
1750
|
+
# The contact group ID for the contact group membership. The contact group
|
1751
|
+
# ID can be custom or predefined. Possible values include, but are not
|
1752
|
+
# limited to, the following:
|
1753
|
+
# * `myContacts`
|
1754
|
+
# * `starred`
|
1755
|
+
# * A numerical ID for user-created groups.
|
1756
|
+
# Corresponds to the JSON property `contactGroupId`
|
1535
1757
|
# @return [String]
|
1536
|
-
attr_accessor :
|
1758
|
+
attr_accessor :contact_group_id
|
1537
1759
|
|
1538
|
-
|
1539
|
-
|
1760
|
+
def initialize(**args)
|
1761
|
+
update!(**args)
|
1762
|
+
end
|
1763
|
+
|
1764
|
+
# Update properties of this object
|
1765
|
+
def update!(**args)
|
1766
|
+
@contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
|
1767
|
+
end
|
1768
|
+
end
|
1769
|
+
|
1770
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1771
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
1772
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
1773
|
+
# - Simple to use and understand for most users
|
1774
|
+
# - Flexible enough to meet unexpected needs
|
1775
|
+
# # Overview
|
1776
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
1777
|
+
# and error details. The error code should be an enum value of
|
1778
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
1779
|
+
# error message should be a developer-facing English message that helps
|
1780
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
1781
|
+
# error message is needed, put the localized message in the error details or
|
1782
|
+
# localize it in the client. The optional error details may contain arbitrary
|
1783
|
+
# information about the error. There is a predefined set of error detail types
|
1784
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
1785
|
+
# # Language mapping
|
1786
|
+
# The `Status` message is the logical representation of the error model, but it
|
1787
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
1788
|
+
# exposed in different client libraries and different wire protocols, it can be
|
1789
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
1790
|
+
# in Java, but more likely mapped to some error codes in C.
|
1791
|
+
# # Other uses
|
1792
|
+
# The error model and the `Status` message can be used in a variety of
|
1793
|
+
# environments, either with or without APIs, to provide a
|
1794
|
+
# consistent developer experience across different environments.
|
1795
|
+
# Example uses of this error model include:
|
1796
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
1797
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
1798
|
+
# errors.
|
1799
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
1800
|
+
# have a `Status` message for error reporting.
|
1801
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
1802
|
+
# `Status` message should be used directly inside batch response, one for
|
1803
|
+
# each error sub-response.
|
1804
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
1805
|
+
# results in its response, the status of those operations should be
|
1806
|
+
# represented directly using the `Status` message.
|
1807
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
1808
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
1809
|
+
class Status
|
1810
|
+
include Google::Apis::Core::Hashable
|
1811
|
+
|
1812
|
+
# A developer-facing error message, which should be in English. Any
|
1813
|
+
# user-facing error message should be localized and sent in the
|
1814
|
+
# google.rpc.Status.details field, or localized by the client.
|
1815
|
+
# Corresponds to the JSON property `message`
|
1540
1816
|
# @return [String]
|
1541
|
-
attr_accessor :
|
1817
|
+
attr_accessor :message
|
1818
|
+
|
1819
|
+
# A list of messages that carry the error details. There is a common set of
|
1820
|
+
# message types for APIs to use.
|
1821
|
+
# Corresponds to the JSON property `details`
|
1822
|
+
# @return [Array<Hash<String,Object>>]
|
1823
|
+
attr_accessor :details
|
1824
|
+
|
1825
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1826
|
+
# Corresponds to the JSON property `code`
|
1827
|
+
# @return [Fixnum]
|
1828
|
+
attr_accessor :code
|
1542
1829
|
|
1543
1830
|
def initialize(**args)
|
1544
1831
|
update!(**args)
|
@@ -1546,25 +1833,50 @@ module Google
|
|
1546
1833
|
|
1547
1834
|
# Update properties of this object
|
1548
1835
|
def update!(**args)
|
1549
|
-
@
|
1550
|
-
@
|
1551
|
-
@
|
1836
|
+
@message = args[:message] if args.key?(:message)
|
1837
|
+
@details = args[:details] if args.key?(:details)
|
1838
|
+
@code = args[:code] if args.key?(:code)
|
1552
1839
|
end
|
1553
1840
|
end
|
1554
1841
|
|
1555
|
-
#
|
1556
|
-
class
|
1557
|
-
include Google::Apis::Core::Hashable
|
1842
|
+
# The read-only metadata about a person.
|
1843
|
+
class PersonMetadata
|
1844
|
+
include Google::Apis::Core::Hashable
|
1845
|
+
|
1846
|
+
# Any former resource names this person has had. Populated only for
|
1847
|
+
# [`connections.list`](/people/api/rest/v1/people.connections/list) requests
|
1848
|
+
# that include a sync token.
|
1849
|
+
# The resource name may change when adding or removing fields that link a
|
1850
|
+
# contact and profile such as a verified email, verified phone number, or
|
1851
|
+
# profile URL.
|
1852
|
+
# Corresponds to the JSON property `previousResourceNames`
|
1853
|
+
# @return [Array<String>]
|
1854
|
+
attr_accessor :previous_resource_names
|
1855
|
+
|
1856
|
+
# The sources of data for the person.
|
1857
|
+
# Corresponds to the JSON property `sources`
|
1858
|
+
# @return [Array<Google::Apis::PeopleV1::Source>]
|
1859
|
+
attr_accessor :sources
|
1860
|
+
|
1861
|
+
# True if the person resource has been deleted. Populated only for
|
1862
|
+
# [`connections.list`](/people/api/rest/v1/people.connections/list) requests
|
1863
|
+
# that include a sync token.
|
1864
|
+
# Corresponds to the JSON property `deleted`
|
1865
|
+
# @return [Boolean]
|
1866
|
+
attr_accessor :deleted
|
1867
|
+
alias_method :deleted?, :deleted
|
1558
1868
|
|
1559
|
-
#
|
1560
|
-
#
|
1869
|
+
# **DEPRECATED** (Please use
|
1870
|
+
# `person.metadata.sources.profileMetadata.objectType` instead)
|
1871
|
+
# The type of the person object.
|
1872
|
+
# Corresponds to the JSON property `objectType`
|
1561
1873
|
# @return [String]
|
1562
|
-
attr_accessor :
|
1874
|
+
attr_accessor :object_type
|
1563
1875
|
|
1564
|
-
#
|
1565
|
-
# Corresponds to the JSON property `
|
1566
|
-
# @return [
|
1567
|
-
attr_accessor :
|
1876
|
+
# Resource names of people linked to this resource.
|
1877
|
+
# Corresponds to the JSON property `linkedPeopleResourceNames`
|
1878
|
+
# @return [Array<String>]
|
1879
|
+
attr_accessor :linked_people_resource_names
|
1568
1880
|
|
1569
1881
|
def initialize(**args)
|
1570
1882
|
update!(**args)
|
@@ -1572,34 +1884,29 @@ module Google
|
|
1572
1884
|
|
1573
1885
|
# Update properties of this object
|
1574
1886
|
def update!(**args)
|
1575
|
-
@
|
1576
|
-
@
|
1887
|
+
@previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names)
|
1888
|
+
@sources = args[:sources] if args.key?(:sources)
|
1889
|
+
@deleted = args[:deleted] if args.key?(:deleted)
|
1890
|
+
@object_type = args[:object_type] if args.key?(:object_type)
|
1891
|
+
@linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names)
|
1577
1892
|
end
|
1578
1893
|
end
|
1579
1894
|
|
1580
|
-
#
|
1581
|
-
class
|
1895
|
+
# A request to modify an existing contact group's members.
|
1896
|
+
class ModifyContactGroupMembersRequest
|
1582
1897
|
include Google::Apis::Core::Hashable
|
1583
1898
|
|
1584
|
-
# The
|
1585
|
-
#
|
1586
|
-
#
|
1587
|
-
|
1588
|
-
|
1589
|
-
# True if the field is verified; false if the field is unverified. A
|
1590
|
-
# verified field is typically a name, email address, phone number, or
|
1591
|
-
# website that has been confirmed to be owned by the person.
|
1592
|
-
# Corresponds to the JSON property `verified`
|
1593
|
-
# @return [Boolean]
|
1594
|
-
attr_accessor :verified
|
1595
|
-
alias_method :verified?, :verified
|
1899
|
+
# The resource names of the contact people to add in the form of in the form
|
1900
|
+
# `people/<person_id>`.
|
1901
|
+
# Corresponds to the JSON property `resourceNamesToAdd`
|
1902
|
+
# @return [Array<String>]
|
1903
|
+
attr_accessor :resource_names_to_add
|
1596
1904
|
|
1597
|
-
#
|
1598
|
-
#
|
1599
|
-
# Corresponds to the JSON property `
|
1600
|
-
# @return [
|
1601
|
-
attr_accessor :
|
1602
|
-
alias_method :primary?, :primary
|
1905
|
+
# The resource names of the contact people to remove in the form of in the
|
1906
|
+
# form of `people/<person_id>`.
|
1907
|
+
# Corresponds to the JSON property `resourceNamesToRemove`
|
1908
|
+
# @return [Array<String>]
|
1909
|
+
attr_accessor :resource_names_to_remove
|
1603
1910
|
|
1604
1911
|
def initialize(**args)
|
1605
1912
|
update!(**args)
|
@@ -1607,14 +1914,13 @@ module Google
|
|
1607
1914
|
|
1608
1915
|
# Update properties of this object
|
1609
1916
|
def update!(**args)
|
1610
|
-
@
|
1611
|
-
@
|
1612
|
-
@primary = args[:primary] if args.key?(:primary)
|
1917
|
+
@resource_names_to_add = args[:resource_names_to_add] if args.key?(:resource_names_to_add)
|
1918
|
+
@resource_names_to_remove = args[:resource_names_to_remove] if args.key?(:resource_names_to_remove)
|
1613
1919
|
end
|
1614
1920
|
end
|
1615
1921
|
|
1616
|
-
# The response for a
|
1617
|
-
class
|
1922
|
+
# The response for a specific contact group.
|
1923
|
+
class ContactGroupResponse
|
1618
1924
|
include Google::Apis::Core::Hashable
|
1619
1925
|
|
1620
1926
|
# The `Status` type defines a logical error model that is suitable for different
|
@@ -1660,30 +1966,15 @@ module Google
|
|
1660
1966
|
# @return [Google::Apis::PeopleV1::Status]
|
1661
1967
|
attr_accessor :status
|
1662
1968
|
|
1663
|
-
#
|
1664
|
-
# [HTTP 1.1 status
|
1665
|
-
# code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
|
1666
|
-
# Corresponds to the JSON property `httpStatusCode`
|
1667
|
-
# @return [Fixnum]
|
1668
|
-
attr_accessor :http_status_code
|
1669
|
-
|
1670
|
-
# The original requested resource name. May be different than the resource
|
1671
|
-
# name on the returned person.
|
1672
|
-
# The resource name can change when adding or removing fields that link a
|
1673
|
-
# contact and profile such as a verified email, verified phone number, or a
|
1674
|
-
# profile URL.
|
1969
|
+
# The original requested resource name.
|
1675
1970
|
# Corresponds to the JSON property `requestedResourceName`
|
1676
1971
|
# @return [String]
|
1677
1972
|
attr_accessor :requested_resource_name
|
1678
1973
|
|
1679
|
-
#
|
1680
|
-
#
|
1681
|
-
#
|
1682
|
-
|
1683
|
-
# `metadata.primary` set to true.
|
1684
|
-
# Corresponds to the JSON property `person`
|
1685
|
-
# @return [Google::Apis::PeopleV1::Person]
|
1686
|
-
attr_accessor :person
|
1974
|
+
# A contact group.
|
1975
|
+
# Corresponds to the JSON property `contactGroup`
|
1976
|
+
# @return [Google::Apis::PeopleV1::ContactGroup]
|
1977
|
+
attr_accessor :contact_group
|
1687
1978
|
|
1688
1979
|
def initialize(**args)
|
1689
1980
|
update!(**args)
|
@@ -1692,38 +1983,45 @@ module Google
|
|
1692
1983
|
# Update properties of this object
|
1693
1984
|
def update!(**args)
|
1694
1985
|
@status = args[:status] if args.key?(:status)
|
1695
|
-
@http_status_code = args[:http_status_code] if args.key?(:http_status_code)
|
1696
1986
|
@requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
|
1697
|
-
@
|
1987
|
+
@contact_group = args[:contact_group] if args.key?(:contact_group)
|
1698
1988
|
end
|
1699
1989
|
end
|
1700
1990
|
|
1701
|
-
# A person's
|
1702
|
-
class
|
1991
|
+
# A person's associated URLs.
|
1992
|
+
class Url
|
1703
1993
|
include Google::Apis::Core::Hashable
|
1704
1994
|
|
1995
|
+
# The type of the URL. The type can be custom or predefined.
|
1996
|
+
# Possible values include, but are not limited to, the following:
|
1997
|
+
# * `home`
|
1998
|
+
# * `work`
|
1999
|
+
# * `blog`
|
2000
|
+
# * `profile`
|
2001
|
+
# * `homePage`
|
2002
|
+
# * `ftp`
|
2003
|
+
# * `reservations`
|
2004
|
+
# * `appInstallPage`: website for a Google+ application.
|
2005
|
+
# * `other`
|
2006
|
+
# Corresponds to the JSON property `type`
|
2007
|
+
# @return [String]
|
2008
|
+
attr_accessor :type
|
2009
|
+
|
1705
2010
|
# Metadata about a field.
|
1706
2011
|
# Corresponds to the JSON property `metadata`
|
1707
2012
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1708
2013
|
attr_accessor :metadata
|
1709
2014
|
|
1710
|
-
# The
|
1711
|
-
# or predefined. Possible values include, but are not limited to, the
|
1712
|
-
# following values:
|
1713
|
-
# * `friend`
|
1714
|
-
# * `date`
|
1715
|
-
# * `relationship`
|
1716
|
-
# * `networking`
|
2015
|
+
# The URL.
|
1717
2016
|
# Corresponds to the JSON property `value`
|
1718
2017
|
# @return [String]
|
1719
2018
|
attr_accessor :value
|
1720
2019
|
|
1721
|
-
# The
|
1722
|
-
#
|
1723
|
-
#
|
1724
|
-
# Corresponds to the JSON property `formattedValue`
|
2020
|
+
# The read-only type of the URL translated and formatted in the viewer's
|
2021
|
+
# account locale or the `Accept-Language` HTTP header locale.
|
2022
|
+
# Corresponds to the JSON property `formattedType`
|
1725
2023
|
# @return [String]
|
1726
|
-
attr_accessor :
|
2024
|
+
attr_accessor :formatted_type
|
1727
2025
|
|
1728
2026
|
def initialize(**args)
|
1729
2027
|
update!(**args)
|
@@ -1731,37 +2029,62 @@ module Google
|
|
1731
2029
|
|
1732
2030
|
# Update properties of this object
|
1733
2031
|
def update!(**args)
|
2032
|
+
@type = args[:type] if args.key?(:type)
|
1734
2033
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1735
2034
|
@value = args[:value] if args.key?(:value)
|
1736
|
-
@
|
2035
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1737
2036
|
end
|
1738
2037
|
end
|
1739
2038
|
|
1740
|
-
#
|
1741
|
-
class
|
2039
|
+
# A person's instant messaging client.
|
2040
|
+
class ImClient
|
1742
2041
|
include Google::Apis::Core::Hashable
|
1743
2042
|
|
1744
|
-
#
|
2043
|
+
# Metadata about a field.
|
2044
|
+
# Corresponds to the JSON property `metadata`
|
2045
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
2046
|
+
attr_accessor :metadata
|
2047
|
+
|
2048
|
+
# The type of the IM client. The type can be custom or predefined.
|
2049
|
+
# Possible values include, but are not limited to, the following:
|
2050
|
+
# * `home`
|
2051
|
+
# * `work`
|
2052
|
+
# * `other`
|
1745
2053
|
# Corresponds to the JSON property `type`
|
1746
2054
|
# @return [String]
|
1747
2055
|
attr_accessor :type
|
1748
2056
|
|
1749
|
-
# The
|
1750
|
-
#
|
1751
|
-
#
|
1752
|
-
#
|
2057
|
+
# The protocol of the IM client. The protocol can be custom or predefined.
|
2058
|
+
# Possible values include, but are not limited to, the following:
|
2059
|
+
# * `aim`
|
2060
|
+
# * `msn`
|
2061
|
+
# * `yahoo`
|
2062
|
+
# * `skype`
|
2063
|
+
# * `qq`
|
2064
|
+
# * `googleTalk`
|
2065
|
+
# * `icq`
|
2066
|
+
# * `jabber`
|
2067
|
+
# * `netMeeting`
|
2068
|
+
# Corresponds to the JSON property `protocol`
|
1753
2069
|
# @return [String]
|
1754
|
-
attr_accessor :
|
2070
|
+
attr_accessor :protocol
|
1755
2071
|
|
1756
|
-
# The
|
1757
|
-
# Corresponds to the JSON property `
|
2072
|
+
# The user name used in the IM client.
|
2073
|
+
# Corresponds to the JSON property `username`
|
1758
2074
|
# @return [String]
|
1759
|
-
attr_accessor :
|
2075
|
+
attr_accessor :username
|
1760
2076
|
|
1761
|
-
# The read-only
|
1762
|
-
#
|
1763
|
-
#
|
1764
|
-
|
2077
|
+
# The read-only protocol of the IM client formatted in the viewer's account
|
2078
|
+
# locale or the `Accept-Language` HTTP header locale.
|
2079
|
+
# Corresponds to the JSON property `formattedProtocol`
|
2080
|
+
# @return [String]
|
2081
|
+
attr_accessor :formatted_protocol
|
2082
|
+
|
2083
|
+
# The read-only type of the IM client translated and formatted in the
|
2084
|
+
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
2085
|
+
# Corresponds to the JSON property `formattedType`
|
2086
|
+
# @return [String]
|
2087
|
+
attr_accessor :formatted_type
|
1765
2088
|
|
1766
2089
|
def initialize(**args)
|
1767
2090
|
update!(**args)
|
@@ -1769,53 +2092,72 @@ module Google
|
|
1769
2092
|
|
1770
2093
|
# Update properties of this object
|
1771
2094
|
def update!(**args)
|
2095
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1772
2096
|
@type = args[:type] if args.key?(:type)
|
1773
|
-
@
|
1774
|
-
@
|
1775
|
-
@
|
2097
|
+
@protocol = args[:protocol] if args.key?(:protocol)
|
2098
|
+
@username = args[:username] if args.key?(:username)
|
2099
|
+
@formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
|
2100
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1776
2101
|
end
|
1777
2102
|
end
|
1778
2103
|
|
1779
|
-
# A
|
1780
|
-
class
|
2104
|
+
# A Google Apps Domain membership.
|
2105
|
+
class DomainMembership
|
1781
2106
|
include Google::Apis::Core::Hashable
|
1782
2107
|
|
1783
|
-
#
|
1784
|
-
#
|
1785
|
-
#
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
#
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
2108
|
+
# True if the person is in the viewer's Google Apps domain.
|
2109
|
+
# Corresponds to the JSON property `inViewerDomain`
|
2110
|
+
# @return [Boolean]
|
2111
|
+
attr_accessor :in_viewer_domain
|
2112
|
+
alias_method :in_viewer_domain?, :in_viewer_domain
|
2113
|
+
|
2114
|
+
def initialize(**args)
|
2115
|
+
update!(**args)
|
2116
|
+
end
|
2117
|
+
|
2118
|
+
# Update properties of this object
|
2119
|
+
def update!(**args)
|
2120
|
+
@in_viewer_domain = args[:in_viewer_domain] if args.key?(:in_viewer_domain)
|
2121
|
+
end
|
2122
|
+
end
|
2123
|
+
|
2124
|
+
# The response to a batch get contact groups request.
|
2125
|
+
class BatchGetContactGroupsResponse
|
2126
|
+
include Google::Apis::Core::Hashable
|
2127
|
+
|
2128
|
+
# The list of responses for each requested contact group resource.
|
2129
|
+
# Corresponds to the JSON property `responses`
|
2130
|
+
# @return [Array<Google::Apis::PeopleV1::ContactGroupResponse>]
|
2131
|
+
attr_accessor :responses
|
2132
|
+
|
2133
|
+
def initialize(**args)
|
2134
|
+
update!(**args)
|
2135
|
+
end
|
2136
|
+
|
2137
|
+
# Update properties of this object
|
2138
|
+
def update!(**args)
|
2139
|
+
@responses = args[:responses] if args.key?(:responses)
|
2140
|
+
end
|
2141
|
+
end
|
2142
|
+
|
2143
|
+
# A person's read-only membership in a group.
|
2144
|
+
class Membership
|
2145
|
+
include Google::Apis::Core::Hashable
|
1803
2146
|
|
1804
2147
|
# Metadata about a field.
|
1805
2148
|
# Corresponds to the JSON property `metadata`
|
1806
2149
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1807
2150
|
attr_accessor :metadata
|
1808
2151
|
|
1809
|
-
#
|
1810
|
-
#
|
1811
|
-
#
|
1812
|
-
|
1813
|
-
attr_accessor :formatted_type
|
2152
|
+
# A Google Apps Domain membership.
|
2153
|
+
# Corresponds to the JSON property `domainMembership`
|
2154
|
+
# @return [Google::Apis::PeopleV1::DomainMembership]
|
2155
|
+
attr_accessor :domain_membership
|
1814
2156
|
|
1815
|
-
#
|
1816
|
-
# Corresponds to the JSON property `
|
1817
|
-
# @return [
|
1818
|
-
attr_accessor :
|
2157
|
+
# A Google contact group membership.
|
2158
|
+
# Corresponds to the JSON property `contactGroupMembership`
|
2159
|
+
# @return [Google::Apis::PeopleV1::ContactGroupMembership]
|
2160
|
+
attr_accessor :contact_group_membership
|
1819
2161
|
|
1820
2162
|
def initialize(**args)
|
1821
2163
|
update!(**args)
|
@@ -1823,10 +2165,9 @@ module Google
|
|
1823
2165
|
|
1824
2166
|
# Update properties of this object
|
1825
2167
|
def update!(**args)
|
1826
|
-
@type = args[:type] if args.key?(:type)
|
1827
2168
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1828
|
-
@
|
1829
|
-
@
|
2169
|
+
@domain_membership = args[:domain_membership] if args.key?(:domain_membership)
|
2170
|
+
@contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
|
1830
2171
|
end
|
1831
2172
|
end
|
1832
2173
|
end
|