google-api-client 0.30.6 → 0.30.7

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/generated/google/apis/bigquery_v2.rb +1 -1
  4. data/generated/google/apis/bigquery_v2/classes.rb +7 -0
  5. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  6. data/generated/google/apis/bigquery_v2/service.rb +1 -1
  7. data/generated/google/apis/cloudiot_v1.rb +1 -1
  8. data/generated/google/apis/cloudiot_v1/classes.rb +2 -2
  9. data/generated/google/apis/dialogflow_v2.rb +1 -1
  10. data/generated/google/apis/dialogflow_v2/classes.rb +91 -19
  11. data/generated/google/apis/dialogflow_v2/representations.rb +32 -13
  12. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  13. data/generated/google/apis/dialogflow_v2beta1/classes.rb +91 -19
  14. data/generated/google/apis/dialogflow_v2beta1/representations.rb +33 -14
  15. data/generated/google/apis/docs_v1.rb +1 -1
  16. data/generated/google/apis/docs_v1/classes.rb +103 -0
  17. data/generated/google/apis/docs_v1/representations.rb +37 -0
  18. data/generated/google/apis/jobs_v2.rb +1 -1
  19. data/generated/google/apis/jobs_v2/classes.rb +147 -240
  20. data/generated/google/apis/jobs_v2/service.rb +24 -44
  21. data/generated/google/apis/jobs_v3.rb +1 -1
  22. data/generated/google/apis/jobs_v3/classes.rb +113 -179
  23. data/generated/google/apis/jobs_v3/service.rb +25 -50
  24. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  25. data/generated/google/apis/jobs_v3p1beta1/classes.rb +119 -187
  26. data/generated/google/apis/jobs_v3p1beta1/service.rb +25 -50
  27. data/generated/google/apis/people_v1.rb +1 -1
  28. data/generated/google/apis/people_v1/classes.rb +105 -0
  29. data/generated/google/apis/people_v1/representations.rb +42 -0
  30. data/generated/google/apis/people_v1/service.rb +98 -0
  31. data/generated/google/apis/slides_v1.rb +1 -1
  32. data/generated/google/apis/translate_v3beta1.rb +37 -0
  33. data/generated/google/apis/translate_v3beta1/classes.rb +826 -0
  34. data/generated/google/apis/translate_v3beta1/representations.rb +404 -0
  35. data/generated/google/apis/translate_v3beta1/service.rb +706 -0
  36. data/generated/google/apis/videointelligence_v1.rb +1 -1
  37. data/generated/google/apis/videointelligence_v1/classes.rb +30 -0
  38. data/generated/google/apis/videointelligence_v1/representations.rb +10 -0
  39. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  40. data/generated/google/apis/videointelligence_v1beta2/classes.rb +30 -0
  41. data/generated/google/apis/videointelligence_v1beta2/representations.rb +10 -0
  42. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  43. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +30 -0
  44. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +10 -0
  45. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  46. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +30 -0
  47. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +10 -0
  48. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  49. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +30 -0
  50. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +10 -0
  51. data/lib/google/apis/version.rb +1 -1
  52. metadata +6 -2
@@ -51,13 +51,11 @@ module Google
51
51
  # Completes the specified prefix with keyword suggestions.
52
52
  # Intended for use by a job search auto-complete search box.
53
53
  # @param [String] name
54
- # Required.
55
- # Resource name of project the completion is performed within.
54
+ # Required. Resource name of project the completion is performed within.
56
55
  # The format is "projects/`project_id`", for example,
57
56
  # "projects/api-test-project".
58
57
  # @param [String] company_name
59
- # Optional.
60
- # If provided, restricts completion to specified company.
58
+ # Optional. If provided, restricts completion to specified company.
61
59
  # The format is "projects/`project_id`/companies/`company_id`", for example,
62
60
  # "projects/api-test-project/companies/foo".
63
61
  # @param [String] language_code
@@ -77,8 +75,7 @@ module Google
77
75
  # language_code are returned.
