google-apis-people_v1 0.7.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bef7c08a2ceaa8531870c163208c4f0e93b289a234deef4780f0a3bd4b110269
|
4
|
+
data.tar.gz: b4e52655985eb8e1e71acf2cf31c16e697c7b011c4df60077359663e010e235d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba410470d9a42a171f108c4ab5da854d628086f3b4b031f95118e4a9d960957e8ec8fefe80bd5e58232335ebce9f4fc8641f4ffb6c9d5d30a99a6d2c94bdfd5b
|
7
|
+
data.tar.gz: 39f598ce84d039f17a5ad2f205b0c7f08d49f04b3ee25d346c6926779bca9d2e88444f7d1ad7e75d83590fd5babd550b15b68b2f227738cd9232fd486026fc0d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-people_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-06-09)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210607
|
6
|
+
* Regenerated using generator version 0.3.0
|
7
|
+
|
8
|
+
### v0.11.0 (2021-05-28)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20210526
|
11
|
+
|
12
|
+
### v0.10.0 (2021-05-19)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210515
|
15
|
+
|
16
|
+
### v0.9.0 (2021-04-21)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210419
|
19
|
+
|
20
|
+
### v0.8.0 (2021-03-31)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210330
|
23
|
+
|
3
24
|
### v0.7.0 (2021-03-24)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210322
|
@@ -831,11 +831,11 @@ module Google
|
|
831
831
|
end
|
832
832
|
end
|
833
833
|
|
834
|
-
# A
|
834
|
+
# A Google Workspace Domain membership.
|
835
835
|
class DomainMembership
|
836
836
|
include Google::Apis::Core::Hashable
|
837
837
|
|
838
|
-
# True if the person is in the viewer's
|
838
|
+
# True if the person is in the viewer's Google Workspace domain.
|
839
839
|
# Corresponds to the JSON property `inViewerDomain`
|
840
840
|
# @return [Boolean]
|
841
841
|
attr_accessor :in_viewer_domain
|
@@ -1364,6 +1364,11 @@ module Google
|
|
1364
1364
|
# @return [Array<Google::Apis::PeopleV1::Person>]
|
1365
1365
|
attr_accessor :other_contacts
|
1366
1366
|
|
1367
|
+
# The total number of other contacts in the list without pagination.
|
1368
|
+
# Corresponds to the JSON property `totalSize`
|
1369
|
+
# @return [Fixnum]
|
1370
|
+
attr_accessor :total_size
|
1371
|
+
|
1367
1372
|
def initialize(**args)
|
1368
1373
|
update!(**args)
|
1369
1374
|
end
|
@@ -1373,6 +1378,7 @@ module Google
|
|
1373
1378
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1374
1379
|
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
|
1375
1380
|
@other_contacts = args[:other_contacts] if args.key?(:other_contacts)
|
1381
|
+
@total_size = args[:total_size] if args.key?(:total_size)
|
1376
1382
|
end
|
1377
1383
|
end
|
1378
1384
|
|
@@ -1475,7 +1481,7 @@ module Google
|
|
1475
1481
|
# @return [Google::Apis::PeopleV1::ContactGroupMembership]
|
1476
1482
|
attr_accessor :contact_group_membership
|
1477
1483
|
|
1478
|
-
# A
|
1484
|
+
# A Google Workspace Domain membership.
|
1479
1485
|
# Corresponds to the JSON property `domainMembership`
|
1480
1486
|
# @return [Google::Apis::PeopleV1::DomainMembership]
|
1481
1487
|
attr_accessor :domain_membership
|
@@ -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.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210607"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -838,6 +838,7 @@ module Google
|
|
838
838
|
property :next_sync_token, as: 'nextSyncToken'
|
839
839
|
collection :other_contacts, as: 'otherContacts', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
|
840
840
|
|
841
|
+
property :total_size, as: 'totalSize'
|
841
842
|
end
|
842
843
|
end
|
843
844
|
|
@@ -60,7 +60,8 @@ module Google
|
|
60
60
|
# Optional. Specifies the maximum number of members to return for each group.
|
61
61
|
# Defaults to 0 if not set, which will return zero members.
|
62
62
|
# @param [Array<String>, String] resource_names
|
63
|
-
# Required. The resource names of the contact groups to get.
|
63
|
+
# Required. The resource names of the contact groups to get. There is a maximum
|
64
|
+
# of 200 resource names.
|
64
65
|
# @param [String] fields
|
65
66
|
# Selector specifying which fields to include in a partial response.
|
66
67
|
# @param [String] quota_user
|
@@ -403,10 +404,14 @@ module Google
|
|
403
404
|
end
|
404
405
|
|
405
406
|
# Provides a list of contacts in the authenticated user's other contacts that
|
406
|
-
# matches the search query.
|
407
|
+
# matches the search query. The query matches on a contact's `names`, `
|
408
|
+
# emailAddresses`, and `phoneNumbers` fields that are from the OTHER_CONTACT
|
409
|
+
# source. **IMPORTANT**: Before searching, clients should send a warmup request
|
410
|
+
# with an empty query to update the cache. See https://developers.google.com/
|
411
|
+
# people/v1/other-contacts#search_the_users_other_contacts
|
407
412
|
# @param [Fixnum] page_size
|
408
413
|
# Optional. The number of results to return. Defaults to 10 if field is not set,
|
409
|
-
# or set to 0.
|
414
|
+
# or set to 0. Values greater than 10 will be capped to 10.
|
410
415
|
# @param [String] query
|
411
416
|
# Required. The plain-text query for the request. The query is used to match
|
412
417
|
# prefix phrases of the fields on a person. For example, a person with name "foo
|
@@ -446,7 +451,7 @@ module Google
|
|
446
451
|
end
|
447
452
|
|
448
453
|
# Create a batch of new contacts and return the PersonResponses for the newly
|
449
|
-
# created contacts.
|
454
|
+
# created contacts. Limited to 10 parallel requests per user.
|
450
455
|
# @param [Google::Apis::PeopleV1::BatchCreateContactsRequest] batch_create_contacts_request_object
|
451
456
|
# @param [String] fields
|
452
457
|
# Selector specifying which fields to include in a partial response.
|
@@ -476,7 +481,8 @@ module Google
|
|
476
481
|
execute_or_queue_command(command, &block)
|
477
482
|
end
|
478
483
|
|
479
|
-
# Delete a batch of contacts. Any non-contact data will not be deleted.
|
484
|
+
# Delete a batch of contacts. Any non-contact data will not be deleted. Limited
|
485
|
+
# to 10 parallel requests per user.
|
480
486
|
# @param [Google::Apis::PeopleV1::BatchDeleteContactsRequest] batch_delete_contacts_request_object
|
481
487
|
# @param [String] fields
|
482
488
|
# Selector specifying which fields to include in a partial response.
|
@@ -507,7 +513,8 @@ module Google
|
|
507
513
|
end
|
508
514
|
|
509
515
|
# Update a batch of contacts and return a map of resource names to
|
510
|
-
# PersonResponses for the updated contacts.
|
516
|
+
# PersonResponses for the updated contacts. Limited to 10 parallel requests per
|
517
|
+
# user.
|
511
518
|
# @param [Google::Apis::PeopleV1::BatchUpdateContactsRequest] batch_update_contacts_request_object
|
512
519
|
# @param [String] fields
|
513
520
|
# Selector specifying which fields to include in a partial response.
|
@@ -735,8 +742,8 @@ module Google
|
|
735
742
|
# specify `people/me`. - To get information about a google account, specify `
|
736
743
|
# people/`account_id``. - To get information about a contact, specify the
|
737
744
|
# resource name that identifies the contact as returned by [`people.connections.
|
738
|
-
# list`](/people/api/rest/v1/people.connections/list).
|
739
|
-
# resource names
|
745
|
+
# list`](/people/api/rest/v1/people.connections/list). There is a maximum of 200
|
746
|
+
# resource names.
|
740
747
|
# @param [Array<String>, String] sources
|
741
748
|
# Optional. A mask of what source types to return. Defaults to
|
742
749
|
# READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
|
@@ -836,9 +843,14 @@ module Google
|
|
836
843
|
end
|
837
844
|
|
838
845
|
# Provides a list of contacts in the authenticated user's grouped contacts that
|
839
|
-
# matches the search query.
|
846
|
+
# matches the search query. The query matches on a contact's `names`, `nickNames`
|
847
|
+
# , `emailAddresses`, `phoneNumbers`, and `organizations` fields that are from
|
848
|
+
# the CONTACT" source. **IMPORTANT**: Before searching, clients should send a
|
849
|
+
# warmup request with an empty query to update the cache. See https://developers.
|
850
|
+
# google.com/people/v1/contacts#search_the_users_contacts
|
840
851
|
# @param [Fixnum] page_size
|
841
|
-
# Optional. The number of results to return.
|
852
|
+
# Optional. The number of results to return. Defaults to 10 if field is not set,
|
853
|
+
# or set to 0. Values greater than 10 will be capped to 10.
|
842
854
|
# @param [String] query
|
843
855
|
# Required. The plain-text query for the request. The query is used to match
|
844
856
|
# prefix phrases of the fields on a person. For example, a person with name "foo
|
@@ -852,6 +864,9 @@ module Google
|
|
852
864
|
# imClients * interests * locales * locations * memberships * metadata *
|
853
865
|
# miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
|
854
866
|
# photos * relations * sipAddresses * skills * urls * userDefined
|
867
|
+
# @param [Array<String>, String] sources
|
868
|
+
# Optional. A mask of what source types to return. Defaults to
|
869
|
+
# READ_SOURCE_TYPE_CONTACT if not set.
|
855
870
|
# @param [String] fields
|
856
871
|
# Selector specifying which fields to include in a partial response.
|
857
872
|
# @param [String] quota_user
|
@@ -869,13 +884,14 @@ module Google
|
|
869
884
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
870
885
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
871
886
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
872
|
-
def search_person_contacts(page_size: nil, query: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
887
|
+
def search_person_contacts(page_size: nil, query: nil, read_mask: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
|
873
888
|
command = make_simple_command(:get, 'v1/people:searchContacts', options)
|
874
889
|
command.response_representation = Google::Apis::PeopleV1::SearchResponse::Representation
|
875
890
|
command.response_class = Google::Apis::PeopleV1::SearchResponse
|
876
891
|
command.query['pageSize'] = page_size unless page_size.nil?
|
877
892
|
command.query['query'] = query unless query.nil?
|
878
893
|
command.query['readMask'] = read_mask unless read_mask.nil?
|
894
|
+
command.query['sources'] = sources unless sources.nil?
|
879
895
|
command.query['fields'] = fields unless fields.nil?
|
880
896
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
881
897
|
execute_or_queue_command(command, &block)
|
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.12.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-06-14 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.12.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.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for People API V1
|