docs: update docs (#916)
* fix: re-run script
* test: fix noxfile
diff --git a/docs/dyn/osconfig_v1beta.projects.patchDeployments.html b/docs/dyn/osconfig_v1beta.projects.patchDeployments.html
index 04a9be3..da4c8b5 100644
--- a/docs/dyn/osconfig_v1beta.projects.patchDeployments.html
+++ b/docs/dyn/osconfig_v1beta.projects.patchDeployments.html
@@ -104,6 +104,8 @@
# repository settings, and a schedule. For more information about creating and
# managing patch deployments, see [Scheduling patch
# jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
+ "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited
+ # to 1024 characters.
"createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in
@@ -119,12 +121,12 @@
"timeOfDay": { # Represents a time of day. The date and time zone are either not significant # Required. Time of the day to run a recurring deployment.
# or are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
- "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- # allow the value 60 if it allows leap-seconds.
- "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
"hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
# to allow the value "24:00:00" for scenarios like business closing time.
"nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
+ # allow the value 60 if it allows leap-seconds.
+ "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
},
"lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully.
"frequency": "A String", # Required. The frequency unit of this recurring schedule.
@@ -141,15 +143,15 @@
# Defaults to `create_time` of the patch deployment.
"monthly": { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
# "on the third Tuesday of the month" or "on the 15th of the month".
+ "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month.
+ "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
+ # indicates the last week of the month.
+ "dayOfWeek": "A String", # Required. A day of the week.
+ },
"monthDay": 42, # 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.
- "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month.
- "dayOfWeek": "A String", # Required. A day of the week.
- "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
- # indicates the last week of the month.
- },
},
},
"oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
@@ -161,17 +163,59 @@
# format.
"patchConfig": { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
# patch(es) to a VM instance.
+ "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
+ "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
+ "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
+ "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
+ "object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
+ },
+ "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
+ # specified the script will be executed directly, which will likely
+ # only succeed for scripts with [shebang lines]
+ # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
+ },
+ "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
+ "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
+ "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
+ "object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
+ },
+ "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
+ # specified the script will be executed directly, which will likely
+ # only succeed for scripts with [shebang lines]
+ # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
+ },
+ },
+ "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
+ "classifications": [ # Only apply updates of these windows update classifications. If empty, all
+ # updates are applied.
+ "A String",
+ ],
+ "excludes": [ # List of KBs to exclude from update.
+ "A String",
+ ],
+ "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches
+ # that will be updated. This field must not be used with other
+ # patch configurations.
+ "A String",
+ ],
+ },
"zypper": { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
# patch rules.
# See also https://en.opensuse.org/SDB:Zypper_manual.
- "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches
- # that will be installed using 'zypper patch patch:<patch_name>' command.
- # This field must not be used with any other patch configuration fields.
- "A String",
- ],
- "excludes": [ # List of patches to exclude from update.
- "A String",
- ],
"withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`.
"withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`.
"severities": [ # Install only patches with these severities.
@@ -182,67 +226,56 @@
# Common categories include security, recommended, and feature.
"A String",
],
+ "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches
+ # that will be installed using 'zypper patch patch:<patch_name>' command.
+ # This field must not be used with any other patch configuration fields.
+ "A String",
+ ],
+ "excludes": [ # List of patches to exclude from update.
+ "A String",
+ ],
},
"postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
"linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
"gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
"bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
"object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
},
"interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
# specified the script will be executed directly, which will likely
# only succeed for scripts with [shebang lines]
# (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
},
"windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
"gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
"bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
"object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
},
"interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
# specified the script will be executed directly, which will likely
# only succeed for scripts with [shebang lines]
# (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
},
},
- "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch
- # rules.
- # upgrade`. Additional options can be set to control how this is executed.
- "excludes": [ # List of packages to exclude from update. These packages will be excluded
- "A String",
- ],
- "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
- # that will be updated. If these packages are not installed, they will be
- # ignored. This field cannot be specified with any other patch configuration
- # fields.
- "A String",
- ],
- "type": "A String", # By changing the type to DIST, the patching is performed
- # using `apt-get dist-upgrade` instead.
- },
"yum": { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch
# rules.
# can be set to control how this is executed.
#
# Note that not all settings are supported on all platforms.
- "excludes": [ # List of packages to exclude from update. These packages are excluded by
- # using the yum `--exclude` flag.
- "A String",
- ],
"exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
# that will be updated. If these packages are not installed, they will be
# ignored. This field must not be specified with any other patch
@@ -252,61 +285,30 @@
"security": True or False, # Adds the `--security` flag to `yum update`. Not supported on
# all platforms.
"minimal": True or False, # Will cause patch to run `yum update-minimal` instead.
+ "excludes": [ # List of packages to exclude from update. These packages are excluded by
+ # using the yum `--exclude` flag.
+ "A String",
+ ],
+ },
+ "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch
+ # rules.
+ # upgrade`. Additional options can be set to control how this is executed.
+ "type": "A String", # By changing the type to DIST, the patching is performed
+ # using `apt-get dist-upgrade` instead.
+ "excludes": [ # List of packages to exclude from update. These packages will be excluded
+ "A String",
+ ],
+ "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
+ # that will be updated. If these packages are not installed, they will be
+ # ignored. This field cannot be specified with any other patch configuration
+ # fields.
+ "A String",
+ ],
},
"goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
# rules.
},
"rebootConfig": "A String", # Post-patch reboot settings.
- "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
- "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
- "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
- "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
- "object": "A String", # Required. Name of the Google Cloud Storage object.
- },
- "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
- # specified the script will be executed directly, which will likely
- # only succeed for scripts with [shebang lines]
- # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
- },
- "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
- "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
- "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
- "object": "A String", # Required. Name of the Google Cloud Storage object.
- },
- "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
- # specified the script will be executed directly, which will likely
- # only succeed for scripts with [shebang lines]
- # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
- },
- },
- "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
- "excludes": [ # List of KBs to exclude from update.
- "A String",
- ],
- "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches
- # that will be updated. This field must not be used with other
- # patch configurations.
- "A String",
- ],
- "classifications": [ # Only apply updates of these windows update classifications. If empty, all
- # updates are applied.
- "A String",
- ],
- },
},
"duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out.
"instanceFilter": { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
@@ -341,8 +343,6 @@
"A String",
],
},
- "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited
- # to 1024 characters.
}
patchDeploymentId: string, Required. A name for the patch deployment in the project. When creating a name
@@ -365,6 +365,8 @@
# repository settings, and a schedule. For more information about creating and
# managing patch deployments, see [Scheduling patch
# jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
+ "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited
+ # to 1024 characters.
"createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in
@@ -380,12 +382,12 @@
"timeOfDay": { # Represents a time of day. The date and time zone are either not significant # Required. Time of the day to run a recurring deployment.
# or are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
- "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- # allow the value 60 if it allows leap-seconds.
- "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
"hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
# to allow the value "24:00:00" for scenarios like business closing time.
"nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
+ # allow the value 60 if it allows leap-seconds.
+ "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
},
"lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully.
"frequency": "A String", # Required. The frequency unit of this recurring schedule.
@@ -402,15 +404,15 @@
# Defaults to `create_time` of the patch deployment.
"monthly": { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
# "on the third Tuesday of the month" or "on the 15th of the month".
+ "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month.
+ "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
+ # indicates the last week of the month.
+ "dayOfWeek": "A String", # Required. A day of the week.
+ },
"monthDay": 42, # 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.
- "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month.
- "dayOfWeek": "A String", # Required. A day of the week.
- "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
- # indicates the last week of the month.
- },
},
},
"oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
@@ -422,17 +424,59 @@
# format.
"patchConfig": { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
# patch(es) to a VM instance.
+ "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
+ "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
+ "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
+ "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
+ "object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
+ },
+ "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
+ # specified the script will be executed directly, which will likely
+ # only succeed for scripts with [shebang lines]
+ # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
+ },
+ "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
+ "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
+ "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
+ "object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
+ },
+ "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
+ # specified the script will be executed directly, which will likely
+ # only succeed for scripts with [shebang lines]
+ # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
+ },
+ },
+ "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
+ "classifications": [ # Only apply updates of these windows update classifications. If empty, all
+ # updates are applied.
+ "A String",
+ ],
+ "excludes": [ # List of KBs to exclude from update.
+ "A String",
+ ],
+ "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches
+ # that will be updated. This field must not be used with other
+ # patch configurations.
+ "A String",
+ ],
+ },
"zypper": { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
# patch rules.
# See also https://en.opensuse.org/SDB:Zypper_manual.
- "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches
- # that will be installed using 'zypper patch patch:<patch_name>' command.
- # This field must not be used with any other patch configuration fields.
- "A String",
- ],
- "excludes": [ # List of patches to exclude from update.
- "A String",
- ],
"withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`.
"withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`.
"severities": [ # Install only patches with these severities.
@@ -443,67 +487,56 @@
# Common categories include security, recommended, and feature.
"A String",
],
+ "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches
+ # that will be installed using 'zypper patch patch:<patch_name>' command.
+ # This field must not be used with any other patch configuration fields.
+ "A String",
+ ],
+ "excludes": [ # List of patches to exclude from update.
+ "A String",
+ ],
},
"postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
"linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
"gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
"bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
"object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
},
"interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
# specified the script will be executed directly, which will likely
# only succeed for scripts with [shebang lines]
# (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
},
"windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
"gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
"bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
"object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
},
"interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
# specified the script will be executed directly, which will likely
# only succeed for scripts with [shebang lines]
# (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
},
},
- "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch
- # rules.
- # upgrade`. Additional options can be set to control how this is executed.
- "excludes": [ # List of packages to exclude from update. These packages will be excluded
- "A String",
- ],
- "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
- # that will be updated. If these packages are not installed, they will be
- # ignored. This field cannot be specified with any other patch configuration
- # fields.
- "A String",
- ],
- "type": "A String", # By changing the type to DIST, the patching is performed
- # using `apt-get dist-upgrade` instead.
- },
"yum": { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch
# rules.
# can be set to control how this is executed.
#
# Note that not all settings are supported on all platforms.
- "excludes": [ # List of packages to exclude from update. These packages are excluded by
- # using the yum `--exclude` flag.
- "A String",
- ],
"exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
# that will be updated. If these packages are not installed, they will be
# ignored. This field must not be specified with any other patch
@@ -513,61 +546,30 @@
"security": True or False, # Adds the `--security` flag to `yum update`. Not supported on
# all platforms.
"minimal": True or False, # Will cause patch to run `yum update-minimal` instead.
+ "excludes": [ # List of packages to exclude from update. These packages are excluded by
+ # using the yum `--exclude` flag.
+ "A String",
+ ],
+ },
+ "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch
+ # rules.
+ # upgrade`. Additional options can be set to control how this is executed.
+ "type": "A String", # By changing the type to DIST, the patching is performed
+ # using `apt-get dist-upgrade` instead.
+ "excludes": [ # List of packages to exclude from update. These packages will be excluded
+ "A String",
+ ],
+ "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
+ # that will be updated. If these packages are not installed, they will be
+ # ignored. This field cannot be specified with any other patch configuration
+ # fields.
+ "A String",
+ ],
},
"goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
# rules.
},
"rebootConfig": "A String", # Post-patch reboot settings.
- "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
- "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
- "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
- "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
- "object": "A String", # Required. Name of the Google Cloud Storage object.
- },
- "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
- # specified the script will be executed directly, which will likely
- # only succeed for scripts with [shebang lines]
- # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
- },
- "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
- "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
- "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
- "object": "A String", # Required. Name of the Google Cloud Storage object.
- },
- "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
- # specified the script will be executed directly, which will likely
- # only succeed for scripts with [shebang lines]
- # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
- },
- },
- "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
- "excludes": [ # List of KBs to exclude from update.
- "A String",
- ],
- "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches
- # that will be updated. This field must not be used with other
- # patch configurations.
- "A String",
- ],
- "classifications": [ # Only apply updates of these windows update classifications. If empty, all
- # updates are applied.
- "A String",
- ],
- },
},
"duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out.
"instanceFilter": { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
@@ -602,8 +604,6 @@
"A String",
],
},
- "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited
- # to 1024 characters.
}</pre>
</div>
@@ -654,6 +654,8 @@
# repository settings, and a schedule. For more information about creating and
# managing patch deployments, see [Scheduling patch
# jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
+ "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited
+ # to 1024 characters.
"createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in
@@ -669,12 +671,12 @@
"timeOfDay": { # Represents a time of day. The date and time zone are either not significant # Required. Time of the day to run a recurring deployment.
# or are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
- "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- # allow the value 60 if it allows leap-seconds.
- "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
"hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
# to allow the value "24:00:00" for scenarios like business closing time.
"nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
+ # allow the value 60 if it allows leap-seconds.
+ "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
},
"lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully.
"frequency": "A String", # Required. The frequency unit of this recurring schedule.
@@ -691,15 +693,15 @@
# Defaults to `create_time` of the patch deployment.
"monthly": { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
# "on the third Tuesday of the month" or "on the 15th of the month".
+ "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month.
+ "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
+ # indicates the last week of the month.
+ "dayOfWeek": "A String", # Required. A day of the week.
+ },
"monthDay": 42, # 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.
- "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month.
- "dayOfWeek": "A String", # Required. A day of the week.
- "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
- # indicates the last week of the month.
- },
},
},
"oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
@@ -711,17 +713,59 @@
# format.
"patchConfig": { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
# patch(es) to a VM instance.
+ "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
+ "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
+ "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
+ "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
+ "object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
+ },
+ "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
+ # specified the script will be executed directly, which will likely
+ # only succeed for scripts with [shebang lines]
+ # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
+ },
+ "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
+ "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
+ "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
+ "object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
+ },
+ "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
+ # specified the script will be executed directly, which will likely
+ # only succeed for scripts with [shebang lines]
+ # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
+ },
+ },
+ "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
+ "classifications": [ # Only apply updates of these windows update classifications. If empty, all
+ # updates are applied.
+ "A String",
+ ],
+ "excludes": [ # List of KBs to exclude from update.
+ "A String",
+ ],
+ "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches
+ # that will be updated. This field must not be used with other
+ # patch configurations.
+ "A String",
+ ],
+ },
"zypper": { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
# patch rules.
# See also https://en.opensuse.org/SDB:Zypper_manual.
- "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches
- # that will be installed using 'zypper patch patch:<patch_name>' command.
- # This field must not be used with any other patch configuration fields.
- "A String",
- ],
- "excludes": [ # List of patches to exclude from update.
- "A String",
- ],
"withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`.
"withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`.
"severities": [ # Install only patches with these severities.
@@ -732,67 +776,56 @@
# Common categories include security, recommended, and feature.
"A String",
],
+ "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches
+ # that will be installed using 'zypper patch patch:<patch_name>' command.
+ # This field must not be used with any other patch configuration fields.
+ "A String",
+ ],
+ "excludes": [ # List of patches to exclude from update.
+ "A String",
+ ],
},
"postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
"linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
"gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
"bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
"object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
},
"interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
# specified the script will be executed directly, which will likely
# only succeed for scripts with [shebang lines]
# (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
},
"windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
"gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
"bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
"object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
},
"interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
# specified the script will be executed directly, which will likely
# only succeed for scripts with [shebang lines]
# (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
},
},
- "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch
- # rules.
- # upgrade`. Additional options can be set to control how this is executed.
- "excludes": [ # List of packages to exclude from update. These packages will be excluded
- "A String",
- ],
- "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
- # that will be updated. If these packages are not installed, they will be
- # ignored. This field cannot be specified with any other patch configuration
- # fields.
- "A String",
- ],
- "type": "A String", # By changing the type to DIST, the patching is performed
- # using `apt-get dist-upgrade` instead.
- },
"yum": { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch
# rules.
# can be set to control how this is executed.
#
# Note that not all settings are supported on all platforms.
- "excludes": [ # List of packages to exclude from update. These packages are excluded by
- # using the yum `--exclude` flag.
- "A String",
- ],
"exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
# that will be updated. If these packages are not installed, they will be
# ignored. This field must not be specified with any other patch
@@ -802,61 +835,30 @@
"security": True or False, # Adds the `--security` flag to `yum update`. Not supported on
# all platforms.
"minimal": True or False, # Will cause patch to run `yum update-minimal` instead.
+ "excludes": [ # List of packages to exclude from update. These packages are excluded by
+ # using the yum `--exclude` flag.
+ "A String",
+ ],
+ },
+ "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch
+ # rules.
+ # upgrade`. Additional options can be set to control how this is executed.
+ "type": "A String", # By changing the type to DIST, the patching is performed
+ # using `apt-get dist-upgrade` instead.
+ "excludes": [ # List of packages to exclude from update. These packages will be excluded
+ "A String",
+ ],
+ "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
+ # that will be updated. If these packages are not installed, they will be
+ # ignored. This field cannot be specified with any other patch configuration
+ # fields.
+ "A String",
+ ],
},
"goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
# rules.
},
"rebootConfig": "A String", # Post-patch reboot settings.
- "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
- "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
- "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
- "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
- "object": "A String", # Required. Name of the Google Cloud Storage object.
- },
- "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
- # specified the script will be executed directly, which will likely
- # only succeed for scripts with [shebang lines]
- # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
- },
- "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
- "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
- "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
- "object": "A String", # Required. Name of the Google Cloud Storage object.
- },
- "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
- # specified the script will be executed directly, which will likely
- # only succeed for scripts with [shebang lines]
- # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
- },
- },
- "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
- "excludes": [ # List of KBs to exclude from update.
- "A String",
- ],
- "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches
- # that will be updated. This field must not be used with other
- # patch configurations.
- "A String",
- ],
- "classifications": [ # Only apply updates of these windows update classifications. If empty, all
- # updates are applied.
- "A String",
- ],
- },
},
"duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out.
"instanceFilter": { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
@@ -891,8 +893,6 @@
"A String",
],
},
- "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited
- # to 1024 characters.
}</pre>
</div>
@@ -922,6 +922,8 @@
# repository settings, and a schedule. For more information about creating and
# managing patch deployments, see [Scheduling patch
# jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
+ "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited
+ # to 1024 characters.
"createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in
@@ -937,12 +939,12 @@
"timeOfDay": { # Represents a time of day. The date and time zone are either not significant # Required. Time of the day to run a recurring deployment.
# or are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
- "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- # allow the value 60 if it allows leap-seconds.
- "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
"hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
# to allow the value "24:00:00" for scenarios like business closing time.
"nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
+ # allow the value 60 if it allows leap-seconds.
+ "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
},
"lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully.
"frequency": "A String", # Required. The frequency unit of this recurring schedule.
@@ -959,15 +961,15 @@
# Defaults to `create_time` of the patch deployment.
"monthly": { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions.
# "on the third Tuesday of the month" or "on the 15th of the month".
+ "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month.
+ "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
+ # indicates the last week of the month.
+ "dayOfWeek": "A String", # Required. A day of the week.
+ },
"monthDay": 42, # 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.
- "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month.
- "dayOfWeek": "A String", # Required. A day of the week.
- "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
- # indicates the last week of the month.
- },
},
},
"oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution.
@@ -979,17 +981,59 @@
# format.
"patchConfig": { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied.
# patch(es) to a VM instance.
+ "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
+ "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
+ "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
+ "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
+ "object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
+ },
+ "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
+ # specified the script will be executed directly, which will likely
+ # only succeed for scripts with [shebang lines]
+ # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
+ },
+ "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
+ "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
+ "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
+ "object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
+ },
+ "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
+ # specified the script will be executed directly, which will likely
+ # only succeed for scripts with [shebang lines]
+ # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
+ },
+ },
+ "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
+ "classifications": [ # Only apply updates of these windows update classifications. If empty, all
+ # updates are applied.
+ "A String",
+ ],
+ "excludes": [ # List of KBs to exclude from update.
+ "A String",
+ ],
+ "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches
+ # that will be updated. This field must not be used with other
+ # patch configurations.
+ "A String",
+ ],
+ },
"zypper": { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper`
# patch rules.
# See also https://en.opensuse.org/SDB:Zypper_manual.
- "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches
- # that will be installed using 'zypper patch patch:<patch_name>' command.
- # This field must not be used with any other patch configuration fields.
- "A String",
- ],
- "excludes": [ # List of patches to exclude from update.
- "A String",
- ],
"withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`.
"withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`.
"severities": [ # Install only patches with these severities.
@@ -1000,67 +1044,56 @@
# Common categories include security, recommended, and feature.
"A String",
],
+ "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches
+ # that will be installed using 'zypper patch patch:<patch_name>' command.
+ # This field must not be used with any other patch configuration fields.
+ "A String",
+ ],
+ "excludes": [ # List of patches to exclude from update.
+ "A String",
+ ],
},
"postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update.
"linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
"gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
"bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
"object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
},
"interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
# specified the script will be executed directly, which will likely
# only succeed for scripts with [shebang lines]
# (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
},
"windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
"gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
"bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
"object": "A String", # Required. Name of the Google Cloud Storage object.
+ "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
+ # ensure that the ExecStep specified by this PatchJob does not change.
},
"interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
# specified the script will be executed directly, which will likely
# only succeed for scripts with [shebang lines]
# (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
+ "localPath": "A String", # An absolute path to the executable on the VM.
+ "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
+ # execution can return to indicate a success.
+ 42,
+ ],
},
},
- "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch
- # rules.
- # upgrade`. Additional options can be set to control how this is executed.
- "excludes": [ # List of packages to exclude from update. These packages will be excluded
- "A String",
- ],
- "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
- # that will be updated. If these packages are not installed, they will be
- # ignored. This field cannot be specified with any other patch configuration
- # fields.
- "A String",
- ],
- "type": "A String", # By changing the type to DIST, the patching is performed
- # using `apt-get dist-upgrade` instead.
- },
"yum": { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch
# rules.
# can be set to control how this is executed.
#
# Note that not all settings are supported on all platforms.
- "excludes": [ # List of packages to exclude from update. These packages are excluded by
- # using the yum `--exclude` flag.
- "A String",
- ],
"exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
# that will be updated. If these packages are not installed, they will be
# ignored. This field must not be specified with any other patch
@@ -1070,61 +1103,30 @@
"security": True or False, # Adds the `--security` flag to `yum update`. Not supported on
# all platforms.
"minimal": True or False, # Will cause patch to run `yum update-minimal` instead.
+ "excludes": [ # List of packages to exclude from update. These packages are excluded by
+ # using the yum `--exclude` flag.
+ "A String",
+ ],
+ },
+ "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch
+ # rules.
+ # upgrade`. Additional options can be set to control how this is executed.
+ "type": "A String", # By changing the type to DIST, the patching is performed
+ # using `apt-get dist-upgrade` instead.
+ "excludes": [ # List of packages to exclude from update. These packages will be excluded
+ "A String",
+ ],
+ "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages
+ # that will be updated. If these packages are not installed, they will be
+ # ignored. This field cannot be specified with any other patch configuration
+ # fields.
+ "A String",
+ ],
},
"goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch
# rules.
},
"rebootConfig": "A String", # Post-patch reboot settings.
- "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update.
- "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
- "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
- "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
- "object": "A String", # Required. Name of the Google Cloud Storage object.
- },
- "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
- # specified the script will be executed directly, which will likely
- # only succeed for scripts with [shebang lines]
- # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
- },
- "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob.
- "localPath": "A String", # An absolute path to the executable on the VM.
- "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the
- # execution can return to indicate a success.
- 42,
- ],
- "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable.
- "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to
- # ensure that the ExecStep specified by this PatchJob does not change.
- "bucket": "A String", # Required. Bucket of the Google Cloud Storage object.
- "object": "A String", # Required. Name of the Google Cloud Storage object.
- },
- "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is
- # specified the script will be executed directly, which will likely
- # only succeed for scripts with [shebang lines]
- # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
- },
- },
- "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules.
- "excludes": [ # List of KBs to exclude from update.
- "A String",
- ],
- "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches
- # that will be updated. This field must not be used with other
- # patch configurations.
- "A String",
- ],
- "classifications": [ # Only apply updates of these windows update classifications. If empty, all
- # updates are applied.
- "A String",
- ],
- },
},
"duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out.
"instanceFilter": { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch.
@@ -1159,8 +1161,6 @@
"A String",
],
},
- "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited
- # to 1024 characters.
},
],
}</pre>