78
76
  # The maximum number of allowed characters is 255.
79
77
  # @param [Array<String>, String] language_codes
80
- # Optional.
81
- # The list of languages of the query. This is
78
+ # Optional. The list of languages of the query. This is
82
79
  # the BCP-47 language code, such as "en-US" or "sr-Latn".
83
80
  # For more information, see
84
81
  # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
@@ -92,19 +89,15 @@ module Google
92
89
  # language_codes are returned.
93
90
  # The maximum number of allowed characters is 255.
94
91
  # @param [Fixnum] page_size
95
- # Required.
96
- # Completion result count.
92
+ # Required. Completion result count.
97
93
  # The maximum allowed page size is 10.
98
94
  # @param [String] query
99
- # Required.
100
- # The query used to generate suggestions.
95
+ # Required. The query used to generate suggestions.
101
96
  # The maximum number of allowed characters is 255.
102
97
  # @param [String] scope
103
- # Optional.
104
- # The scope of the completion. The defaults is CompletionScope.PUBLIC.
98
+ # Optional. The scope of the completion. The defaults is CompletionScope.PUBLIC.
105
99
  # @param [String] type
106
- # Optional.
107
- # The completion topic. The default is CompletionType.COMBINED.
100
+ # Optional. The completion topic. The default is CompletionType.COMBINED.
108
101
  # @param [String] fields
109
102
  # Selector specifying which fields to include in a partial response.
110
103
  # @param [String] quota_user
@@ -180,8 +173,7 @@ module Google
180
173
 
181
174
  # Creates a new company entity.
182
175
  # @param [String] parent
183
- # Required.
184
- # Resource name of the project under which the company is created.
176
+ # Required. Resource name of the project under which the company is created.
185
177
  # The format is "projects/`project_id`", for example,
186
178
  # "projects/api-test-project".
187
179
  # @param [Google::Apis::JobsV3p1beta1::CreateCompanyRequest] create_company_request_object
@@ -217,8 +209,7 @@ module Google
217
209
  # Deletes specified company.
218
210
  # Prerequisite: The company has no jobs associated with it.
219
211
  # @param [String] name
220
- # Required.
221
- # The resource name of the company to be deleted.
212
+ # Required. The resource name of the company to be deleted.
222
213
  # The format is "projects/`project_id`/companies/`company_id`", for example,
223
214
  # "projects/api-test-project/companies/foo".
224
215
  # @param [String] fields
@@ -250,8 +241,7 @@ module Google
250
241
 
251
242
  # Retrieves specified company.
252
243
  # @param [String] name
253
- # Required.
254
- # The resource name of the company to be retrieved.
244
+ # Required. The resource name of the company to be retrieved.
255
245
  # The format is "projects/`project_id`/companies/`company_id`", for example,
256
246
  # "projects/api-test-project/companies/foo".
257
247
  # @param [String] fields
@@ -283,20 +273,16 @@ module Google
283
273
 
284
274
  # Lists all companies associated with the service account.
285
275
  # @param [String] parent
286
- # Required.
287
- # Resource name of the project under which the company is created.
276
+ # Required. Resource name of the project under which the company is created.
288
277
  # The format is "projects/`project_id`", for example,
289
278
  # "projects/api-test-project".
290
279
  # @param [Fixnum] page_size
291
- # Optional.
292
- # The maximum number of companies to be returned, at most 100.
280
+ # Optional. The maximum number of companies to be returned, at most 100.
293
281
  # Default is 100 if a non-positive number is provided.
294
282
  # @param [String] page_token
295
- # Optional.
296
- # The starting indicator from which to return results.
283
+ # Optional. The starting indicator from which to return results.
297
284
  # @param [Boolean] require_open_jobs
298
- # Optional.
299
- # Set to true if the companies requested must have open jobs.
285
+ # Optional. Set to true if the companies requested must have open jobs.
300
286
  # Defaults to false.
301
287
  # If true, at most page_size of companies are fetched, among which
