Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 75 | <h1><a href="osconfig_v1.html">OS Config API</a> . <a href="osconfig_v1.projects.html">projects</a> . <a href="osconfig_v1.projects.patchDeployments.html">patchDeployments</a></h1> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 81 | <code><a href="#create">create(parent, body=None, patchDeploymentId=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Create an OS Config patch deployment.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Delete an OS Config patch deployment.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Get an OS Config patch deployment.</p> |
| 89 | <p class="toc_element"> |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 90 | <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 91 | <p class="firstline">Get a page of OS Config patch deployments.</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 94 | <p class="firstline">Retrieves the next page of results.</p> |
| 95 | <h3>Method Details</h3> |
| 96 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 97 | <code class="details" id="close">close()</code> |
| 98 | <pre>Close httplib2 connections.</pre> |
| 99 | </div> |
| 100 | |
| 101 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 102 | <code class="details" id="create">create(parent, body=None, patchDeploymentId=None, x__xgafv=None)</code> |
| 103 | <pre>Create an OS Config patch deployment. |
| 104 | |
| 105 | Args: |
| 106 | parent: string, Required. The project to apply this patch deployment to in the form `projects/*`. (required) |
| 107 | body: object, The request body. |
| 108 | The object takes the form of: |
| 109 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 110 | { # Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 111 | "rollout": { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Optional. Rollout strategy of the patch job. |
| 112 | "disruptionBudget": { # Message encapsulating a value that can be either absolute ("fixed") or relative ("percent") to a value. # The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of `10`, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops. |
| 113 | "percent": 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value. |
| 114 | "fixed": 42, # Specifies a fixed value. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 115 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 116 | "mode": "A String", # Mode of the patch rollout. |
| 117 | }, |
| 118 | "oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # Required. Schedule a one-time execution. |
| 119 | "executeTime": "A String", # Required. The desired patch job execution time. |
| 120 | }, |
| 121 | "lastExecuteTime": "A String", # Output only. The last time a patch job was started by this deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 122 | "instanceFilter": { # A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones. # Required. VM instances to patch. |
| 123 | "zones": [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone. |
| 124 | "A String", |
| 125 | ], |
| 126 | "instanceNamePrefixes": [ # Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-". |
| 127 | "A String", |
| 128 | ], |
| 129 | "instances": [ # Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]` |
| 130 | "A String", |
| 131 | ], |
| 132 | "all": True or False, # Target all VM instances in the project. If true, no other criteria is permitted. |
| 133 | "groupLabels": [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances. |
| 134 | { # Targets a group of VM instances by using their [assigned labels](https://cloud.google.com/compute/docs/labeling-resources). Labels are key-value pairs. A `GroupLabel` is a combination of labels that is used to target VMs for a patch job. For example, a patch job can target VMs that have the following `GroupLabel`: `{"env":"test", "app":"web"}`. This means that the patch job is applied to VMs that have both the labels `env=test` and `app=web`. |
| 135 | "labels": { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter. |
| 136 | "a_key": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 137 | }, |
| 138 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 139 | ], |
| 140 | }, |
| 141 | "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters. |
| 142 | "patchConfig": { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Optional. Patch configuration that is applied. |
| 143 | "zypper": { # Zypper patching is performed by running `zypper patch`. See also https://en.opensuse.org/SDB:Zypper_manual. # Zypper update settings. Use this setting to override the default `zypper` patch rules. |
| 144 | "excludes": [ # List of patches to exclude from update. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 145 | "A String", |
| 146 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 147 | "severities": [ # Install only patches with these severities. Common severities include critical, important, moderate, and low. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 148 | "A String", |
| 149 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 150 | "categories": [ # Install only patches with these categories. Common categories include security, recommended, and feature. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 151 | "A String", |
| 152 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 153 | "withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`. |
| 154 | "withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`. |
| 155 | "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields. |
| 156 | "A String", |
| 157 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 158 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 159 | "goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules. |
| 160 | }, |
| 161 | "rebootConfig": "A String", # Post-patch reboot settings. |
| 162 | "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules. |
| 163 | "classifications": [ # Only apply updates of these windows update classifications. If empty, all updates are applied. |
| 164 | "A String", |
| 165 | ], |
| 166 | "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. |
| 167 | "A String", |
| 168 | ], |
| 169 | "excludes": [ # List of KBs to exclude from update. |
| 170 | "A String", |
| 171 | ], |
| 172 | }, |
| 173 | "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update. |
| 174 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 175 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 176 | "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\)). |
| 177 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 178 | 42, |
| 179 | ], |
| 180 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 181 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 182 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 183 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 184 | }, |
| 185 | }, |
| 186 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 187 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 188 | "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\)). |
| 189 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 190 | 42, |
| 191 | ], |
| 192 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 193 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 194 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 195 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 196 | }, |
| 197 | }, |
| 198 | }, |
| 199 | "yum": { # Yum patching is performed by executing `yum update`. Additional options can be set to control how this is executed. Note that not all settings are supported on all platforms. # Yum update settings. Use this setting to override the default `yum` patch rules. |
| 200 | "minimal": True or False, # Will cause patch to run `yum update-minimal` instead. |
| 201 | "security": True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms. |
| 202 | "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 configuration fields. |
| 203 | "A String", |
| 204 | ], |
| 205 | "excludes": [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag. |
| 206 | "A String", |
| 207 | ], |
| 208 | }, |
| 209 | "apt": { # Apt patching is completed by executing `apt-get update && apt-get upgrade`. Additional options can be set to control how this is executed. # Apt update settings. Use this setting to override the default `apt` patch rules. |
| 210 | "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. |
| 211 | "A String", |
| 212 | ], |
| 213 | "excludes": [ # List of packages to exclude from update. These packages will be excluded |
| 214 | "A String", |
| 215 | ], |
| 216 | "type": "A String", # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead. |
| 217 | }, |
| 218 | "postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update. |
| 219 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 220 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 221 | "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\)). |
| 222 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 223 | 42, |
| 224 | ], |
| 225 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 226 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 227 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 228 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 229 | }, |
| 230 | }, |
| 231 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 232 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 233 | "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\)). |
| 234 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 235 | 42, |
| 236 | ], |
| 237 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 238 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 239 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 240 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 241 | }, |
| 242 | }, |
| 243 | }, |
| 244 | }, |
| 245 | "recurringSchedule": { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions. |
| 246 | "monthly": { # 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". # Required. Schedule with monthly executions. |
| 247 | "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month. |
| 248 | "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. |
| 249 | "dayOfWeek": "A String", # Required. A day of the week. |
| 250 | }, |
| 251 | "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. |
| 252 | }, |
| 253 | "lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully. |
| 254 | "weekly": { # Represents a weekly schedule. # Required. Schedule with weekly executions. |
| 255 | "dayOfWeek": "A String", # Required. Day of the week. |
| 256 | }, |
| 257 | "endTime": "A String", # Optional. The end time at which a recurring patch deployment schedule is no longer active. |
| 258 | "timeZone": { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. Defines the time zone that `time_of_day` is relative to. The rules for daylight saving time are determined by the chosen time zone. |
| 259 | "id": "A String", # IANA Time Zone Database time zone, e.g. "America/New_York". |
| 260 | "version": "A String", # Optional. IANA Time Zone Database version number, e.g. "2019a". |
| 261 | }, |
| 262 | "timeOfDay": { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Time of the day to run a recurring deployment. |
| 263 | "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. |
| 264 | "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. |
| 265 | "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. |
| 266 | "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
| 267 | }, |
| 268 | "startTime": "A String", # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment. |
| 269 | "frequency": "A String", # Required. The frequency unit of this recurring schedule. |
| 270 | "nextExecuteTime": "A String", # Output only. The time the next patch job is scheduled to run. |
| 271 | }, |
| 272 | "name": "A String", # Unique name for the patch deployment resource in a project. The patch deployment name is in the form: `projects/{project_id}/patchDeployments/{patch_deployment_id}`. This field is ignored when you create a new patch deployment. |
| 273 | "duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out. |
| 274 | "createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 275 | "updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 276 | } |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 277 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 278 | patchDeploymentId: string, Required. A name for the patch deployment in the project. When creating a name the following rules apply: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 279 | x__xgafv: string, V1 error format. |
| 280 | Allowed values |
| 281 | 1 - v1 error format |
| 282 | 2 - v2 error format |
| 283 | |
| 284 | Returns: |
| 285 | An object of the form: |
| 286 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 287 | { # Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 288 | "rollout": { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Optional. Rollout strategy of the patch job. |
| 289 | "disruptionBudget": { # Message encapsulating a value that can be either absolute ("fixed") or relative ("percent") to a value. # The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of `10`, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops. |
| 290 | "percent": 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value. |
| 291 | "fixed": 42, # Specifies a fixed value. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 292 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 293 | "mode": "A String", # Mode of the patch rollout. |
| 294 | }, |
| 295 | "oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # Required. Schedule a one-time execution. |
| 296 | "executeTime": "A String", # Required. The desired patch job execution time. |
| 297 | }, |
| 298 | "lastExecuteTime": "A String", # Output only. The last time a patch job was started by this deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 299 | "instanceFilter": { # A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones. # Required. VM instances to patch. |
| 300 | "zones": [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone. |
| 301 | "A String", |
| 302 | ], |
| 303 | "instanceNamePrefixes": [ # Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-". |
| 304 | "A String", |
| 305 | ], |
| 306 | "instances": [ # Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]` |
| 307 | "A String", |
| 308 | ], |
| 309 | "all": True or False, # Target all VM instances in the project. If true, no other criteria is permitted. |
| 310 | "groupLabels": [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances. |
| 311 | { # Targets a group of VM instances by using their [assigned labels](https://cloud.google.com/compute/docs/labeling-resources). Labels are key-value pairs. A `GroupLabel` is a combination of labels that is used to target VMs for a patch job. For example, a patch job can target VMs that have the following `GroupLabel`: `{"env":"test", "app":"web"}`. This means that the patch job is applied to VMs that have both the labels `env=test` and `app=web`. |
| 312 | "labels": { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter. |
| 313 | "a_key": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 314 | }, |
| 315 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 316 | ], |
| 317 | }, |
| 318 | "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters. |
| 319 | "patchConfig": { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Optional. Patch configuration that is applied. |
| 320 | "zypper": { # Zypper patching is performed by running `zypper patch`. See also https://en.opensuse.org/SDB:Zypper_manual. # Zypper update settings. Use this setting to override the default `zypper` patch rules. |
| 321 | "excludes": [ # List of patches to exclude from update. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 322 | "A String", |
| 323 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 324 | "severities": [ # Install only patches with these severities. Common severities include critical, important, moderate, and low. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 325 | "A String", |
| 326 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 327 | "categories": [ # Install only patches with these categories. Common categories include security, recommended, and feature. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 328 | "A String", |
| 329 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 330 | "withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`. |
| 331 | "withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`. |
| 332 | "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields. |
| 333 | "A String", |
| 334 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 335 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 336 | "goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules. |
| 337 | }, |
| 338 | "rebootConfig": "A String", # Post-patch reboot settings. |
| 339 | "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules. |
| 340 | "classifications": [ # Only apply updates of these windows update classifications. If empty, all updates are applied. |
| 341 | "A String", |
| 342 | ], |
| 343 | "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. |
| 344 | "A String", |
| 345 | ], |
| 346 | "excludes": [ # List of KBs to exclude from update. |
| 347 | "A String", |
| 348 | ], |
| 349 | }, |
| 350 | "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update. |
| 351 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 352 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 353 | "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\)). |
| 354 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 355 | 42, |
| 356 | ], |
| 357 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 358 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 359 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 360 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 361 | }, |
| 362 | }, |
| 363 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 364 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 365 | "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\)). |
| 366 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 367 | 42, |
| 368 | ], |
| 369 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 370 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 371 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 372 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 373 | }, |
| 374 | }, |
| 375 | }, |
| 376 | "yum": { # Yum patching is performed by executing `yum update`. Additional options can be set to control how this is executed. Note that not all settings are supported on all platforms. # Yum update settings. Use this setting to override the default `yum` patch rules. |
| 377 | "minimal": True or False, # Will cause patch to run `yum update-minimal` instead. |
| 378 | "security": True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms. |
| 379 | "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 configuration fields. |
| 380 | "A String", |
| 381 | ], |
| 382 | "excludes": [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag. |
| 383 | "A String", |
| 384 | ], |
| 385 | }, |
| 386 | "apt": { # Apt patching is completed by executing `apt-get update && apt-get upgrade`. Additional options can be set to control how this is executed. # Apt update settings. Use this setting to override the default `apt` patch rules. |
| 387 | "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. |
| 388 | "A String", |
| 389 | ], |
| 390 | "excludes": [ # List of packages to exclude from update. These packages will be excluded |
| 391 | "A String", |
| 392 | ], |
| 393 | "type": "A String", # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead. |
| 394 | }, |
| 395 | "postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update. |
| 396 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 397 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 398 | "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\)). |
| 399 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 400 | 42, |
| 401 | ], |
| 402 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 403 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 404 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 405 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 406 | }, |
| 407 | }, |
| 408 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 409 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 410 | "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\)). |
| 411 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 412 | 42, |
| 413 | ], |
| 414 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 415 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 416 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 417 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 418 | }, |
| 419 | }, |
| 420 | }, |
| 421 | }, |
| 422 | "recurringSchedule": { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions. |
| 423 | "monthly": { # 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". # Required. Schedule with monthly executions. |
| 424 | "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month. |
| 425 | "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. |
| 426 | "dayOfWeek": "A String", # Required. A day of the week. |
| 427 | }, |
| 428 | "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. |
| 429 | }, |
| 430 | "lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully. |
| 431 | "weekly": { # Represents a weekly schedule. # Required. Schedule with weekly executions. |
| 432 | "dayOfWeek": "A String", # Required. Day of the week. |
| 433 | }, |
| 434 | "endTime": "A String", # Optional. The end time at which a recurring patch deployment schedule is no longer active. |
| 435 | "timeZone": { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. Defines the time zone that `time_of_day` is relative to. The rules for daylight saving time are determined by the chosen time zone. |
| 436 | "id": "A String", # IANA Time Zone Database time zone, e.g. "America/New_York". |
| 437 | "version": "A String", # Optional. IANA Time Zone Database version number, e.g. "2019a". |
| 438 | }, |
| 439 | "timeOfDay": { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Time of the day to run a recurring deployment. |
| 440 | "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. |
| 441 | "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. |
| 442 | "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. |
| 443 | "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
| 444 | }, |
| 445 | "startTime": "A String", # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment. |
| 446 | "frequency": "A String", # Required. The frequency unit of this recurring schedule. |
| 447 | "nextExecuteTime": "A String", # Output only. The time the next patch job is scheduled to run. |
| 448 | }, |
| 449 | "name": "A String", # Unique name for the patch deployment resource in a project. The patch deployment name is in the form: `projects/{project_id}/patchDeployments/{patch_deployment_id}`. This field is ignored when you create a new patch deployment. |
| 450 | "duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out. |
| 451 | "createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 452 | "updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 453 | }</pre> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 454 | </div> |
| 455 | |
| 456 | <div class="method"> |
| 457 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 458 | <pre>Delete an OS Config patch deployment. |
| 459 | |
| 460 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 461 | name: string, Required. The resource name of the patch deployment in the form `projects/*/patchDeployments/*`. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 462 | x__xgafv: string, V1 error format. |
| 463 | Allowed values |
| 464 | 1 - v1 error format |
| 465 | 2 - v2 error format |
| 466 | |
| 467 | Returns: |
| 468 | An object of the form: |
| 469 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 470 | { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 471 | }</pre> |
| 472 | </div> |
| 473 | |
| 474 | <div class="method"> |
| 475 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 476 | <pre>Get an OS Config patch deployment. |
| 477 | |
| 478 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 479 | name: string, Required. The resource name of the patch deployment in the form `projects/*/patchDeployments/*`. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 480 | x__xgafv: string, V1 error format. |
| 481 | Allowed values |
| 482 | 1 - v1 error format |
| 483 | 2 - v2 error format |
| 484 | |
| 485 | Returns: |
| 486 | An object of the form: |
| 487 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 488 | { # Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 489 | "rollout": { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Optional. Rollout strategy of the patch job. |
| 490 | "disruptionBudget": { # Message encapsulating a value that can be either absolute ("fixed") or relative ("percent") to a value. # The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of `10`, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops. |
| 491 | "percent": 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value. |
| 492 | "fixed": 42, # Specifies a fixed value. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 493 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 494 | "mode": "A String", # Mode of the patch rollout. |
| 495 | }, |
| 496 | "oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # Required. Schedule a one-time execution. |
| 497 | "executeTime": "A String", # Required. The desired patch job execution time. |
| 498 | }, |
| 499 | "lastExecuteTime": "A String", # Output only. The last time a patch job was started by this deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 500 | "instanceFilter": { # A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones. # Required. VM instances to patch. |
| 501 | "zones": [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone. |
| 502 | "A String", |
| 503 | ], |
| 504 | "instanceNamePrefixes": [ # Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-". |
| 505 | "A String", |
| 506 | ], |
| 507 | "instances": [ # Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]` |
| 508 | "A String", |
| 509 | ], |
| 510 | "all": True or False, # Target all VM instances in the project. If true, no other criteria is permitted. |
| 511 | "groupLabels": [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances. |
| 512 | { # Targets a group of VM instances by using their [assigned labels](https://cloud.google.com/compute/docs/labeling-resources). Labels are key-value pairs. A `GroupLabel` is a combination of labels that is used to target VMs for a patch job. For example, a patch job can target VMs that have the following `GroupLabel`: `{"env":"test", "app":"web"}`. This means that the patch job is applied to VMs that have both the labels `env=test` and `app=web`. |
| 513 | "labels": { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter. |
| 514 | "a_key": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 515 | }, |
| 516 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 517 | ], |
| 518 | }, |
| 519 | "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters. |
| 520 | "patchConfig": { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Optional. Patch configuration that is applied. |
| 521 | "zypper": { # Zypper patching is performed by running `zypper patch`. See also https://en.opensuse.org/SDB:Zypper_manual. # Zypper update settings. Use this setting to override the default `zypper` patch rules. |
| 522 | "excludes": [ # List of patches to exclude from update. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 523 | "A String", |
| 524 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 525 | "severities": [ # Install only patches with these severities. Common severities include critical, important, moderate, and low. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 526 | "A String", |
| 527 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 528 | "categories": [ # Install only patches with these categories. Common categories include security, recommended, and feature. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 529 | "A String", |
| 530 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 531 | "withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`. |
| 532 | "withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`. |
| 533 | "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields. |
| 534 | "A String", |
| 535 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 536 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 537 | "goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules. |
| 538 | }, |
| 539 | "rebootConfig": "A String", # Post-patch reboot settings. |
| 540 | "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules. |
| 541 | "classifications": [ # Only apply updates of these windows update classifications. If empty, all updates are applied. |
| 542 | "A String", |
| 543 | ], |
| 544 | "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. |
| 545 | "A String", |
| 546 | ], |
| 547 | "excludes": [ # List of KBs to exclude from update. |
| 548 | "A String", |
| 549 | ], |
| 550 | }, |
| 551 | "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update. |
| 552 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 553 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 554 | "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\)). |
| 555 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 556 | 42, |
| 557 | ], |
| 558 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 559 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 560 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 561 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 562 | }, |
| 563 | }, |
| 564 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 565 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 566 | "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\)). |
| 567 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 568 | 42, |
| 569 | ], |
| 570 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 571 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 572 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 573 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 574 | }, |
| 575 | }, |
| 576 | }, |
| 577 | "yum": { # Yum patching is performed by executing `yum update`. Additional options can be set to control how this is executed. Note that not all settings are supported on all platforms. # Yum update settings. Use this setting to override the default `yum` patch rules. |
| 578 | "minimal": True or False, # Will cause patch to run `yum update-minimal` instead. |
| 579 | "security": True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms. |
| 580 | "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 configuration fields. |
| 581 | "A String", |
| 582 | ], |
| 583 | "excludes": [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag. |
| 584 | "A String", |
| 585 | ], |
| 586 | }, |
| 587 | "apt": { # Apt patching is completed by executing `apt-get update && apt-get upgrade`. Additional options can be set to control how this is executed. # Apt update settings. Use this setting to override the default `apt` patch rules. |
| 588 | "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. |
| 589 | "A String", |
| 590 | ], |
| 591 | "excludes": [ # List of packages to exclude from update. These packages will be excluded |
| 592 | "A String", |
| 593 | ], |
| 594 | "type": "A String", # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead. |
| 595 | }, |
| 596 | "postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update. |
| 597 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 598 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 599 | "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\)). |
| 600 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 601 | 42, |
| 602 | ], |
| 603 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 604 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 605 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 606 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 607 | }, |
| 608 | }, |
| 609 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 610 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 611 | "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\)). |
| 612 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 613 | 42, |
| 614 | ], |
| 615 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 616 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 617 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 618 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 619 | }, |
| 620 | }, |
| 621 | }, |
| 622 | }, |
| 623 | "recurringSchedule": { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions. |
| 624 | "monthly": { # 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". # Required. Schedule with monthly executions. |
| 625 | "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month. |
| 626 | "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. |
| 627 | "dayOfWeek": "A String", # Required. A day of the week. |
| 628 | }, |
| 629 | "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. |
| 630 | }, |
| 631 | "lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully. |
| 632 | "weekly": { # Represents a weekly schedule. # Required. Schedule with weekly executions. |
| 633 | "dayOfWeek": "A String", # Required. Day of the week. |
| 634 | }, |
| 635 | "endTime": "A String", # Optional. The end time at which a recurring patch deployment schedule is no longer active. |
| 636 | "timeZone": { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. Defines the time zone that `time_of_day` is relative to. The rules for daylight saving time are determined by the chosen time zone. |
| 637 | "id": "A String", # IANA Time Zone Database time zone, e.g. "America/New_York". |
| 638 | "version": "A String", # Optional. IANA Time Zone Database version number, e.g. "2019a". |
| 639 | }, |
| 640 | "timeOfDay": { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Time of the day to run a recurring deployment. |
| 641 | "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. |
| 642 | "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. |
| 643 | "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. |
| 644 | "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
| 645 | }, |
| 646 | "startTime": "A String", # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment. |
| 647 | "frequency": "A String", # Required. The frequency unit of this recurring schedule. |
| 648 | "nextExecuteTime": "A String", # Output only. The time the next patch job is scheduled to run. |
| 649 | }, |
| 650 | "name": "A String", # Unique name for the patch deployment resource in a project. The patch deployment name is in the form: `projects/{project_id}/patchDeployments/{patch_deployment_id}`. This field is ignored when you create a new patch deployment. |
| 651 | "duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out. |
| 652 | "createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 653 | "updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 654 | }</pre> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 655 | </div> |
| 656 | |
| 657 | <div class="method"> |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 658 | <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 659 | <pre>Get a page of OS Config patch deployments. |
| 660 | |
| 661 | Args: |
| 662 | parent: string, Required. The resource name of the parent in the form `projects/*`. (required) |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 663 | pageToken: string, Optional. A pagination token returned from a previous call to ListPatchDeployments that indicates where this listing should continue from. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 664 | pageSize: integer, Optional. The maximum number of patch deployments to return. Default is 100. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 665 | x__xgafv: string, V1 error format. |
| 666 | Allowed values |
| 667 | 1 - v1 error format |
| 668 | 2 - v2 error format |
| 669 | |
| 670 | Returns: |
| 671 | An object of the form: |
| 672 | |
| 673 | { # A response message for listing patch deployments. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 674 | "nextPageToken": "A String", # A pagination token that can be used to get the next page of patch deployments. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 675 | "patchDeployments": [ # The list of patch deployments. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 676 | { # Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 677 | "rollout": { # Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. # Optional. Rollout strategy of the patch job. |
| 678 | "disruptionBudget": { # Message encapsulating a value that can be either absolute ("fixed") or relative ("percent") to a value. # The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up. During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps. A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget. For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone. For example, if the disruption budget has a fixed value of `10`, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops. |
| 679 | "percent": 42, # Specifies the relative value defined as a percentage, which will be multiplied by a reference value. |
| 680 | "fixed": 42, # Specifies a fixed value. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 681 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 682 | "mode": "A String", # Mode of the patch rollout. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 683 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame^] | 684 | "oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # Required. Schedule a one-time execution. |
| 685 | "executeTime": "A String", # Required. The desired patch job execution time. |
| 686 | }, |
| 687 | "lastExecuteTime": "A String", # Output only. The last time a patch job was started by this deployment. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 688 | "instanceFilter": { # A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones. # Required. VM instances to patch. |
| 689 | "zones": [ # Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone. |
| 690 | "A String", |
| 691 | ], |
| 692 | "instanceNamePrefixes": [ # Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-". |
| 693 | "A String", |
| 694 | ], |
| 695 | "instances": [ # Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]` |
| 696 | "A String", |
| 697 | ], |
| 698 | "all": True or False, # Target all VM instances in the project. If true, no other criteria is permitted. |
| 699 | "groupLabels": [ # Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances. |
| 700 | { # Targets a group of VM instances by using their [assigned labels](https://cloud.google.com/compute/docs/labeling-resources). Labels are key-value pairs. A `GroupLabel` is a combination of labels that is used to target VMs for a patch job. For example, a patch job can target VMs that have the following `GroupLabel`: `{"env":"test", "app":"web"}`. This means that the patch job is applied to VMs that have both the labels `env=test` and `app=web`. |
| 701 | "labels": { # Compute Engine instance labels that must be present for a VM instance to be targeted by this filter. |
| 702 | "a_key": "A String", |
| 703 | }, |
| 704 | }, |
| 705 | ], |
| 706 | }, |
| 707 | "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited to 1024 characters. |
| 708 | "patchConfig": { # Patch configuration specifications. Contains details on how to apply the patch(es) to a VM instance. # Optional. Patch configuration that is applied. |
| 709 | "zypper": { # Zypper patching is performed by running `zypper patch`. See also https://en.opensuse.org/SDB:Zypper_manual. # Zypper update settings. Use this setting to override the default `zypper` patch rules. |
| 710 | "excludes": [ # List of patches to exclude from update. |
| 711 | "A String", |
| 712 | ], |
| 713 | "severities": [ # Install only patches with these severities. Common severities include critical, important, moderate, and low. |
| 714 | "A String", |
| 715 | ], |
| 716 | "categories": [ # Install only patches with these categories. Common categories include security, recommended, and feature. |
| 717 | "A String", |
| 718 | ], |
| 719 | "withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`. |
| 720 | "withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`. |
| 721 | "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command. This field must not be used with any other patch configuration fields. |
| 722 | "A String", |
| 723 | ], |
| 724 | }, |
| 725 | "goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch rules. |
| 726 | }, |
| 727 | "rebootConfig": "A String", # Post-patch reboot settings. |
| 728 | "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules. |
| 729 | "classifications": [ # Only apply updates of these windows update classifications. If empty, all updates are applied. |
| 730 | "A String", |
| 731 | ], |
| 732 | "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. |
| 733 | "A String", |
| 734 | ], |
| 735 | "excludes": [ # List of KBs to exclude from update. |
| 736 | "A String", |
| 737 | ], |
| 738 | }, |
| 739 | "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update. |
| 740 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 741 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 742 | "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\)). |
| 743 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 744 | 42, |
| 745 | ], |
| 746 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 747 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 748 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 749 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 750 | }, |
| 751 | }, |
| 752 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 753 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 754 | "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\)). |
| 755 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 756 | 42, |
| 757 | ], |
| 758 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 759 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 760 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 761 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 762 | }, |
| 763 | }, |
| 764 | }, |
| 765 | "yum": { # Yum patching is performed by executing `yum update`. Additional options can be set to control how this is executed. Note that not all settings are supported on all platforms. # Yum update settings. Use this setting to override the default `yum` patch rules. |
| 766 | "minimal": True or False, # Will cause patch to run `yum update-minimal` instead. |
| 767 | "security": True or False, # Adds the `--security` flag to `yum update`. Not supported on all platforms. |
| 768 | "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 configuration fields. |
| 769 | "A String", |
| 770 | ], |
| 771 | "excludes": [ # List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag. |
| 772 | "A String", |
| 773 | ], |
| 774 | }, |
| 775 | "apt": { # Apt patching is completed by executing `apt-get update && apt-get upgrade`. Additional options can be set to control how this is executed. # Apt update settings. Use this setting to override the default `apt` patch rules. |
| 776 | "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. |
| 777 | "A String", |
| 778 | ], |
| 779 | "excludes": [ # List of packages to exclude from update. These packages will be excluded |
| 780 | "A String", |
| 781 | ], |
| 782 | "type": "A String", # By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead. |
| 783 | }, |
| 784 | "postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update. |
| 785 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 786 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 787 | "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\)). |
| 788 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 789 | 42, |
| 790 | ], |
| 791 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 792 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 793 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 794 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 795 | }, |
| 796 | }, |
| 797 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 798 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 799 | "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\)). |
| 800 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the execution can return to indicate a success. |
| 801 | 42, |
| 802 | ], |
| 803 | "gcsObject": { # Cloud Storage object representation. # A Cloud Storage object containing the executable. |
| 804 | "bucket": "A String", # Required. Bucket of the Cloud Storage object. |
| 805 | "generationNumber": "A String", # Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. |
| 806 | "object": "A String", # Required. Name of the Cloud Storage object. |
| 807 | }, |
| 808 | }, |
| 809 | }, |
| 810 | }, |
| 811 | "recurringSchedule": { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions. |
| 812 | "monthly": { # 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". # Required. Schedule with monthly executions. |
| 813 | "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month. |
| 814 | "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. |
| 815 | "dayOfWeek": "A String", # Required. A day of the week. |
| 816 | }, |
| 817 | "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. |
| 818 | }, |
| 819 | "lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully. |
| 820 | "weekly": { # Represents a weekly schedule. # Required. Schedule with weekly executions. |
| 821 | "dayOfWeek": "A String", # Required. Day of the week. |
| 822 | }, |
| 823 | "endTime": "A String", # Optional. The end time at which a recurring patch deployment schedule is no longer active. |
| 824 | "timeZone": { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. Defines the time zone that `time_of_day` is relative to. The rules for daylight saving time are determined by the chosen time zone. |
| 825 | "id": "A String", # IANA Time Zone Database time zone, e.g. "America/New_York". |
| 826 | "version": "A String", # Optional. IANA Time Zone Database version number, e.g. "2019a". |
| 827 | }, |
| 828 | "timeOfDay": { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Time of the day to run a recurring deployment. |
| 829 | "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. |
| 830 | "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. |
| 831 | "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. |
| 832 | "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
| 833 | }, |
| 834 | "startTime": "A String", # Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment. |
| 835 | "frequency": "A String", # Required. The frequency unit of this recurring schedule. |
| 836 | "nextExecuteTime": "A String", # Output only. The time the next patch job is scheduled to run. |
| 837 | }, |
| 838 | "name": "A String", # Unique name for the patch deployment resource in a project. The patch deployment name is in the form: `projects/{project_id}/patchDeployments/{patch_deployment_id}`. This field is ignored when you create a new patch deployment. |
| 839 | "duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out. |
| 840 | "createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 841 | "updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 842 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 843 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 844 | }</pre> |
| 845 | </div> |
| 846 | |
| 847 | <div class="method"> |
| 848 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 849 | <pre>Retrieves the next page of results. |
| 850 | |
| 851 | Args: |
| 852 | previous_request: The request for the previous page. (required) |
| 853 | previous_response: The response from the request for the previous page. (required) |
| 854 | |
| 855 | Returns: |
| 856 | A request object that you can call 'execute()' on to request the next |
| 857 | page. Returns None if there are no more items in the collection. |
| 858 | </pre> |
| 859 | </div> |
| 860 | |
| 861 | </body></html> |