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 | |
| 75 | <h1><a href="osconfig_v1beta.html">Cloud OS Config API</a> . <a href="osconfig_v1beta.projects.html">projects</a> . <a href="osconfig_v1beta.projects.patchDeployments.html">patchDeployments</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#create">create(parent, body=None, patchDeploymentId=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Create an OS Config patch deployment.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Delete an OS Config patch deployment.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Get an OS Config patch deployment.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Get a page of OS Config patch deployments.</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 91 | <p class="firstline">Retrieves the next page of results.</p> |
| 92 | <h3>Method Details</h3> |
| 93 | <div class="method"> |
| 94 | <code class="details" id="create">create(parent, body=None, patchDeploymentId=None, x__xgafv=None)</code> |
| 95 | <pre>Create an OS Config patch deployment. |
| 96 | |
| 97 | Args: |
| 98 | parent: string, Required. The project to apply this patch deployment to in the form `projects/*`. (required) |
| 99 | body: object, The request body. |
| 100 | The object takes the form of: |
| 101 | |
| 102 | { # Patch deployments are configurations that individual patch jobs use to |
| 103 | # complete a patch. These configurations include instance filter, package |
| 104 | # repository settings, and a schedule. For more information about creating and |
| 105 | # managing patch deployments, see [Scheduling patch |
| 106 | # jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 107 | "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited |
| 108 | # to 1024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 109 | "createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in |
| 110 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 111 | "updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in |
| 112 | # [RFC3339]("https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 113 | "name": "A String", # Unique name for the patch deployment resource in a project. The patch |
| 114 | # deployment name is in the form: |
| 115 | # `projects/{project_id}/patchDeployments/{patch_deployment_id}`. |
| 116 | # This field is ignored when you create a new patch deployment. |
| 117 | "recurringSchedule": { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions. |
| 118 | "weekly": { # Represents a weekly schedule. # Required. Schedule with weekly executions. |
| 119 | "dayOfWeek": "A String", # Required. Day of the week. |
| 120 | }, |
| 121 | "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. |
| 122 | # or are specified elsewhere. An API may choose to allow leap seconds. Related |
| 123 | # types are google.type.Date and `google.protobuf.Timestamp`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 124 | "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose |
| 125 | # to allow the value "24:00:00" for scenarios like business closing time. |
| 126 | "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 127 | "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may |
| 128 | # allow the value 60 if it allows leap-seconds. |
| 129 | "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 130 | }, |
| 131 | "lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully. |
| 132 | "frequency": "A String", # Required. The frequency unit of this recurring schedule. |
| 133 | "endTime": "A String", # Optional. The end time at which a recurring patch deployment schedule is no longer |
| 134 | # active. |
| 135 | "timeZone": { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to. |
| 136 | # The rules for daylight saving time are determined by the chosen time zone. |
| 137 | # [IANA Time Zone Database](https://www.iana.org/time-zones). |
| 138 | "id": "A String", # IANA Time Zone Database time zone, e.g. "America/New_York". |
| 139 | "version": "A String", # Optional. IANA Time Zone Database version number, e.g. "2019a". |
| 140 | }, |
| 141 | "nextExecuteTime": "A String", # Output only. The time the next patch job is scheduled to run. |
| 142 | "startTime": "A String", # Optional. The time that the recurring schedule becomes effective. |
| 143 | # Defaults to `create_time` of the patch deployment. |
| 144 | "monthly": { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions. |
| 145 | # "on the third Tuesday of the month" or "on the 15th of the month". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 146 | "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month. |
| 147 | "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 |
| 148 | # indicates the last week of the month. |
| 149 | "dayOfWeek": "A String", # Required. A day of the week. |
| 150 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 151 | "monthDay": 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 |
| 152 | # indicates the last day of the month. |
| 153 | # Months without the target day will be skipped. For example, a schedule to |
| 154 | # run "every month on the 31st" will not run in February, April, June, etc. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 155 | }, |
| 156 | }, |
| 157 | "oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution. |
| 158 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 159 | "executeTime": "A String", # Required. The desired patch job execution time. |
| 160 | }, |
| 161 | "lastExecuteTime": "A String", # Output only. The last time a patch job was started by this deployment. |
| 162 | # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text |
| 163 | # format. |
| 164 | "patchConfig": { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied. |
| 165 | # patch(es) to a VM instance. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 166 | "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update. |
| 167 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 168 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
| 169 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 170 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
| 171 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 172 | # ensure that the ExecStep specified by this PatchJob does not change. |
| 173 | }, |
| 174 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 175 | # specified the script will be executed directly, which will likely |
| 176 | # only succeed for scripts with [shebang lines] |
| 177 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
| 178 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 179 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 180 | # execution can return to indicate a success. |
| 181 | 42, |
| 182 | ], |
| 183 | }, |
| 184 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 185 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
| 186 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 187 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
| 188 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 189 | # ensure that the ExecStep specified by this PatchJob does not change. |
| 190 | }, |
| 191 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 192 | # specified the script will be executed directly, which will likely |
| 193 | # only succeed for scripts with [shebang lines] |
| 194 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
| 195 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 196 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 197 | # execution can return to indicate a success. |
| 198 | 42, |
| 199 | ], |
| 200 | }, |
| 201 | }, |
| 202 | "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules. |
| 203 | "classifications": [ # Only apply updates of these windows update classifications. If empty, all |
| 204 | # updates are applied. |
| 205 | "A String", |
| 206 | ], |
| 207 | "excludes": [ # List of KBs to exclude from update. |
| 208 | "A String", |
| 209 | ], |
| 210 | "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches |
| 211 | # that will be updated. This field must not be used with other |
| 212 | # patch configurations. |
| 213 | "A String", |
| 214 | ], |
| 215 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 216 | "zypper": { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper` |
| 217 | # patch rules. |
| 218 | # See also https://en.opensuse.org/SDB:Zypper_manual. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 219 | "withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`. |
| 220 | "withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`. |
| 221 | "severities": [ # Install only patches with these severities. |
| 222 | # Common severities include critical, important, moderate, and low. |
| 223 | "A String", |
| 224 | ], |
| 225 | "categories": [ # Install only patches with these categories. |
| 226 | # Common categories include security, recommended, and feature. |
| 227 | "A String", |
| 228 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 229 | "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches |
| 230 | # that will be installed using 'zypper patch patch:<patch_name>' command. |
| 231 | # This field must not be used with any other patch configuration fields. |
| 232 | "A String", |
| 233 | ], |
| 234 | "excludes": [ # List of patches to exclude from update. |
| 235 | "A String", |
| 236 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 237 | }, |
| 238 | "postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update. |
| 239 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 240 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 241 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 242 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 243 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 244 | # ensure that the ExecStep specified by this PatchJob does not change. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 245 | }, |
| 246 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 247 | # specified the script will be executed directly, which will likely |
| 248 | # only succeed for scripts with [shebang lines] |
| 249 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 250 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 251 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 252 | # execution can return to indicate a success. |
| 253 | 42, |
| 254 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 255 | }, |
| 256 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 257 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 258 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 259 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 260 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 261 | # ensure that the ExecStep specified by this PatchJob does not change. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 262 | }, |
| 263 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 264 | # specified the script will be executed directly, which will likely |
| 265 | # only succeed for scripts with [shebang lines] |
| 266 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 267 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 268 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 269 | # execution can return to indicate a success. |
| 270 | 42, |
| 271 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 272 | }, |
| 273 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 274 | "yum": { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch |
| 275 | # rules. |
| 276 | # can be set to control how this is executed. |
| 277 | # |
| 278 | # Note that not all settings are supported on all platforms. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 279 | "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages |
| 280 | # that will be updated. If these packages are not installed, they will be |
| 281 | # ignored. This field must not be specified with any other patch |
| 282 | # configuration fields. |
| 283 | "A String", |
| 284 | ], |
| 285 | "security": True or False, # Adds the `--security` flag to `yum update`. Not supported on |
| 286 | # all platforms. |
| 287 | "minimal": True or False, # Will cause patch to run `yum update-minimal` instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 288 | "excludes": [ # List of packages to exclude from update. These packages are excluded by |
| 289 | # using the yum `--exclude` flag. |
| 290 | "A String", |
| 291 | ], |
| 292 | }, |
| 293 | "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch |
| 294 | # rules. |
| 295 | # upgrade`. Additional options can be set to control how this is executed. |
| 296 | "type": "A String", # By changing the type to DIST, the patching is performed |
| 297 | # using `apt-get dist-upgrade` instead. |
| 298 | "excludes": [ # List of packages to exclude from update. These packages will be excluded |
| 299 | "A String", |
| 300 | ], |
| 301 | "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages |
| 302 | # that will be updated. If these packages are not installed, they will be |
| 303 | # ignored. This field cannot be specified with any other patch configuration |
| 304 | # fields. |
| 305 | "A String", |
| 306 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 307 | }, |
| 308 | "goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch |
| 309 | # rules. |
| 310 | }, |
| 311 | "rebootConfig": "A String", # Post-patch reboot settings. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 312 | }, |
| 313 | "duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out. |
| 314 | "instanceFilter": { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch. |
| 315 | # VMs must meet all criteria specified. So if both labels and zones are |
| 316 | # specified, the patch job targets only VMs with those labels and in those |
| 317 | # zones. |
| 318 | "zones": [ # Targets VM instances in ANY of these zones. Leave empty to target VM |
| 319 | # instances in any zone. |
| 320 | "A String", |
| 321 | ], |
| 322 | "groupLabels": [ # Targets VM instances matching at least one of these label sets. This allows |
| 323 | # targeting of disparate groups, for example "env=prod or env=staging". |
| 324 | { # Represents a group of VMs that can be identified as having all these |
| 325 | # labels, for example "env=prod and app=web". |
| 326 | "labels": { # Google Compute Engine instance labels that must be present for a VM |
| 327 | # instance to be targeted by this filter. |
| 328 | "a_key": "A String", |
| 329 | }, |
| 330 | }, |
| 331 | ], |
| 332 | "all": True or False, # Target all VM instances in the project. If true, no other criteria is |
| 333 | # permitted. |
| 334 | "instances": [ # Targets any of the VM instances specified. Instances are specified by their |
| 335 | # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME], |
| 336 | # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or |
| 337 | # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]` |
| 338 | "A String", |
| 339 | ], |
| 340 | "instanceNamePrefixes": [ # Targets VMs whose name starts with one of these prefixes. Similar to |
| 341 | # labels, this is another way to group VMs when targeting configs, for |
| 342 | # example prefix="prod-". |
| 343 | "A String", |
| 344 | ], |
| 345 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 346 | } |
| 347 | |
| 348 | patchDeploymentId: string, Required. A name for the patch deployment in the project. When creating a name |
| 349 | the following rules apply: |
| 350 | * Must contain only lowercase letters, numbers, and hyphens. |
| 351 | * Must start with a letter. |
| 352 | * Must be between 1-63 characters. |
| 353 | * Must end with a number or a letter. |
| 354 | * Must be unique within the project. |
| 355 | x__xgafv: string, V1 error format. |
| 356 | Allowed values |
| 357 | 1 - v1 error format |
| 358 | 2 - v2 error format |
| 359 | |
| 360 | Returns: |
| 361 | An object of the form: |
| 362 | |
| 363 | { # Patch deployments are configurations that individual patch jobs use to |
| 364 | # complete a patch. These configurations include instance filter, package |
| 365 | # repository settings, and a schedule. For more information about creating and |
| 366 | # managing patch deployments, see [Scheduling patch |
| 367 | # jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 368 | "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited |
| 369 | # to 1024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 370 | "createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in |
| 371 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 372 | "updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in |
| 373 | # [RFC3339]("https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 374 | "name": "A String", # Unique name for the patch deployment resource in a project. The patch |
| 375 | # deployment name is in the form: |
| 376 | # `projects/{project_id}/patchDeployments/{patch_deployment_id}`. |
| 377 | # This field is ignored when you create a new patch deployment. |
| 378 | "recurringSchedule": { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions. |
| 379 | "weekly": { # Represents a weekly schedule. # Required. Schedule with weekly executions. |
| 380 | "dayOfWeek": "A String", # Required. Day of the week. |
| 381 | }, |
| 382 | "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. |
| 383 | # or are specified elsewhere. An API may choose to allow leap seconds. Related |
| 384 | # types are google.type.Date and `google.protobuf.Timestamp`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 385 | "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose |
| 386 | # to allow the value "24:00:00" for scenarios like business closing time. |
| 387 | "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 388 | "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may |
| 389 | # allow the value 60 if it allows leap-seconds. |
| 390 | "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 391 | }, |
| 392 | "lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully. |
| 393 | "frequency": "A String", # Required. The frequency unit of this recurring schedule. |
| 394 | "endTime": "A String", # Optional. The end time at which a recurring patch deployment schedule is no longer |
| 395 | # active. |
| 396 | "timeZone": { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to. |
| 397 | # The rules for daylight saving time are determined by the chosen time zone. |
| 398 | # [IANA Time Zone Database](https://www.iana.org/time-zones). |
| 399 | "id": "A String", # IANA Time Zone Database time zone, e.g. "America/New_York". |
| 400 | "version": "A String", # Optional. IANA Time Zone Database version number, e.g. "2019a". |
| 401 | }, |
| 402 | "nextExecuteTime": "A String", # Output only. The time the next patch job is scheduled to run. |
| 403 | "startTime": "A String", # Optional. The time that the recurring schedule becomes effective. |
| 404 | # Defaults to `create_time` of the patch deployment. |
| 405 | "monthly": { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions. |
| 406 | # "on the third Tuesday of the month" or "on the 15th of the month". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 407 | "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month. |
| 408 | "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 |
| 409 | # indicates the last week of the month. |
| 410 | "dayOfWeek": "A String", # Required. A day of the week. |
| 411 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 412 | "monthDay": 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 |
| 413 | # indicates the last day of the month. |
| 414 | # Months without the target day will be skipped. For example, a schedule to |
| 415 | # run "every month on the 31st" will not run in February, April, June, etc. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 416 | }, |
| 417 | }, |
| 418 | "oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution. |
| 419 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 420 | "executeTime": "A String", # Required. The desired patch job execution time. |
| 421 | }, |
| 422 | "lastExecuteTime": "A String", # Output only. The last time a patch job was started by this deployment. |
| 423 | # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text |
| 424 | # format. |
| 425 | "patchConfig": { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied. |
| 426 | # patch(es) to a VM instance. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 427 | "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update. |
| 428 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 429 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
| 430 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 431 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
| 432 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 433 | # ensure that the ExecStep specified by this PatchJob does not change. |
| 434 | }, |
| 435 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 436 | # specified the script will be executed directly, which will likely |
| 437 | # only succeed for scripts with [shebang lines] |
| 438 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
| 439 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 440 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 441 | # execution can return to indicate a success. |
| 442 | 42, |
| 443 | ], |
| 444 | }, |
| 445 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 446 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
| 447 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 448 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
| 449 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 450 | # ensure that the ExecStep specified by this PatchJob does not change. |
| 451 | }, |
| 452 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 453 | # specified the script will be executed directly, which will likely |
| 454 | # only succeed for scripts with [shebang lines] |
| 455 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
| 456 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 457 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 458 | # execution can return to indicate a success. |
| 459 | 42, |
| 460 | ], |
| 461 | }, |
| 462 | }, |
| 463 | "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules. |
| 464 | "classifications": [ # Only apply updates of these windows update classifications. If empty, all |
| 465 | # updates are applied. |
| 466 | "A String", |
| 467 | ], |
| 468 | "excludes": [ # List of KBs to exclude from update. |
| 469 | "A String", |
| 470 | ], |
| 471 | "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches |
| 472 | # that will be updated. This field must not be used with other |
| 473 | # patch configurations. |
| 474 | "A String", |
| 475 | ], |
| 476 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 477 | "zypper": { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper` |
| 478 | # patch rules. |
| 479 | # See also https://en.opensuse.org/SDB:Zypper_manual. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 480 | "withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`. |
| 481 | "withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`. |
| 482 | "severities": [ # Install only patches with these severities. |
| 483 | # Common severities include critical, important, moderate, and low. |
| 484 | "A String", |
| 485 | ], |
| 486 | "categories": [ # Install only patches with these categories. |
| 487 | # Common categories include security, recommended, and feature. |
| 488 | "A String", |
| 489 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 490 | "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches |
| 491 | # that will be installed using 'zypper patch patch:<patch_name>' command. |
| 492 | # This field must not be used with any other patch configuration fields. |
| 493 | "A String", |
| 494 | ], |
| 495 | "excludes": [ # List of patches to exclude from update. |
| 496 | "A String", |
| 497 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 498 | }, |
| 499 | "postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update. |
| 500 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 501 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 502 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 503 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 504 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 505 | # ensure that the ExecStep specified by this PatchJob does not change. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 506 | }, |
| 507 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 508 | # specified the script will be executed directly, which will likely |
| 509 | # only succeed for scripts with [shebang lines] |
| 510 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 511 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 512 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 513 | # execution can return to indicate a success. |
| 514 | 42, |
| 515 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 516 | }, |
| 517 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 518 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 519 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 520 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 521 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 522 | # ensure that the ExecStep specified by this PatchJob does not change. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 523 | }, |
| 524 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 525 | # specified the script will be executed directly, which will likely |
| 526 | # only succeed for scripts with [shebang lines] |
| 527 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 528 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 529 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 530 | # execution can return to indicate a success. |
| 531 | 42, |
| 532 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 533 | }, |
| 534 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 535 | "yum": { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch |
| 536 | # rules. |
| 537 | # can be set to control how this is executed. |
| 538 | # |
| 539 | # Note that not all settings are supported on all platforms. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 540 | "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages |
| 541 | # that will be updated. If these packages are not installed, they will be |
| 542 | # ignored. This field must not be specified with any other patch |
| 543 | # configuration fields. |
| 544 | "A String", |
| 545 | ], |
| 546 | "security": True or False, # Adds the `--security` flag to `yum update`. Not supported on |
| 547 | # all platforms. |
| 548 | "minimal": True or False, # Will cause patch to run `yum update-minimal` instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 549 | "excludes": [ # List of packages to exclude from update. These packages are excluded by |
| 550 | # using the yum `--exclude` flag. |
| 551 | "A String", |
| 552 | ], |
| 553 | }, |
| 554 | "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch |
| 555 | # rules. |
| 556 | # upgrade`. Additional options can be set to control how this is executed. |
| 557 | "type": "A String", # By changing the type to DIST, the patching is performed |
| 558 | # using `apt-get dist-upgrade` instead. |
| 559 | "excludes": [ # List of packages to exclude from update. These packages will be excluded |
| 560 | "A String", |
| 561 | ], |
| 562 | "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages |
| 563 | # that will be updated. If these packages are not installed, they will be |
| 564 | # ignored. This field cannot be specified with any other patch configuration |
| 565 | # fields. |
| 566 | "A String", |
| 567 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 568 | }, |
| 569 | "goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch |
| 570 | # rules. |
| 571 | }, |
| 572 | "rebootConfig": "A String", # Post-patch reboot settings. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 573 | }, |
| 574 | "duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out. |
| 575 | "instanceFilter": { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch. |
| 576 | # VMs must meet all criteria specified. So if both labels and zones are |
| 577 | # specified, the patch job targets only VMs with those labels and in those |
| 578 | # zones. |
| 579 | "zones": [ # Targets VM instances in ANY of these zones. Leave empty to target VM |
| 580 | # instances in any zone. |
| 581 | "A String", |
| 582 | ], |
| 583 | "groupLabels": [ # Targets VM instances matching at least one of these label sets. This allows |
| 584 | # targeting of disparate groups, for example "env=prod or env=staging". |
| 585 | { # Represents a group of VMs that can be identified as having all these |
| 586 | # labels, for example "env=prod and app=web". |
| 587 | "labels": { # Google Compute Engine instance labels that must be present for a VM |
| 588 | # instance to be targeted by this filter. |
| 589 | "a_key": "A String", |
| 590 | }, |
| 591 | }, |
| 592 | ], |
| 593 | "all": True or False, # Target all VM instances in the project. If true, no other criteria is |
| 594 | # permitted. |
| 595 | "instances": [ # Targets any of the VM instances specified. Instances are specified by their |
| 596 | # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME], |
| 597 | # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or |
| 598 | # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]` |
| 599 | "A String", |
| 600 | ], |
| 601 | "instanceNamePrefixes": [ # Targets VMs whose name starts with one of these prefixes. Similar to |
| 602 | # labels, this is another way to group VMs when targeting configs, for |
| 603 | # example prefix="prod-". |
| 604 | "A String", |
| 605 | ], |
| 606 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 607 | }</pre> |
| 608 | </div> |
| 609 | |
| 610 | <div class="method"> |
| 611 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 612 | <pre>Delete an OS Config patch deployment. |
| 613 | |
| 614 | Args: |
| 615 | name: string, Required. The resource name of the patch deployment in the form |
| 616 | `projects/*/patchDeployments/*`. (required) |
| 617 | x__xgafv: string, V1 error format. |
| 618 | Allowed values |
| 619 | 1 - v1 error format |
| 620 | 2 - v2 error format |
| 621 | |
| 622 | Returns: |
| 623 | An object of the form: |
| 624 | |
| 625 | { # A generic empty message that you can re-use to avoid defining duplicated |
| 626 | # empty messages in your APIs. A typical example is to use it as the request |
| 627 | # or the response type of an API method. For instance: |
| 628 | # |
| 629 | # service Foo { |
| 630 | # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 631 | # } |
| 632 | # |
| 633 | # The JSON representation for `Empty` is empty JSON object `{}`. |
| 634 | }</pre> |
| 635 | </div> |
| 636 | |
| 637 | <div class="method"> |
| 638 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 639 | <pre>Get an OS Config patch deployment. |
| 640 | |
| 641 | Args: |
| 642 | name: string, Required. The resource name of the patch deployment in the form |
| 643 | `projects/*/patchDeployments/*`. (required) |
| 644 | x__xgafv: string, V1 error format. |
| 645 | Allowed values |
| 646 | 1 - v1 error format |
| 647 | 2 - v2 error format |
| 648 | |
| 649 | Returns: |
| 650 | An object of the form: |
| 651 | |
| 652 | { # Patch deployments are configurations that individual patch jobs use to |
| 653 | # complete a patch. These configurations include instance filter, package |
| 654 | # repository settings, and a schedule. For more information about creating and |
| 655 | # managing patch deployments, see [Scheduling patch |
| 656 | # jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 657 | "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited |
| 658 | # to 1024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 659 | "createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in |
| 660 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 661 | "updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in |
| 662 | # [RFC3339]("https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 663 | "name": "A String", # Unique name for the patch deployment resource in a project. The patch |
| 664 | # deployment name is in the form: |
| 665 | # `projects/{project_id}/patchDeployments/{patch_deployment_id}`. |
| 666 | # This field is ignored when you create a new patch deployment. |
| 667 | "recurringSchedule": { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions. |
| 668 | "weekly": { # Represents a weekly schedule. # Required. Schedule with weekly executions. |
| 669 | "dayOfWeek": "A String", # Required. Day of the week. |
| 670 | }, |
| 671 | "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. |
| 672 | # or are specified elsewhere. An API may choose to allow leap seconds. Related |
| 673 | # types are google.type.Date and `google.protobuf.Timestamp`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 674 | "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose |
| 675 | # to allow the value "24:00:00" for scenarios like business closing time. |
| 676 | "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 677 | "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may |
| 678 | # allow the value 60 if it allows leap-seconds. |
| 679 | "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 680 | }, |
| 681 | "lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully. |
| 682 | "frequency": "A String", # Required. The frequency unit of this recurring schedule. |
| 683 | "endTime": "A String", # Optional. The end time at which a recurring patch deployment schedule is no longer |
| 684 | # active. |
| 685 | "timeZone": { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to. |
| 686 | # The rules for daylight saving time are determined by the chosen time zone. |
| 687 | # [IANA Time Zone Database](https://www.iana.org/time-zones). |
| 688 | "id": "A String", # IANA Time Zone Database time zone, e.g. "America/New_York". |
| 689 | "version": "A String", # Optional. IANA Time Zone Database version number, e.g. "2019a". |
| 690 | }, |
| 691 | "nextExecuteTime": "A String", # Output only. The time the next patch job is scheduled to run. |
| 692 | "startTime": "A String", # Optional. The time that the recurring schedule becomes effective. |
| 693 | # Defaults to `create_time` of the patch deployment. |
| 694 | "monthly": { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions. |
| 695 | # "on the third Tuesday of the month" or "on the 15th of the month". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 696 | "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month. |
| 697 | "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 |
| 698 | # indicates the last week of the month. |
| 699 | "dayOfWeek": "A String", # Required. A day of the week. |
| 700 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 701 | "monthDay": 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 |
| 702 | # indicates the last day of the month. |
| 703 | # Months without the target day will be skipped. For example, a schedule to |
| 704 | # run "every month on the 31st" will not run in February, April, June, etc. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 705 | }, |
| 706 | }, |
| 707 | "oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution. |
| 708 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 709 | "executeTime": "A String", # Required. The desired patch job execution time. |
| 710 | }, |
| 711 | "lastExecuteTime": "A String", # Output only. The last time a patch job was started by this deployment. |
| 712 | # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text |
| 713 | # format. |
| 714 | "patchConfig": { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied. |
| 715 | # patch(es) to a VM instance. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 716 | "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update. |
| 717 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 718 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
| 719 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 720 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
| 721 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 722 | # ensure that the ExecStep specified by this PatchJob does not change. |
| 723 | }, |
| 724 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 725 | # specified the script will be executed directly, which will likely |
| 726 | # only succeed for scripts with [shebang lines] |
| 727 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
| 728 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 729 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 730 | # execution can return to indicate a success. |
| 731 | 42, |
| 732 | ], |
| 733 | }, |
| 734 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 735 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
| 736 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 737 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
| 738 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 739 | # ensure that the ExecStep specified by this PatchJob does not change. |
| 740 | }, |
| 741 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 742 | # specified the script will be executed directly, which will likely |
| 743 | # only succeed for scripts with [shebang lines] |
| 744 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
| 745 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 746 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 747 | # execution can return to indicate a success. |
| 748 | 42, |
| 749 | ], |
| 750 | }, |
| 751 | }, |
| 752 | "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules. |
| 753 | "classifications": [ # Only apply updates of these windows update classifications. If empty, all |
| 754 | # updates are applied. |
| 755 | "A String", |
| 756 | ], |
| 757 | "excludes": [ # List of KBs to exclude from update. |
| 758 | "A String", |
| 759 | ], |
| 760 | "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches |
| 761 | # that will be updated. This field must not be used with other |
| 762 | # patch configurations. |
| 763 | "A String", |
| 764 | ], |
| 765 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 766 | "zypper": { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper` |
| 767 | # patch rules. |
| 768 | # See also https://en.opensuse.org/SDB:Zypper_manual. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 769 | "withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`. |
| 770 | "withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`. |
| 771 | "severities": [ # Install only patches with these severities. |
| 772 | # Common severities include critical, important, moderate, and low. |
| 773 | "A String", |
| 774 | ], |
| 775 | "categories": [ # Install only patches with these categories. |
| 776 | # Common categories include security, recommended, and feature. |
| 777 | "A String", |
| 778 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 779 | "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches |
| 780 | # that will be installed using 'zypper patch patch:<patch_name>' command. |
| 781 | # This field must not be used with any other patch configuration fields. |
| 782 | "A String", |
| 783 | ], |
| 784 | "excludes": [ # List of patches to exclude from update. |
| 785 | "A String", |
| 786 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 787 | }, |
| 788 | "postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update. |
| 789 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 790 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 791 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 792 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 793 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 794 | # ensure that the ExecStep specified by this PatchJob does not change. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 795 | }, |
| 796 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 797 | # specified the script will be executed directly, which will likely |
| 798 | # only succeed for scripts with [shebang lines] |
| 799 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 800 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 801 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 802 | # execution can return to indicate a success. |
| 803 | 42, |
| 804 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 805 | }, |
| 806 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 807 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 808 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 809 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 810 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 811 | # ensure that the ExecStep specified by this PatchJob does not change. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 812 | }, |
| 813 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 814 | # specified the script will be executed directly, which will likely |
| 815 | # only succeed for scripts with [shebang lines] |
| 816 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 817 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 818 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 819 | # execution can return to indicate a success. |
| 820 | 42, |
| 821 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 822 | }, |
| 823 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 824 | "yum": { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch |
| 825 | # rules. |
| 826 | # can be set to control how this is executed. |
| 827 | # |
| 828 | # Note that not all settings are supported on all platforms. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 829 | "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages |
| 830 | # that will be updated. If these packages are not installed, they will be |
| 831 | # ignored. This field must not be specified with any other patch |
| 832 | # configuration fields. |
| 833 | "A String", |
| 834 | ], |
| 835 | "security": True or False, # Adds the `--security` flag to `yum update`. Not supported on |
| 836 | # all platforms. |
| 837 | "minimal": True or False, # Will cause patch to run `yum update-minimal` instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 838 | "excludes": [ # List of packages to exclude from update. These packages are excluded by |
| 839 | # using the yum `--exclude` flag. |
| 840 | "A String", |
| 841 | ], |
| 842 | }, |
| 843 | "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch |
| 844 | # rules. |
| 845 | # upgrade`. Additional options can be set to control how this is executed. |
| 846 | "type": "A String", # By changing the type to DIST, the patching is performed |
| 847 | # using `apt-get dist-upgrade` instead. |
| 848 | "excludes": [ # List of packages to exclude from update. These packages will be excluded |
| 849 | "A String", |
| 850 | ], |
| 851 | "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages |
| 852 | # that will be updated. If these packages are not installed, they will be |
| 853 | # ignored. This field cannot be specified with any other patch configuration |
| 854 | # fields. |
| 855 | "A String", |
| 856 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 857 | }, |
| 858 | "goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch |
| 859 | # rules. |
| 860 | }, |
| 861 | "rebootConfig": "A String", # Post-patch reboot settings. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 862 | }, |
| 863 | "duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out. |
| 864 | "instanceFilter": { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch. |
| 865 | # VMs must meet all criteria specified. So if both labels and zones are |
| 866 | # specified, the patch job targets only VMs with those labels and in those |
| 867 | # zones. |
| 868 | "zones": [ # Targets VM instances in ANY of these zones. Leave empty to target VM |
| 869 | # instances in any zone. |
| 870 | "A String", |
| 871 | ], |
| 872 | "groupLabels": [ # Targets VM instances matching at least one of these label sets. This allows |
| 873 | # targeting of disparate groups, for example "env=prod or env=staging". |
| 874 | { # Represents a group of VMs that can be identified as having all these |
| 875 | # labels, for example "env=prod and app=web". |
| 876 | "labels": { # Google Compute Engine instance labels that must be present for a VM |
| 877 | # instance to be targeted by this filter. |
| 878 | "a_key": "A String", |
| 879 | }, |
| 880 | }, |
| 881 | ], |
| 882 | "all": True or False, # Target all VM instances in the project. If true, no other criteria is |
| 883 | # permitted. |
| 884 | "instances": [ # Targets any of the VM instances specified. Instances are specified by their |
| 885 | # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME], |
| 886 | # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or |
| 887 | # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]` |
| 888 | "A String", |
| 889 | ], |
| 890 | "instanceNamePrefixes": [ # Targets VMs whose name starts with one of these prefixes. Similar to |
| 891 | # labels, this is another way to group VMs when targeting configs, for |
| 892 | # example prefix="prod-". |
| 893 | "A String", |
| 894 | ], |
| 895 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 896 | }</pre> |
| 897 | </div> |
| 898 | |
| 899 | <div class="method"> |
| 900 | <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code> |
| 901 | <pre>Get a page of OS Config patch deployments. |
| 902 | |
| 903 | Args: |
| 904 | parent: string, Required. The resource name of the parent in the form `projects/*`. (required) |
| 905 | pageToken: string, Optional. A pagination token returned from a previous call to ListPatchDeployments |
| 906 | that indicates where this listing should continue from. |
| 907 | pageSize: integer, Optional. The maximum number of patch deployments to return. Default is 100. |
| 908 | x__xgafv: string, V1 error format. |
| 909 | Allowed values |
| 910 | 1 - v1 error format |
| 911 | 2 - v2 error format |
| 912 | |
| 913 | Returns: |
| 914 | An object of the form: |
| 915 | |
| 916 | { # A response message for listing patch deployments. |
| 917 | "nextPageToken": "A String", # A pagination token that can be used to get the next page of patch |
| 918 | # deployments. |
| 919 | "patchDeployments": [ # The list of patch deployments. |
| 920 | { # Patch deployments are configurations that individual patch jobs use to |
| 921 | # complete a patch. These configurations include instance filter, package |
| 922 | # repository settings, and a schedule. For more information about creating and |
| 923 | # managing patch deployments, see [Scheduling patch |
| 924 | # jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 925 | "description": "A String", # Optional. Description of the patch deployment. Length of the description is limited |
| 926 | # to 1024 characters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 927 | "createTime": "A String", # Output only. Time the patch deployment was created. Timestamp is in |
| 928 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 929 | "updateTime": "A String", # Output only. Time the patch deployment was last updated. Timestamp is in |
| 930 | # [RFC3339]("https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 931 | "name": "A String", # Unique name for the patch deployment resource in a project. The patch |
| 932 | # deployment name is in the form: |
| 933 | # `projects/{project_id}/patchDeployments/{patch_deployment_id}`. |
| 934 | # This field is ignored when you create a new patch deployment. |
| 935 | "recurringSchedule": { # Sets the time for recurring patch deployments. # Required. Schedule recurring executions. |
| 936 | "weekly": { # Represents a weekly schedule. # Required. Schedule with weekly executions. |
| 937 | "dayOfWeek": "A String", # Required. Day of the week. |
| 938 | }, |
| 939 | "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. |
| 940 | # or are specified elsewhere. An API may choose to allow leap seconds. Related |
| 941 | # types are google.type.Date and `google.protobuf.Timestamp`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 942 | "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose |
| 943 | # to allow the value "24:00:00" for scenarios like business closing time. |
| 944 | "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 945 | "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may |
| 946 | # allow the value 60 if it allows leap-seconds. |
| 947 | "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 948 | }, |
| 949 | "lastExecuteTime": "A String", # Output only. The time the last patch job ran successfully. |
| 950 | "frequency": "A String", # Required. The frequency unit of this recurring schedule. |
| 951 | "endTime": "A String", # Optional. The end time at which a recurring patch deployment schedule is no longer |
| 952 | # active. |
| 953 | "timeZone": { # Represents a time zone from the # Required. Defines the time zone that `time_of_day` is relative to. |
| 954 | # The rules for daylight saving time are determined by the chosen time zone. |
| 955 | # [IANA Time Zone Database](https://www.iana.org/time-zones). |
| 956 | "id": "A String", # IANA Time Zone Database time zone, e.g. "America/New_York". |
| 957 | "version": "A String", # Optional. IANA Time Zone Database version number, e.g. "2019a". |
| 958 | }, |
| 959 | "nextExecuteTime": "A String", # Output only. The time the next patch job is scheduled to run. |
| 960 | "startTime": "A String", # Optional. The time that the recurring schedule becomes effective. |
| 961 | # Defaults to `create_time` of the patch deployment. |
| 962 | "monthly": { # Represents a monthly schedule. An example of a valid monthly schedule is # Required. Schedule with monthly executions. |
| 963 | # "on the third Tuesday of the month" or "on the 15th of the month". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 964 | "weekDayOfMonth": { # Represents one week day in a month. An example is "the 4th Sunday". # Required. Week day in a month. |
| 965 | "weekOrdinal": 42, # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 |
| 966 | # indicates the last week of the month. |
| 967 | "dayOfWeek": "A String", # Required. A day of the week. |
| 968 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 969 | "monthDay": 42, # Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 |
| 970 | # indicates the last day of the month. |
| 971 | # Months without the target day will be skipped. For example, a schedule to |
| 972 | # run "every month on the 31st" will not run in February, April, June, etc. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 973 | }, |
| 974 | }, |
| 975 | "oneTimeSchedule": { # Sets the time for a one time patch deployment. Timestamp is in # Required. Schedule a one-time execution. |
| 976 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 977 | "executeTime": "A String", # Required. The desired patch job execution time. |
| 978 | }, |
| 979 | "lastExecuteTime": "A String", # Output only. The last time a patch job was started by this deployment. |
| 980 | # Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text |
| 981 | # format. |
| 982 | "patchConfig": { # Patch configuration specifications. Contains details on how to apply the # Optional. Patch configuration that is applied. |
| 983 | # patch(es) to a VM instance. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 984 | "preStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run before the patch update. |
| 985 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
| 986 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
| 987 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 988 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
| 989 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 990 | # ensure that the ExecStep specified by this PatchJob does not change. |
| 991 | }, |
| 992 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 993 | # specified the script will be executed directly, which will likely |
| 994 | # only succeed for scripts with [shebang lines] |
| 995 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
| 996 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 997 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 998 | # execution can return to indicate a success. |
| 999 | 42, |
| 1000 | ], |
| 1001 | }, |
| 1002 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
| 1003 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
| 1004 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 1005 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
| 1006 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 1007 | # ensure that the ExecStep specified by this PatchJob does not change. |
| 1008 | }, |
| 1009 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 1010 | # specified the script will be executed directly, which will likely |
| 1011 | # only succeed for scripts with [shebang lines] |
| 1012 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
| 1013 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 1014 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 1015 | # execution can return to indicate a success. |
| 1016 | 42, |
| 1017 | ], |
| 1018 | }, |
| 1019 | }, |
| 1020 | "windowsUpdate": { # Windows patching is performed using the Windows Update Agent. # Windows update settings. Use this override the default windows patch rules. |
| 1021 | "classifications": [ # Only apply updates of these windows update classifications. If empty, all |
| 1022 | # updates are applied. |
| 1023 | "A String", |
| 1024 | ], |
| 1025 | "excludes": [ # List of KBs to exclude from update. |
| 1026 | "A String", |
| 1027 | ], |
| 1028 | "exclusivePatches": [ # An exclusive list of kbs to be updated. These are the only patches |
| 1029 | # that will be updated. This field must not be used with other |
| 1030 | # patch configurations. |
| 1031 | "A String", |
| 1032 | ], |
| 1033 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1034 | "zypper": { # Zypper patching is performed by running `zypper patch`. # Zypper update settings. Use this setting to override the default `zypper` |
| 1035 | # patch rules. |
| 1036 | # See also https://en.opensuse.org/SDB:Zypper_manual. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1037 | "withUpdate": True or False, # Adds the `--with-update` flag, to `zypper patch`. |
| 1038 | "withOptional": True or False, # Adds the `--with-optional` flag to `zypper patch`. |
| 1039 | "severities": [ # Install only patches with these severities. |
| 1040 | # Common severities include critical, important, moderate, and low. |
| 1041 | "A String", |
| 1042 | ], |
| 1043 | "categories": [ # Install only patches with these categories. |
| 1044 | # Common categories include security, recommended, and feature. |
| 1045 | "A String", |
| 1046 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1047 | "exclusivePatches": [ # An exclusive list of patches to be updated. These are the only patches |
| 1048 | # that will be installed using 'zypper patch patch:<patch_name>' command. |
| 1049 | # This field must not be used with any other patch configuration fields. |
| 1050 | "A String", |
| 1051 | ], |
| 1052 | "excludes": [ # List of patches to exclude from update. |
| 1053 | "A String", |
| 1054 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1055 | }, |
| 1056 | "postStep": { # A step that runs an executable for a PatchJob. # The `ExecStep` to run after the patch update. |
| 1057 | "linuxExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Linux VMs targeted by the PatchJob. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1058 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1059 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 1060 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1061 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 1062 | # ensure that the ExecStep specified by this PatchJob does not change. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1063 | }, |
| 1064 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 1065 | # specified the script will be executed directly, which will likely |
| 1066 | # only succeed for scripts with [shebang lines] |
| 1067 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1068 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 1069 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 1070 | # execution can return to indicate a success. |
| 1071 | 42, |
| 1072 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1073 | }, |
| 1074 | "windowsExecStepConfig": { # Common configurations for an ExecStep. # The ExecStepConfig for all Windows VMs targeted by the PatchJob. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1075 | "gcsObject": { # Google Cloud Storage object representation. # A Google Cloud Storage object containing the executable. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1076 | "bucket": "A String", # Required. Bucket of the Google Cloud Storage object. |
| 1077 | "object": "A String", # Required. Name of the Google Cloud Storage object. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1078 | "generationNumber": "A String", # Required. Generation number of the Google Cloud Storage object. This is used to |
| 1079 | # ensure that the ExecStep specified by this PatchJob does not change. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1080 | }, |
| 1081 | "interpreter": "A String", # The script interpreter to use to run the script. If no interpreter is |
| 1082 | # specified the script will be executed directly, which will likely |
| 1083 | # only succeed for scripts with [shebang lines] |
| 1084 | # (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1085 | "localPath": "A String", # An absolute path to the executable on the VM. |
| 1086 | "allowedSuccessCodes": [ # Defaults to [0]. A list of possible return values that the |
| 1087 | # execution can return to indicate a success. |
| 1088 | 42, |
| 1089 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1090 | }, |
| 1091 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1092 | "yum": { # Yum patching is performed by executing `yum update`. Additional options # Yum update settings. Use this setting to override the default `yum` patch |
| 1093 | # rules. |
| 1094 | # can be set to control how this is executed. |
| 1095 | # |
| 1096 | # Note that not all settings are supported on all platforms. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1097 | "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages |
| 1098 | # that will be updated. If these packages are not installed, they will be |
| 1099 | # ignored. This field must not be specified with any other patch |
| 1100 | # configuration fields. |
| 1101 | "A String", |
| 1102 | ], |
| 1103 | "security": True or False, # Adds the `--security` flag to `yum update`. Not supported on |
| 1104 | # all platforms. |
| 1105 | "minimal": True or False, # Will cause patch to run `yum update-minimal` instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1106 | "excludes": [ # List of packages to exclude from update. These packages are excluded by |
| 1107 | # using the yum `--exclude` flag. |
| 1108 | "A String", |
| 1109 | ], |
| 1110 | }, |
| 1111 | "apt": { # Apt patching is completed by executing `apt-get update && apt-get # Apt update settings. Use this setting to override the default `apt` patch |
| 1112 | # rules. |
| 1113 | # upgrade`. Additional options can be set to control how this is executed. |
| 1114 | "type": "A String", # By changing the type to DIST, the patching is performed |
| 1115 | # using `apt-get dist-upgrade` instead. |
| 1116 | "excludes": [ # List of packages to exclude from update. These packages will be excluded |
| 1117 | "A String", |
| 1118 | ], |
| 1119 | "exclusivePackages": [ # An exclusive list of packages to be updated. These are the only packages |
| 1120 | # that will be updated. If these packages are not installed, they will be |
| 1121 | # ignored. This field cannot be specified with any other patch configuration |
| 1122 | # fields. |
| 1123 | "A String", |
| 1124 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1125 | }, |
| 1126 | "goo": { # Googet patching is performed by running `googet update`. # Goo update settings. Use this setting to override the default `goo` patch |
| 1127 | # rules. |
| 1128 | }, |
| 1129 | "rebootConfig": "A String", # Post-patch reboot settings. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1130 | }, |
| 1131 | "duration": "A String", # Optional. Duration of the patch. After the duration ends, the patch times out. |
| 1132 | "instanceFilter": { # A filter to target VM instances for patching. The targeted # Required. VM instances to patch. |
| 1133 | # VMs must meet all criteria specified. So if both labels and zones are |
| 1134 | # specified, the patch job targets only VMs with those labels and in those |
| 1135 | # zones. |
| 1136 | "zones": [ # Targets VM instances in ANY of these zones. Leave empty to target VM |
| 1137 | # instances in any zone. |
| 1138 | "A String", |
| 1139 | ], |
| 1140 | "groupLabels": [ # Targets VM instances matching at least one of these label sets. This allows |
| 1141 | # targeting of disparate groups, for example "env=prod or env=staging". |
| 1142 | { # Represents a group of VMs that can be identified as having all these |
| 1143 | # labels, for example "env=prod and app=web". |
| 1144 | "labels": { # Google Compute Engine instance labels that must be present for a VM |
| 1145 | # instance to be targeted by this filter. |
| 1146 | "a_key": "A String", |
| 1147 | }, |
| 1148 | }, |
| 1149 | ], |
| 1150 | "all": True or False, # Target all VM instances in the project. If true, no other criteria is |
| 1151 | # permitted. |
| 1152 | "instances": [ # Targets any of the VM instances specified. Instances are specified by their |
| 1153 | # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME], |
| 1154 | # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or |
| 1155 | # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]` |
| 1156 | "A String", |
| 1157 | ], |
| 1158 | "instanceNamePrefixes": [ # Targets VMs whose name starts with one of these prefixes. Similar to |
| 1159 | # labels, this is another way to group VMs when targeting configs, for |
| 1160 | # example prefix="prod-". |
| 1161 | "A String", |
| 1162 | ], |
| 1163 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1164 | }, |
| 1165 | ], |
| 1166 | }</pre> |
| 1167 | </div> |
| 1168 | |
| 1169 | <div class="method"> |
| 1170 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 1171 | <pre>Retrieves the next page of results. |
| 1172 | |
| 1173 | Args: |
| 1174 | previous_request: The request for the previous page. (required) |
| 1175 | previous_response: The response from the request for the previous page. (required) |
| 1176 | |
| 1177 | Returns: |
| 1178 | A request object that you can call 'execute()' on to request the next |
| 1179 | page. Returns None if there are no more items in the collection. |
| 1180 | </pre> |
| 1181 | </div> |
| 1182 | |
| 1183 | </body></html> |