302
288
  # only those with open jobs are returned.
@@ -371,8 +357,7 @@ module Google
371
357
 
372
358
  # Deletes a list of Jobs by filter.
373
359
  # @param [String] parent
374
- # Required.
375
- # The resource name of the project under which the job is created.
360
+ # Required. The resource name of the project under which the job is created.
376
361
  # The format is "projects/`project_id`", for example,
377
362
  # "projects/api-test-project".
378
363
  # @param [Google::Apis::JobsV3p1beta1::BatchDeleteJobsRequest] batch_delete_jobs_request_object
@@ -409,8 +394,7 @@ module Google
409
394
  # Typically, the job becomes searchable within 10 seconds, but it may take
410
395
  # up to 5 minutes.
411
396
  # @param [String] parent
412
- # Required.
413
- # The resource name of the project under which the job is created.
397
+ # Required. The resource name of the project under which the job is created.
414
398
  # The format is "projects/`project_id`", for example,
415
399
  # "projects/api-test-project".
416
400
  # @param [Google::Apis::JobsV3p1beta1::CreateJobRequest] create_job_request_object
@@ -447,8 +431,7 @@ module Google
447
431
  # Typically, the job becomes unsearchable within 10 seconds, but it may take
448
432
  # up to 5 minutes.
449
433
  # @param [String] name
450
- # Required.
451
- # The resource name of the job to be deleted.
434
+ # Required. The resource name of the job to be deleted.
452
435
  # The format is "projects/`project_id`/jobs/`job_id`",
453
436
  # for example, "projects/api-test-project/jobs/1234".
454
437
  # @param [String] fields
@@ -481,8 +464,7 @@ module Google
481
464
  # Retrieves the specified job, whose status is OPEN or recently EXPIRED
482
465
  # within the last 90 days.
483
466
  # @param [String] name
484
- # Required.
485
- # The resource name of the job to retrieve.
467
+ # Required. The resource name of the job to retrieve.
486
468
  # The format is "projects/`project_id`/jobs/`job_id`",
487
469
  # for example, "projects/api-test-project/jobs/1234".
488
470
  # @param [String] fields
@@ -514,13 +496,11 @@ module Google
514
496
 
515
497
  # Lists jobs by filter.
516
498
  # @param [String] parent
517
- # Required.
518
- # The resource name of the project under which the job is created.
499
+ # Required. The resource name of the project under which the job is created.
519
500
  # The format is "projects/`project_id`", for example,
520
501
  # "projects/api-test-project".
521
502
  # @param [String] filter
522
- # Required.
523
- # The filter string specifies the jobs to be enumerated.
503
+ # Required. The filter string specifies the jobs to be enumerated.
524
504
  # Supported operator: =, AND
525
505
  # The fields eligible for filtering are:
526
506
  # * `companyName` (Required)
@@ -530,19 +510,16 @@ module Google
530
510
  # * companyName = "projects/api-test-project/companies/123" AND requisitionId
531
511
  # = "req-1"
532
512
  # @param [String] job_view
533
- # Optional.
534
- # The desired job attributes returned for jobs in the
513
+ # Optional. The desired job attributes returned for jobs in the
535
514
  # search response. Defaults to JobView.JOB_VIEW_FULL if no value is
536
515
  # specified.
537
516
  # @param [Fixnum] page_size
538
- # Optional.
539
- # The maximum number of jobs to be returned per page of results.
517
+ # Optional. The maximum number of jobs to be returned per page of results.
540
518
  # If job_view is set to JobView.JOB_VIEW_ID_ONLY, the maximum allowed
541
519
  # page size is 1000. Otherwise, the maximum allowed page size is 100.
542
520
  # Default is 100 if empty or a number < 1 is specified.
543
521
  # @param [String] page_token
544
- # Optional.
545
- # The starting point of a query result.
522
+ # Optional. The starting point of a query result.
546
523
  # @param [String] fields
547
524
  # Selector specifying which fields to include in a partial response.
