public function patch($studentId, $invitationId, Google_Service_Classroom_GuardianInvitation $postBody, $optParams = array())
  {
    $params = array('studentId' => $studentId, 'invitationId' => $invitationId, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('patch', array($params), "Google_Service_Classroom_GuardianInvitation");
  }
public function patch($studentId, $invitationId, Google_Service_Classroom_GuardianInvitation $postBody, $optParams = array())
  {
    $params = array('studentId' => $studentId, 'invitationId' => $invitationId, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('patch', array($params), "Google_Service_Classroom_GuardianInvitation");
  }
public function patch ( $ studentId , $ invitationId , Google_Service_Classroom_GuardianInvitation $ postBody , $ optParams = array ( ) ) { $ params = array ( 'studentId' => $ studentId , 'invitationId' => $ invitationId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'patch' , array ( $ params ) , "Google_Service_Classroom_GuardianInvitation" ) ; }
Modifies a guardian invitation.

Currently, the only valid modification is to change the `state` from
`PENDING` to `COMPLETE`. This has the effect of withdrawing the invitation.

This method returns the following error codes:

* `PERMISSION_DENIED` if the current user does not have permission to
manage guardians, if guardians are not enabled for the domain in question
or for other access errors. * `FAILED_PRECONDITION` if the guardian link is
not in the `PENDING` state. * `INVALID_ARGUMENT` if the format of the student
ID provided   cannot be recognized (it is not an email address, nor a
`user_id` from   this API), or if the passed `GuardianInvitation` has a
`state` other than   `COMPLETE`, or if it modifies fields other than `state`.
* `NOT_FOUND` if the student ID provided is a valid student ID, but
Classroom has no record of that student, or if the `id` field does not
refer to a guardian invitation known to Classroom.
(guardianInvitations.patch)

@param string $studentId The ID of the student whose guardian invitation is
to be modified.
@param string $invitationId The `id` field of the `GuardianInvitation` to be
modified.
@param Google_Service_Classroom_GuardianInvitation $postBody
@param array $optParams Optional parameters.

@opt_param string updateMask Mask that identifies which fields on the course
to update. This field is required to do an update. The update will fail if
invalid fields are specified. The following fields are valid:

* `state`

When set in a query parameter, this field should be specified as

`updateMask=,,...`
@return Google_Service_Classroom_GuardianInvitation
Modifies a guardian invitation .