@maxim_mazurok/gapi.client.osconfig-v1beta 0.0.20220725

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,1540 @@
1
+ /* Type definitions for non-npm package OS Config API v1beta 0.0 */
2
+ // Project: https://cloud.google.com/compute/docs/osconfig/rest
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+ // TypeScript Version: 2.8
8
+
9
+ // IMPORTANT
10
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
+ // Generated from: https://osconfig.googleapis.com/$discovery/rest?version=v1beta
13
+ // Revision: 20220725
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load OS Config API v1beta */
19
+ function load(urlOrObject: "https://osconfig.googleapis.com/$discovery/rest?version=v1beta"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "osconfig", version: "v1beta"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "osconfig", version: "v1beta", callback: () => any): void;
24
+
25
+ namespace osconfig {
26
+ interface AptRepository {
27
+ /** Type of archive files in this repository. The default behavior is DEB. */
28
+ archiveType?: string;
29
+ /** Required. List of components for this repository. Must contain at least one item. */
30
+ components?: string[];
31
+ /** Required. Distribution of this repository. */
32
+ distribution?: string;
33
+ /** URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg` containing all the keys in any applied guest policy. */
34
+ gpgKey?: string;
35
+ /** Required. URI for this repository. */
36
+ uri?: string;
37
+ }
38
+ interface AptSettings {
39
+ /** List of packages to exclude from update. These packages will be excluded */
40
+ excludes?: string[];
41
+ /**
42
+ * 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
43
+ * specified with any other patch configuration fields.
44
+ */
45
+ exclusivePackages?: string[];
46
+ /** By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead. */
47
+ type?: string;
48
+ }
49
+ interface Assignment {
50
+ /** Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging". */
51
+ groupLabels?: AssignmentGroupLabel[];
52
+ /**
53
+ * Targets VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only
54
+ * supported for project-level policies.
55
+ */
56
+ instanceNamePrefixes?: string[];
57
+ /**
58
+ * Targets any of the instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`. Instance targeting is uncommon and is supported to
59
+ * facilitate the management of changes by the instance or to target specific VM instances for development and testing. Only supported for project-level policies and must reference
60
+ * instances within this project.
61
+ */
62
+ instances?: string[];
63
+ /** Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included. */
64
+ osTypes?: AssignmentOsType[];
65
+ /** Targets instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone. */
66
+ zones?: string[];
67
+ }
68
+ interface AssignmentGroupLabel {
69
+ /** Google Compute Engine instance labels that must be present for an instance to be included in this assignment group. */
70
+ labels?: { [P in string]: string };
71
+ }
72
+ interface AssignmentOsType {
73
+ /** Targets VM instances with OS Inventory enabled and having the following OS architecture. */
74
+ osArchitecture?: string;
75
+ /** Targets VM instances with OS Inventory enabled and having the following OS short name, for example "debian" or "windows". */
76
+ osShortName?: string;
77
+ /** Targets VM instances with OS Inventory enabled and having the following following OS version. */
78
+ osVersion?: string;
79
+ }
80
+ // tslint:disable-next-line:no-empty-interface
81
+ interface CancelPatchJobRequest {
82
+ }
83
+ interface EffectiveGuestPolicy {
84
+ /** List of package repository configurations assigned to the VM instance. */
85
+ packageRepositories?: EffectiveGuestPolicySourcedPackageRepository[];
86
+ /** List of package configurations assigned to the VM instance. */
87
+ packages?: EffectiveGuestPolicySourcedPackage[];
88
+ /** List of recipes assigned to the VM instance. */
89
+ softwareRecipes?: EffectiveGuestPolicySourcedSoftwareRecipe[];
90
+ }
91
+ interface EffectiveGuestPolicySourcedPackage {
92
+ /** A software package to configure on the VM instance. */
93
+ package?: Package;
94
+ /** Name of the guest policy providing this config. */
95
+ source?: string;
96
+ }
97
+ interface EffectiveGuestPolicySourcedPackageRepository {
98
+ /** A software package repository to configure on the VM instance. */
99
+ packageRepository?: PackageRepository;
100
+ /** Name of the guest policy providing this config. */
101
+ source?: string;
102
+ }
103
+ interface EffectiveGuestPolicySourcedSoftwareRecipe {
104
+ /** A software recipe to configure on the VM instance. */
105
+ softwareRecipe?: SoftwareRecipe;
106
+ /** Name of the guest policy providing this config. */
107
+ source?: string;
108
+ }
109
+ // tslint:disable-next-line:no-empty-interface
110
+ interface Empty {
111
+ }
112
+ interface ExecStep {
113
+ /** The ExecStepConfig for all Linux VMs targeted by the PatchJob. */
114
+ linuxExecStepConfig?: ExecStepConfig;
115
+ /** The ExecStepConfig for all Windows VMs targeted by the PatchJob. */
116
+ windowsExecStepConfig?: ExecStepConfig;
117
+ }
118
+ interface ExecStepConfig {
119
+ /** Defaults to [0]. A list of possible return values that the execution can return to indicate a success. */
120
+ allowedSuccessCodes?: number[];
121
+ /** A Google Cloud Storage object containing the executable. */
122
+ gcsObject?: GcsObject;
123
+ /**
124
+ * 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]
125
+ * (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
126
+ */
127
+ interpreter?: string;
128
+ /** An absolute path to the executable on the VM. */
129
+ localPath?: string;
130
+ }
131
+ interface ExecutePatchJobRequest {
132
+ /** Description of the patch job. Length of the description is limited to 1024 characters. */
133
+ description?: string;
134
+ /** Display name for this patch job. This does not have to be unique. */
135
+ displayName?: string;
136
+ /** If this patch is a dry-run only, instances are contacted but will do nothing. */
137
+ dryRun?: boolean;
138
+ /** Duration of the patch job. After the duration ends, the patch job times out. */
139
+ duration?: string;
140
+ /** Required. Instances to patch, either explicitly or filtered by some criteria such as zone or labels. */
141
+ instanceFilter?: PatchInstanceFilter;
142
+ /** Patch configuration being applied. If omitted, instances are patched using the default configurations. */
143
+ patchConfig?: PatchConfig;
144
+ /** Rollout strategy of the patch job. */
145
+ rollout?: PatchRollout;
146
+ }
147
+ interface FixedOrPercent {
148
+ /** Specifies a fixed value. */
149
+ fixed?: number;
150
+ /** Specifies the relative value defined as a percentage, which will be multiplied by a reference value. */
151
+ percent?: number;
152
+ }
153
+ interface GcsObject {
154
+ /** Required. Bucket of the Google Cloud Storage object. */
155
+ bucket?: string;
156
+ /** Required. Generation number of the Google Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change. */
157
+ generationNumber?: string;
158
+ /** Required. Name of the Google Cloud Storage object. */
159
+ object?: string;
160
+ }
161
+ interface GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata {
162
+ /** The OS policy assignment API method. */
163
+ apiMethod?: string;
164
+ /** Reference to the `OSPolicyAssignment` API resource. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}` */
165
+ osPolicyAssignment?: string;
166
+ /** Rollout start time */
167
+ rolloutStartTime?: string;
168
+ /** State of the rollout */
169
+ rolloutState?: string;
170
+ /** Rollout update time */
171
+ rolloutUpdateTime?: string;
172
+ }
173
+ interface GooRepository {
174
+ /** Required. The name of the repository. */
175
+ name?: string;
176
+ /** Required. The url of the repository. */
177
+ url?: string;
178
+ }
179
+ // tslint:disable-next-line:no-empty-interface
180
+ interface GooSettings {
181
+ }
182
+ interface GuestPolicy {
183
+ /**
184
+ * Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or
185
+ * zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation
186
+ * of multiple policies that conflict with each other. For more information, see how the service [handles assignment
187
+ * conflicts](/compute/docs/os-config-management/create-guest-policy#handle-conflicts).
188
+ */
189
+ assignment?: Assignment;
190
+ /** Output only. Time this guest policy was created. */
191
+ createTime?: string;
192
+ /** Description of the guest policy. Length of the description is limited to 1024 characters. */
193
+ description?: string;
194
+ /** The etag for this guest policy. If this is provided on update, it must match the server's etag. */
195
+ etag?: string;
196
+ /** Required. Unique name of the resource in this project using one of the following forms: `projects/{project_number}/guestPolicies/{guest_policy_id}`. */
197
+ name?: string;
198
+ /**
199
+ * A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only
200
+ * configured if the corresponding package manager(s) are available.
201
+ */
202
+ packageRepositories?: PackageRepository[];
203
+ /** The software packages to be managed by this policy. */
204
+ packages?: Package[];
205
+ /** A list of Recipes to install on the VM instance. */
206
+ recipes?: SoftwareRecipe[];
207
+ /** Output only. Last time this guest policy was updated. */
208
+ updateTime?: string;
209
+ }
210
+ interface ListGuestPoliciesResponse {
211
+ /** The list of GuestPolicies. */
212
+ guestPolicies?: GuestPolicy[];
213
+ /** A pagination token that can be used to get the next page of guest policies. */
214
+ nextPageToken?: string;
215
+ }
216
+ interface ListPatchDeploymentsResponse {
217
+ /** A pagination token that can be used to get the next page of patch deployments. */
218
+ nextPageToken?: string;
219
+ /** The list of patch deployments. */
220
+ patchDeployments?: PatchDeployment[];
221
+ }
222
+ interface ListPatchJobInstanceDetailsResponse {
223
+ /** A pagination token that can be used to get the next page of results. */
224
+ nextPageToken?: string;
225
+ /** A list of instance status. */
226
+ patchJobInstanceDetails?: PatchJobInstanceDetails[];
227
+ }
228
+ interface ListPatchJobsResponse {
229
+ /** A pagination token that can be used to get the next page of results. */
230
+ nextPageToken?: string;
231
+ /** The list of patch jobs. */
232
+ patchJobs?: PatchJob[];
233
+ }
234
+ interface LookupEffectiveGuestPolicyRequest {
235
+ /** Architecture of OS running on the instance. The OS Config agent only provides this field for targeting if OS Inventory is enabled for that instance. */
236
+ osArchitecture?: string;
237
+ /** Short name of the OS running on the instance. The OS Config agent only provides this field for targeting if OS Inventory is enabled for that instance. */
238
+ osShortName?: string;
239
+ /** Version of the OS running on the instance. The OS Config agent only provides this field for targeting if OS Inventory is enabled for that VM instance. */
240
+ osVersion?: string;
241
+ }
242
+ interface MonthlySchedule {
243
+ /**
244
+ * 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
245
+ * schedule to run "every month on the 31st" will not run in February, April, June, etc.
246
+ */
247
+ monthDay?: number;
248
+ /** Required. Week day in a month. */
249
+ weekDayOfMonth?: WeekDayOfMonth;
250
+ }
251
+ interface OneTimeSchedule {
252
+ /** Required. The desired patch job execution time. */
253
+ executeTime?: string;
254
+ }
255
+ interface OSPolicyAssignmentOperationMetadata {
256
+ /** The OS policy assignment API method. */
257
+ apiMethod?: string;
258
+ /** Reference to the `OSPolicyAssignment` API resource. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}` */
259
+ osPolicyAssignment?: string;
260
+ /** Rollout start time */
261
+ rolloutStartTime?: string;
262
+ /** State of the rollout */
263
+ rolloutState?: string;
264
+ /** Rollout update time */
265
+ rolloutUpdateTime?: string;
266
+ }
267
+ interface Package {
268
+ /** The desired_state the agent should maintain for this package. The default is to ensure the package is installed. */
269
+ desiredState?: string;
270
+ /**
271
+ * Type of package manager that can be used to install this package. If a system does not have the package manager, the package is not installed or removed no error message is
272
+ * returned. By default, or if you specify `ANY`, the agent attempts to install and remove this package using the default package manager. This is useful when creating a policy that
273
+ * applies to different types of systems. The default behavior is ANY.
274
+ */
275
+ manager?: string;
276
+ /** Required. The name of the package. A package is uniquely identified for conflict validation by checking the package name and the manager(s) that the package targets. */
277
+ name?: string;
278
+ }
279
+ interface PackageRepository {
280
+ /** An Apt Repository. */
281
+ apt?: AptRepository;
282
+ /** A Goo Repository. */
283
+ goo?: GooRepository;
284
+ /** A Yum Repository. */
285
+ yum?: YumRepository;
286
+ /** A Zypper Repository. */
287
+ zypper?: ZypperRepository;
288
+ }
289
+ interface PatchConfig {
290
+ /** Apt update settings. Use this setting to override the default `apt` patch rules. */
291
+ apt?: AptSettings;
292
+ /** Goo update settings. Use this setting to override the default `goo` patch rules. */
293
+ goo?: any;
294
+ /** Allows the patch job to run on Managed instance groups (MIGs). */
295
+ migInstancesAllowed?: boolean;
296
+ /** The `ExecStep` to run after the patch update. */
297
+ postStep?: ExecStep;
298
+ /** The `ExecStep` to run before the patch update. */
299
+ preStep?: ExecStep;
300
+ /** Post-patch reboot settings. */
301
+ rebootConfig?: string;
302
+ /** Windows update settings. Use this override the default windows patch rules. */
303
+ windowsUpdate?: WindowsUpdateSettings;
304
+ /** Yum update settings. Use this setting to override the default `yum` patch rules. */
305
+ yum?: YumSettings;
306
+ /** Zypper update settings. Use this setting to override the default `zypper` patch rules. */
307
+ zypper?: ZypperSettings;
308
+ }
309
+ interface PatchDeployment {
310
+ /** Output only. Time the patch deployment was created. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */
311
+ createTime?: string;
312
+ /** Optional. Description of the patch deployment. Length of the description is limited to 1024 characters. */
313
+ description?: string;
314
+ /** Optional. Duration of the patch. After the duration ends, the patch times out. */
315
+ duration?: string;
316
+ /** Required. VM instances to patch. */
317
+ instanceFilter?: PatchInstanceFilter;
318
+ /** 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. */
319
+ lastExecuteTime?: string;
320
+ /**
321
+ * 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
322
+ * ignored when you create a new patch deployment.
323
+ */
324
+ name?: string;
325
+ /** Required. Schedule a one-time execution. */
326
+ oneTimeSchedule?: OneTimeSchedule;
327
+ /** Optional. Patch configuration that is applied. */
328
+ patchConfig?: PatchConfig;
329
+ /** Required. Schedule recurring executions. */
330
+ recurringSchedule?: RecurringSchedule;
331
+ /** Optional. Rollout strategy of the patch job. */
332
+ rollout?: PatchRollout;
333
+ /** Output only. Current state of the patch deployment. */
334
+ state?: string;
335
+ /** Output only. Time the patch deployment was last updated. Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */
336
+ updateTime?: string;
337
+ }
338
+ interface PatchInstanceFilter {
339
+ /** Target all VM instances in the project. If true, no other criteria is permitted. */
340
+ all?: boolean;
341
+ /** Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging". */
342
+ groupLabels?: PatchInstanceFilterGroupLabel[];
343
+ /** 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-". */
344
+ instanceNamePrefixes?: string[];
345
+ /**
346
+ * Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`,
347
+ * `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
348
+ */
349
+ instances?: string[];
350
+ /** Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone. */
351
+ zones?: string[];
352
+ }
353
+ interface PatchInstanceFilterGroupLabel {
354
+ /** Compute Engine instance labels that must be present for a VM instance to be targeted by this filter. */
355
+ labels?: { [P in string]: string };
356
+ }
357
+ interface PatchJob {
358
+ /** Time this patch job was created. */
359
+ createTime?: string;
360
+ /** Description of the patch job. Length of the description is limited to 1024 characters. */
361
+ description?: string;
362
+ /** Display name for this patch job. This is not a unique identifier. */
363
+ displayName?: string;
364
+ /** If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance. */
365
+ dryRun?: boolean;
366
+ /** Duration of the patch job. After the duration ends, the patch job times out. */
367
+ duration?: string;
368
+ /** If this patch job failed, this message provides information about the failure. */
369
+ errorMessage?: string;
370
+ /** Summary of instance details. */
371
+ instanceDetailsSummary?: PatchJobInstanceDetailsSummary;
372
+ /** Instances to patch. */
373
+ instanceFilter?: PatchInstanceFilter;
374
+ /** Unique identifier for this patch job in the form `projects/*‍/patchJobs/*` */
375
+ name?: string;
376
+ /** Patch configuration being applied. */
377
+ patchConfig?: PatchConfig;
378
+ /** Output only. Name of the patch deployment that created this patch job. */
379
+ patchDeployment?: string;
380
+ /** Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete. */
381
+ percentComplete?: number;
382
+ /** Rollout strategy being applied. */
383
+ rollout?: PatchRollout;
384
+ /** The current state of the PatchJob. */
385
+ state?: string;
386
+ /** Last time this patch job was updated. */
387
+ updateTime?: string;
388
+ }
389
+ interface PatchJobInstanceDetails {
390
+ /** The number of times the agent that the agent attempts to apply the patch. */
391
+ attemptCount?: string;
392
+ /** If the patch fails, this field provides the reason. */
393
+ failureReason?: string;
394
+ /** The unique identifier for the instance. This identifier is defined by the server. */
395
+ instanceSystemId?: string;
396
+ /** The instance name in the form `projects/*‍/zones/*‍/instances/*` */
397
+ name?: string;
398
+ /** Current state of instance patch. */
399
+ state?: string;
400
+ }
401
+ interface PatchJobInstanceDetailsSummary {
402
+ /** Number of instances that have acked and will start shortly. */
403
+ ackedInstanceCount?: string;
404
+ /** Number of instances that are applying patches. */
405
+ applyingPatchesInstanceCount?: string;
406
+ /** Number of instances that are downloading patches. */
407
+ downloadingPatchesInstanceCount?: string;
408
+ /** Number of instances that failed. */
409
+ failedInstanceCount?: string;
410
+ /** Number of instances that are inactive. */
411
+ inactiveInstanceCount?: string;
412
+ /** Number of instances that do not appear to be running the agent. Check to ensure that the agent is installed, running, and able to communicate with the service. */
413
+ noAgentDetectedInstanceCount?: string;
414
+ /** Number of instances notified about patch job. */
415
+ notifiedInstanceCount?: string;
416
+ /** Number of instances pending patch job. */
417
+ pendingInstanceCount?: string;
418
+ /** Number of instances that are running the post-patch step. */
419
+ postPatchStepInstanceCount?: string;
420
+ /** Number of instances that are running the pre-patch step. */
421
+ prePatchStepInstanceCount?: string;
422
+ /** Number of instances rebooting. */
423
+ rebootingInstanceCount?: string;
424
+ /** Number of instances that have started. */
425
+ startedInstanceCount?: string;
426
+ /** Number of instances that have completed successfully. */
427
+ succeededInstanceCount?: string;
428
+ /** Number of instances that require reboot. */
429
+ succeededRebootRequiredInstanceCount?: string;
430
+ /** Number of instances that exceeded the time out while applying the patch. */
431
+ timedOutInstanceCount?: string;
432
+ }
433
+ interface PatchRollout {
434
+ /**
435
+ * 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
436
+ * 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
437
+ * 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
438
+ * 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.
439
+ * 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
440
+ * 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
441
+ * 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
442
+ * stops.
443
+ */
444
+ disruptionBudget?: FixedOrPercent;
445
+ /** Mode of the patch rollout. */
446
+ mode?: string;
447
+ }
448
+ // tslint:disable-next-line:no-empty-interface
449
+ interface PausePatchDeploymentRequest {
450
+ }
451
+ interface RecurringSchedule {
452
+ /** Optional. The end time at which a recurring patch deployment schedule is no longer active. */
453
+ endTime?: string;
454
+ /** Required. The frequency unit of this recurring schedule. */
455
+ frequency?: string;
456
+ /** Output only. The time the last patch job ran successfully. */
457
+ lastExecuteTime?: string;
458
+ /** Required. Schedule with monthly executions. */
459
+ monthly?: MonthlySchedule;
460
+ /** Output only. The time the next patch job is scheduled to run. */
461
+ nextExecuteTime?: string;
462
+ /** Optional. The time that the recurring schedule becomes effective. Defaults to `create_time` of the patch deployment. */
463
+ startTime?: string;
464
+ /** Required. Time of the day to run a recurring deployment. */
465
+ timeOfDay?: TimeOfDay;
466
+ /** 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. */
467
+ timeZone?: TimeZone;
468
+ /** Required. Schedule with weekly executions. */
469
+ weekly?: WeeklySchedule;
470
+ }
471
+ // tslint:disable-next-line:no-empty-interface
472
+ interface ResumePatchDeploymentRequest {
473
+ }
474
+ interface SoftwareRecipe {
475
+ /** Resources available to be used in the steps in the recipe. */
476
+ artifacts?: SoftwareRecipeArtifact[];
477
+ /**
478
+ * Default is INSTALLED. The desired state the agent should maintain for this recipe. INSTALLED: The software recipe is installed on the instance but won't be updated to new versions.
479
+ * UPDATED: The software recipe is installed on the instance. The recipe is updated to a higher version, if a higher version of the recipe is assigned to this instance. REMOVE: Remove
480
+ * is unsupported for software recipes and attempts to create or update a recipe to the REMOVE state is rejected.
481
+ */
482
+ desiredState?: string;
483
+ /**
484
+ * Actions to be taken for installing this recipe. On failure it stops executing steps and does not attempt another installation. Any steps taken (including partially completed steps)
485
+ * are not rolled back.
486
+ */
487
+ installSteps?: SoftwareRecipeStep[];
488
+ /**
489
+ * Required. Unique identifier for the recipe. Only one recipe with a given name is installed on an instance. Names are also used to identify resources which helps to determine whether
490
+ * guest policies have conflicts. This means that requests to create multiple recipes with the same name and version are rejected since they could potentially have conflicting
491
+ * assignments.
492
+ */
493
+ name?: string;
494
+ /**
495
+ * Actions to be taken for updating this recipe. On failure it stops executing steps and does not attempt another update for this recipe. Any steps taken (including partially completed
496
+ * steps) are not rolled back.
497
+ */
498
+ updateSteps?: SoftwareRecipeStep[];
499
+ /** The version of this software recipe. Version can be up to 4 period separated numbers (e.g. 12.34.56.78). */
500
+ version?: string;
501
+ }
502
+ interface SoftwareRecipeArtifact {
503
+ /**
504
+ * Defaults to false. When false, recipes are subject to validations based on the artifact type: Remote: A checksum must be specified, and only protocols with transport-layer security
505
+ * are permitted. GCS: An object generation number must be specified.
506
+ */
507
+ allowInsecure?: boolean;
508
+ /** A Google Cloud Storage artifact. */
509
+ gcs?: SoftwareRecipeArtifactGcs;
510
+ /** Required. Id of the artifact, which the installation and update steps of this recipe can reference. Artifacts in a recipe cannot have the same id. */
511
+ id?: string;
512
+ /** A generic remote artifact. */
513
+ remote?: SoftwareRecipeArtifactRemote;
514
+ }
515
+ interface SoftwareRecipeArtifactGcs {
516
+ /** Bucket of the Google Cloud Storage object. Given an example URL: `https://storage.googleapis.com/my-bucket/foo/bar#1234567` this value would be `my-bucket`. */
517
+ bucket?: string;
518
+ /**
519
+ * Must be provided if allow_insecure is false. Generation number of the Google Cloud Storage object. `https://storage.googleapis.com/my-bucket/foo/bar#1234567` this value would be
520
+ * `1234567`.
521
+ */
522
+ generation?: string;
523
+ /**
524
+ * Name of the Google Cloud Storage object. As specified [here] (https://cloud.google.com/storage/docs/naming#objectnames) Given an example URL:
525
+ * `https://storage.googleapis.com/my-bucket/foo/bar#1234567` this value would be `foo/bar`.
526
+ */
527
+ object?: string;
528
+ }
529
+ interface SoftwareRecipeArtifactRemote {
530
+ /**
531
+ * Must be provided if `allow_insecure` is `false`. SHA256 checksum in hex format, to compare to the checksum of the artifact. If the checksum is not empty and it doesn't match the
532
+ * artifact then the recipe installation fails before running any of the steps.
533
+ */
534
+ checksum?: string;
535
+ /** URI from which to fetch the object. It should contain both the protocol and path following the format {protocol}://{location}. */
536
+ uri?: string;
537
+ }
538
+ interface SoftwareRecipeStep {
539
+ /** Extracts an archive into the specified directory. */
540
+ archiveExtraction?: SoftwareRecipeStepExtractArchive;
541
+ /** Installs a deb file via dpkg. */
542
+ dpkgInstallation?: SoftwareRecipeStepInstallDpkg;
543
+ /** Copies a file onto the instance. */
544
+ fileCopy?: SoftwareRecipeStepCopyFile;
545
+ /** Executes an artifact or local file. */
546
+ fileExec?: SoftwareRecipeStepExecFile;
547
+ /** Installs an MSI file. */
548
+ msiInstallation?: SoftwareRecipeStepInstallMsi;
549
+ /** Installs an rpm file via the rpm utility. */
550
+ rpmInstallation?: SoftwareRecipeStepInstallRpm;
551
+ /** Runs commands in a shell. */
552
+ scriptRun?: SoftwareRecipeStepRunScript;
553
+ }
554
+ interface SoftwareRecipeStepCopyFile {
555
+ /** Required. The id of the relevant artifact in the recipe. */
556
+ artifactId?: string;
557
+ /** Required. The absolute path on the instance to put the file. */
558
+ destination?: string;
559
+ /**
560
+ * Whether to allow this step to overwrite existing files. If this is false and the file already exists the file is not overwritten and the step is considered a success. Defaults to
561
+ * false.
562
+ */
563
+ overwrite?: boolean;
564
+ /**
565
+ * Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod
566
+ * utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the
567
+ * execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6
568
+ * read only: 4
569
+ */
570
+ permissions?: string;
571
+ }
572
+ interface SoftwareRecipeStepExecFile {
573
+ /** Defaults to [0]. A list of possible return values that the program can return to indicate a success. */
574
+ allowedExitCodes?: number[];
575
+ /** Arguments to be passed to the provided executable. */
576
+ args?: string[];
577
+ /** The id of the relevant artifact in the recipe. */
578
+ artifactId?: string;
579
+ /** The absolute path of the file on the local filesystem. */
580
+ localPath?: string;
581
+ }
582
+ interface SoftwareRecipeStepExtractArchive {
583
+ /** Required. The id of the relevant artifact in the recipe. */
584
+ artifactId?: string;
585
+ /** Directory to extract archive to. Defaults to `/` on Linux or `C:\` on Windows. */
586
+ destination?: string;
587
+ /** Required. The type of the archive to extract. */
588
+ type?: string;
589
+ }
590
+ interface SoftwareRecipeStepInstallDpkg {
591
+ /** Required. The id of the relevant artifact in the recipe. */
592
+ artifactId?: string;
593
+ }
594
+ interface SoftwareRecipeStepInstallMsi {
595
+ /** Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0] */
596
+ allowedExitCodes?: number[];
597
+ /** Required. The id of the relevant artifact in the recipe. */
598
+ artifactId?: string;
599
+ /** The flags to use when installing the MSI defaults to ["/i"] (i.e. the install flag). */
600
+ flags?: string[];
601
+ }
602
+ interface SoftwareRecipeStepInstallRpm {
603
+ /** Required. The id of the relevant artifact in the recipe. */
604
+ artifactId?: string;
605
+ }
606
+ interface SoftwareRecipeStepRunScript {
607
+ /** Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0] */
608
+ allowedExitCodes?: number[];
609
+ /**
610
+ * The script interpreter to use to run the script. If no interpreter is specified the script is executed directly, which likely only succeed for scripts with [shebang
611
+ * lines](https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
612
+ */
613
+ interpreter?: string;
614
+ /** Required. The shell script to be executed. */
615
+ script?: string;
616
+ }
617
+ interface TimeOfDay {
618
+ /** 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. */
619
+ hours?: number;
620
+ /** Minutes of hour of day. Must be from 0 to 59. */
621
+ minutes?: number;
622
+ /** Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */
623
+ nanos?: number;
624
+ /** 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. */
625
+ seconds?: number;
626
+ }
627
+ interface TimeZone {
628
+ /** IANA Time Zone Database time zone, e.g. "America/New_York". */
629
+ id?: string;
630
+ /** Optional. IANA Time Zone Database version number, e.g. "2019a". */
631
+ version?: string;
632
+ }
633
+ interface WeekDayOfMonth {
634
+ /**
635
+ * Optional. Represents the number of days before or after the given week day of month that the patch deployment is scheduled for. For example if `week_ordinal` and `day_of_week`
636
+ * values point to the second day of the month and this `day_offset` value is set to `3`, the patch deployment takes place three days after the second Tuesday of the month. If this
637
+ * value is negative, for example -5, the patches are deployed five days before before the second Tuesday of the month. Allowed values are in range [-30, 30].
638
+ */
639
+ dayOffset?: number;
640
+ /** Required. A day of the week. */
641
+ dayOfWeek?: string;
642
+ /** 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. */
643
+ weekOrdinal?: number;
644
+ }
645
+ interface WeeklySchedule {
646
+ /** Required. Day of the week. */
647
+ dayOfWeek?: string;
648
+ }
649
+ interface WindowsUpdateSettings {
650
+ /** Only apply updates of these windows update classifications. If empty, all updates are applied. */
651
+ classifications?: string[];
652
+ /** List of KBs to exclude from update. */
653
+ excludes?: string[];
654
+ /** 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. */
655
+ exclusivePatches?: string[];
656
+ }
657
+ interface YumRepository {
658
+ /** Required. The location of the repository directory. */
659
+ baseUrl?: string;
660
+ /** The display name of the repository. */
661
+ displayName?: string;
662
+ /** URIs of GPG keys. */
663
+ gpgKeys?: string[];
664
+ /**
665
+ * Required. A one word, unique name for this repository. This is the `repo id` in the Yum config file and also the `display_name` if `display_name` is omitted. This id is also used as
666
+ * the unique identifier when checking for guest policy conflicts.
667
+ */
668
+ id?: string;
669
+ }
670
+ interface YumSettings {
671
+ /** List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag. */
672
+ excludes?: string[];
673
+ /**
674
+ * 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
675
+ * specified with any other patch configuration fields.
676
+ */
677
+ exclusivePackages?: string[];
678
+ /** Will cause patch to run `yum update-minimal` instead. */
679
+ minimal?: boolean;
680
+ /** Adds the `--security` flag to `yum update`. Not supported on all platforms. */
681
+ security?: boolean;
682
+ }
683
+ interface ZypperRepository {
684
+ /** Required. The location of the repository directory. */
685
+ baseUrl?: string;
686
+ /** The display name of the repository. */
687
+ displayName?: string;
688
+ /** URIs of GPG keys. */
689
+ gpgKeys?: string[];
690
+ /**
691
+ * Required. A one word, unique name for this repository. This is the `repo id` in the zypper config file and also the `display_name` if `display_name` is omitted. This id is also used
692
+ * as the unique identifier when checking for guest policy conflicts.
693
+ */
694
+ id?: string;
695
+ }
696
+ interface ZypperSettings {
697
+ /** Install only patches with these categories. Common categories include security, recommended, and feature. */
698
+ categories?: string[];
699
+ /** List of patches to exclude from update. */
700
+ excludes?: string[];
701
+ /**
702
+ * 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
703
+ * configuration fields.
704
+ */
705
+ exclusivePatches?: string[];
706
+ /** Install only patches with these severities. Common severities include critical, important, moderate, and low. */
707
+ severities?: string[];
708
+ /** Adds the `--with-optional` flag to `zypper patch`. */
709
+ withOptional?: boolean;
710
+ /** Adds the `--with-update` flag, to `zypper patch`. */
711
+ withUpdate?: boolean;
712
+ }
713
+ interface GuestPoliciesResource {
714
+ /** Create an OS Config guest policy. */
715
+ create(request: {
716
+ /** V1 error format. */
717
+ "$.xgafv"?: string;
718
+ /** OAuth access token. */
719
+ access_token?: string;
720
+ /** Data format for response. */
721
+ alt?: string;
722
+ /** JSONP */
723
+ callback?: string;
724
+ /** Selector specifying which fields to include in a partial response. */
725
+ fields?: string;
726
+ /**
727
+ * Required. The logical name of the guest policy in the project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a
728
+ * letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.
729
+ */
730
+ guestPolicyId?: string;
731
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
732
+ key?: string;
733
+ /** OAuth 2.0 token for the current user. */
734
+ oauth_token?: string;
735
+ /** Required. The resource name of the parent using one of the following forms: `projects/{project_number}`. */
736
+ parent: string;
737
+ /** Returns response with indentations and line breaks. */
738
+ prettyPrint?: boolean;
739
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
740
+ quotaUser?: string;
741
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
742
+ upload_protocol?: string;
743
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
744
+ uploadType?: string;
745
+ /** Request body */
746
+ resource: GuestPolicy;
747
+ }): Request<GuestPolicy>;
748
+ create(request: {
749
+ /** V1 error format. */
750
+ "$.xgafv"?: string;
751
+ /** OAuth access token. */
752
+ access_token?: string;
753
+ /** Data format for response. */
754
+ alt?: string;
755
+ /** JSONP */
756
+ callback?: string;
757
+ /** Selector specifying which fields to include in a partial response. */
758
+ fields?: string;
759
+ /**
760
+ * Required. The logical name of the guest policy in the project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a
761
+ * letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.
762
+ */
763
+ guestPolicyId?: string;
764
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
765
+ key?: string;
766
+ /** OAuth 2.0 token for the current user. */
767
+ oauth_token?: string;
768
+ /** Required. The resource name of the parent using one of the following forms: `projects/{project_number}`. */
769
+ parent: string;
770
+ /** Returns response with indentations and line breaks. */
771
+ prettyPrint?: boolean;
772
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
773
+ quotaUser?: string;
774
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
775
+ upload_protocol?: string;
776
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
777
+ uploadType?: string;
778
+ },
779
+ body: GuestPolicy): Request<GuestPolicy>;
780
+ /** Delete an OS Config guest policy. */
781
+ delete(request?: {
782
+ /** V1 error format. */
783
+ "$.xgafv"?: string;
784
+ /** OAuth access token. */
785
+ access_token?: string;
786
+ /** Data format for response. */
787
+ alt?: string;
788
+ /** JSONP */
789
+ callback?: string;
790
+ /** Selector specifying which fields to include in a partial response. */
791
+ fields?: string;
792
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
793
+ key?: string;
794
+ /** Required. The resource name of the guest policy using one of the following forms: `projects/{project_number}/guestPolicies/{guest_policy_id}`. */
795
+ name: string;
796
+ /** OAuth 2.0 token for the current user. */
797
+ oauth_token?: string;
798
+ /** Returns response with indentations and line breaks. */
799
+ prettyPrint?: boolean;
800
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
801
+ quotaUser?: string;
802
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
803
+ upload_protocol?: string;
804
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
805
+ uploadType?: string;
806
+ }): Request<{}>;
807
+ /** Get an OS Config guest policy. */
808
+ get(request?: {
809
+ /** V1 error format. */
810
+ "$.xgafv"?: string;
811
+ /** OAuth access token. */
812
+ access_token?: string;
813
+ /** Data format for response. */
814
+ alt?: string;
815
+ /** JSONP */
816
+ callback?: string;
817
+ /** Selector specifying which fields to include in a partial response. */
818
+ fields?: string;
819
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
820
+ key?: string;
821
+ /** Required. The resource name of the guest policy using one of the following forms: `projects/{project_number}/guestPolicies/{guest_policy_id}`. */
822
+ name: string;
823
+ /** OAuth 2.0 token for the current user. */
824
+ oauth_token?: string;
825
+ /** Returns response with indentations and line breaks. */
826
+ prettyPrint?: boolean;
827
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
828
+ quotaUser?: string;
829
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
830
+ upload_protocol?: string;
831
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
832
+ uploadType?: string;
833
+ }): Request<GuestPolicy>;
834
+ /** Get a page of OS Config guest policies. */
835
+ list(request?: {
836
+ /** V1 error format. */
837
+ "$.xgafv"?: string;
838
+ /** OAuth access token. */
839
+ access_token?: string;
840
+ /** Data format for response. */
841
+ alt?: string;
842
+ /** JSONP */
843
+ callback?: string;
844
+ /** Selector specifying which fields to include in a partial response. */
845
+ fields?: string;
846
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
847
+ key?: string;
848
+ /** OAuth 2.0 token for the current user. */
849
+ oauth_token?: string;
850
+ /** The maximum number of guest policies to return. */
851
+ pageSize?: number;
852
+ /** A pagination token returned from a previous call to `ListGuestPolicies` that indicates where this listing should continue from. */
853
+ pageToken?: string;
854
+ /** Required. The resource name of the parent using one of the following forms: `projects/{project_number}`. */
855
+ parent: string;
856
+ /** Returns response with indentations and line breaks. */
857
+ prettyPrint?: boolean;
858
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
859
+ quotaUser?: string;
860
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
861
+ upload_protocol?: string;
862
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
863
+ uploadType?: string;
864
+ }): Request<ListGuestPoliciesResponse>;
865
+ /** Update an OS Config guest policy. */
866
+ patch(request: {
867
+ /** V1 error format. */
868
+ "$.xgafv"?: string;
869
+ /** OAuth access token. */
870
+ access_token?: string;
871
+ /** Data format for response. */
872
+ alt?: string;
873
+ /** JSONP */
874
+ callback?: string;
875
+ /** Selector specifying which fields to include in a partial response. */
876
+ fields?: string;
877
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
878
+ key?: string;
879
+ /** Required. Unique name of the resource in this project using one of the following forms: `projects/{project_number}/guestPolicies/{guest_policy_id}`. */
880
+ name: string;
881
+ /** OAuth 2.0 token for the current user. */
882
+ oauth_token?: string;
883
+ /** Returns response with indentations and line breaks. */
884
+ prettyPrint?: boolean;
885
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
886
+ quotaUser?: string;
887
+ /** Field mask that controls which fields of the guest policy should be updated. */
888
+ updateMask?: string;
889
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
890
+ upload_protocol?: string;
891
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
892
+ uploadType?: string;
893
+ /** Request body */
894
+ resource: GuestPolicy;
895
+ }): Request<GuestPolicy>;
896
+ patch(request: {
897
+ /** V1 error format. */
898
+ "$.xgafv"?: string;
899
+ /** OAuth access token. */
900
+ access_token?: string;
901
+ /** Data format for response. */
902
+ alt?: string;
903
+ /** JSONP */
904
+ callback?: string;
905
+ /** Selector specifying which fields to include in a partial response. */
906
+ fields?: string;
907
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
908
+ key?: string;
909
+ /** Required. Unique name of the resource in this project using one of the following forms: `projects/{project_number}/guestPolicies/{guest_policy_id}`. */
910
+ name: string;
911
+ /** OAuth 2.0 token for the current user. */
912
+ oauth_token?: string;
913
+ /** Returns response with indentations and line breaks. */
914
+ prettyPrint?: boolean;
915
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
916
+ quotaUser?: string;
917
+ /** Field mask that controls which fields of the guest policy should be updated. */
918
+ updateMask?: string;
919
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
920
+ upload_protocol?: string;
921
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
922
+ uploadType?: string;
923
+ },
924
+ body: GuestPolicy): Request<GuestPolicy>;
925
+ }
926
+ interface PatchDeploymentsResource {
927
+ /** Create an OS Config patch deployment. */
928
+ create(request: {
929
+ /** V1 error format. */
930
+ "$.xgafv"?: string;
931
+ /** OAuth access token. */
932
+ access_token?: string;
933
+ /** Data format for response. */
934
+ alt?: string;
935
+ /** JSONP */
936
+ callback?: string;
937
+ /** Selector specifying which fields to include in a partial response. */
938
+ fields?: string;
939
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
940
+ key?: string;
941
+ /** OAuth 2.0 token for the current user. */
942
+ oauth_token?: string;
943
+ /** Required. The project to apply this patch deployment to in the form `projects/*`. */
944
+ parent: string;
945
+ /**
946
+ * 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
947
+ * start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.
948
+ */
949
+ patchDeploymentId?: string;
950
+ /** Returns response with indentations and line breaks. */
951
+ prettyPrint?: boolean;
952
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
953
+ quotaUser?: string;
954
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
955
+ upload_protocol?: string;
956
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
957
+ uploadType?: string;
958
+ /** Request body */
959
+ resource: PatchDeployment;
960
+ }): Request<PatchDeployment>;
961
+ create(request: {
962
+ /** V1 error format. */
963
+ "$.xgafv"?: string;
964
+ /** OAuth access token. */
965
+ access_token?: string;
966
+ /** Data format for response. */
967
+ alt?: string;
968
+ /** JSONP */
969
+ callback?: string;
970
+ /** Selector specifying which fields to include in a partial response. */
971
+ fields?: string;
972
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
973
+ key?: string;
974
+ /** OAuth 2.0 token for the current user. */
975
+ oauth_token?: string;
976
+ /** Required. The project to apply this patch deployment to in the form `projects/*`. */
977
+ parent: string;
978
+ /**
979
+ * 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
980
+ * start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.
981
+ */
982
+ patchDeploymentId?: string;
983
+ /** Returns response with indentations and line breaks. */
984
+ prettyPrint?: boolean;
985
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
986
+ quotaUser?: string;
987
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
988
+ upload_protocol?: string;
989
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
990
+ uploadType?: string;
991
+ },
992
+ body: PatchDeployment): Request<PatchDeployment>;
993
+ /** Delete an OS Config patch deployment. */
994
+ delete(request?: {
995
+ /** V1 error format. */
996
+ "$.xgafv"?: string;
997
+ /** OAuth access token. */
998
+ access_token?: string;
999
+ /** Data format for response. */
1000
+ alt?: string;
1001
+ /** JSONP */
1002
+ callback?: string;
1003
+ /** Selector specifying which fields to include in a partial response. */
1004
+ fields?: string;
1005
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1006
+ key?: string;
1007
+ /** Required. The resource name of the patch deployment in the form `projects/*‍/patchDeployments/*`. */
1008
+ name: string;
1009
+ /** OAuth 2.0 token for the current user. */
1010
+ oauth_token?: string;
1011
+ /** Returns response with indentations and line breaks. */
1012
+ prettyPrint?: boolean;
1013
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1014
+ quotaUser?: string;
1015
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1016
+ upload_protocol?: string;
1017
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1018
+ uploadType?: string;
1019
+ }): Request<{}>;
1020
+ /** Get an OS Config patch deployment. */
1021
+ get(request?: {
1022
+ /** V1 error format. */
1023
+ "$.xgafv"?: string;
1024
+ /** OAuth access token. */
1025
+ access_token?: string;
1026
+ /** Data format for response. */
1027
+ alt?: string;
1028
+ /** JSONP */
1029
+ callback?: string;
1030
+ /** Selector specifying which fields to include in a partial response. */
1031
+ fields?: string;
1032
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1033
+ key?: string;
1034
+ /** Required. The resource name of the patch deployment in the form `projects/*‍/patchDeployments/*`. */
1035
+ name: string;
1036
+ /** OAuth 2.0 token for the current user. */
1037
+ oauth_token?: string;
1038
+ /** Returns response with indentations and line breaks. */
1039
+ prettyPrint?: boolean;
1040
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1041
+ quotaUser?: string;
1042
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1043
+ upload_protocol?: string;
1044
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1045
+ uploadType?: string;
1046
+ }): Request<PatchDeployment>;
1047
+ /** Get a page of OS Config patch deployments. */
1048
+ list(request?: {
1049
+ /** V1 error format. */
1050
+ "$.xgafv"?: string;
1051
+ /** OAuth access token. */
1052
+ access_token?: string;
1053
+ /** Data format for response. */
1054
+ alt?: string;
1055
+ /** JSONP */
1056
+ callback?: string;
1057
+ /** Selector specifying which fields to include in a partial response. */
1058
+ fields?: string;
1059
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1060
+ key?: string;
1061
+ /** OAuth 2.0 token for the current user. */
1062
+ oauth_token?: string;
1063
+ /** Optional. The maximum number of patch deployments to return. Default is 100. */
1064
+ pageSize?: number;
1065
+ /** Optional. A pagination token returned from a previous call to ListPatchDeployments that indicates where this listing should continue from. */
1066
+ pageToken?: string;
1067
+ /** Required. The resource name of the parent in the form `projects/*`. */
1068
+ parent: string;
1069
+ /** Returns response with indentations and line breaks. */
1070
+ prettyPrint?: boolean;
1071
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1072
+ quotaUser?: string;
1073
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1074
+ upload_protocol?: string;
1075
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1076
+ uploadType?: string;
1077
+ }): Request<ListPatchDeploymentsResponse>;
1078
+ /** Update an OS Config patch deployment. */
1079
+ patch(request: {
1080
+ /** V1 error format. */
1081
+ "$.xgafv"?: string;
1082
+ /** OAuth access token. */
1083
+ access_token?: string;
1084
+ /** Data format for response. */
1085
+ alt?: string;
1086
+ /** JSONP */
1087
+ callback?: string;
1088
+ /** Selector specifying which fields to include in a partial response. */
1089
+ fields?: string;
1090
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1091
+ key?: string;
1092
+ /**
1093
+ * 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
1094
+ * is ignored when you create a new patch deployment.
1095
+ */
1096
+ name: string;
1097
+ /** OAuth 2.0 token for the current user. */
1098
+ oauth_token?: string;
1099
+ /** Returns response with indentations and line breaks. */
1100
+ prettyPrint?: boolean;
1101
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1102
+ quotaUser?: string;
1103
+ /** Optional. Field mask that controls which fields of the patch deployment should be updated. */
1104
+ updateMask?: string;
1105
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1106
+ upload_protocol?: string;
1107
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1108
+ uploadType?: string;
1109
+ /** Request body */
1110
+ resource: PatchDeployment;
1111
+ }): Request<PatchDeployment>;
1112
+ patch(request: {
1113
+ /** V1 error format. */
1114
+ "$.xgafv"?: string;
1115
+ /** OAuth access token. */
1116
+ access_token?: string;
1117
+ /** Data format for response. */
1118
+ alt?: string;
1119
+ /** JSONP */
1120
+ callback?: string;
1121
+ /** Selector specifying which fields to include in a partial response. */
1122
+ fields?: string;
1123
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1124
+ key?: string;
1125
+ /**
1126
+ * 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
1127
+ * is ignored when you create a new patch deployment.
1128
+ */
1129
+ name: string;
1130
+ /** OAuth 2.0 token for the current user. */
1131
+ oauth_token?: string;
1132
+ /** Returns response with indentations and line breaks. */
1133
+ prettyPrint?: boolean;
1134
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1135
+ quotaUser?: string;
1136
+ /** Optional. Field mask that controls which fields of the patch deployment should be updated. */
1137
+ updateMask?: string;
1138
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1139
+ upload_protocol?: string;
1140
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1141
+ uploadType?: string;
1142
+ },
1143
+ body: PatchDeployment): Request<PatchDeployment>;
1144
+ /** Change state of patch deployment to "PAUSED". Patch deployment in paused state doesn't generate patch jobs. */
1145
+ pause(request: {
1146
+ /** V1 error format. */
1147
+ "$.xgafv"?: string;
1148
+ /** OAuth access token. */
1149
+ access_token?: string;
1150
+ /** Data format for response. */
1151
+ alt?: string;
1152
+ /** JSONP */
1153
+ callback?: string;
1154
+ /** Selector specifying which fields to include in a partial response. */
1155
+ fields?: string;
1156
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1157
+ key?: string;
1158
+ /** Required. The resource name of the patch deployment in the form `projects/*‍/patchDeployments/*`. */
1159
+ name: string;
1160
+ /** OAuth 2.0 token for the current user. */
1161
+ oauth_token?: string;
1162
+ /** Returns response with indentations and line breaks. */
1163
+ prettyPrint?: boolean;
1164
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1165
+ quotaUser?: string;
1166
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1167
+ upload_protocol?: string;
1168
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1169
+ uploadType?: string;
1170
+ /** Request body */
1171
+ resource: PausePatchDeploymentRequest;
1172
+ }): Request<PatchDeployment>;
1173
+ pause(request: {
1174
+ /** V1 error format. */
1175
+ "$.xgafv"?: string;
1176
+ /** OAuth access token. */
1177
+ access_token?: string;
1178
+ /** Data format for response. */
1179
+ alt?: string;
1180
+ /** JSONP */
1181
+ callback?: string;
1182
+ /** Selector specifying which fields to include in a partial response. */
1183
+ fields?: string;
1184
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1185
+ key?: string;
1186
+ /** Required. The resource name of the patch deployment in the form `projects/*‍/patchDeployments/*`. */
1187
+ name: string;
1188
+ /** OAuth 2.0 token for the current user. */
1189
+ oauth_token?: string;
1190
+ /** Returns response with indentations and line breaks. */
1191
+ prettyPrint?: boolean;
1192
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1193
+ quotaUser?: string;
1194
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1195
+ upload_protocol?: string;
1196
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1197
+ uploadType?: string;
1198
+ },
1199
+ body: PausePatchDeploymentRequest): Request<PatchDeployment>;
1200
+ /** Change state of patch deployment back to "ACTIVE". Patch deployment in active state continues to generate patch jobs. */
1201
+ resume(request: {
1202
+ /** V1 error format. */
1203
+ "$.xgafv"?: string;
1204
+ /** OAuth access token. */
1205
+ access_token?: string;
1206
+ /** Data format for response. */
1207
+ alt?: string;
1208
+ /** JSONP */
1209
+ callback?: string;
1210
+ /** Selector specifying which fields to include in a partial response. */
1211
+ fields?: string;
1212
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1213
+ key?: string;
1214
+ /** Required. The resource name of the patch deployment in the form `projects/*‍/patchDeployments/*`. */
1215
+ name: string;
1216
+ /** OAuth 2.0 token for the current user. */
1217
+ oauth_token?: string;
1218
+ /** Returns response with indentations and line breaks. */
1219
+ prettyPrint?: boolean;
1220
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1221
+ quotaUser?: string;
1222
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1223
+ upload_protocol?: string;
1224
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1225
+ uploadType?: string;
1226
+ /** Request body */
1227
+ resource: ResumePatchDeploymentRequest;
1228
+ }): Request<PatchDeployment>;
1229
+ resume(request: {
1230
+ /** V1 error format. */
1231
+ "$.xgafv"?: string;
1232
+ /** OAuth access token. */
1233
+ access_token?: string;
1234
+ /** Data format for response. */
1235
+ alt?: string;
1236
+ /** JSONP */
1237
+ callback?: string;
1238
+ /** Selector specifying which fields to include in a partial response. */
1239
+ fields?: string;
1240
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1241
+ key?: string;
1242
+ /** Required. The resource name of the patch deployment in the form `projects/*‍/patchDeployments/*`. */
1243
+ name: string;
1244
+ /** OAuth 2.0 token for the current user. */
1245
+ oauth_token?: string;
1246
+ /** Returns response with indentations and line breaks. */
1247
+ prettyPrint?: boolean;
1248
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1249
+ quotaUser?: string;
1250
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1251
+ upload_protocol?: string;
1252
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1253
+ uploadType?: string;
1254
+ },
1255
+ body: ResumePatchDeploymentRequest): Request<PatchDeployment>;
1256
+ }
1257
+ interface InstanceDetailsResource {
1258
+ /** Get a list of instance details for a given patch job. */
1259
+ list(request?: {
1260
+ /** V1 error format. */
1261
+ "$.xgafv"?: string;
1262
+ /** OAuth access token. */
1263
+ access_token?: string;
1264
+ /** Data format for response. */
1265
+ alt?: string;
1266
+ /** JSONP */
1267
+ callback?: string;
1268
+ /** Selector specifying which fields to include in a partial response. */
1269
+ fields?: string;
1270
+ /** A filter expression that filters results listed in the response. This field supports filtering results by instance zone, name, state, or `failure_reason`. */
1271
+ filter?: string;
1272
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1273
+ key?: string;
1274
+ /** OAuth 2.0 token for the current user. */
1275
+ oauth_token?: string;
1276
+ /** The maximum number of instance details records to return. Default is 100. */
1277
+ pageSize?: number;
1278
+ /** A pagination token returned from a previous call that indicates where this listing should continue from. */
1279
+ pageToken?: string;
1280
+ /** Required. The parent for the instances are in the form of `projects/*‍/patchJobs/*`. */
1281
+ parent: string;
1282
+ /** Returns response with indentations and line breaks. */
1283
+ prettyPrint?: boolean;
1284
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1285
+ quotaUser?: string;
1286
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1287
+ upload_protocol?: string;
1288
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1289
+ uploadType?: string;
1290
+ }): Request<ListPatchJobInstanceDetailsResponse>;
1291
+ }
1292
+ interface PatchJobsResource {
1293
+ /** Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted. */
1294
+ cancel(request: {
1295
+ /** V1 error format. */
1296
+ "$.xgafv"?: string;
1297
+ /** OAuth access token. */
1298
+ access_token?: string;
1299
+ /** Data format for response. */
1300
+ alt?: string;
1301
+ /** JSONP */
1302
+ callback?: string;
1303
+ /** Selector specifying which fields to include in a partial response. */
1304
+ fields?: string;
1305
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1306
+ key?: string;
1307
+ /** Required. Name of the patch in the form `projects/*‍/patchJobs/*` */
1308
+ name: string;
1309
+ /** OAuth 2.0 token for the current user. */
1310
+ oauth_token?: string;
1311
+ /** Returns response with indentations and line breaks. */
1312
+ prettyPrint?: boolean;
1313
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1314
+ quotaUser?: string;
1315
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1316
+ upload_protocol?: string;
1317
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1318
+ uploadType?: string;
1319
+ /** Request body */
1320
+ resource: CancelPatchJobRequest;
1321
+ }): Request<PatchJob>;
1322
+ cancel(request: {
1323
+ /** V1 error format. */
1324
+ "$.xgafv"?: string;
1325
+ /** OAuth access token. */
1326
+ access_token?: string;
1327
+ /** Data format for response. */
1328
+ alt?: string;
1329
+ /** JSONP */
1330
+ callback?: string;
1331
+ /** Selector specifying which fields to include in a partial response. */
1332
+ fields?: string;
1333
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1334
+ key?: string;
1335
+ /** Required. Name of the patch in the form `projects/*‍/patchJobs/*` */
1336
+ name: string;
1337
+ /** OAuth 2.0 token for the current user. */
1338
+ oauth_token?: string;
1339
+ /** Returns response with indentations and line breaks. */
1340
+ prettyPrint?: boolean;
1341
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1342
+ quotaUser?: string;
1343
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1344
+ upload_protocol?: string;
1345
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1346
+ uploadType?: string;
1347
+ },
1348
+ body: CancelPatchJobRequest): Request<PatchJob>;
1349
+ /** Patch VM instances by creating and running a patch job. */
1350
+ execute(request: {
1351
+ /** V1 error format. */
1352
+ "$.xgafv"?: string;
1353
+ /** OAuth access token. */
1354
+ access_token?: string;
1355
+ /** Data format for response. */
1356
+ alt?: string;
1357
+ /** JSONP */
1358
+ callback?: string;
1359
+ /** Selector specifying which fields to include in a partial response. */
1360
+ fields?: string;
1361
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1362
+ key?: string;
1363
+ /** OAuth 2.0 token for the current user. */
1364
+ oauth_token?: string;
1365
+ /** Required. The project in which to run this patch in the form `projects/*` */
1366
+ parent: string;
1367
+ /** Returns response with indentations and line breaks. */
1368
+ prettyPrint?: boolean;
1369
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1370
+ quotaUser?: string;
1371
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1372
+ upload_protocol?: string;
1373
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1374
+ uploadType?: string;
1375
+ /** Request body */
1376
+ resource: ExecutePatchJobRequest;
1377
+ }): Request<PatchJob>;
1378
+ execute(request: {
1379
+ /** V1 error format. */
1380
+ "$.xgafv"?: string;
1381
+ /** OAuth access token. */
1382
+ access_token?: string;
1383
+ /** Data format for response. */
1384
+ alt?: string;
1385
+ /** JSONP */
1386
+ callback?: string;
1387
+ /** Selector specifying which fields to include in a partial response. */
1388
+ fields?: string;
1389
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1390
+ key?: string;
1391
+ /** OAuth 2.0 token for the current user. */
1392
+ oauth_token?: string;
1393
+ /** Required. The project in which to run this patch in the form `projects/*` */
1394
+ parent: string;
1395
+ /** Returns response with indentations and line breaks. */
1396
+ prettyPrint?: boolean;
1397
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1398
+ quotaUser?: string;
1399
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1400
+ upload_protocol?: string;
1401
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1402
+ uploadType?: string;
1403
+ },
1404
+ body: ExecutePatchJobRequest): Request<PatchJob>;
1405
+ /** Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs. */
1406
+ get(request?: {
1407
+ /** V1 error format. */
1408
+ "$.xgafv"?: string;
1409
+ /** OAuth access token. */
1410
+ access_token?: string;
1411
+ /** Data format for response. */
1412
+ alt?: string;
1413
+ /** JSONP */
1414
+ callback?: string;
1415
+ /** Selector specifying which fields to include in a partial response. */
1416
+ fields?: string;
1417
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1418
+ key?: string;
1419
+ /** Required. Name of the patch in the form `projects/*‍/patchJobs/*` */
1420
+ name: string;
1421
+ /** OAuth 2.0 token for the current user. */
1422
+ oauth_token?: string;
1423
+ /** Returns response with indentations and line breaks. */
1424
+ prettyPrint?: boolean;
1425
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1426
+ quotaUser?: string;
1427
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1428
+ upload_protocol?: string;
1429
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1430
+ uploadType?: string;
1431
+ }): Request<PatchJob>;
1432
+ /** Get a list of patch jobs. */
1433
+ list(request?: {
1434
+ /** V1 error format. */
1435
+ "$.xgafv"?: string;
1436
+ /** OAuth access token. */
1437
+ access_token?: string;
1438
+ /** Data format for response. */
1439
+ alt?: string;
1440
+ /** JSONP */
1441
+ callback?: string;
1442
+ /** Selector specifying which fields to include in a partial response. */
1443
+ fields?: string;
1444
+ /**
1445
+ * If provided, this field specifies the criteria that must be met by patch jobs to be included in the response. Currently, filtering is only available on the patch_deployment
1446
+ * field.
1447
+ */
1448
+ filter?: string;
1449
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1450
+ key?: string;
1451
+ /** OAuth 2.0 token for the current user. */
1452
+ oauth_token?: string;
1453
+ /** The maximum number of instance status to return. */
1454
+ pageSize?: number;
1455
+ /** A pagination token returned from a previous call that indicates where this listing should continue from. */
1456
+ pageToken?: string;
1457
+ /** Required. In the form of `projects/*` */
1458
+ parent: string;
1459
+ /** Returns response with indentations and line breaks. */
1460
+ prettyPrint?: boolean;
1461
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1462
+ quotaUser?: string;
1463
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1464
+ upload_protocol?: string;
1465
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1466
+ uploadType?: string;
1467
+ }): Request<ListPatchJobsResponse>;
1468
+ instanceDetails: InstanceDetailsResource;
1469
+ }
1470
+ interface InstancesResource {
1471
+ /** Lookup the effective guest policy that applies to a VM instance. This lookup merges all policies that are assigned to the instance ancestry. */
1472
+ lookupEffectiveGuestPolicy(request: {
1473
+ /** V1 error format. */
1474
+ "$.xgafv"?: string;
1475
+ /** OAuth access token. */
1476
+ access_token?: string;
1477
+ /** Data format for response. */
1478
+ alt?: string;
1479
+ /** JSONP */
1480
+ callback?: string;
1481
+ /** Selector specifying which fields to include in a partial response. */
1482
+ fields?: string;
1483
+ /** Required. The VM instance whose policies are being looked up. */
1484
+ instance: string;
1485
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1486
+ key?: string;
1487
+ /** OAuth 2.0 token for the current user. */
1488
+ oauth_token?: string;
1489
+ /** Returns response with indentations and line breaks. */
1490
+ prettyPrint?: boolean;
1491
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1492
+ quotaUser?: string;
1493
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1494
+ upload_protocol?: string;
1495
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1496
+ uploadType?: string;
1497
+ /** Request body */
1498
+ resource: LookupEffectiveGuestPolicyRequest;
1499
+ }): Request<EffectiveGuestPolicy>;
1500
+ lookupEffectiveGuestPolicy(request: {
1501
+ /** V1 error format. */
1502
+ "$.xgafv"?: string;
1503
+ /** OAuth access token. */
1504
+ access_token?: string;
1505
+ /** Data format for response. */
1506
+ alt?: string;
1507
+ /** JSONP */
1508
+ callback?: string;
1509
+ /** Selector specifying which fields to include in a partial response. */
1510
+ fields?: string;
1511
+ /** Required. The VM instance whose policies are being looked up. */
1512
+ instance: string;
1513
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1514
+ key?: string;
1515
+ /** OAuth 2.0 token for the current user. */
1516
+ oauth_token?: string;
1517
+ /** Returns response with indentations and line breaks. */
1518
+ prettyPrint?: boolean;
1519
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1520
+ quotaUser?: string;
1521
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1522
+ upload_protocol?: string;
1523
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1524
+ uploadType?: string;
1525
+ },
1526
+ body: LookupEffectiveGuestPolicyRequest): Request<EffectiveGuestPolicy>;
1527
+ }
1528
+ interface ZonesResource {
1529
+ instances: InstancesResource;
1530
+ }
1531
+ interface ProjectsResource {
1532
+ guestPolicies: GuestPoliciesResource;
1533
+ patchDeployments: PatchDeploymentsResource;
1534
+ patchJobs: PatchJobsResource;
1535
+ zones: ZonesResource;
1536
+ }
1537
+
1538
+ const projects: ProjectsResource;
1539
+ }
1540
+ }