548
525
  # @param [String] quota_user
@@ -620,8 +597,7 @@ module Google
620
597
  # present in the database, and only returns jobs that the caller has
621
598
  # permission to search against.
622
599
  # @param [String] parent
623
- # Required.
624
- # The resource name of the project to search within.
600
+ # Required. The resource name of the project to search within.
625
601
  # The format is "projects/`project_id`", for example,
626
602
  # "projects/api-test-project".
627
603
  # @param [Google::Apis::JobsV3p1beta1::SearchJobsRequest] search_jobs_request_object
@@ -663,8 +639,7 @@ module Google
663
639
  # present in the database, and only returns jobs the caller has
664
640
  # permission to search against.
665
641
  # @param [String] parent
666
- # Required.
667
- # The resource name of the project to search within.
642
+ # Required. The resource name of the project to search within.
668
643
  # The format is "projects/`project_id`", for example,
669
644
  # "projects/api-test-project".
670
645
  # @param [Google::Apis::JobsV3p1beta1::SearchJobsRequest] search_jobs_request_object
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/people/
26
26
  module PeopleV1
27
27
  VERSION = 'V1'
28
- REVISION = '20190611'
28
+ REVISION = '20190718'
29
29
 
30
30
  # See, edit, download, and permanently delete your contacts
31
31
  AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
@@ -514,6 +514,29 @@ module Google
514
514
  end
515
515
  end
516
516
 
517
+ # The response for deleteing a contact's photo.
518
+ class DeleteContactPhotoResponse
519
+ include Google::Apis::Core::Hashable
520
+
521
+ # Information about a person merged from various data sources such as the
522
+ # authenticated user's contacts and profile data.
523
+ # Most fields can have multiple items. The items in a field have no guaranteed
524
+ # order, but each non-empty field is guaranteed to have exactly one field with
525
+ # `metadata.primary` set to true.
526
+ # Corresponds to the JSON property `person`
527
+ # @return [Google::Apis::PeopleV1::Person]
528
+ attr_accessor :person
529
+
530
+ def initialize(**args)
531
+ update!(**args)
532
+ end
533
+
534
+ # Update properties of this object
535
+ def update!(**args)
536
+ @person = args[:person] if args.key?(:person)
537
+ end
538
+ end
539
+
517
540
  # A read-only G Suite Domain membership.
518
541
  class DomainMembership
519
542
  include Google::Apis::Core::Hashable
@@ -2101,6 +2124,88 @@ module Google
2101
2124
  end
2102
2125
  end
2103
2126
 
