# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::PatchConfig (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::PatchConfig.

Patch configuration specifications. Contains details on how to apply the
patch(es) to a VM instance.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #apt

    def apt() -> ::Google::Cloud::OsConfig::V1::AptSettings

**Returns**

- ([::Google::Cloud::OsConfig::V1::AptSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-AptSettings)) --- Apt update settings. Use this setting to override the default `apt` patch rules.

### #apt=

    def apt=(value) -> ::Google::Cloud::OsConfig::V1::AptSettings

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::AptSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-AptSettings)) --- Apt update settings. Use this setting to override the default `apt` patch rules.
**Returns**

- ([::Google::Cloud::OsConfig::V1::AptSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-AptSettings)) --- Apt update settings. Use this setting to override the default `apt` patch rules.

### #goo

    def goo() -> ::Google::Cloud::OsConfig::V1::GooSettings

**Returns**

- ([::Google::Cloud::OsConfig::V1::GooSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-GooSettings)) --- Goo update settings. Use this setting to override the default `goo` patch rules.

### #goo=

    def goo=(value) -> ::Google::Cloud::OsConfig::V1::GooSettings

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::GooSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-GooSettings)) --- Goo update settings. Use this setting to override the default `goo` patch rules.
**Returns**

- ([::Google::Cloud::OsConfig::V1::GooSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-GooSettings)) --- Goo update settings. Use this setting to override the default `goo` patch rules.

### #mig_instances_allowed

    def mig_instances_allowed() -> ::Boolean

**Returns**

- (::Boolean) --- Allows the patch job to run on Managed instance groups (MIGs).

### #mig_instances_allowed=

    def mig_instances_allowed=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Allows the patch job to run on Managed instance groups (MIGs).
**Returns**

- (::Boolean) --- Allows the patch job to run on Managed instance groups (MIGs).

### #post_step

    def post_step() -> ::Google::Cloud::OsConfig::V1::ExecStep

**Returns**

- ([::Google::Cloud::OsConfig::V1::ExecStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ExecStep)) --- The `ExecStep` to run after the patch update.

### #post_step=

    def post_step=(value) -> ::Google::Cloud::OsConfig::V1::ExecStep

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::ExecStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ExecStep)) --- The `ExecStep` to run after the patch update.
**Returns**

- ([::Google::Cloud::OsConfig::V1::ExecStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ExecStep)) --- The `ExecStep` to run after the patch update.

### #pre_step

    def pre_step() -> ::Google::Cloud::OsConfig::V1::ExecStep

**Returns**

- ([::Google::Cloud::OsConfig::V1::ExecStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ExecStep)) --- The `ExecStep` to run before the patch update.

### #pre_step=

    def pre_step=(value) -> ::Google::Cloud::OsConfig::V1::ExecStep

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::ExecStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ExecStep)) --- The `ExecStep` to run before the patch update.
**Returns**

- ([::Google::Cloud::OsConfig::V1::ExecStep](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ExecStep)) --- The `ExecStep` to run before the patch update.

### #reboot_config

    def reboot_config() -> ::Google::Cloud::OsConfig::V1::PatchConfig::RebootConfig

**Returns**

- ([::Google::Cloud::OsConfig::V1::PatchConfig::RebootConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchConfig-RebootConfig)) --- Post-patch reboot settings.

### #reboot_config=

    def reboot_config=(value) -> ::Google::Cloud::OsConfig::V1::PatchConfig::RebootConfig

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::PatchConfig::RebootConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchConfig-RebootConfig)) --- Post-patch reboot settings.
**Returns**

- ([::Google::Cloud::OsConfig::V1::PatchConfig::RebootConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchConfig-RebootConfig)) --- Post-patch reboot settings.

### #windows_update

    def windows_update() -> ::Google::Cloud::OsConfig::V1::WindowsUpdateSettings

**Returns**

- ([::Google::Cloud::OsConfig::V1::WindowsUpdateSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-WindowsUpdateSettings)) --- Windows update settings. Use this override the default windows patch rules.

### #windows_update=

    def windows_update=(value) -> ::Google::Cloud::OsConfig::V1::WindowsUpdateSettings

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::WindowsUpdateSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-WindowsUpdateSettings)) --- Windows update settings. Use this override the default windows patch rules.
**Returns**

- ([::Google::Cloud::OsConfig::V1::WindowsUpdateSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-WindowsUpdateSettings)) --- Windows update settings. Use this override the default windows patch rules.

### #yum

    def yum() -> ::Google::Cloud::OsConfig::V1::YumSettings

**Returns**

- ([::Google::Cloud::OsConfig::V1::YumSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-YumSettings)) --- Yum update settings. Use this setting to override the default `yum` patch rules.

### #yum=

    def yum=(value) -> ::Google::Cloud::OsConfig::V1::YumSettings

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::YumSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-YumSettings)) --- Yum update settings. Use this setting to override the default `yum` patch rules.
**Returns**

- ([::Google::Cloud::OsConfig::V1::YumSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-YumSettings)) --- Yum update settings. Use this setting to override the default `yum` patch rules.

### #zypper

    def zypper() -> ::Google::Cloud::OsConfig::V1::ZypperSettings

**Returns**

- ([::Google::Cloud::OsConfig::V1::ZypperSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ZypperSettings)) --- Zypper update settings. Use this setting to override the default `zypper` patch rules.

### #zypper=

    def zypper=(value) -> ::Google::Cloud::OsConfig::V1::ZypperSettings

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::ZypperSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ZypperSettings)) --- Zypper update settings. Use this setting to override the default `zypper` patch rules.
**Returns**

- ([::Google::Cloud::OsConfig::V1::ZypperSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ZypperSettings)) --- Zypper update settings. Use this setting to override the default `zypper` patch rules.