class Google::Apis::GmailV1::VacationSettings

Vacation auto-reply settings for an account. These settings correspond to the “ Vacation responder” feature in the web interface.

Attributes

enable_auto_reply[RW]

Flag that controls whether Gmail automatically replies to messages. Corresponds to the JSON property `enableAutoReply` @return [Boolean]

enable_auto_reply?[RW]

Flag that controls whether Gmail automatically replies to messages. Corresponds to the JSON property `enableAutoReply` @return [Boolean]

end_time[RW]

An optional end time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives before the end time. If both `startTime` and `endTime` are specified, ` startTime` must precede `endTime`. Corresponds to the JSON property `endTime` @return [Fixnum]

response_body_html[RW]

Response body in HTML format. Gmail will sanitize the HTML before storing it. If both `response_body_plain_text` and `response_body_html` are specified, ` response_body_html` will be used. Corresponds to the JSON property `responseBodyHtml` @return [String]

response_body_plain_text[RW]

Response body in plain text format. If both `response_body_plain_text` and ` response_body_html` are specified, `response_body_html` will be used. Corresponds to the JSON property `responseBodyPlainText` @return [String]

response_subject[RW]

Optional text to prepend to the subject line in vacation responses. In order to enable auto-replies, either the response subject or the response body must be nonempty. Corresponds to the JSON property `responseSubject` @return [String]

restrict_to_contacts[RW]

Flag that determines whether responses are sent to recipients who are not in the user's list of contacts. Corresponds to the JSON property `restrictToContacts` @return [Boolean]

restrict_to_contacts?[RW]

Flag that determines whether responses are sent to recipients who are not in the user's list of contacts. Corresponds to the JSON property `restrictToContacts` @return [Boolean]

restrict_to_domain[RW]

Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for G Suite users. Corresponds to the JSON property `restrictToDomain` @return [Boolean]

restrict_to_domain?[RW]

Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for G Suite users. Corresponds to the JSON property `restrictToDomain` @return [Boolean]

start_time[RW]

An optional start time for sending auto-replies (epoch ms). When this is specified, Gmail will automatically reply only to messages that it receives after the start time. If both `startTime` and `endTime` are specified, ` startTime` must precede `endTime`. Corresponds to the JSON property `startTime` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gmail_v1/classes.rb, line 1534
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gmail_v1/classes.rb, line 1539
def update!(**args)
  @enable_auto_reply = args[:enable_auto_reply] if args.key?(:enable_auto_reply)
  @end_time = args[:end_time] if args.key?(:end_time)
  @response_body_html = args[:response_body_html] if args.key?(:response_body_html)
  @response_body_plain_text = args[:response_body_plain_text] if args.key?(:response_body_plain_text)
  @response_subject = args[:response_subject] if args.key?(:response_subject)
  @restrict_to_contacts = args[:restrict_to_contacts] if args.key?(:restrict_to_contacts)
  @restrict_to_domain = args[:restrict_to_domain] if args.key?(:restrict_to_domain)
  @start_time = args[:start_time] if args.key?(:start_time)
end