generated/google/apis/people_v1/service.rb
def delete_person_contact_photo(resource_name, person_fields: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:delete, 'v1/{+resourceName}:deleteContactPhoto', options)
          command.response_representation = Google::Apis::PeopleV1::DeleteContactPhotoResponse::Representation
          command.response_class = Google::Apis::PeopleV1::DeleteContactPhotoResponse
          command.params['resourceName'] = resource_name unless resource_name.nil?
          command.query['personFields'] = person_fields unless person_fields.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
# Delete a contact's photo.
# @param [String] resource_name
#   Required. The resource name of the contact whose photo will be deleted.
# @param [String] person_fields
#   Optional. A field mask to restrict which fields on the person are returned.
#   Multiple
#   fields can be specified by separating them with commas. Defaults to empty
#   if not set, which will skip the post mutate get. Valid values are:
#   * addresses
#   * ageRanges
#   * biographies
#   * birthdays
#   * braggingRights
#   * coverPhotos
#   * emailAddresses
#   * events
#   * genders
#   * imClients
#   * interests
#   * locales
#   * memberships
#   * metadata
#   * names
#   * nicknames
#   * occupations
#   * organizations
#   * phoneNumbers
#   * photos
#   * relations
#   * relationshipInterests
#   * relationshipStatuses
#   * residences
#   * sipAddresses
#   * skills
#   * taglines
#   * urls
#   * userDefined
# @param [String] fields
#   Selector specifying which fields to include in a partial response.
# @param [String] quota_user
#   Available to use for quota purposes for server-side applications. Can be any
#   arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
#   Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PeopleV1::DeleteContactPhotoResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PeopleV1::DeleteContactPhotoResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
Delete a contact's photo.
Delete a contact ' s photo .
def delete_person_contact_photo(resource_name, person_fields: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:delete, 'v1/{+resourceName}:deleteContactPhoto', options)
          command.response_representation = Google::Apis::PeopleV1::DeleteContactPhotoResponse::Representation
          command.response_class = Google::Apis::PeopleV1::DeleteContactPhotoResponse
          command.params['resourceName'] = resource_name unless resource_name.nil?
          command.query['personFields'] = person_fields unless person_fields.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def delete_person_contact_photo ( resource_name , person_fields : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :delete , 'v1/{+resourceName}:deleteContactPhoto' , options ) command . response_representation = Google :: Apis :: PeopleV1 :: DeleteContactPhotoResponse :: Representation command . response_class = Google :: Apis :: PeopleV1 :: DeleteContactPhotoResponse command . params [ 'resourceName' ] = resource_name unless resource_name . nil? command . query [ 'personFields' ] = person_fields unless person_fields . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Delete a contact's photo.
Delete a contact ' s photo .
None
Google::Apis::PeopleV1::DeleteContactPhotoResponse
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
resource_name
person_fields
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed