google-api-client 0.40.1 → 0.40.2
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 +4 -4
- data/CHANGELOG.md +65 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +3 -3
- data/generated/google/apis/androidpublisher_v3/classes.rb +468 -750
- data/generated/google/apis/androidpublisher_v3/representations.rb +9 -202
- data/generated/google/apis/androidpublisher_v3/service.rb +531 -863
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +12 -6
- data/generated/google/apis/apigee_v1/representations.rb +1 -0
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +113 -0
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +61 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -7
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +1 -4
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +2 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +25 -342
- data/generated/google/apis/cloudasset_v1/representations.rb +1 -96
- data/generated/google/apis/cloudasset_v1/service.rb +11 -186
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -6
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +6 -6
- data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +26 -8
- data/generated/google/apis/cloudasset_v1p4beta1/service.rb +24 -3
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +2 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +7 -7
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -6
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -8
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -6
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +91 -3
- data/generated/google/apis/compute_alpha/representations.rb +36 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +15 -3
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +3 -3
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
- data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +4 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +8 -6
- data/generated/google/apis/dlp_v2/service.rb +170 -64
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
- data/generated/google/apis/gmail_v1.rb +3 -2
- data/generated/google/apis/gmail_v1/classes.rb +263 -200
- data/generated/google/apis/gmail_v1/service.rb +551 -743
- data/generated/google/apis/groupsmigration_v1.rb +3 -2
- data/generated/google/apis/groupsmigration_v1/service.rb +10 -17
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +87 -81
- data/generated/google/apis/iam_v1/service.rb +163 -148
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +4 -3
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +4 -2
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +6 -6
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +46 -0
- data/generated/google/apis/monitoring_v1/representations.rb +18 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +10 -0
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +2 -2
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +118 -2
- data/generated/google/apis/people_v1/representations.rb +51 -0
- data/generated/google/apis/people_v1/service.rb +336 -67
- data/generated/google/apis/playcustomapp_v1.rb +3 -3
- data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
- data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +49 -7
- data/generated/google/apis/pubsub_v1/representations.rb +16 -0
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +6 -6
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +6 -6
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +106 -6
- data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +106 -6
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +106 -6
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +108 -44
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +114 -44
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +6 -12
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +109 -44
- data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +109 -44
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +0 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +109 -45
- data/generated/google/apis/serviceusage_v1/representations.rb +0 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +115 -45
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/service.rb +34 -0
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
|
@@ -142,6 +142,12 @@ module Google
|
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
+
class FileAs
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
|
+
|
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
149
|
+
end
|
|
150
|
+
|
|
145
151
|
class Gender
|
|
146
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
153
|
|
|
@@ -178,6 +184,12 @@ module Google
|
|
|
178
184
|
include Google::Apis::Core::JsonObjectSupport
|
|
179
185
|
end
|
|
180
186
|
|
|
187
|
+
class ListDirectoryPeopleResponse
|
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
189
|
+
|
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
191
|
+
end
|
|
192
|
+
|
|
181
193
|
class ListOtherContactsResponse
|
|
182
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
195
|
|
|
@@ -292,6 +304,12 @@ module Google
|
|
|
292
304
|
include Google::Apis::Core::JsonObjectSupport
|
|
293
305
|
end
|
|
294
306
|
|
|
307
|
+
class SearchDirectoryPeopleResponse
|
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
309
|
+
|
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
311
|
+
end
|
|
312
|
+
|
|
295
313
|
class SipAddress
|
|
296
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
297
315
|
|
|
@@ -465,6 +483,7 @@ module Google
|
|
|
465
483
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
466
484
|
property :copy_mask, as: 'copyMask'
|
|
467
485
|
property :read_mask, as: 'readMask'
|
|
486
|
+
collection :sources, as: 'sources'
|
|
468
487
|
end
|
|
469
488
|
end
|
|
470
489
|
|
|
@@ -550,6 +569,15 @@ module Google
|
|
|
550
569
|
end
|
|
551
570
|
end
|
|
552
571
|
|
|
572
|
+
class FileAs
|
|
573
|
+
# @private
|
|
574
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
575
|
+
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
|
|
576
|
+
|
|
577
|
+
property :value, as: 'value'
|
|
578
|
+
end
|
|
579
|
+
end
|
|
580
|
+
|
|
553
581
|
class Gender
|
|
554
582
|
# @private
|
|
555
583
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -614,6 +642,16 @@ module Google
|
|
|
614
642
|
end
|
|
615
643
|
end
|
|
616
644
|
|
|
645
|
+
class ListDirectoryPeopleResponse
|
|
646
|
+
# @private
|
|
647
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
648
|
+
property :next_page_token, as: 'nextPageToken'
|
|
649
|
+
property :next_sync_token, as: 'nextSyncToken'
|
|
650
|
+
collection :people, as: 'people', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
|
|
651
|
+
|
|
652
|
+
end
|
|
653
|
+
end
|
|
654
|
+
|
|
617
655
|
class ListOtherContactsResponse
|
|
618
656
|
# @private
|
|
619
657
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -746,6 +784,8 @@ module Google
|
|
|
746
784
|
property :etag, as: 'etag'
|
|
747
785
|
collection :events, as: 'events', class: Google::Apis::PeopleV1::Event, decorator: Google::Apis::PeopleV1::Event::Representation
|
|
748
786
|
|
|
787
|
+
collection :file_ases, as: 'fileAses', class: Google::Apis::PeopleV1::FileAs, decorator: Google::Apis::PeopleV1::FileAs::Representation
|
|
788
|
+
|
|
749
789
|
collection :genders, as: 'genders', class: Google::Apis::PeopleV1::Gender, decorator: Google::Apis::PeopleV1::Gender::Representation
|
|
750
790
|
|
|
751
791
|
collection :im_clients, as: 'imClients', class: Google::Apis::PeopleV1::ImClient, decorator: Google::Apis::PeopleV1::ImClient::Representation
|
|
@@ -887,6 +927,16 @@ module Google
|
|
|
887
927
|
end
|
|
888
928
|
end
|
|
889
929
|
|
|
930
|
+
class SearchDirectoryPeopleResponse
|
|
931
|
+
# @private
|
|
932
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
933
|
+
property :next_page_token, as: 'nextPageToken'
|
|
934
|
+
collection :people, as: 'people', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
|
|
935
|
+
|
|
936
|
+
property :total_size, as: 'totalSize'
|
|
937
|
+
end
|
|
938
|
+
end
|
|
939
|
+
|
|
890
940
|
class SipAddress
|
|
891
941
|
# @private
|
|
892
942
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -950,6 +1000,7 @@ module Google
|
|
|
950
1000
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
951
1001
|
property :person_fields, as: 'personFields'
|
|
952
1002
|
property :photo_bytes, :base64 => true, as: 'photoBytes'
|
|
1003
|
+
collection :sources, as: 'sources'
|
|
953
1004
|
end
|
|
954
1005
|
end
|
|
955
1006
|
|
|
@@ -329,8 +329,104 @@ module Google
|
|
|
329
329
|
execute_or_queue_command(command, &block)
|
|
330
330
|
end
|
|
331
331
|
|
|
332
|
+
# List all other contacts, that is contacts that are not in a contact group.
|
|
333
|
+
# Other contacts are typically auto created contacts from interactions.
|
|
334
|
+
# @param [Fixnum] page_size
|
|
335
|
+
# Optional. The number of other contacts to include in the response. Valid
|
|
336
|
+
# values are
|
|
337
|
+
# between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
|
|
338
|
+
# @param [String] page_token
|
|
339
|
+
# Optional. A page token, received from a previous `ListOtherContacts` call.
|
|
340
|
+
# Provide this to retrieve the subsequent page.
|
|
341
|
+
# When paginating, all other parameters provided to `ListOtherContacts`
|
|
342
|
+
# must match the call that provided the page token.
|
|
343
|
+
# @param [String] read_mask
|
|
344
|
+
# Required. A field mask to restrict which fields on each person are returned.
|
|
345
|
+
# Multiple
|
|
346
|
+
# fields can be specified by separating them with commas. Valid values are:
|
|
347
|
+
# * emailAddresses
|
|
348
|
+
# * names
|
|
349
|
+
# * phoneNumbers
|
|
350
|
+
# @param [Boolean] request_sync_token
|
|
351
|
+
# Optional. Whether the response should include `next_sync_token`, which can be
|
|
352
|
+
# used to
|
|
353
|
+
# get all changes since the last request. For subsequent sync requests use
|
|
354
|
+
# the `sync_token` param instead. Initial sync requests that specify
|
|
355
|
+
# `request_sync_token` have an additional rate limit.
|
|
356
|
+
# @param [String] sync_token
|
|
357
|
+
# Optional. A sync token, received from a previous `ListOtherContacts` call.
|
|
358
|
+
# Provide this to retrieve only the resources changed since the last request.
|
|
359
|
+
# Sync requests that specify `sync_token` have an additional rate limit.
|
|
360
|
+
# When syncing, all other parameters provided to `ListOtherContacts`
|
|
361
|
+
# must match the call that provided the sync token.
|
|
362
|
+
# @param [String] fields
|
|
363
|
+
# Selector specifying which fields to include in a partial response.
|
|
364
|
+
# @param [String] quota_user
|
|
365
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
366
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
367
|
+
# @param [Google::Apis::RequestOptions] options
|
|
368
|
+
# Request-specific options
|
|
369
|
+
#
|
|
370
|
+
# @yield [result, err] Result & error if block supplied
|
|
371
|
+
# @yieldparam result [Google::Apis::PeopleV1::ListOtherContactsResponse] parsed result object
|
|
372
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
373
|
+
#
|
|
374
|
+
# @return [Google::Apis::PeopleV1::ListOtherContactsResponse]
|
|
375
|
+
#
|
|
376
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
377
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
378
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
379
|
+
def list_other_contacts(page_size: nil, page_token: nil, read_mask: nil, request_sync_token: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
380
|
+
command = make_simple_command(:get, 'v1/otherContacts', options)
|
|
381
|
+
command.response_representation = Google::Apis::PeopleV1::ListOtherContactsResponse::Representation
|
|
382
|
+
command.response_class = Google::Apis::PeopleV1::ListOtherContactsResponse
|
|
383
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
384
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
385
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
|
386
|
+
command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
|
|
387
|
+
command.query['syncToken'] = sync_token unless sync_token.nil?
|
|
388
|
+
command.query['fields'] = fields unless fields.nil?
|
|
389
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
390
|
+
execute_or_queue_command(command, &block)
|
|
391
|
+
end
|
|
392
|
+
|
|
332
393
|
# Create a new contact and return the person resource for that contact.
|
|
333
394
|
# @param [Google::Apis::PeopleV1::Person] person_object
|
|
395
|
+
# @param [String] person_fields
|
|
396
|
+
# Required. A field mask to restrict which fields on each person are returned.
|
|
397
|
+
# Multiple
|
|
398
|
+
# fields can be specified by separating them with commas. Defaults to all
|
|
399
|
+
# fields if not set. Valid values are:
|
|
400
|
+
# * addresses
|
|
401
|
+
# * ageRanges
|
|
402
|
+
# * biographies
|
|
403
|
+
# * birthdays
|
|
404
|
+
# * coverPhotos
|
|
405
|
+
# * emailAddresses
|
|
406
|
+
# * events
|
|
407
|
+
# * genders
|
|
408
|
+
# * imClients
|
|
409
|
+
# * interests
|
|
410
|
+
# * locales
|
|
411
|
+
# * memberships
|
|
412
|
+
# * metadata
|
|
413
|
+
# * names
|
|
414
|
+
# * nicknames
|
|
415
|
+
# * occupations
|
|
416
|
+
# * organizations
|
|
417
|
+
# * phoneNumbers
|
|
418
|
+
# * photos
|
|
419
|
+
# * relations
|
|
420
|
+
# * residences
|
|
421
|
+
# * sipAddresses
|
|
422
|
+
# * skills
|
|
423
|
+
# * urls
|
|
424
|
+
# * userDefined
|
|
425
|
+
# @param [Array<String>, String] sources
|
|
426
|
+
# Optional. A mask of what source types to return. Defaults to
|
|
427
|
+
# ReadSourceType.CONTACT and
|
|
428
|
+
# ReadSourceType.PROFILE if not
|
|
429
|
+
# set.
|
|
334
430
|
# @param [String] fields
|
|
335
431
|
# Selector specifying which fields to include in a partial response.
|
|
336
432
|
# @param [String] quota_user
|
|
@@ -348,12 +444,14 @@ module Google
|
|
|
348
444
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
349
445
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
350
446
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
351
|
-
def create_person_contact(person_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
447
|
+
def create_person_contact(person_object = nil, person_fields: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
352
448
|
command = make_simple_command(:post, 'v1/people:createContact', options)
|
|
353
449
|
command.request_representation = Google::Apis::PeopleV1::Person::Representation
|
|
354
450
|
command.request_object = person_object
|
|
355
451
|
command.response_representation = Google::Apis::PeopleV1::Person::Representation
|
|
356
452
|
command.response_class = Google::Apis::PeopleV1::Person
|
|
453
|
+
command.query['personFields'] = person_fields unless person_fields.nil?
|
|
454
|
+
command.query['sources'] = sources unless sources.nil?
|
|
357
455
|
command.query['fields'] = fields unless fields.nil?
|
|
358
456
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
359
457
|
execute_or_queue_command(command, &block)
|
|
@@ -422,6 +520,11 @@ module Google
|
|
|
422
520
|
# * skills
|
|
423
521
|
# * urls
|
|
424
522
|
# * userDefined
|
|
523
|
+
# @param [Array<String>, String] sources
|
|
524
|
+
# Optional. A mask of what source types to return. Defaults to
|
|
525
|
+
# ReadSourceType.CONTACT and
|
|
526
|
+
# ReadSourceType.PROFILE if not
|
|
527
|
+
# set.
|
|
425
528
|
# @param [String] fields
|
|
426
529
|
# Selector specifying which fields to include in a partial response.
|
|
427
530
|
# @param [String] quota_user
|
|
@@ -439,12 +542,13 @@ module Google
|
|
|
439
542
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
440
543
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
441
544
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
442
|
-
def delete_person_contact_photo(resource_name, person_fields: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
545
|
+
def delete_person_contact_photo(resource_name, person_fields: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
443
546
|
command = make_simple_command(:delete, 'v1/{+resourceName}:deleteContactPhoto', options)
|
|
444
547
|
command.response_representation = Google::Apis::PeopleV1::DeleteContactPhotoResponse::Representation
|
|
445
548
|
command.response_class = Google::Apis::PeopleV1::DeleteContactPhotoResponse
|
|
446
549
|
command.params['resourceName'] = resource_name unless resource_name.nil?
|
|
447
550
|
command.query['personFields'] = person_fields unless person_fields.nil?
|
|
551
|
+
command.query['sources'] = sources unless sources.nil?
|
|
448
552
|
command.query['fields'] = fields unless fields.nil?
|
|
449
553
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
450
554
|
execute_or_queue_command(command, &block)
|
|
@@ -495,6 +599,12 @@ module Google
|
|
|
495
599
|
# Each
|
|
496
600
|
# path should start with `person.`: for example, `person.names` or
|
|
497
601
|
# `person.photos`.
|
|
602
|
+
# @param [Array<String>, String] sources
|
|
603
|
+
# Optional. A mask of what source types to return. Defaults to
|
|
604
|
+
# ReadSourceType.PROFILE
|
|
605
|
+
# and
|
|
606
|
+
# ReadSourceType.CONTACT
|
|
607
|
+
# if not set.
|
|
498
608
|
# @param [String] fields
|
|
499
609
|
# Selector specifying which fields to include in a partial response.
|
|
500
610
|
# @param [String] quota_user
|
|
@@ -512,13 +622,14 @@ module Google
|
|
|
512
622
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
513
623
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
514
624
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
515
|
-
def get_person(resource_name, person_fields: nil, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
625
|
+
def get_person(resource_name, person_fields: nil, request_mask_include_field: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
516
626
|
command = make_simple_command(:get, 'v1/{+resourceName}', options)
|
|
517
627
|
command.response_representation = Google::Apis::PeopleV1::Person::Representation
|
|
518
628
|
command.response_class = Google::Apis::PeopleV1::Person
|
|
519
629
|
command.params['resourceName'] = resource_name unless resource_name.nil?
|
|
520
630
|
command.query['personFields'] = person_fields unless person_fields.nil?
|
|
521
631
|
command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
|
|
632
|
+
command.query['sources'] = sources unless sources.nil?
|
|
522
633
|
command.query['fields'] = fields unless fields.nil?
|
|
523
634
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
524
635
|
execute_or_queue_command(command, &block)
|
|
@@ -571,6 +682,12 @@ module Google
|
|
|
571
682
|
# identifies the contact as returned by
|
|
572
683
|
# [`people.connections.list`](/people/api/rest/v1/people.connections/list).
|
|
573
684
|
# You can include up to 50 resource names in one request.
|
|
685
|
+
# @param [Array<String>, String] sources
|
|
686
|
+
# Optional. A mask of what source types to return. Defaults to
|
|
687
|
+
# ReadSourceType.CONTACT
|
|
688
|
+
# and
|
|
689
|
+
# ReadSourceType.PROFILE
|
|
690
|
+
# if not set.
|
|
574
691
|
# @param [String] fields
|
|
575
692
|
# Selector specifying which fields to include in a partial response.
|
|
576
693
|
# @param [String] quota_user
|
|
@@ -588,13 +705,182 @@ module Google
|
|
|
588
705
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
589
706
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
590
707
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
591
|
-
def get_people(person_fields: nil, request_mask_include_field: nil, resource_names: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
708
|
+
def get_people(person_fields: nil, request_mask_include_field: nil, resource_names: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
592
709
|
command = make_simple_command(:get, 'v1/people:batchGet', options)
|
|
593
710
|
command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation
|
|
594
711
|
command.response_class = Google::Apis::PeopleV1::GetPeopleResponse
|
|
595
712
|
command.query['personFields'] = person_fields unless person_fields.nil?
|
|
596
713
|
command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
|
|
597
714
|
command.query['resourceNames'] = resource_names unless resource_names.nil?
|
|
715
|
+
command.query['sources'] = sources unless sources.nil?
|
|
716
|
+
command.query['fields'] = fields unless fields.nil?
|
|
717
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
718
|
+
execute_or_queue_command(command, &block)
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
# Provides a list of domain profiles and domain contacts in the authenticated
|
|
722
|
+
# user's domain directory.
|
|
723
|
+
# @param [Array<String>, String] merge_sources
|
|
724
|
+
# Optional. Additional data to merge into the directory sources if they are
|
|
725
|
+
# connected
|
|
726
|
+
# through verified join keys such as email addresses or phone numbers.
|
|
727
|
+
# @param [Fixnum] page_size
|
|
728
|
+
# Optional. The number of people to include in the response. Valid values are
|
|
729
|
+
# between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
|
|
730
|
+
# @param [String] page_token
|
|
731
|
+
# Optional. A page token, received from a previous `ListDirectoryPeople` call.
|
|
732
|
+
# Provide this to retrieve the subsequent page.
|
|
733
|
+
# When paginating, all other parameters provided to `ListDirectoryPeople`
|
|
734
|
+
# must match the call that provided the page token.
|
|
735
|
+
# @param [String] read_mask
|
|
736
|
+
# Required. A field mask to restrict which fields on each person are returned.
|
|
737
|
+
# Multiple
|
|
738
|
+
# fields can be specified by separating them with commas. Valid values are:
|
|
739
|
+
# * addresses
|
|
740
|
+
# * ageRanges
|
|
741
|
+
# * biographies
|
|
742
|
+
# * birthdays
|
|
743
|
+
# * coverPhotos
|
|
744
|
+
# * emailAddresses
|
|
745
|
+
# * events
|
|
746
|
+
# * genders
|
|
747
|
+
# * imClients
|
|
748
|
+
# * interests
|
|
749
|
+
# * locales
|
|
750
|
+
# * memberships
|
|
751
|
+
# * metadata
|
|
752
|
+
# * names
|
|
753
|
+
# * nicknames
|
|
754
|
+
# * occupations
|
|
755
|
+
# * organizations
|
|
756
|
+
# * phoneNumbers
|
|
757
|
+
# * photos
|
|
758
|
+
# * relations
|
|
759
|
+
# * residences
|
|
760
|
+
# * sipAddresses
|
|
761
|
+
# * skills
|
|
762
|
+
# * urls
|
|
763
|
+
# * userDefined
|
|
764
|
+
# @param [Boolean] request_sync_token
|
|
765
|
+
# Optional. Whether the response should include `next_sync_token`, which can be
|
|
766
|
+
# used to
|
|
767
|
+
# get all changes since the last request. For subsequent sync requests use
|
|
768
|
+
# the `sync_token` param instead.
|
|
769
|
+
# @param [Array<String>, String] sources
|
|
770
|
+
# Required. Directory sources to return.
|
|
771
|
+
# @param [String] sync_token
|
|
772
|
+
# Optional. A sync token, received from a previous `ListDirectoryPeople` call.
|
|
773
|
+
# Provide this to retrieve only the resources changed since the last request.
|
|
774
|
+
# When syncing, all other parameters provided to `ListDirectoryPeople`
|
|
775
|
+
# must match the call that provided the sync token.
|
|
776
|
+
# @param [String] fields
|
|
777
|
+
# Selector specifying which fields to include in a partial response.
|
|
778
|
+
# @param [String] quota_user
|
|
779
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
780
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
781
|
+
# @param [Google::Apis::RequestOptions] options
|
|
782
|
+
# Request-specific options
|
|
783
|
+
#
|
|
784
|
+
# @yield [result, err] Result & error if block supplied
|
|
785
|
+
# @yieldparam result [Google::Apis::PeopleV1::ListDirectoryPeopleResponse] parsed result object
|
|
786
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
787
|
+
#
|
|
788
|
+
# @return [Google::Apis::PeopleV1::ListDirectoryPeopleResponse]
|
|
789
|
+
#
|
|
790
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
791
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
792
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
793
|
+
def list_person_directory_people(merge_sources: nil, page_size: nil, page_token: nil, read_mask: nil, request_sync_token: nil, sources: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
794
|
+
command = make_simple_command(:get, 'v1/people:listDirectoryPeople', options)
|
|
795
|
+
command.response_representation = Google::Apis::PeopleV1::ListDirectoryPeopleResponse::Representation
|
|
796
|
+
command.response_class = Google::Apis::PeopleV1::ListDirectoryPeopleResponse
|
|
797
|
+
command.query['mergeSources'] = merge_sources unless merge_sources.nil?
|
|
798
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
799
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
800
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
|
801
|
+
command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
|
|
802
|
+
command.query['sources'] = sources unless sources.nil?
|
|
803
|
+
command.query['syncToken'] = sync_token unless sync_token.nil?
|
|
804
|
+
command.query['fields'] = fields unless fields.nil?
|
|
805
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
806
|
+
execute_or_queue_command(command, &block)
|
|
807
|
+
end
|
|
808
|
+
|
|
809
|
+
# Provides a list of domain profiles and domain contacts in the authenticated
|
|
810
|
+
# user's domain directory that match the search query.
|
|
811
|
+
# @param [Array<String>, String] merge_sources
|
|
812
|
+
# Optional. Additional data to merge into the directory sources if they are
|
|
813
|
+
# connected
|
|
814
|
+
# through verified join keys such as email addresses or phone numbers.
|
|
815
|
+
# @param [Fixnum] page_size
|
|
816
|
+
# Optional. The number of people to include in the response. Valid values are
|
|
817
|
+
# between 1 and 500, inclusive. Defaults to 100 if not set or set to 0.
|
|
818
|
+
# @param [String] page_token
|
|
819
|
+
# Optional. A page token, received from a previous `SearchDirectoryPeople` call.
|
|
820
|
+
# Provide this to retrieve the subsequent page.
|
|
821
|
+
# When paginating, all other parameters provided to `SearchDirectoryPeople`
|
|
822
|
+
# must match the call that provided the page token.
|
|
823
|
+
# @param [String] query
|
|
824
|
+
# Required. Prefix query that matches fields in the person. Does NOT use the
|
|
825
|
+
# read_mask for determining what fields to match.
|
|
826
|
+
# @param [String] read_mask
|
|
827
|
+
# Required. A field mask to restrict which fields on each person are returned.
|
|
828
|
+
# Multiple
|
|
829
|
+
# fields can be specified by separating them with commas. Valid values are:
|
|
830
|
+
# * addresses
|
|
831
|
+
# * ageRanges
|
|
832
|
+
# * biographies
|
|
833
|
+
# * birthdays
|
|
834
|
+
# * coverPhotos
|
|
835
|
+
# * emailAddresses
|
|
836
|
+
# * events
|
|
837
|
+
# * genders
|
|
838
|
+
# * imClients
|
|
839
|
+
# * interests
|
|
840
|
+
# * locales
|
|
841
|
+
# * memberships
|
|
842
|
+
# * metadata
|
|
843
|
+
# * names
|
|
844
|
+
# * nicknames
|
|
845
|
+
# * occupations
|
|
846
|
+
# * organizations
|
|
847
|
+
# * phoneNumbers
|
|
848
|
+
# * photos
|
|
849
|
+
# * relations
|
|
850
|
+
# * residences
|
|
851
|
+
# * sipAddresses
|
|
852
|
+
# * skills
|
|
853
|
+
# * urls
|
|
854
|
+
# * userDefined
|
|
855
|
+
# @param [Array<String>, String] sources
|
|
856
|
+
# Required. Directory sources to return.
|
|
857
|
+
# @param [String] fields
|
|
858
|
+
# Selector specifying which fields to include in a partial response.
|
|
859
|
+
# @param [String] quota_user
|
|
860
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
861
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
862
|
+
# @param [Google::Apis::RequestOptions] options
|
|
863
|
+
# Request-specific options
|
|
864
|
+
#
|
|
865
|
+
# @yield [result, err] Result & error if block supplied
|
|
866
|
+
# @yieldparam result [Google::Apis::PeopleV1::SearchDirectoryPeopleResponse] parsed result object
|
|
867
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
868
|
+
#
|
|
869
|
+
# @return [Google::Apis::PeopleV1::SearchDirectoryPeopleResponse]
|
|
870
|
+
#
|
|
871
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
872
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
873
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
874
|
+
def search_person_directory_people(merge_sources: nil, page_size: nil, page_token: nil, query: nil, read_mask: nil, sources: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
875
|
+
command = make_simple_command(:get, 'v1/people:searchDirectoryPeople', options)
|
|
876
|
+
command.response_representation = Google::Apis::PeopleV1::SearchDirectoryPeopleResponse::Representation
|
|
877
|
+
command.response_class = Google::Apis::PeopleV1::SearchDirectoryPeopleResponse
|
|
878
|
+
command.query['mergeSources'] = merge_sources unless merge_sources.nil?
|
|
879
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
880
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
881
|
+
command.query['query'] = query unless query.nil?
|
|
882
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
|
883
|
+
command.query['sources'] = sources unless sources.nil?
|
|
598
884
|
command.query['fields'] = fields unless fields.nil?
|
|
599
885
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
600
886
|
execute_or_queue_command(command, &block)
|
|
@@ -615,6 +901,41 @@ module Google
|
|
|
615
901
|
# with a max length of 27 characters, in the form of
|
|
616
902
|
# `people/`person_id``.
|
|
617
903
|
# @param [Google::Apis::PeopleV1::Person] person_object
|
|
904
|
+
# @param [String] person_fields
|
|
905
|
+
# Optional. A field mask to restrict which fields on each person are returned.
|
|
906
|
+
# Multiple
|
|
907
|
+
# fields can be specified by separating them with commas. Defaults to all
|
|
908
|
+
# fields if not set. Valid values are:
|
|
909
|
+
# * addresses
|
|
910
|
+
# * ageRanges
|
|
911
|
+
# * biographies
|
|
912
|
+
# * birthdays
|
|
913
|
+
# * coverPhotos
|
|
914
|
+
# * emailAddresses
|
|
915
|
+
# * events
|
|
916
|
+
# * genders
|
|
917
|
+
# * imClients
|
|
918
|
+
# * interests
|
|
919
|
+
# * locales
|
|
920
|
+
# * memberships
|
|
921
|
+
# * metadata
|
|
922
|
+
# * names
|
|
923
|
+
# * nicknames
|
|
924
|
+
# * occupations
|
|
925
|
+
# * organizations
|
|
926
|
+
# * phoneNumbers
|
|
927
|
+
# * photos
|
|
928
|
+
# * relations
|
|
929
|
+
# * residences
|
|
930
|
+
# * sipAddresses
|
|
931
|
+
# * skills
|
|
932
|
+
# * urls
|
|
933
|
+
# * userDefined
|
|
934
|
+
# @param [Array<String>, String] sources
|
|
935
|
+
# Optional. A mask of what source types to return. Defaults to
|
|
936
|
+
# ReadSourceType.CONTACT and
|
|
937
|
+
# ReadSourceType.PROFILE if not
|
|
938
|
+
# set.
|
|
618
939
|
# @param [String] update_person_fields
|
|
619
940
|
# Required. A field mask to restrict which fields on the person are updated.
|
|
620
941
|
# Multiple
|
|
@@ -657,13 +978,15 @@ module Google
|
|
|
657
978
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
658
979
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
659
980
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
660
|
-
def update_person_contact(resource_name, person_object = nil, update_person_fields: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
981
|
+
def update_person_contact(resource_name, person_object = nil, person_fields: nil, sources: nil, update_person_fields: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
661
982
|
command = make_simple_command(:patch, 'v1/{+resourceName}:updateContact', options)
|
|
662
983
|
command.request_representation = Google::Apis::PeopleV1::Person::Representation
|
|
663
984
|
command.request_object = person_object
|
|
664
985
|
command.response_representation = Google::Apis::PeopleV1::Person::Representation
|
|
665
986
|
command.response_class = Google::Apis::PeopleV1::Person
|
|
666
987
|
command.params['resourceName'] = resource_name unless resource_name.nil?
|
|
988
|
+
command.query['personFields'] = person_fields unless person_fields.nil?
|
|
989
|
+
command.query['sources'] = sources unless sources.nil?
|
|
667
990
|
command.query['updatePersonFields'] = update_person_fields unless update_person_fields.nil?
|
|
668
991
|
command.query['fields'] = fields unless fields.nil?
|
|
669
992
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -760,6 +1083,12 @@ module Google
|
|
|
760
1083
|
# @param [String] sort_order
|
|
761
1084
|
# Optional. The order in which the connections should be sorted. Defaults to
|
|
762
1085
|
# `LAST_MODIFIED_ASCENDING`.
|
|
1086
|
+
# @param [Array<String>, String] sources
|
|
1087
|
+
# Optional. A mask of what source types to return. Defaults to
|
|
1088
|
+
# ReadSourceType.CONTACT
|
|
1089
|
+
# and
|
|
1090
|
+
# ReadSourceType.PROFILE if not
|
|
1091
|
+
# set.
|
|
763
1092
|
# @param [String] sync_token
|
|
764
1093
|
# Optional. A sync token, received from a previous `ListConnections` call.
|
|
765
1094
|
# Provide this to retrieve only the resources changed since the last request.
|
|
@@ -783,7 +1112,7 @@ module Google
|
|
|
783
1112
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
784
1113
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
785
1114
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
786
|
-
def list_person_connections(resource_name, page_size: nil, page_token: nil, person_fields: nil, request_mask_include_field: nil, request_sync_token: nil, sort_order: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1115
|
+
def list_person_connections(resource_name, page_size: nil, page_token: nil, person_fields: nil, request_mask_include_field: nil, request_sync_token: nil, sort_order: nil, sources: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
787
1116
|
command = make_simple_command(:get, 'v1/{+resourceName}/connections', options)
|
|
788
1117
|
command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation
|
|
789
1118
|
command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse
|
|
@@ -794,67 +1123,7 @@ module Google
|
|
|
794
1123
|
command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
|
|
795
1124
|
command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
|
|
796
1125
|
command.query['sortOrder'] = sort_order unless sort_order.nil?
|
|
797
|
-
command.query['
|
|
798
|
-
command.query['fields'] = fields unless fields.nil?
|
|
799
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
800
|
-
execute_or_queue_command(command, &block)
|
|
801
|
-
end
|
|
802
|
-
|
|
803
|
-
# List all other contacts, that is contacts that are not in a contact group.
|
|
804
|
-
# Other contacts are typically auto created contacts from interactions.
|
|
805
|
-
# @param [Fixnum] page_size
|
|
806
|
-
# Optional. The number of other contacts to include in the response. Valid
|
|
807
|
-
# values are
|
|
808
|
-
# between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
|
|
809
|
-
# @param [String] page_token
|
|
810
|
-
# Optional. A page token, received from a previous `ListOtherContacts` call.
|
|
811
|
-
# Provide this to retrieve the subsequent page.
|
|
812
|
-
# When paginating, all other parameters provided to `ListOtherContacts`
|
|
813
|
-
# must match the call that provided the page token.
|
|
814
|
-
# @param [String] read_mask
|
|
815
|
-
# Required. A field mask to restrict which fields on each person are returned.
|
|
816
|
-
# Multiple
|
|
817
|
-
# fields can be specified by separating them with commas. Valid values are:
|
|
818
|
-
# * emailAddresses
|
|
819
|
-
# * names
|
|
820
|
-
# * phoneNumbers
|
|
821
|
-
# @param [Boolean] request_sync_token
|
|
822
|
-
# Optional. Whether the response should include `next_sync_token`, which can be
|
|
823
|
-
# used to
|
|
824
|
-
# get all changes since the last request. For subsequent sync requests use
|
|
825
|
-
# the `sync_token` param instead. Initial sync requests that specify
|
|
826
|
-
# `request_sync_token` have an additional rate limit.
|
|
827
|
-
# @param [String] sync_token
|
|
828
|
-
# Optional. A sync token, received from a previous `ListOtherContacts` call.
|
|
829
|
-
# Provide this to retrieve only the resources changed since the last request.
|
|
830
|
-
# Sync requests that specify `sync_token` have an additional rate limit.
|
|
831
|
-
# When syncing, all other parameters provided to `ListOtherContacts`
|
|
832
|
-
# must match the call that provided the sync token.
|
|
833
|
-
# @param [String] fields
|
|
834
|
-
# Selector specifying which fields to include in a partial response.
|
|
835
|
-
# @param [String] quota_user
|
|
836
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
837
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
838
|
-
# @param [Google::Apis::RequestOptions] options
|
|
839
|
-
# Request-specific options
|
|
840
|
-
#
|
|
841
|
-
# @yield [result, err] Result & error if block supplied
|
|
842
|
-
# @yieldparam result [Google::Apis::PeopleV1::ListOtherContactsResponse] parsed result object
|
|
843
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
844
|
-
#
|
|
845
|
-
# @return [Google::Apis::PeopleV1::ListOtherContactsResponse]
|
|
846
|
-
#
|
|
847
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
848
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
849
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
850
|
-
def other_contacts(page_size: nil, page_token: nil, read_mask: nil, request_sync_token: nil, sync_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
851
|
-
command = make_simple_command(:post, 'v1/otherContacts', options)
|
|
852
|
-
command.response_representation = Google::Apis::PeopleV1::ListOtherContactsResponse::Representation
|
|
853
|
-
command.response_class = Google::Apis::PeopleV1::ListOtherContactsResponse
|
|
854
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
855
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
856
|
-
command.query['readMask'] = read_mask unless read_mask.nil?
|
|
857
|
-
command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
|
|
1126
|
+
command.query['sources'] = sources unless sources.nil?
|
|
858
1127
|
command.query['syncToken'] = sync_token unless sync_token.nil?
|
|
859
1128
|
command.query['fields'] = fields unless fields.nil?
|
|
860
1129
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|