google-apis-people_v1 0.6.0 → 0.11.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: 9d5439b1b76586dfa1192977b2420513ef4272527dfa2434e63c6e660e84d13b
4
- data.tar.gz: 41e2ea8d5bc1c6fd6f608250380ca11771e3790ba6dd5219cd7b6fb3be1d0996
3
+ metadata.gz: ff47472fb76868bcbdaeed7efad6be97a21826a322901d160e5e589f08090f89
4
+ data.tar.gz: 77b7596df3a3f4d7859c2f4d4a2beacd402c607014a72095212bf86195bc6c17
5
5
  SHA512:
6
- metadata.gz: 0070f44061c58c4b65a23489a69e3f51f75dfed556c65e8c45027717f5a31ee4f21aadadc10d020f62d9947c5a44505459dea65fdaeb57bf41df4a6985036bc1
7
- data.tar.gz: ced4b423a81d5701f444370b0813e0332369c60ba8bd3bfff29ceebd80918459318f6920b94a54ff8b064d3fb1c7add0e60943d1b3aab1b9b8a6cf81d52d4b35
6
+ metadata.gz: 43cedd9878b94464960bf2cb7218861fe94e72f38c77dd51269ad5f6b935395c619ee2e87f246b684f5c8ea1a94299a6b142e2aaac2f127dcfbf7ae7f299ba78
7
+ data.tar.gz: 03d3e55baac4c8e203323495e7757525adb3dc612a7dc92bab25279237f91db382007cd0341cd9fb6ffa285a90cc845acfe64bf96bc26729fd912503697367f4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Release history for google-apis-people_v1
2
2
 
3
+ ### v0.11.0 (2021-05-28)
4
+
5
+ * Regenerated from discovery document revision 20210526
6
+
7
+ ### v0.10.0 (2021-05-19)
8
+
9
+ * Regenerated from discovery document revision 20210515
10
+
11
+ ### v0.9.0 (2021-04-21)
12
+
13
+ * Regenerated from discovery document revision 20210419
14
+
15
+ ### v0.8.0 (2021-03-31)
16
+
17
+ * Regenerated from discovery document revision 20210330
18
+
19
+ ### v0.7.0 (2021-03-24)
20
+
21
+ * Regenerated from discovery document revision 20210322
22
+
3
23
  ### v0.6.0 (2021-03-16)
4
24
 
5
25
  * Regenerated from discovery document revision 20210315
@@ -59,7 +59,7 @@ module Google
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
- # View your email address
62
+ # See your primary Google Account email address
63
63
  AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
64
64
 
65
65
  # See your personal info, including any personal info you've made publicly available
@@ -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
 
@@ -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.6.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210315"
25
+ REVISION = "20210526"
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,12 @@ 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.
407
410
  # @param [Fixnum] page_size
408
411
  # Optional. The number of results to return. Defaults to 10 if field is not set,
409
- # or set to 0.
412
+ # or set to 0. Values greater than 10 will be capped to 10.
410
413
  # @param [String] query
411
414
  # Required. The plain-text query for the request. The query is used to match
412
415
  # prefix phrases of the fields on a person. For example, a person with name "foo
@@ -446,7 +449,7 @@ module Google
446
449
  end
447
450
 
448
451
  # Create a batch of new contacts and return the PersonResponses for the newly
449
- # created contacts.
452
+ # created contacts. Limited to 10 parallel requests per user.
450
453
  # @param [Google::Apis::PeopleV1::BatchCreateContactsRequest] batch_create_contacts_request_object
451
454
  # @param [String] fields
452
455
  # Selector specifying which fields to include in a partial response.
@@ -476,7 +479,8 @@ module Google
476
479
  execute_or_queue_command(command, &block)
477
480
  end
478
481
 
