public class GmailuserssettingssendAsupdateOperation
extends com.mulesoft.connectivity.rest.commons.api.operation.BaseRestOperation
| Constructor and Description |
|---|
GmailuserssettingssendAsupdateOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
gmailuserssettingssendAsupdate(com.mulesoft.connectivity.rest.commons.api.configuration.RestConfiguration config,
com.mulesoft.connectivity.rest.commons.api.connection.RestConnection connection,
String userIdUriParam,
String sendAsEmailUriParam,
org.mule.runtime.api.metadata.TypedValue<InputStream> gmailuserssettingssendAsupdateBody,
com.mulesoft.connectivity.rest.commons.api.operation.EntityRequestParameters parameters,
com.mulesoft.connectivity.rest.commons.api.operation.ConfigurationOverrides overrides,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> callback)
Updates a send-as alias.
|
addParameterToBindingContext, doRequest, doVoidRequest, getDefaultResponseMediaType, getExpressionLanguage, getRequestBindings, getRequestBodyDataType, getRequestBuilderWithBindings, getResponseBindings, resolveDefaultResponseMediaType, withMultipartpublic GmailuserssettingssendAsupdateOperation()
@Throws(value=com.mulesoft.connectivity.rest.commons.api.error.RequestErrorTypeProvider.class) @DisplayName(value="Update SendAs Alias") @Summary(value="Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.") @MediaType(value="application/json") @OutputResolver(output=GmailuserssettingssendAsupdateOutputMetadataResolver.class) public void gmailuserssettingssendAsupdate(@Config com.mulesoft.connectivity.rest.commons.api.configuration.RestConfiguration config, @Connection com.mulesoft.connectivity.rest.commons.api.connection.RestConnection connection, @DisplayName(value="User Id") @Summary(value="User\'s email address. The special value \"me\" can be used to indicate the authenticated user.") String userIdUriParam, @DisplayName(value="Send As Email") @Summary(value="The send-as alias to be updated.") String sendAsEmailUriParam, @Content(primary=true) @DisplayName(value="Body") @Summary(value="Settings associated with a send-as alias, which can be either the primary login address associated with the account or a custom \"from\" address. Send-as aliases correspond to the \"Send Mail As\" feature in the web interface.") @TypeResolver(value=GmailuserssettingssendAsupdateInputMetadataResolver.class) org.mule.runtime.api.metadata.TypedValue<InputStream> gmailuserssettingssendAsupdateBody, @ParameterGroup(name="Request Parameters") com.mulesoft.connectivity.rest.commons.api.operation.EntityRequestParameters parameters, @ParameterGroup(name="Connector Overrides") com.mulesoft.connectivity.rest.commons.api.operation.ConfigurationOverrides overrides, org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper, org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> callback)
This operation makes an HTTP PUT request to the /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail} endpoint
config - the configuration to useconnection - the connection to useuserIdUriParam - User's email address. The special value "me" can be used to indicate the
authenticated user.sendAsEmailUriParam - The send-as alias to be updated.gmailuserssettingssendAsupdateBody - the content to useparameters - the EntityRequestParametersoverrides - the ConfigurationOverridesstreamingHelper - the StreamingHelpercallback - the operation's CompletionCallbackCopyright © 2023 MuleSoft, Inc.. All rights reserved.