2127
+ # A request to update an existing contact's photo.
2128
+ # All requests must have a valid photo format: JPEG or PNG.
2129
+ class UpdateContactPhotoRequest
2130
+ include Google::Apis::Core::Hashable
2131
+
2132
+ # **Optional.** Not specifying any fields will skip the post mutate read.
2133
+ # A field mask to restrict which fields on the person are
2134
+ # returned. Multiple fields can be specified by separating them with commas.
2135
+ # Valid values are:
2136
+ # * addresses
2137
+ # * ageRanges
2138
+ # * biographies
2139
+ # * birthdays
2140
+ # * braggingRights
2141
+ # * coverPhotos
2142
+ # * emailAddresses
2143
+ # * events
2144
+ # * genders
2145
+ # * imClients
2146
+ # * interests
2147
+ # * locales
2148
+ # * memberships
2149
+ # * metadata
2150
+ # * names
2151
+ # * nicknames
2152
+ # * occupations
2153
+ # * organizations
2154
+ # * phoneNumbers
2155
+ # * photos
2156
+ # * relations
2157
+ # * relationshipInterests
2158
+ # * relationshipStatuses
2159
+ # * residences
2160
+ # * sipAddresses
2161
+ # * skills
2162
+ # * taglines
2163
+ # * urls
2164
+ # * userDefined
2165
+ # Corresponds to the JSON property `personFields`
2166
+ # @return [String]
2167
+ attr_accessor :person_fields
2168
+
2169
+ # Raw photo bytes
2170
+ # Corresponds to the JSON property `photoBytes`
2171
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2172
+ # @return [String]
2173
+ attr_accessor :photo_bytes
2174
+
2175
+ def initialize(**args)
2176
+ update!(**args)
2177
+ end
2178
+
2179
+ # Update properties of this object
2180
+ def update!(**args)
2181
+ @person_fields = args[:person_fields] if args.key?(:person_fields)
2182
+ @photo_bytes = args[:photo_bytes] if args.key?(:photo_bytes)
2183
+ end
2184
+ end
2185
+
2186
+ # The response for updating a contact's photo.
2187
+ class UpdateContactPhotoResponse
2188
+ include Google::Apis::Core::Hashable
2189
+
2190
+ # Information about a person merged from various data sources such as the
2191
+ # authenticated user's contacts and profile data.
2192
+ # Most fields can have multiple items. The items in a field have no guaranteed
2193
+ # order, but each non-empty field is guaranteed to have exactly one field with
2194
+ # `metadata.primary` set to true.
2195
+ # Corresponds to the JSON property `person`
2196
+ # @return [Google::Apis::PeopleV1::Person]
2197
+ attr_accessor :person
2198
+
2199
+ def initialize(**args)
2200
+ update!(**args)
2201
+ end
2202
+
2203
+ # Update properties of this object
2204
+ def update!(**args)
2205
+ @person = args[:person] if args.key?(:person)
2206
+ end
2207
+ end
2208
+
2104
2209
  # A person's associated URLs.
2105
2210
  class Url
2106
2211
  include Google::Apis::Core::Hashable
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class DeleteContactPhotoResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class DomainMembership
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -310,6 +316,18 @@ module Google
310
316
  include Google::Apis::Core::JsonObjectSupport
311
317
  end
312
318
 
319
+ class UpdateContactPhotoRequest
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class UpdateContactPhotoResponse
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
313
331
  class Url
314
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
333
 
@@ -457,6 +475,14 @@ module Google
457
475
  end
458
476
  end
459
477
 
478
+ class DeleteContactPhotoResponse
479
+ # @private
480
+ class Representation < Google::Apis::Core::JsonRepresentation
481
+ property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
482
+
483
+ end
484
+ end
485
+
460
486
  class DomainMembership
461
487
  # @private
462
488
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -886,6 +912,22 @@ module Google
886
912
  end
887
913
  end
888
914
 
915
+ class UpdateContactPhotoRequest
916
+ # @private
917
+ class Representation < Google::Apis::Core::JsonRepresentation
918
+ property :person_fields, as: 'personFields'
919
+ property :photo_bytes, :base64 => true, as: 'photoBytes'
920
+ end
921
+ end
922
+
923
+ class UpdateContactPhotoResponse
924
+ # @private
925
+ class Representation < Google::Apis::Core::JsonRepresentation
926
+ property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
927
+
928
+ end
929
+ end
930
+
889
931
  class Url
890
932
  # @private
891
933
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -354,6 +354,71 @@ module Google
354
354
  execute_or_queue_command(command, &block)
355
355
  end
356
356
 
