Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::MonthlySchedule.
Represents a monthly schedule. An example of a valid monthly schedule is
"on the third Tuesday of the month" or "on the 15th of the month".
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#month_day
defmonth_day()->::Integer
Returns
(::Integer) — Required. One day of the month. 1-31 indicates the 1st to the 31st day.
-1 indicates the last day of the month. Months without the target day
will be skipped. For example, a schedule to run "every month on the 31st"
will not run in February, April, June, etc.
Note: The following fields are mutually exclusive: month_day, week_day_of_month. If a field in that set is populated, all other fields in the set will automatically be cleared.
#month_day=
defmonth_day=(value)->::Integer
Parameter
value (::Integer) — Required. One day of the month. 1-31 indicates the 1st to the 31st day.
-1 indicates the last day of the month. Months without the target day
will be skipped. For example, a schedule to run "every month on the 31st"
will not run in February, April, June, etc.
Note: The following fields are mutually exclusive: month_day, week_day_of_month. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Integer) — Required. One day of the month. 1-31 indicates the 1st to the 31st day.
-1 indicates the last day of the month. Months without the target day
will be skipped. For example, a schedule to run "every month on the 31st"
will not run in February, April, June, etc.
Note: The following fields are mutually exclusive: month_day, week_day_of_month. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: week_day_of_month, month_day. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: week_day_of_month, month_day. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: week_day_of_month, month_day. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::MonthlySchedule (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [1.3.0](/ruby/docs/reference/google-cloud-os_config-v1/1.3.0/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [1.2.1](/ruby/docs/reference/google-cloud-os_config-v1/1.2.1/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [1.1.0](/ruby/docs/reference/google-cloud-os_config-v1/1.1.0/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [1.0.1](/ruby/docs/reference/google-cloud-os_config-v1/1.0.1/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [0.16.0](/ruby/docs/reference/google-cloud-os_config-v1/0.16.0/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [0.15.2](/ruby/docs/reference/google-cloud-os_config-v1/0.15.2/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [0.14.0](/ruby/docs/reference/google-cloud-os_config-v1/0.14.0/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [0.13.0](/ruby/docs/reference/google-cloud-os_config-v1/0.13.0/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [0.12.0](/ruby/docs/reference/google-cloud-os_config-v1/0.12.0/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [0.11.0](/ruby/docs/reference/google-cloud-os_config-v1/0.11.0/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1/0.10.0/Google-Cloud-OsConfig-V1-MonthlySchedule)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1/0.9.1/Google-Cloud-OsConfig-V1-MonthlySchedule) \nReference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::MonthlySchedule.\n\nRepresents a monthly schedule. An example of a valid monthly schedule is\n\"on the third Tuesday of the month\" or \"on the 15th of the month\". \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #month_day\n\n def month_day() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run \"every month on the 31st\" will not run in February, April, June, etc.\n\n Note: The following fields are mutually exclusive: `month_day`, `week_day_of_month`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #month_day=\n\n def month_day=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run \"every month on the 31st\" will not run in February, April, June, etc.\n\n\nNote: The following fields are mutually exclusive: `month_day`, `week_day_of_month`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Integer) --- Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run \"every month on the 31st\" will not run in February, April, June, etc.\n\n Note: The following fields are mutually exclusive: `month_day`, `week_day_of_month`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #week_day_of_month\n\n def week_day_of_month() -\u003e ::Google::Cloud::OsConfig::V1::WeekDayOfMonth\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::WeekDayOfMonth](./Google-Cloud-OsConfig-V1-WeekDayOfMonth)) --- Required. Week day in a month.\n\n\n Note: The following fields are mutually exclusive: `week_day_of_month`, `month_day`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #week_day_of_month=\n\n def week_day_of_month=(value) -\u003e ::Google::Cloud::OsConfig::V1::WeekDayOfMonth\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1::WeekDayOfMonth](./Google-Cloud-OsConfig-V1-WeekDayOfMonth)) --- Required. Week day in a month.\n\n\nNote: The following fields are mutually exclusive: `week_day_of_month`, `month_day`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::WeekDayOfMonth](./Google-Cloud-OsConfig-V1-WeekDayOfMonth)) --- Required. Week day in a month.\n\n\n Note: The following fields are mutually exclusive: `week_day_of_month`, `month_day`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]