479
- # Delete a batch of contacts. Any non-contact data will not be deleted.
482
+ # Delete a batch of contacts. Any non-contact data will not be deleted. Limited
483
+ # to 10 parallel requests per user.
480
484
  # @param [Google::Apis::PeopleV1::BatchDeleteContactsRequest] batch_delete_contacts_request_object
481
485
  # @param [String] fields
482
486
  # Selector specifying which fields to include in a partial response.
@@ -507,7 +511,8 @@ module Google
507
511
  end
508
512
 
509
513
  # Update a batch of contacts and return a map of resource names to
510
- # PersonResponses for the updated contacts.
514
+ # PersonResponses for the updated contacts. Limited to 10 parallel requests per
515
+ # user.
511
516
  # @param [Google::Apis::PeopleV1::BatchUpdateContactsRequest] batch_update_contacts_request_object
512
517
  # @param [String] fields
513
518
  # Selector specifying which fields to include in a partial response.
@@ -735,8 +740,8 @@ module Google
735
740
  # specify `people/me`. - To get information about a google account, specify `
736
741
  # people/`account_id``. - To get information about a contact, specify the
737
742
  # resource name that identifies the contact as returned by [`people.connections.
738
- # list`](/people/api/rest/v1/people.connections/list). You can include up to 50
739
- # resource names in one request.
743
+ # list`](/people/api/rest/v1/people.connections/list). There is a maximum of 200
744
+ # resource names.
740
745
  # @param [Array<String>, String] sources
741
746
  # Optional. A mask of what source types to return. Defaults to
742
747
  # READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
@@ -836,9 +841,12 @@ module Google
836
841
  end
837
842
 
838
843
  # Provides a list of contacts in the authenticated user's grouped contacts that
839
- # matches the search query.
844
+ # matches the search query. The query matches on a contact's `names`, `nickNames`
845
+ # , `emailAddresses`, `phoneNumbers`, and `organizations` fields that are from
846
+ # the CONTACT" source.
840
847
  # @param [Fixnum] page_size
841
- # Optional. The number of results to return.
848
+ # Optional. The number of results to return. Defaults to 10 if field is not set,
849
+ # or set to 0. Values greater than 10 will be capped to 10.
842
850
  # @param [String] query
843
851
  # Required. The plain-text query for the request. The query is used to match
844
852
  # prefix phrases of the fields on a person. For example, a person with name "foo
@@ -852,6 +860,9 @@ module Google
852
860
  # imClients * interests * locales * locations * memberships * metadata *
853
861
  # miscKeywords * names * nicknames * occupations * organizations * phoneNumbers *
854
862
  # photos * relations * sipAddresses * skills * urls * userDefined
863
+ # @param [Array<String>, String] sources
864
+ # Optional. A mask of what source types to return. Defaults to
865
+ # READ_SOURCE_TYPE_CONTACT if not set.
855
866
  # @param [String] fields
856
867
  # Selector specifying which fields to include in a partial response.
857
868
  # @param [String] quota_user
@@ -869,13 +880,14 @@ module Google
869
880
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
870
881
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
871
882
  # @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)
883
+ def search_person_contacts(page_size: nil, query: nil, read_mask: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
873
884
  command = make_simple_command(:get, 'v1/people:searchContacts', options)
874
885
  command.response_representation = Google::Apis::PeopleV1::SearchResponse::Representation
875
886
  command.response_class = Google::Apis::PeopleV1::SearchResponse
876
887
  command.query['pageSize'] = page_size unless page_size.nil?
877
888
  command.query['query'] = query unless query.nil?
878
889
  command.query['readMask'] = read_mask unless read_mask.nil?
890
+ command.query['sources'] = sources unless sources.nil?
879
891
  command.query['fields'] = fields unless fields.nil?
880
892
  command.query['quotaUser'] = quota_user unless quota_user.nil?
881
893
  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.6.0
4
+ version: 0.11.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-03-22 00:00:00.000000000 Z
11
+ date: 2021-05-31 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.6.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-people_v1/v0.11.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.13
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