357
+ # Delete a contact's photo.
358
+ # @param [String] resource_name
359
+ # The resource name of the contact whose photo will be deleted.
360
+ # @param [String] person_fields
361
+ # **Optional.** Not specifying any fields will skip the post mutate read.
362
+ # A field mask to restrict which fields on the person are
363
+ # returned. Multiple fields can be specified by separating them with commas.
364
+ # Valid values are:
365
+ # * addresses
366
+ # * ageRanges
367
+ # * biographies
368
+ # * birthdays
369
+ # * braggingRights
370
+ # * coverPhotos
371
+ # * emailAddresses
372
+ # * events
373
+ # * genders
374
+ # * imClients
375
+ # * interests
376
+ # * locales
377
+ # * memberships
378
+ # * metadata
379
+ # * names
380
+ # * nicknames
381
+ # * occupations
382
+ # * organizations
383
+ # * phoneNumbers
384
+ # * photos
385
+ # * relations
386
+ # * relationshipInterests
387
+ # * relationshipStatuses
388
+ # * residences
389
+ # * sipAddresses
390
+ # * skills
391
+ # * taglines
392
+ # * urls
393
+ # * userDefined
394
+ # @param [String] fields
395
+ # Selector specifying which fields to include in a partial response.
396
+ # @param [String] quota_user
397
+ # Available to use for quota purposes for server-side applications. Can be any
398
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
399
+ # @param [Google::Apis::RequestOptions] options
400
+ # Request-specific options
401
+ #
402
+ # @yield [result, err] Result & error if block supplied
403
+ # @yieldparam result [Google::Apis::PeopleV1::DeleteContactPhotoResponse] parsed result object
404
+ # @yieldparam err [StandardError] error object if request failed
405
+ #
406
+ # @return [Google::Apis::PeopleV1::DeleteContactPhotoResponse]
407
+ #
408
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
409
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
410
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
411
+ def delete_person_contact_photo(resource_name, person_fields: nil, fields: nil, quota_user: nil, options: nil, &block)
412
+ command = make_simple_command(:delete, 'v1/{+resourceName}:deleteContactPhoto', options)
413
+ command.response_representation = Google::Apis::PeopleV1::DeleteContactPhotoResponse::Representation
414
+ command.response_class = Google::Apis::PeopleV1::DeleteContactPhotoResponse
415
+ command.params['resourceName'] = resource_name unless resource_name.nil?
416
+ command.query['personFields'] = person_fields unless person_fields.nil?
417
+ command.query['fields'] = fields unless fields.nil?
418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
419
+ execute_or_queue_command(command, &block)
420
+ end
421
+
357
422
  # Provides information about a person by specifying a resource name. Use
358
423
  # `people/me` to indicate the authenticated user.
359
424
  # <br>
@@ -582,6 +647,39 @@ module Google
582
647
  execute_or_queue_command(command, &block)
583
648
  end
584
649
 
650
+ # Update a contact's photo.
651
+ # @param [String] resource_name
652
+ # Person resource name
653
+ # @param [Google::Apis::PeopleV1::UpdateContactPhotoRequest] update_contact_photo_request_object
654
+ # @param [String] fields
655
+ # Selector specifying which fields to include in a partial response.
656
+ # @param [String] quota_user
657
+ # Available to use for quota purposes for server-side applications. Can be any
658
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
659
+ # @param [Google::Apis::RequestOptions] options
660
+ # Request-specific options
661
+ #
662
+ # @yield [result, err] Result & error if block supplied
663
+ # @yieldparam result [Google::Apis::PeopleV1::UpdateContactPhotoResponse] parsed result object
664
+ # @yieldparam err [StandardError] error object if request failed
665
+ #
666
+ # @return [Google::Apis::PeopleV1::UpdateContactPhotoResponse]
667
+ #
668
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
669
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
670
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
671
+ def update_person_contact_photo(resource_name, update_contact_photo_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
672
+ command = make_simple_command(:patch, 'v1/{+resourceName}:updateContactPhoto', options)
673
+ command.request_representation = Google::Apis::PeopleV1::UpdateContactPhotoRequest::Representation
674
+ command.request_object = update_contact_photo_request_object
675
+ command.response_representation = Google::Apis::PeopleV1::UpdateContactPhotoResponse::Representation
676
+ command.response_class = Google::Apis::PeopleV1::UpdateContactPhotoResponse
677
+ command.params['resourceName'] = resource_name unless resource_name.nil?
678
+ command.query['fields'] = fields unless fields.nil?
679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
680
+ execute_or_queue_command(command, &block)
681
+ end
682
+
585
683
  # Provides a list of the authenticated user's contacts merged with any
586
684
  # connected profiles.
587
685
  # <br>