google-apis-people_v1 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/people_v1.rb +2 -2
- data/lib/google/apis/people_v1/classes.rb +59 -3
- data/lib/google/apis/people_v1/gem_version.rb +3 -3
- data/lib/google/apis/people_v1/representations.rb +19 -0
- data/lib/google/apis/people_v1/service.rb +21 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 722360228b5721af19333825ca00841953d4b9fdee68bfbfb38d2c2f0e472a0f
|
4
|
+
data.tar.gz: 6eec5b6eafa5ec5a92edb8e7a4a62d4dd080522f50cb8a34a8bd98db5f4ac76c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7cd2e540c13aa4792bd5638c0a90bec01e8d2efb568b70e43bc880bdb9aa901523ef249d9121e49bb8b8d63c8eebaf58411c17a827a6deff438aaa4fbd8c5b0
|
7
|
+
data.tar.gz: 0616bb73150b46a66afc4b9910fa726d3060835969f31eee37037270d5af968af316bf55f299538ff338ebe38fee7064d87dd6cbea27020f9853be3c4c7595ce
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-people_v1
|
2
2
|
|
3
|
+
### v0.2.0 (2021-01-21)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210120
|
6
|
+
* Regenerated using generator version 0.1.2
|
7
|
+
|
3
8
|
### v0.1.0 (2021-01-07)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20210105
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# View your street addresses
|
45
45
|
AUTH_USER_ADDRESSES_READ = 'https://www.googleapis.com/auth/user.addresses.read'
|
46
46
|
|
47
|
-
#
|
47
|
+
# See and download your exact date of birth
|
48
48
|
AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read'
|
49
49
|
|
50
50
|
# View your email addresses
|
@@ -56,7 +56,7 @@ module Google
|
|
56
56
|
# See your education, work history and org info
|
57
57
|
AUTH_USER_ORGANIZATION_READ = 'https://www.googleapis.com/auth/user.organization.read'
|
58
58
|
|
59
|
-
#
|
59
|
+
# See and download your personal phone numbers
|
60
60
|
AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read'
|
61
61
|
|
62
62
|
# View your email address
|
@@ -327,6 +327,11 @@ module Google
|
|
327
327
|
class ContactGroup
|
328
328
|
include Google::Apis::Core::Hashable
|
329
329
|
|
330
|
+
# The group's client data.
|
331
|
+
# Corresponds to the JSON property `clientData`
|
332
|
+
# @return [Array<Google::Apis::PeopleV1::GroupClientData>]
|
333
|
+
attr_accessor :client_data
|
334
|
+
|
330
335
|
# The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource.
|
331
336
|
# Used for web cache validation.
|
332
337
|
# Corresponds to the JSON property `etag`
|
@@ -352,9 +357,8 @@ module Google
|
|
352
357
|
attr_accessor :member_count
|
353
358
|
|
354
359
|
# Output only. The list of contact person resource names that are members of the
|
355
|
-
# contact group. The field is
|
356
|
-
#
|
357
|
-
# contactgroups/members/modify).
|
360
|
+
# contact group. The field is only populated for GET requests and will only
|
361
|
+
# return as many members as `maxMembers` in the get request.
|
358
362
|
# Corresponds to the JSON property `memberResourceNames`
|
359
363
|
# @return [Array<String>]
|
360
364
|
attr_accessor :member_resource_names
|
@@ -382,6 +386,7 @@ module Google
|
|
382
386
|
|
383
387
|
# Update properties of this object
|
384
388
|
def update!(**args)
|
389
|
+
@client_data = args[:client_data] if args.key?(:client_data)
|
385
390
|
@etag = args[:etag] if args.key?(:etag)
|
386
391
|
@formatted_name = args[:formatted_name] if args.key?(:formatted_name)
|
387
392
|
@group_type = args[:group_type] if args.key?(:group_type)
|
@@ -570,6 +575,13 @@ module Google
|
|
570
575
|
# @return [Google::Apis::PeopleV1::ContactGroup]
|
571
576
|
attr_accessor :contact_group
|
572
577
|
|
578
|
+
# Optional. A field mask to restrict which fields on the group are returned.
|
579
|
+
# Defaults to `metadata`, `groupType`, and `name` if not set or set to empty.
|
580
|
+
# Valid fields are: * clientData * groupType * metadata * name
|
581
|
+
# Corresponds to the JSON property `readGroupFields`
|
582
|
+
# @return [String]
|
583
|
+
attr_accessor :read_group_fields
|
584
|
+
|
573
585
|
def initialize(**args)
|
574
586
|
update!(**args)
|
575
587
|
end
|
@@ -577,6 +589,7 @@ module Google
|
|
577
589
|
# Update properties of this object
|
578
590
|
def update!(**args)
|
579
591
|
@contact_group = args[:contact_group] if args.key?(:contact_group)
|
592
|
+
@read_group_fields = args[:read_group_fields] if args.key?(:read_group_fields)
|
580
593
|
end
|
581
594
|
end
|
582
595
|
|
@@ -931,6 +944,32 @@ module Google
|
|
931
944
|
end
|
932
945
|
end
|
933
946
|
|
947
|
+
# Arbitrary client data that is populated by clients. Duplicate keys and values
|
948
|
+
# are allowed. LINT.IfChange(GroupClientData)
|
949
|
+
class GroupClientData
|
950
|
+
include Google::Apis::Core::Hashable
|
951
|
+
|
952
|
+
# The client specified key of the client data.
|
953
|
+
# Corresponds to the JSON property `key`
|
954
|
+
# @return [String]
|
955
|
+
attr_accessor :key
|
956
|
+
|
957
|
+
# The client specified value of the client data.
|
958
|
+
# Corresponds to the JSON property `value`
|
959
|
+
# @return [String]
|
960
|
+
attr_accessor :value
|
961
|
+
|
962
|
+
def initialize(**args)
|
963
|
+
update!(**args)
|
964
|
+
end
|
965
|
+
|
966
|
+
# Update properties of this object
|
967
|
+
def update!(**args)
|
968
|
+
@key = args[:key] if args.key?(:key)
|
969
|
+
@value = args[:value] if args.key?(:value)
|
970
|
+
end
|
971
|
+
end
|
972
|
+
|
934
973
|
# A person's instant messaging client.
|
935
974
|
class ImClient
|
936
975
|
include Google::Apis::Core::Hashable
|
@@ -2482,6 +2521,21 @@ module Google
|
|
2482
2521
|
# @return [Google::Apis::PeopleV1::ContactGroup]
|
2483
2522
|
attr_accessor :contact_group
|
2484
2523
|
|
2524
|
+
# Optional. A field mask to restrict which fields on the group are returned.
|
2525
|
+
# Defaults to `metadata`, `groupType`, and `name` if not set or set to empty.
|
2526
|
+
# Valid fields are: * clientData * groupType * memberCount * metadata * name
|
2527
|
+
# Corresponds to the JSON property `readGroupFields`
|
2528
|
+
# @return [String]
|
2529
|
+
attr_accessor :read_group_fields
|
2530
|
+
|
2531
|
+
# Optional. A field mask to restrict which fields on the group are updated.
|
2532
|
+
# Multiple fields can be specified by separating them with commas. Defaults to `
|
2533
|
+
# name` if not set or set to empty. Updated fields are replaced. Valid values
|
2534
|
+
# are: * clientData * name
|
2535
|
+
# Corresponds to the JSON property `updateGroupFields`
|
2536
|
+
# @return [String]
|
2537
|
+
attr_accessor :update_group_fields
|
2538
|
+
|
2485
2539
|
def initialize(**args)
|
2486
2540
|
update!(**args)
|
2487
2541
|
end
|
@@ -2489,6 +2543,8 @@ module Google
|
|
2489
2543
|
# Update properties of this object
|
2490
2544
|
def update!(**args)
|
2491
2545
|
@contact_group = args[:contact_group] if args.key?(:contact_group)
|
2546
|
+
@read_group_fields = args[:read_group_fields] if args.key?(:read_group_fields)
|
2547
|
+
@update_group_fields = args[:update_group_fields] if args.key?(:update_group_fields)
|
2492
2548
|
end
|
2493
2549
|
end
|
2494
2550
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module PeopleV1
|
18
18
|
# Version of the google-apis-people_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210120"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -178,6 +178,12 @@ module Google
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
179
179
|
end
|
180
180
|
|
181
|
+
class GroupClientData
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
181
187
|
class ImClient
|
182
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
189
|
|
@@ -490,6 +496,8 @@ module Google
|
|
490
496
|
class ContactGroup
|
491
497
|
# @private
|
492
498
|
class Representation < Google::Apis::Core::JsonRepresentation
|
499
|
+
collection :client_data, as: 'clientData', class: Google::Apis::PeopleV1::GroupClientData, decorator: Google::Apis::PeopleV1::GroupClientData::Representation
|
500
|
+
|
493
501
|
property :etag, as: 'etag'
|
494
502
|
property :formatted_name, as: 'formattedName'
|
495
503
|
property :group_type, as: 'groupType'
|
@@ -553,6 +561,7 @@ module Google
|
|
553
561
|
class Representation < Google::Apis::Core::JsonRepresentation
|
554
562
|
property :contact_group, as: 'contactGroup', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation
|
555
563
|
|
564
|
+
property :read_group_fields, as: 'readGroupFields'
|
556
565
|
end
|
557
566
|
end
|
558
567
|
|
@@ -659,6 +668,14 @@ module Google
|
|
659
668
|
end
|
660
669
|
end
|
661
670
|
|
671
|
+
class GroupClientData
|
672
|
+
# @private
|
673
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
674
|
+
property :key, as: 'key'
|
675
|
+
property :value, as: 'value'
|
676
|
+
end
|
677
|
+
end
|
678
|
+
|
662
679
|
class ImClient
|
663
680
|
# @private
|
664
681
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1090,6 +1107,8 @@ module Google
|
|
1090
1107
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1091
1108
|
property :contact_group, as: 'contactGroup', class: Google::Apis::PeopleV1::ContactGroup, decorator: Google::Apis::PeopleV1::ContactGroup::Representation
|
1092
1109
|
|
1110
|
+
property :read_group_fields, as: 'readGroupFields'
|
1111
|
+
property :update_group_fields, as: 'updateGroupFields'
|
1093
1112
|
end
|
1094
1113
|
end
|
1095
1114
|
|
@@ -51,6 +51,11 @@ module Google
|
|
51
51
|
|
52
52
|
# Get a list of contact groups owned by the authenticated user by specifying a
|
53
53
|
# list of contact group resource names.
|
54
|
+
# @param [String] group_fields
|
55
|
+
# Optional. A field mask to restrict which fields on the group are returned.
|
56
|
+
# Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or
|
57
|
+
# set to empty. Valid fields are: * clientData * groupType * memberCount *
|
58
|
+
# metadata * name
|
54
59
|
# @param [Fixnum] max_members
|
55
60
|
# Optional. Specifies the maximum number of members to return for each group.
|
56
61
|
# Defaults to 0 if not set, which will return zero members.
|
@@ -73,10 +78,11 @@ module Google
|
|
73
78
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
79
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
80
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
-
def batch_contact_group_get(max_members: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
+
def batch_contact_group_get(group_fields: nil, max_members: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block)
|
77
82
|
command = make_simple_command(:get, 'v1/contactGroups:batchGet', options)
|
78
83
|
command.response_representation = Google::Apis::PeopleV1::BatchGetContactGroupsResponse::Representation
|
79
84
|
command.response_class = Google::Apis::PeopleV1::BatchGetContactGroupsResponse
|
85
|
+
command.query['groupFields'] = group_fields unless group_fields.nil?
|
80
86
|
command.query['maxMembers'] = max_members unless max_members.nil?
|
81
87
|
command.query['resourceNames'] = resource_names unless resource_names.nil?
|
82
88
|
command.query['fields'] = fields unless fields.nil?
|
@@ -152,6 +158,11 @@ module Google
|
|
152
158
|
# contact group resource name.
|
153
159
|
# @param [String] resource_name
|
154
160
|
# Required. The resource name of the contact group to get.
|
161
|
+
# @param [String] group_fields
|
162
|
+
# Optional. A field mask to restrict which fields on the group are returned.
|
163
|
+
# Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or
|
164
|
+
# set to empty. Valid fields are: * clientData * groupType * memberCount *
|
165
|
+
# metadata * name
|
155
166
|
# @param [Fixnum] max_members
|
156
167
|
# Optional. Specifies the maximum number of members to return. Defaults to 0 if
|
157
168
|
# not set, which will return zero members.
|
@@ -172,11 +183,12 @@ module Google
|
|
172
183
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
173
184
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
174
185
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
175
|
-
def get_contact_group(resource_name, max_members: nil, fields: nil, quota_user: nil, options: nil, &block)
|
186
|
+
def get_contact_group(resource_name, group_fields: nil, max_members: nil, fields: nil, quota_user: nil, options: nil, &block)
|
176
187
|
command = make_simple_command(:get, 'v1/{+resourceName}', options)
|
177
188
|
command.response_representation = Google::Apis::PeopleV1::ContactGroup::Representation
|
178
189
|
command.response_class = Google::Apis::PeopleV1::ContactGroup
|
179
190
|
command.params['resourceName'] = resource_name unless resource_name.nil?
|
191
|
+
command.query['groupFields'] = group_fields unless group_fields.nil?
|
180
192
|
command.query['maxMembers'] = max_members unless max_members.nil?
|
181
193
|
command.query['fields'] = fields unless fields.nil?
|
182
194
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -185,6 +197,11 @@ module Google
|
|
185
197
|
|
186
198
|
# List all contact groups owned by the authenticated user. Members of the
|
187
199
|
# contact groups are not populated.
|
200
|
+
# @param [String] group_fields
|
201
|
+
# Optional. A field mask to restrict which fields on the group are returned.
|
202
|
+
# Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or
|
203
|
+
# set to empty. Valid fields are: * clientData * groupType * memberCount *
|
204
|
+
# metadata * name
|
188
205
|
# @param [Fixnum] page_size
|
189
206
|
# Optional. The maximum number of resources to return. Valid values are between
|
190
207
|
# 1 and 1000, inclusive. Defaults to 30 if not set or set to 0.
|
@@ -212,10 +229,11 @@ module Google
|
|
212
229
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
213
230
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
214
231
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
215
|
-
def list_contact_groups(page_size: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
232
|
+
def list_contact_groups(group_fields: nil, page_size: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
216
233
|
command = make_simple_command(:get, 'v1/contactGroups', options)
|
217
234
|
command.response_representation = Google::Apis::PeopleV1::ListContactGroupsResponse::Representation
|
218
235
|
command.response_class = Google::Apis::PeopleV1::ListContactGroupsResponse
|
236
|
+
command.query['groupFields'] = group_fields unless group_fields.nil?
|
219
237
|
command.query['pageSize'] = page_size unless page_size.nil?
|
220
238
|
command.query['pageToken'] = page_token unless page_token.nil?
|
221
239
|
command.query['syncToken'] = sync_token unless sync_token.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-people_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-people_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-people_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-people_v1/v0.2.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-people_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for People API V1
|