blob: ce2a6d1667d0bbc052094ec48892dafa38fd47de [file] [log] [blame]
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
}
}
}
},
"basePath": "",
"baseUrl": "https://osconfig.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Systems Management",
"description": "OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "osconfig:v1beta",
"kind": "discovery#restDescription",
"name": "osconfig",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"description": "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.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"description": "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.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"projects": {
"resources": {
"guestPolicies": {
"methods": {
"create": {
"description": "Create an OS Config guest policy.",
"flatPath": "v1beta/projects/{projectsId}/guestPolicies",
"httpMethod": "POST",
"id": "osconfig.projects.guestPolicies.create",
"parameterOrder": [
"parent"
],
"parameters": {
"guestPolicyId": {
"description": "Required. The logical name of the guest policy in the project\nwith the following restrictions:\n\n* Must contain only lowercase letters, numbers, and hyphens.\n* Must start with a letter.\n* Must be between 1-63 characters.\n* Must end with a number or a letter.\n* Must be unique within the project.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The resource name of the parent using one of the following forms:\n`projects/{project_number}`.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+parent}/guestPolicies",
"request": {
"$ref": "GuestPolicy"
},
"response": {
"$ref": "GuestPolicy"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Delete an OS Config guest policy.",
"flatPath": "v1beta/projects/{projectsId}/guestPolicies/{guestPoliciesId}",
"httpMethod": "DELETE",
"id": "osconfig.projects.guestPolicies.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The resource name of the guest policy using one of the following forms:\n`projects/{project_number}/guestPolicies/{guest_policy_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/guestPolicies/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+name}",
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Get an OS Config guest policy.",
"flatPath": "v1beta/projects/{projectsId}/guestPolicies/{guestPoliciesId}",
"httpMethod": "GET",
"id": "osconfig.projects.guestPolicies.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The resource name of the guest policy using one of the following forms:\n`projects/{project_number}/guestPolicies/{guest_policy_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/guestPolicies/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+name}",
"response": {
"$ref": "GuestPolicy"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Get a page of OS Config guest policies.",
"flatPath": "v1beta/projects/{projectsId}/guestPolicies",
"httpMethod": "GET",
"id": "osconfig.projects.guestPolicies.list",
"parameterOrder": [
"parent"
],
"parameters": {
"pageSize": {
"description": "The maximum number of guest policies to return.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "A pagination token returned from a previous call to `ListGuestPolicies`\nthat indicates where this listing should continue from.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The resource name of the parent using one of the following forms:\n`projects/{project_number}`.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+parent}/guestPolicies",
"response": {
"$ref": "ListGuestPoliciesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
"description": "Update an OS Config guest policy.",
"flatPath": "v1beta/projects/{projectsId}/guestPolicies/{guestPoliciesId}",
"httpMethod": "PATCH",
"id": "osconfig.projects.guestPolicies.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Unique name of the resource in this project using one of the following\nforms:\n`projects/{project_number}/guestPolicies/{guest_policy_id}`.",
"location": "path",
"pattern": "^projects/[^/]+/guestPolicies/[^/]+$",
"required": true,
"type": "string"
},
"updateMask": {
"description": "Field mask that controls which fields of the guest policy should be\nupdated.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "v1beta/{+name}",
"request": {
"$ref": "GuestPolicy"
},
"response": {
"$ref": "GuestPolicy"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"patchDeployments": {
"methods": {
"create": {
"description": "Create an OS Config patch deployment.",
"flatPath": "v1beta/projects/{projectsId}/patchDeployments",
"httpMethod": "POST",
"id": "osconfig.projects.patchDeployments.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. The project to apply this patch deployment to in the form `projects/*`.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
},
"patchDeploymentId": {
"description": "Required. A name for the patch deployment in the project. When creating a name\nthe following rules apply:\n* Must contain only lowercase letters, numbers, and hyphens.\n* Must start with a letter.\n* Must be between 1-63 characters.\n* Must end with a number or a letter.\n* Must be unique within the project.",
"location": "query",
"type": "string"
}
},
"path": "v1beta/{+parent}/patchDeployments",
"request": {
"$ref": "PatchDeployment"
},
"response": {
"$ref": "PatchDeployment"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Delete an OS Config patch deployment.",
"flatPath": "v1beta/projects/{projectsId}/patchDeployments/{patchDeploymentsId}",
"httpMethod": "DELETE",
"id": "osconfig.projects.patchDeployments.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The resource name of the patch deployment in the form\n`projects/*/patchDeployments/*`.",
"location": "path",
"pattern": "^projects/[^/]+/patchDeployments/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+name}",
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Get an OS Config patch deployment.",
"flatPath": "v1beta/projects/{projectsId}/patchDeployments/{patchDeploymentsId}",
"httpMethod": "GET",
"id": "osconfig.projects.patchDeployments.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The resource name of the patch deployment in the form\n`projects/*/patchDeployments/*`.",
"location": "path",
"pattern": "^projects/[^/]+/patchDeployments/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+name}",
"response": {
"$ref": "PatchDeployment"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Get a page of OS Config patch deployments.",
"flatPath": "v1beta/projects/{projectsId}/patchDeployments",
"httpMethod": "GET",
"id": "osconfig.projects.patchDeployments.list",
"parameterOrder": [
"parent"
],
"parameters": {
"pageSize": {
"description": "Optional. The maximum number of patch deployments to return. Default is 100.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. A pagination token returned from a previous call to ListPatchDeployments\nthat indicates where this listing should continue from.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The resource name of the parent in the form `projects/*`.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+parent}/patchDeployments",
"response": {
"$ref": "ListPatchDeploymentsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"patchJobs": {
"methods": {
"cancel": {
"description": "Cancel a patch job. The patch job must be active. Canceled patch jobs\ncannot be restarted.",
"flatPath": "v1beta/projects/{projectsId}/patchJobs/{patchJobsId}:cancel",
"httpMethod": "POST",
"id": "osconfig.projects.patchJobs.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the patch in the form `projects/*/patchJobs/*`",
"location": "path",
"pattern": "^projects/[^/]+/patchJobs/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+name}:cancel",
"request": {
"$ref": "CancelPatchJobRequest"
},
"response": {
"$ref": "PatchJob"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"execute": {
"description": "Patch VM instances by creating and running a patch job.",
"flatPath": "v1beta/projects/{projectsId}/patchJobs:execute",
"httpMethod": "POST",
"id": "osconfig.projects.patchJobs.execute",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. The project in which to run this patch in the form `projects/*`",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+parent}/patchJobs:execute",
"request": {
"$ref": "ExecutePatchJobRequest"
},
"response": {
"$ref": "PatchJob"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Get the patch job. This can be used to track the progress of an\nongoing patch job or review the details of completed jobs.",
"flatPath": "v1beta/projects/{projectsId}/patchJobs/{patchJobsId}",
"httpMethod": "GET",
"id": "osconfig.projects.patchJobs.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the patch in the form `projects/*/patchJobs/*`",
"location": "path",
"pattern": "^projects/[^/]+/patchJobs/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+name}",
"response": {
"$ref": "PatchJob"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Get a list of patch jobs.",
"flatPath": "v1beta/projects/{projectsId}/patchJobs",
"httpMethod": "GET",
"id": "osconfig.projects.patchJobs.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "If provided, this field specifies the criteria that must be met by patch\njobs to be included in the response.\nCurrently, filtering is only available on the patch_deployment field.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "The maximum number of instance status to return.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "A pagination token returned from a previous call\nthat indicates where this listing should continue from.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. In the form of `projects/*`",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+parent}/patchJobs",
"response": {
"$ref": "ListPatchJobsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
},
"resources": {
"instanceDetails": {
"methods": {
"list": {
"description": "Get a list of instance details for a given patch job.",
"flatPath": "v1beta/projects/{projectsId}/patchJobs/{patchJobsId}/instanceDetails",
"httpMethod": "GET",
"id": "osconfig.projects.patchJobs.instanceDetails.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "A filter expression that filters results listed in the response. This\nfield supports filtering results by instance zone, name, state, or\n`failure_reason`.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "The maximum number of instance details records to return. Default is 100.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "A pagination token returned from a previous call\nthat indicates where this listing should continue from.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The parent for the instances are in the form of `projects/*/patchJobs/*`.",
"location": "path",
"pattern": "^projects/[^/]+/patchJobs/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+parent}/instanceDetails",
"response": {
"$ref": "ListPatchJobInstanceDetailsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
},
"zones": {
"resources": {
"instances": {
"methods": {
"lookupEffectiveGuestPolicy": {
"description": "Lookup the effective guest policy that applies to a VM instance. This\nlookup merges all policies that are assigned to the instance ancestry.",
"flatPath": "v1beta/projects/{projectsId}/zones/{zonesId}/instances/{instancesId}:lookupEffectiveGuestPolicy",
"httpMethod": "POST",
"id": "osconfig.projects.zones.instances.lookupEffectiveGuestPolicy",
"parameterOrder": [
"instance"
],
"parameters": {
"instance": {
"description": "Required. The VM instance whose policies are being looked up.",
"location": "path",
"pattern": "^projects/[^/]+/zones/[^/]+/instances/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta/{+instance}:lookupEffectiveGuestPolicy",
"request": {
"$ref": "LookupEffectiveGuestPolicyRequest"
},
"response": {
"$ref": "EffectiveGuestPolicy"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
}
}
},
"revision": "20200207",
"rootUrl": "https://osconfig.googleapis.com/",
"schemas": {
"AptRepository": {
"description": "Represents a single Apt package repository. This repository is added to\na repo file that is stored at\n`/etc/apt/sources.list.d/google_osconfig.list`.",
"id": "AptRepository",
"properties": {
"archiveType": {
"description": "Type of archive files in this repository. The default behavior is DEB.",
"enum": [
"ARCHIVE_TYPE_UNSPECIFIED",
"DEB",
"DEB_SRC"
],
"enumDescriptions": [
"Unspecified.",
"DEB indicates that the archive contains binary files.",
"DEB_SRC indicates that the archive contains source files."
],
"type": "string"
},
"components": {
"description": "Required. List of components for this repository. Must contain at least one item.",
"items": {
"type": "string"
},
"type": "array"
},
"distribution": {
"description": "Required. Distribution of this repository.",
"type": "string"
},
"gpgKey": {
"description": "URI of the key file for this repository. The agent maintains\na keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg` containing\nall the keys in any applied guest policy.",
"type": "string"
},
"uri": {
"description": "Required. URI for this repository.",
"type": "string"
}
},
"type": "object"
},
"AptSettings": {
"description": "Apt patching is completed by executing `apt-get update \u0026\u0026 apt-get\nupgrade`. Additional options can be set to control how this is executed.",
"id": "AptSettings",
"properties": {
"excludes": {
"description": "List of packages to exclude from update. These packages will be excluded",
"items": {
"type": "string"
},
"type": "array"
},
"exclusivePackages": {
"description": "An exclusive list of packages to be updated. These are the only packages\nthat will be updated. If these packages are not installed, they will be\nignored. This field cannot be specified with any other patch configuration\nfields.",
"items": {
"type": "string"
},
"type": "array"
},
"type": {
"description": "By changing the type to DIST, the patching is performed\nusing `apt-get dist-upgrade` instead.",
"enum": [
"TYPE_UNSPECIFIED",
"DIST",
"UPGRADE"
],
"enumDescriptions": [
"By default, upgrade will be performed.",
"Runs `apt-get dist-upgrade`.",
"Runs `apt-get upgrade`."
],
"type": "string"
}
},
"type": "object"
},
"Assignment": {
"description": "An assignment represents the group or groups of VM instances that the policy\napplies to.\n\nIf an assignment is empty, it applies to all VM instances. Otherwise, the\ntargeted VM instances must meet all the criteria specified. So if both\nlabels and zones are specified, the policy applies to VM instances with those\nlabels and in those zones.",
"id": "Assignment",
"properties": {
"groupLabels": {
"description": "Targets instances matching at least one of these label sets. This allows\nan assignment to target disparate groups, for example \"env=prod or\nenv=staging\".",
"items": {
"$ref": "AssignmentGroupLabel"
},
"type": "array"
},
"instanceNamePrefixes": {
"description": "Targets VM instances whose name starts with one of these prefixes.\n\nLike labels, this is another way to group VM instances when targeting\nconfigs, for example prefix=\"prod-\".\n\nOnly supported for project-level policies.",
"items": {
"type": "string"
},
"type": "array"
},
"instances": {
"description": "Targets any of the instances specified. Instances are specified by their\nURI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`.\n\nInstance targeting is uncommon and is supported to facilitate the\nmanagement of changes by the instance or to target specific VM instances\nfor development and testing.\n\nOnly supported for project-level policies and must reference instances\nwithin this project.",
"items": {
"type": "string"
},
"type": "array"
},
"osTypes": {
"description": "Targets VM instances matching at least one of the following OS types.\n\nVM instances must match all supplied criteria for a given OsType to be\nincluded.",
"items": {
"$ref": "AssignmentOsType"
},
"type": "array"
},
"zones": {
"description": "Targets instances in any of these zones. Leave empty to target instances\nin any zone.\n\nZonal targeting is uncommon and is supported to facilitate the management\nof changes by zone.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"AssignmentGroupLabel": {
"description": "Represents a group of VM intances that can be identified as having all\nthese labels, for example \"env=prod and app=web\".",
"id": "AssignmentGroupLabel",
"properties": {
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Google Compute Engine instance labels that must be present for an\ninstance to be included in this assignment group.",
"type": "object"
}
},
"type": "object"
},
"AssignmentOsType": {
"description": "Defines the criteria for selecting VM Instances by OS type.",
"id": "AssignmentOsType",
"properties": {
"osArchitecture": {
"description": "Targets VM instances with OS Inventory enabled and having the following\nOS architecture.",
"type": "string"
},
"osShortName": {
"description": "Targets VM instances with OS Inventory enabled and having the following\nOS short name, for example \"debian\" or \"windows\".",
"type": "string"
},
"osVersion": {
"description": "Targets VM instances with OS Inventory enabled and having the following\nfollowing OS version.",
"type": "string"
}
},
"type": "object"
},
"CancelPatchJobRequest": {
"description": "Message for canceling a patch job.",
"id": "CancelPatchJobRequest",
"properties": {},
"type": "object"
},
"EffectiveGuestPolicy": {
"description": "The effective guest policy that applies to a VM instance.",
"id": "EffectiveGuestPolicy",
"properties": {
"packageRepositories": {
"description": "List of package repository configurations assigned to the VM instance.",
"items": {
"$ref": "EffectiveGuestPolicySourcedPackageRepository"
},
"type": "array"
},
"packages": {
"description": "List of package configurations assigned to the VM instance.",
"items": {
"$ref": "EffectiveGuestPolicySourcedPackage"
},
"type": "array"
},
"softwareRecipes": {
"description": "List of recipes assigned to the VM instance.",
"items": {
"$ref": "EffectiveGuestPolicySourcedSoftwareRecipe"
},
"type": "array"
}
},
"type": "object"
},
"EffectiveGuestPolicySourcedPackage": {
"description": "A guest policy package including its source.",
"id": "EffectiveGuestPolicySourcedPackage",
"properties": {
"package": {
"$ref": "Package",
"description": "A software package to configure on the VM instance."
},
"source": {
"description": "Name of the guest policy providing this config.",
"type": "string"
}
},
"type": "object"
},
"EffectiveGuestPolicySourcedPackageRepository": {
"description": "A guest policy package repository including its source.",
"id": "EffectiveGuestPolicySourcedPackageRepository",
"properties": {
"packageRepository": {
"$ref": "PackageRepository",
"description": "A software package repository to configure on the VM instance."
},
"source": {
"description": "Name of the guest policy providing this config.",
"type": "string"
}
},
"type": "object"
},
"EffectiveGuestPolicySourcedSoftwareRecipe": {
"description": "A guest policy recipe including its source.",
"id": "EffectiveGuestPolicySourcedSoftwareRecipe",
"properties": {
"softwareRecipe": {
"$ref": "SoftwareRecipe",
"description": "A software recipe to configure on the VM instance."
},
"source": {
"description": "Name of the guest policy providing this config.",
"type": "string"
}
},
"type": "object"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"id": "Empty",
"properties": {},
"type": "object"
},
"ExecStep": {
"description": "A step that runs an executable for a PatchJob.",
"id": "ExecStep",
"properties": {
"linuxExecStepConfig": {
"$ref": "ExecStepConfig",
"description": "The ExecStepConfig for all Linux VMs targeted by the PatchJob."
},
"windowsExecStepConfig": {
"$ref": "ExecStepConfig",
"description": "The ExecStepConfig for all Windows VMs targeted by the PatchJob."
}
},
"type": "object"
},
"ExecStepConfig": {
"description": "Common configurations for an ExecStep.",
"id": "ExecStepConfig",
"properties": {
"allowedSuccessCodes": {
"description": "Defaults to [0]. A list of possible return values that the\nexecution can return to indicate a success.",
"items": {
"format": "int32",
"type": "integer"
},
"type": "array"
},
"gcsObject": {
"$ref": "GcsObject",
"description": "A Google Cloud Storage object containing the executable."
},
"interpreter": {
"description": "The script interpreter to use to run the script. If no interpreter is\nspecified the script will be executed directly, which will likely\nonly succeed for scripts with [shebang lines]\n(https://en.wikipedia.org/wiki/Shebang_\\(Unix\\)).",
"enum": [
"INTERPRETER_UNSPECIFIED",
"SHELL",
"POWERSHELL"
],
"enumDescriptions": [
"Invalid for a Windows ExecStepConfig. For a Linux ExecStepConfig, the\ninterpreter will be parsed from the shebang line of the script if\nunspecified.",
"Indicates that the script is run with `/bin/sh` on Linux and `cmd`\non Windows.",
"Indicates that the file is run with PowerShell flags\n`-NonInteractive`, `-NoProfile`, and `-ExecutionPolicy Bypass`."
],
"type": "string"
},
"localPath": {
"description": "An absolute path to the executable on the VM.",
"type": "string"
}
},
"type": "object"
},
"ExecutePatchJobRequest": {
"description": "A request message to initiate patching across Google Compute Engine\ninstances.",
"id": "ExecutePatchJobRequest",
"properties": {
"description": {
"description": "Description of the patch job. Length of the description is limited\nto 1024 characters.",
"type": "string"
},
"displayName": {
"description": "Display name for this patch job. This does not have to be unique.",
"type": "string"
},
"dryRun": {
"description": "If this patch is a dry-run only, instances are contacted but\nwill do nothing.",
"type": "boolean"
},
"duration": {
"description": "Duration of the patch job. After the duration ends, the patch job\ntimes out.",
"format": "google-duration",
"type": "string"
},
"instanceFilter": {
"$ref": "PatchInstanceFilter",
"description": "Required. Instances to patch, either explicitly or filtered by some criteria such\nas zone or labels."
},
"patchConfig": {
"$ref": "PatchConfig",
"description": "Patch configuration being applied. If omitted, instances are\npatched using the default configurations."
}
},
"type": "object"
},
"GcsObject": {
"description": "Google Cloud Storage object representation.",
"id": "GcsObject",
"properties": {
"bucket": {
"description": "Required. Bucket of the Google Cloud Storage object.",
"type": "string"
},
"generationNumber": {
"description": "Required. Generation number of the Google Cloud Storage object. This is used to\nensure that the ExecStep specified by this PatchJob does not change.",
"format": "int64",
"type": "string"
},
"object": {
"description": "Required. Name of the Google Cloud Storage object.",
"type": "string"
}
},
"type": "object"
},
"GooRepository": {
"description": "Represents a Goo package repository. These is added to a repo file\nthat is stored at C:/ProgramData/GooGet/repos/google_osconfig.repo.",
"id": "GooRepository",
"properties": {
"name": {
"description": "Required. The name of the repository.",
"type": "string"
},
"url": {
"description": "Required. The url of the repository.",
"type": "string"
}
},
"type": "object"
},
"GooSettings": {
"description": "Googet patching is performed by running `googet update`.",
"id": "GooSettings",
"properties": {},
"type": "object"
},
"GuestPolicy": {
"description": "An OS Config resource representing a guest configuration policy. These\npolicies represent the desired state for VM instance guest environments\nincluding packages to install or remove, package repository configurations,\nand software to install.",
"id": "GuestPolicy",
"properties": {
"assignment": {
"$ref": "Assignment",
"description": "Required. Specifies the VM instances that are assigned to this policy. This allows\nyou to target sets or groups of VM instances by different parameters such\nas labels, names, OS, or zones.\n\nIf left empty, all VM instances underneath this policy are targeted.\n\nAt the same level in the resource hierarchy (that is within a project), the\nservice prevents the creation of multiple policies that conflict with\neach other. For more information, see how the service [handles assignment\nconflicts](/compute/docs/os-config-management/create-guest-policy#handle-conflicts)."
},
"createTime": {
"description": "Output only. Time this guest policy was created.",
"format": "google-datetime",
"type": "string"
},
"description": {
"description": "Description of the guest policy. Length of the description is limited\nto 1024 characters.",
"type": "string"
},
"etag": {
"description": "The etag for this guest policy.\nIf this is provided on update, it must match the server's etag.",
"type": "string"
},
"name": {
"description": "Required. Unique name of the resource in this project using one of the following\nforms:\n`projects/{project_number}/guestPolicies/{guest_policy_id}`.",
"type": "string"
},
"packageRepositories": {
"description": "A list of package repositories to configure on the VM instance. This is\ndone before any other configs are applied so they can use these repos.\nPackage repositories are only configured if the corresponding package\nmanager(s) are available.",
"items": {
"$ref": "PackageRepository"
},
"type": "array"
},
"packages": {
"description": "The software packages to be managed by this policy.",
"items": {
"$ref": "Package"
},
"type": "array"
},
"recipes": {
"description": "A list of Recipes to install on the VM instance.",
"items": {
"$ref": "SoftwareRecipe"
},
"type": "array"
},
"updateTime": {
"description": "Output only. Last time this guest policy was updated.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"ListGuestPoliciesResponse": {
"description": "A response message for listing guest policies.",
"id": "ListGuestPoliciesResponse",
"properties": {
"guestPolicies": {
"description": "The list of GuestPolicies.",
"items": {
"$ref": "GuestPolicy"
},
"type": "array"
},
"nextPageToken": {
"description": "A pagination token that can be used to get the next page\nof guest policies.",
"type": "string"
}
},
"type": "object"
},
"ListPatchDeploymentsResponse": {
"description": "A response message for listing patch deployments.",
"id": "ListPatchDeploymentsResponse",
"properties": {
"nextPageToken": {
"description": "A pagination token that can be used to get the next page of patch\ndeployments.",
"type": "string"
},
"patchDeployments": {
"description": "The list of patch deployments.",
"items": {
"$ref": "PatchDeployment"
},
"type": "array"
}
},
"type": "object"
},
"ListPatchJobInstanceDetailsResponse": {
"description": "A response message for listing the instances details for a patch job.",
"id": "ListPatchJobInstanceDetailsResponse",
"properties": {
"nextPageToken": {
"description": "A pagination token that can be used to get the next page of results.",
"type": "string"
},
"patchJobInstanceDetails": {
"description": "A list of instance status.",
"items": {
"$ref": "PatchJobInstanceDetails"
},
"type": "array"
}
},
"type": "object"
},
"ListPatchJobsResponse": {
"description": "A response message for listing patch jobs.",
"id": "ListPatchJobsResponse",
"properties": {
"nextPageToken": {
"description": "A pagination token that can be used to get the next page of results.",
"type": "string"
},
"patchJobs": {
"description": "The list of patch jobs.",
"items": {
"$ref": "PatchJob"
},
"type": "array"
}
},
"type": "object"
},
"LookupEffectiveGuestPolicyRequest": {
"description": "A request message for getting the effective guest policy assigned to the\ninstance.",
"id": "LookupEffectiveGuestPolicyRequest",
"properties": {
"osArchitecture": {
"description": "Architecture of OS running on the instance. The OS Config agent only\nprovides this field for targeting if OS Inventory is enabled for that\ninstance.",
"type": "string"
},
"osShortName": {
"description": "Short name of the OS running on the instance. The OS Config agent only\nprovides this field for targeting if OS Inventory is enabled for that\ninstance.",
"type": "string"
},
"osVersion": {
"description": "Version of the OS running on the instance. The OS Config agent only\nprovides this field for targeting if OS Inventory is enabled for that\nVM instance.",
"type": "string"
}
},
"type": "object"
},
"MonthlySchedule": {
"description": "Represents a monthly schedule. An example of a valid monthly schedule is\n\"on the third Tuesday of the month\" or \"on the 15th of the month\".",
"id": "MonthlySchedule",
"properties": {
"monthDay": {
"description": "Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1\nindicates the last day of the month.\nMonths without the target day will be skipped. For example, a schedule to\nrun \"every month on the 31st\" will not run in February, April, June, etc.",
"format": "int32",
"type": "integer"
},
"weekDayOfMonth": {
"$ref": "WeekDayOfMonth",
"description": "Required. Week day in a month."
}
},
"type": "object"
},
"OneTimeSchedule": {
"description": "Sets the time for a one time patch deployment. Timestamp is in\n\u003ca href=\"https://www.ietf.org/rfc/rfc3339.txt\" target=\"_blank\"\u003eRFC3339\u003c/a\u003e\ntext format.",
"id": "OneTimeSchedule",
"properties": {
"executeTime": {
"description": "Required. The desired patch job execution time.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"Package": {
"description": "Package is a reference to the software package to be installed or removed.\nThe agent on the VM instance uses the system package manager to apply the\nconfig.\n\n\nThese are the commands that the agent uses to install or remove\npackages.\n\nApt\ninstall: `apt-get update \u0026\u0026 apt-get -y install package1 package2 package3`\nremove: `apt-get -y remove package1 package2 package3`\n\nYum\ninstall: `yum -y install package1 package2 package3`\nremove: `yum -y remove package1 package2 package3`\n\nZypper\ninstall: `zypper install package1 package2 package3`\nremove: `zypper rm package1 package2`\n\nGooget\ninstall: `googet -noconfirm install package1 package2 package3`\nremove: `googet -noconfirm remove package1 package2 package3`",
"id": "Package",
"properties": {
"desiredState": {
"description": "The desired_state the agent should maintain for this package. The\ndefault is to ensure the package is installed.",
"enum": [
"DESIRED_STATE_UNSPECIFIED",
"INSTALLED",
"UPDATED",
"REMOVED"
],
"enumDescriptions": [
"The default is to ensure the package is installed.",
"The agent ensures that the package is installed.",
"The agent ensures that the package is installed and\nperiodically checks for and install any updates.",
"The agent ensures that the package is not installed and uninstall it\nif detected."
],
"type": "string"
},
"manager": {
"description": "Type of package manager that can be used to install this package.\nIf a system does not have the package manager, the package is not\ninstalled or removed no error message is returned. By default,\nor if you specify `ANY`,\nthe agent attempts to install and remove this package using the default\npackage manager. This is useful when creating a policy that applies to\ndifferent types of systems.\n\nThe default behavior is ANY.",
"enum": [
"MANAGER_UNSPECIFIED",
"ANY",
"APT",
"YUM",
"ZYPPER",
"GOO"
],
"enumDescriptions": [
"The default behavior is ANY.",
"Apply this package config using the default system package manager.",
"Apply this package config only if Apt is available on the system.",
"Apply this package config only if Yum is available on the system.",
"Apply this package config only if Zypper is available on the system.",
"Apply this package config only if GooGet is available on the system."
],
"type": "string"
},
"name": {
"description": "Required. The name of the package. A package is uniquely identified for conflict\nvalidation by checking the package name and the manager(s) that the\npackage targets.",
"type": "string"
}
},
"type": "object"
},
"PackageRepository": {
"description": "A package repository.",
"id": "PackageRepository",
"properties": {
"apt": {
"$ref": "AptRepository",
"description": "An Apt Repository."
},
"goo": {
"$ref": "GooRepository",
"description": "A Goo Repository."
},
"yum": {
"$ref": "YumRepository",
"description": "A Yum Repository."
},
"zypper": {
"$ref": "ZypperRepository",
"description": "A Zypper Repository."
}
},
"type": "object"
},
"PatchConfig": {
"description": "Patch configuration specifications. Contains details on how to apply the\npatch(es) to a VM instance.",
"id": "PatchConfig",
"properties": {
"apt": {
"$ref": "AptSettings",
"description": "Apt update settings. Use this setting to override the default `apt` patch\nrules."
},
"goo": {
"$ref": "GooSettings",
"description": "Goo update settings. Use this setting to override the default `goo` patch\nrules."
},
"postStep": {
"$ref": "ExecStep",
"description": "The `ExecStep` to run after the patch update."
},
"preStep": {
"$ref": "ExecStep",
"description": "The `ExecStep` to run before the patch update."
},
"rebootConfig": {
"description": "Post-patch reboot settings.",
"enum": [
"REBOOT_CONFIG_UNSPECIFIED",
"DEFAULT",
"ALWAYS",
"NEVER"
],
"enumDescriptions": [
"The default behavior is DEFAULT.",
"The agent decides if a reboot is necessary by checking signals such as\nregistry keys on Windows or `/var/run/reboot-required` on APT based\nsystems. On RPM based systems, a set of core system package install times\nare compared with system boot time.",
"Always reboot the machine after the update completes.",
"Never reboot the machine after the update completes."
],
"type": "string"
},
"windowsUpdate": {
"$ref": "WindowsUpdateSettings",
"description": "Windows update settings. Use this override the default windows patch rules."
},
"yum": {
"$ref": "YumSettings",
"description": "Yum update settings. Use this setting to override the default `yum` patch\nrules."
},
"zypper": {
"$ref": "ZypperSettings",
"description": "Zypper update settings. Use this setting to override the default `zypper`\npatch rules."
}
},
"type": "object"
},
"PatchDeployment": {
"description": "Patch deployments are configurations that individual patch jobs use to\ncomplete a patch. These configurations include instance filter, package\nrepository settings, and a schedule.",
"id": "PatchDeployment",
"properties": {
"createTime": {
"description": "Output only. Time the patch deployment was created. Timestamp is in\n\u003ca href=\"https://www.ietf.org/rfc/rfc3339.txt\" target=\"_blank\"\u003eRFC3339\u003c/a\u003e\ntext format.",
"format": "google-datetime",
"type": "string"
},
"description": {
"description": "Optional. Description of the patch deployment. Length of the description is limited\nto 1024 characters.",
"type": "string"
},
"duration": {
"description": "Optional. Duration of the patch. After the duration ends, the patch times out.",
"format": "google-duration",
"type": "string"
},
"instanceFilter": {
"$ref": "PatchInstanceFilter",
"description": "Required. VM instances to patch."
},
"lastExecuteTime": {
"description": "Output only. The last time a patch job was started by this deployment.\nTimestamp is in\n\u003ca href=\"https://www.ietf.org/rfc/rfc3339.txt\" target=\"_blank\"\u003eRFC3339\u003c/a\u003e\ntext format.",
"format": "google-datetime",
"type": "string"
},
"name": {
"description": "Unique name for the patch deployment resource in a project. The patch\ndeployment name is in the form:\n`projects/{project_id}/patchDeployments/{patch_deployment_id}`.\nThis field is ignored when you create a new patch deployment.",
"type": "string"
},
"oneTimeSchedule": {
"$ref": "OneTimeSchedule",
"description": "Required. Schedule a one-time execution."
},
"patchConfig": {
"$ref": "PatchConfig",
"description": "Optional. Patch configuration that is applied."
},
"recurringSchedule": {
"$ref": "RecurringSchedule",
"description": "Required. Schedule recurring executions."
},
"updateTime": {
"description": "Output only. Time the patch deployment was last updated. Timestamp is in\n\u003ca href=\"https://www.ietf.org/rfc/rfc3339.txt\" target=\"_blank\"\u003eRFC3339\u003c/a\u003e\ntext format.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"PatchInstanceFilter": {
"description": "A filter to target VM instances for patching. The targeted\nVMs must meet all criteria specified. So if both labels and zones are\nspecified, the patch job targets only VMs with those labels and in those\nzones.",
"id": "PatchInstanceFilter",
"properties": {
"all": {
"description": "Target all VM instances in the project. If true, no other criteria is\npermitted.",
"type": "boolean"
},
"groupLabels": {
"description": "Targets VM instances matching at least one of these label sets. This allows\ntargeting of disparate groups, for example \"env=prod or env=staging\".",
"items": {
"$ref": "PatchInstanceFilterGroupLabel"
},
"type": "array"
},
"instanceNamePrefixes": {
"description": "Targets VMs whose name starts with one of these prefixes. Similar to\nlabels, this is another way to group VMs when targeting configs, for\nexample prefix=\"prod-\".",
"items": {
"type": "string"
},
"type": "array"
},
"instances": {
"description": "Targets any of the VM instances specified. Instances are specified by their\nURI in the form `zones/[ZONE]/instances/[INSTANCE_NAME],\n`projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or\n`https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`",
"items": {
"type": "string"
},
"type": "array"
},
"zones": {
"description": "Targets VM instances in ANY of these zones. Leave empty to target VM\ninstances in any zone.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"PatchInstanceFilterGroupLabel": {
"description": "Represents a group of VMs that can be identified as having all these\nlabels, for example \"env=prod and app=web\".",
"id": "PatchInstanceFilterGroupLabel",
"properties": {
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Google Compute Engine instance labels that must be present for a VM\ninstance to be targeted by this filter.",
"type": "object"
}
},
"type": "object"
},
"PatchJob": {
"description": "A high level representation of a patch job that is either in progress\nor has completed.\n\nInstances details are not included in the job. To paginate through instance\ndetails, use ListPatchJobInstanceDetails.",
"id": "PatchJob",
"properties": {
"createTime": {
"description": "Time this patch job was created.",
"format": "google-datetime",
"type": "string"
},
"description": {
"description": "Description of the patch job. Length of the description is limited\nto 1024 characters.",
"type": "string"
},
"displayName": {
"description": "Display name for this patch job. This is not a unique identifier.",
"type": "string"
},
"dryRun": {
"description": "If this patch job is a dry run, the agent reports that it has\nfinished without running any updates on the VM instance.",
"type": "boolean"
},
"duration": {
"description": "Duration of the patch job. After the duration ends, the\npatch job times out.",
"format": "google-duration",
"type": "string"
},
"errorMessage": {
"description": "If this patch job failed, this message provides information about the\nfailure.",
"type": "string"
},
"instanceDetailsSummary": {
"$ref": "PatchJobInstanceDetailsSummary",
"description": "Summary of instance details."
},
"instanceFilter": {
"$ref": "PatchInstanceFilter",
"description": "Instances to patch."
},
"name": {
"description": "Unique identifier for this patch job in the form\n`projects/*/patchJobs/*`",
"type": "string"
},
"patchConfig": {
"$ref": "PatchConfig",
"description": "Patch configuration being applied."
},
"patchDeployment": {
"description": "Output only. Name of the patch deployment that created this patch job.",
"type": "string"
},
"percentComplete": {
"description": "Reflects the overall progress of the patch job in the range of\n0.0 being no progress to 100.0 being complete.",
"format": "double",
"type": "number"
},
"state": {
"description": "The current state of the PatchJob .",
"enum": [
"STATE_UNSPECIFIED",
"STARTED",
"INSTANCE_LOOKUP",
"PATCHING",
"SUCCEEDED",
"COMPLETED_WITH_ERRORS",
"CANCELED",
"TIMED_OUT"
],
"enumDescriptions": [
"State must be specified.",
"The patch job was successfully initiated.",
"The patch job is looking up instances to run the patch on.",
"Instances are being patched.",
"Patch job completed successfully.",
"Patch job completed but there were errors.",
"The patch job was canceled.",
"The patch job timed out."
],
"type": "string"
},
"updateTime": {
"description": "Last time this patch job was updated.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"PatchJobInstanceDetails": {
"description": "Patch details for a VM instance.",
"id": "PatchJobInstanceDetails",
"properties": {
"attemptCount": {
"description": "The number of times the agent that the agent attempts to apply the patch.",
"format": "int64",
"type": "string"
},
"failureReason": {
"description": "If the patch fails, this field provides the reason.",
"type": "string"
},
"instanceSystemId": {
"description": "The unique identifier for the instance. This identifier is\ndefined by the server.",
"type": "string"
},
"name": {
"description": "The instance name in the form `projects/*/zones/*/instances/*`",
"type": "string"
},
"state": {
"description": "Current state of instance patch.",
"enum": [
"PATCH_STATE_UNSPECIFIED",
"PENDING",
"INACTIVE",
"NOTIFIED",
"STARTED",
"DOWNLOADING_PATCHES",
"APPLYING_PATCHES",
"REBOOTING",
"SUCCEEDED",
"SUCCEEDED_REBOOT_REQUIRED",
"FAILED",
"ACKED",
"TIMED_OUT",
"RUNNING_PRE_PATCH_STEP",
"RUNNING_POST_PATCH_STEP",
"NO_AGENT_DETECTED"
],
"enumDescriptions": [
"Unspecified.",
"The instance is not yet notified.",
"Instance is inactive and cannot be patched.",
"The instance is notified that it should be patched.",
"The instance has started the patching process.",
"The instance is downloading patches.",
"The instance is applying patches.",
"The instance is rebooting.",
"The instance has completed applying patches.",
"The instance has completed applying patches but a reboot is required.",
"The instance has failed to apply the patch.",
"The instance acked the notification and will start shortly.",
"The instance exceeded the time out while applying the patch.",
"The instance is running the pre-patch step.",
"The instance is running the post-patch step.",
"The service could not detect the presence of the agent. Check to ensure\nthat the agent is installed, running, and able to communicate with the\nservice."
],
"type": "string"
}
},
"type": "object"
},
"PatchJobInstanceDetailsSummary": {
"description": "A summary of the current patch state across all instances that this patch\njob affects. Contains counts of instances in different states. These states\nmap to `InstancePatchState`. List patch job instance details to see the\nspecific states of each instance.",
"id": "PatchJobInstanceDetailsSummary",
"properties": {
"ackedInstanceCount": {
"description": "Number of instances that have acked and will start shortly.",
"format": "int64",
"type": "string"
},
"applyingPatchesInstanceCount": {
"description": "Number of instances that are applying patches.",
"format": "int64",
"type": "string"
},
"downloadingPatchesInstanceCount": {
"description": "Number of instances that are downloading patches.",
"format": "int64",
"type": "string"
},
"failedInstanceCount": {
"description": "Number of instances that failed.",
"format": "int64",
"type": "string"
},
"inactiveInstanceCount": {
"description": "Number of instances that are inactive.",
"format": "int64",
"type": "string"
},
"noAgentDetectedInstanceCount": {
"description": "Number of instances that do not appear to be running the agent. Check to\nensure that the agent is installed, running, and able to communicate with\nthe service.",
"format": "int64",
"type": "string"
},
"notifiedInstanceCount": {
"description": "Number of instances notified about patch job.",
"format": "int64",
"type": "string"
},
"pendingInstanceCount": {
"description": "Number of instances pending patch job.",
"format": "int64",
"type": "string"
},
"postPatchStepInstanceCount": {
"description": "Number of instances that are running the post-patch step.",
"format": "int64",
"type": "string"
},
"prePatchStepInstanceCount": {
"description": "Number of instances that are running the pre-patch step.",
"format": "int64",
"type": "string"
},
"rebootingInstanceCount": {
"description": "Number of instances rebooting.",
"format": "int64",
"type": "string"
},
"startedInstanceCount": {
"description": "Number of instances that have started.",
"format": "int64",
"type": "string"
},
"succeededInstanceCount": {
"description": "Number of instances that have completed successfully.",
"format": "int64",
"type": "string"
},
"succeededRebootRequiredInstanceCount": {
"description": "Number of instances that require reboot.",
"format": "int64",
"type": "string"
},
"timedOutInstanceCount": {
"description": "Number of instances that exceeded the time out while applying the patch.",
"format": "int64",
"type": "string"
}
},
"type": "object"
},
"RecurringSchedule": {
"description": "Sets the time for recurring patch deployments.",
"id": "RecurringSchedule",
"properties": {
"endTime": {
"description": "Optional. The end time at which a recurring patch deployment schedule is no longer\nactive.",
"format": "google-datetime",
"type": "string"
},
"frequency": {
"description": "Required. The frequency unit of this recurring schedule.",
"enum": [
"FREQUENCY_UNSPECIFIED",
"WEEKLY",
"MONTHLY"
],
"enumDescriptions": [
"Invalid. A frequency must be specified.",
"Indicates that the frequency should be expressed in terms of\nweeks.",
"Indicates that the frequency should be expressed in terms of\nmonths."
],
"type": "string"
},
"lastExecuteTime": {
"description": "Output only. The time the last patch job ran successfully.",
"format": "google-datetime",
"type": "string"
},
"monthly": {
"$ref": "MonthlySchedule",
"description": "Required. Schedule with monthly executions."
},
"nextExecuteTime": {
"description": "Output only. The time the next patch job is scheduled to run.",
"format": "google-datetime",
"type": "string"
},
"startTime": {
"description": "Optional. The time that the recurring schedule becomes effective.\nDefaults to `create_time` of the patch deployment.",
"format": "google-datetime",
"type": "string"
},
"timeOfDay": {
"$ref": "TimeOfDay",
"description": "Required. Time of the day to run a recurring deployment."
},
"timeZone": {
"$ref": "TimeZone",
"description": "Required. Defines the time zone that `time_of_day` is relative to.\nThe rules for daylight saving time are determined by the chosen time zone."
},
"weekly": {
"$ref": "WeeklySchedule",
"description": "Required. Schedule with weekly executions."
}
},
"type": "object"
},
"SoftwareRecipe": {
"description": "A software recipe is a set of instructions for installing and configuring a\npiece of software. It consists of a set of artifacts that are\ndownloaded, and a set of steps that install, configure, and/or update the\nsoftware.\n\nRecipes support installing and updating software from artifacts in the\nfollowing formats:\nZip archive, Tar archive, Windows MSI, Debian package, and RPM package.\n\nAdditionally, recipes support executing a script (either defined in a file or\ndirectly in this api) in bash, sh, cmd, and powershell.\n\nUpdating a software recipe\n\nIf a recipe is assigned to an instance and there is a recipe with the same\nname but a lower version already installed and the assigned state\nof the recipe is `INSTALLED_KEEP_UPDATED`, then the recipe is updated to\nthe new version.\n\nScript Working Directories\n\nEach script or execution step is run in its own temporary directory which\nis deleted after completing the step.",
"id": "SoftwareRecipe",
"properties": {
"artifacts": {
"description": "Resources available to be used in the steps in the recipe.",
"items": {
"$ref": "SoftwareRecipeArtifact"
},
"type": "array"
},
"desiredState": {
"description": "Default is INSTALLED. The desired state the agent should maintain for this\nrecipe.\n\nINSTALLED: The software recipe is installed on the instance but\n won't be updated to new versions.\nINSTALLED_KEEP_UPDATED: The software recipe is installed on the\n instance. The recipe is updated to a higher\n version, if a higher version of the recipe is\n assigned to this instance.\nREMOVE: Remove is unsupported for software recipes and attempts to\n create or update a recipe to the REMOVE state is rejected.",
"enum": [
"DESIRED_STATE_UNSPECIFIED",
"INSTALLED",
"UPDATED",
"REMOVED"
],
"enumDescriptions": [
"The default is to ensure the package is installed.",
"The agent ensures that the package is installed.",
"The agent ensures that the package is installed and\nperiodically checks for and install any updates.",
"The agent ensures that the package is not installed and uninstall it\nif detected."
],
"type": "string"
},
"installSteps": {
"description": "Actions to be taken for installing this recipe. On failure it stops\nexecuting steps and does not attempt another installation. Any steps taken\n(including partially completed steps) are not rolled back.",
"items": {
"$ref": "SoftwareRecipeStep"
},
"type": "array"
},
"name": {
"description": "Required. Unique identifier for the recipe. Only one recipe with a given name is\ninstalled on an instance.\n\nNames are also used to identify resources which helps to determine whether\nguest policies have conflicts. This means that requests to create multiple\nrecipes with the same name and version are rejected since they\ncould potentially have conflicting assignments.",
"type": "string"
},
"updateSteps": {
"description": "Actions to be taken for updating this recipe. On failure it stops\nexecuting steps and does not attempt another update for this recipe. Any\nsteps taken (including partially completed steps) are not rolled back.",
"items": {
"$ref": "SoftwareRecipeStep"
},
"type": "array"
},
"version": {
"description": "The version of this software recipe. Version can be up to 4 period\nseparated numbers (e.g. 12.34.56.78).",
"type": "string"
}
},
"type": "object"
},
"SoftwareRecipeArtifact": {
"description": "Specifies a resource to be used in the recipe.",
"id": "SoftwareRecipeArtifact",
"properties": {
"allowInsecure": {
"description": "Defaults to false. When false, recipes are subject to validations\nbased on the artifact type:\n\nRemote: A checksum must be specified, and only protocols with\ntransport-layer security are permitted.\nGCS: An object generation number must be specified.",
"type": "boolean"
},
"gcs": {
"$ref": "SoftwareRecipeArtifactGcs",
"description": "A Google Cloud Storage artifact."
},
"id": {
"description": "Required. Id of the artifact, which the installation and update steps of this\nrecipe can reference. Artifacts in a recipe cannot have the same id.",
"type": "string"
},
"remote": {
"$ref": "SoftwareRecipeArtifactRemote",
"description": "A generic remote artifact."
}
},
"type": "object"
},
"SoftwareRecipeArtifactGcs": {
"description": "Specifies an artifact available as a Google Cloud Storage object.",
"id": "SoftwareRecipeArtifactGcs",
"properties": {
"bucket": {
"description": "Bucket of the Google Cloud Storage object.\nGiven an example URL:\n`https://storage.googleapis.com/my-bucket/foo/bar#1234567`\nthis value would be `my-bucket`.",
"type": "string"
},
"generation": {
"description": "Must be provided if allow_insecure is false.\nGeneration number of the Google Cloud Storage object.\n`https://storage.googleapis.com/my-bucket/foo/bar#1234567`\nthis value would be `1234567`.",
"format": "int64",
"type": "string"
},
"object": {
"description": "Name of the Google Cloud Storage object.\nAs specified [here]\n(https://cloud.google.com/storage/docs/naming#objectnames)\nGiven an example URL:\n`https://storage.googleapis.com/my-bucket/foo/bar#1234567`\nthis value would be `foo/bar`.",
"type": "string"
}
},
"type": "object"
},
"SoftwareRecipeArtifactRemote": {
"description": "Specifies an artifact available via some URI.",
"id": "SoftwareRecipeArtifactRemote",
"properties": {
"checksum": {
"description": "Must be provided if `allow_insecure` is `false`.\nSHA256 checksum in hex format, to compare to the checksum of the\nartifact. If the checksum is not empty and it doesn't match the\nartifact then the recipe installation fails before running any of the\nsteps.",
"type": "string"
},
"uri": {
"description": "URI from which to fetch the object. It should contain both the protocol\nand path following the format {protocol}://{location}.",
"type": "string"
}
},
"type": "object"
},
"SoftwareRecipeStep": {
"description": "An action that can be taken as part of installing or updating a recipe.",
"id": "SoftwareRecipeStep",
"properties": {
"archiveExtraction": {
"$ref": "SoftwareRecipeStepExtractArchive",
"description": "Extracts an archive into the specified directory."
},
"dpkgInstallation": {
"$ref": "SoftwareRecipeStepInstallDpkg",
"description": "Installs a deb file via dpkg."
},
"fileCopy": {
"$ref": "SoftwareRecipeStepCopyFile",
"description": "Copies a file onto the instance."
},
"fileExec": {
"$ref": "SoftwareRecipeStepExecFile",
"description": "Executes an artifact or local file."
},
"msiInstallation": {
"$ref": "SoftwareRecipeStepInstallMsi",
"description": "Installs an MSI file."
},
"rpmInstallation": {
"$ref": "SoftwareRecipeStepInstallRpm",
"description": "Installs an rpm file via the rpm utility."
},
"scriptRun": {
"$ref": "SoftwareRecipeStepRunScript",
"description": "Runs commands in a shell."
}
},
"type": "object"
},
"SoftwareRecipeStepCopyFile": {
"description": "Copies the artifact to the specified path on the instance.",
"id": "SoftwareRecipeStepCopyFile",
"properties": {
"artifactId": {
"description": "Required. The id of the relevant artifact in the recipe.",
"type": "string"
},
"destination": {
"description": "Required. The absolute path on the instance to put the file.",
"type": "string"
},
"overwrite": {
"description": "Whether to allow this step to overwrite existing files. If this is\nfalse and the file already exists the file is not overwritten\nand the step is considered a success. Defaults to false.",
"type": "boolean"
},
"permissions": {
"description": "Consists of three octal digits which represent, in\norder, the permissions of the owner, group, and other users for the\nfile (similarly to the numeric mode used in the linux chmod utility).\nEach digit represents a three bit number with the 4 bit\ncorresponding to the read permissions, the 2 bit corresponds to the\nwrite bit, and the one bit corresponds to the execute permission.\nDefault behavior is 755.\n\nBelow are some examples of permissions and their associated values:\nread, write, and execute: 7\nread and execute: 5\nread and write: 6\nread only: 4",
"type": "string"
}
},
"type": "object"
},
"SoftwareRecipeStepExecFile": {
"description": "Executes an artifact or local file.",
"id": "SoftwareRecipeStepExecFile",
"properties": {
"allowedExitCodes": {
"description": "Defaults to [0]. A list of possible return values that the program\ncan return to indicate a success.",
"items": {
"format": "int32",
"type": "integer"
},
"type": "array"
},
"args": {
"description": "Arguments to be passed to the provided executable.",
"items": {
"type": "string"
},
"type": "array"
},
"artifactId": {
"description": "The id of the relevant artifact in the recipe.",
"type": "string"
},
"localPath": {
"description": "The absolute path of the file on the local filesystem.",
"type": "string"
}
},
"type": "object"
},
"SoftwareRecipeStepExtractArchive": {
"description": "Extracts an archive of the type specified in the specified directory.",
"id": "SoftwareRecipeStepExtractArchive",
"properties": {
"artifactId": {
"description": "Required. The id of the relevant artifact in the recipe.",
"type": "string"
},
"destination": {
"description": "Directory to extract archive to.\nDefaults to `/` on Linux or `C:\\` on Windows.",
"type": "string"
},
"type": {
"description": "Required. The type of the archive to extract.",
"enum": [
"ARCHIVE_TYPE_UNSPECIFIED",
"TAR",
"TAR_GZIP",
"TAR_BZIP",
"TAR_LZMA",
"TAR_XZ",
"ZIP"
],
"enumDescriptions": [
"Indicates that the archive type isn't specified.",
"Indicates that the archive is a tar archive with no encryption.",
"Indicates that the archive is a tar archive with gzip encryption.",
"Indicates that the archive is a tar archive with bzip encryption.",
"Indicates that the archive is a tar archive with lzma encryption.",
"Indicates that the archive is a tar archive with xz encryption.",
"Indicates that the archive is a zip archive."
],
"type": "string"
}
},
"type": "object"
},
"SoftwareRecipeStepInstallDpkg": {
"description": "Installs a deb via dpkg.",
"id": "SoftwareRecipeStepInstallDpkg",
"properties": {
"artifactId": {
"description": "Required. The id of the relevant artifact in the recipe.",
"type": "string"
}
},
"type": "object"
},
"SoftwareRecipeStepInstallMsi": {
"description": "Installs an MSI file.",
"id": "SoftwareRecipeStepInstallMsi",
"properties": {
"allowedExitCodes": {
"description": "Return codes that indicate that the software installed or updated\nsuccessfully. Behaviour defaults to [0]",
"items": {
"format": "int32",
"type": "integer"
},
"type": "array"
},
"artifactId": {
"description": "Required. The id of the relevant artifact in the recipe.",
"type": "string"
},
"flags": {
"description": "The flags to use when installing the MSI\ndefaults to [\"/i\"] (i.e. the install flag).",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"SoftwareRecipeStepInstallRpm": {
"description": "Installs an rpm file via the rpm utility.",
"id": "SoftwareRecipeStepInstallRpm",
"properties": {
"artifactId": {
"description": "Required. The id of the relevant artifact in the recipe.",
"type": "string"
}
},
"type": "object"
},
"SoftwareRecipeStepRunScript": {
"description": "Runs a script through an interpreter.",
"id": "SoftwareRecipeStepRunScript",
"properties": {
"allowedExitCodes": {
"description": "Return codes that indicate that the software installed or updated\nsuccessfully. Behaviour defaults to [0]",
"items": {
"format": "int32",
"type": "integer"
},
"type": "array"
},
"interpreter": {
"description": "The script interpreter to use to run the script. If no interpreter is\nspecified the script is executed directly, which likely\nonly succeed for scripts with\n[shebang lines](https://en.wikipedia.org/wiki/Shebang_\\(Unix\\)).",
"enum": [
"INTERPRETER_UNSPECIFIED",
"SHELL",
"POWERSHELL"
],
"enumDescriptions": [
"Default value for ScriptType.",
"Indicates that the script is run with `/bin/sh` on Linux and `cmd`\non windows.",
"Indicates that the script is run with powershell."
],
"type": "string"
},
"script": {
"description": "Required. The shell script to be executed.",
"type": "string"
}
},
"type": "object"
},
"TimeOfDay": {
"description": "Represents a time of day. The date and time zone are either not significant\nor are specified elsewhere. An API may choose to allow leap seconds. Related\ntypes are google.type.Date and `google.protobuf.Timestamp`.",
"id": "TimeOfDay",
"properties": {
"hours": {
"description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose\nto allow the value \"24:00:00\" for scenarios like business closing time.",
"format": "int32",
"type": "integer"
},
"minutes": {
"description": "Minutes of hour of day. Must be from 0 to 59.",
"format": "int32",
"type": "integer"
},
"nanos": {
"description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.",
"format": "int32",
"type": "integer"
},
"seconds": {
"description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may\nallow the value 60 if it allows leap-seconds.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"TimeZone": {
"description": "Represents a time zone from the\n[IANA Time Zone Database](https://www.iana.org/time-zones).",
"id": "TimeZone",
"properties": {
"id": {
"description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".",
"type": "string"
},
"version": {
"description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".",
"type": "string"
}
},
"type": "object"
},
"WeekDayOfMonth": {
"description": "Represents one week day in a month. An example is \"the 4th Sunday\".",
"id": "WeekDayOfMonth",
"properties": {
"dayOfWeek": {
"description": "Required. A day of the week.",
"enum": [
"DAY_OF_WEEK_UNSPECIFIED",
"MONDAY",
"TUESDAY",
"WEDNESDAY",
"THURSDAY",
"FRIDAY",
"SATURDAY",
"SUNDAY"
],
"enumDescriptions": [
"The unspecified day-of-week.",
"The day-of-week of Monday.",
"The day-of-week of Tuesday.",
"The day-of-week of Wednesday.",
"The day-of-week of Thursday.",
"The day-of-week of Friday.",
"The day-of-week of Saturday.",
"The day-of-week of Sunday."
],
"type": "string"
},
"weekOrdinal": {
"description": "Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1\nindicates the last week of the month.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"WeeklySchedule": {
"description": "Represents a weekly schedule.",
"id": "WeeklySchedule",
"properties": {
"dayOfWeek": {
"description": "Required. Day of the week.",
"enum": [
"DAY_OF_WEEK_UNSPECIFIED",
"MONDAY",
"TUESDAY",
"WEDNESDAY",
"THURSDAY",
"FRIDAY",
"SATURDAY",
"SUNDAY"
],
"enumDescriptions": [
"The unspecified day-of-week.",
"The day-of-week of Monday.",
"The day-of-week of Tuesday.",
"The day-of-week of Wednesday.",
"The day-of-week of Thursday.",
"The day-of-week of Friday.",
"The day-of-week of Saturday.",
"The day-of-week of Sunday."
],
"type": "string"
}
},
"type": "object"
},
"WindowsUpdateSettings": {
"description": "Windows patching is performed using the Windows Update Agent.",
"id": "WindowsUpdateSettings",
"properties": {
"classifications": {
"description": "Only apply updates of these windows update classifications. If empty, all\nupdates are applied.",
"enumDescriptions": [
"Invalid. If classifications are included, they must be specified.",
"\"A widely released fix for a specific problem that addresses a critical,\nnon-security-related bug.\" [1]",
"\"A widely released fix for a product-specific, security-related\nvulnerability. Security vulnerabilities are rated by their severity. The\nseverity rating is indicated in the Microsoft security bulletin as\ncritical, important, moderate, or low.\" [1]",
"\"A widely released and frequent software update that contains additions\nto a product's definition database. Definition databases are often used\nto detect objects that have specific attributes, such as malicious code,\nphishing websites, or junk mail.\" [1]",
"\"Software that controls the input and output of a device.\" [1]",
"\"New product functionality that is first distributed outside the context\nof a product release and that is typically included in the next full\nproduct release.\" [1]",
"\"A tested, cumulative set of all hotfixes, security updates, critical\nupdates, and updates. Additionally, service packs may contain additional\nfixes for problems that are found internally since the release of the\nproduct. Service packs my also contain a limited number of\ncustomer-requested design changes or features.\" [1]",
"\"A utility or feature that helps complete a task or set of tasks.\" [1]",
"\"A tested, cumulative set of hotfixes, security updates, critical\nupdates, and updates that are packaged together for easy deployment. A\nrollup generally targets a specific area, such as security, or a\ncomponent of a product, such as Internet Information Services (IIS).\" [1]",
"\"A widely released fix for a specific problem. An update addresses a\nnoncritical, non-security-related bug.\" [1]"
],
"items": {
"enum": [
"CLASSIFICATION_UNSPECIFIED",
"CRITICAL",
"SECURITY",
"DEFINITION",
"DRIVER",
"FEATURE_PACK",
"SERVICE_PACK",
"TOOL",
"UPDATE_ROLLUP",
"UPDATE"
],
"type": "string"
},
"type": "array"
},
"excludes": {
"description": "List of KBs to exclude from update.",
"items": {
"type": "string"
},
"type": "array"
},
"exclusivePatches": {
"description": "An exclusive list of kbs to be updated. These are the only patches\nthat will be updated. This field must not be used with other\npatch configurations.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"YumRepository": {
"description": "Represents a single Yum package repository. This repository is added to a\nrepo file that is stored at `/etc/yum.repos.d/google_osconfig.repo`.",
"id": "YumRepository",
"properties": {
"baseUrl": {
"description": "Required. The location of the repository directory.",
"type": "string"
},
"displayName": {
"description": "The display name of the repository.",
"type": "string"
},
"gpgKeys": {
"description": "URIs of GPG keys.",
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"description": "Required. A one word, unique name for this repository. This is\nthe `repo id` in the Yum config file and also the `display_name` if\n`display_name` is omitted. This id is also used as the unique identifier\nwhen checking for guest policy conflicts.",
"type": "string"
}
},
"type": "object"
},
"YumSettings": {
"description": "Yum patching is performed by executing `yum update`. Additional options\ncan be set to control how this is executed.\n\nNote that not all settings are supported on all platforms.",
"id": "YumSettings",
"properties": {
"excludes": {
"description": "List of packages to exclude from update. These packages are excluded by\nusing the yum `--exclude` flag.",
"items": {
"type": "string"
},
"type": "array"
},
"exclusivePackages": {
"description": "An exclusive list of packages to be updated. These are the only packages\nthat will be updated. If these packages are not installed, they will be\nignored. This field must not be specified with any other patch\nconfiguration fields.",
"items": {
"type": "string"
},
"type": "array"
},
"minimal": {
"description": "Will cause patch to run `yum update-minimal` instead.",
"type": "boolean"
},
"security": {
"description": "Adds the `--security` flag to `yum update`. Not supported on\nall platforms.",
"type": "boolean"
}
},
"type": "object"
},
"ZypperRepository": {
"description": "Represents a single Zypper package repository. This repository is added to a\nrepo file that is stored at `/etc/zypp/repos.d/google_osconfig.repo`.",
"id": "ZypperRepository",
"properties": {
"baseUrl": {
"description": "Required. The location of the repository directory.",
"type": "string"
},
"displayName": {
"description": "The display name of the repository.",
"type": "string"
},
"gpgKeys": {
"description": "URIs of GPG keys.",
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"description": "Required. A one word, unique name for this repository. This is\nthe `repo id` in the zypper config file and also the `display_name` if\n`display_name` is omitted. This id is also used as the unique identifier\nwhen checking for guest policy conflicts.",
"type": "string"
}
},
"type": "object"
},
"ZypperSettings": {
"description": "Zypper patching is performed by running `zypper patch`.\nSee also https://en.opensuse.org/SDB:Zypper_manual.",
"id": "ZypperSettings",
"properties": {
"categories": {
"description": "Install only patches with these categories.\nCommon categories include security, recommended, and feature.",
"items": {
"type": "string"
},
"type": "array"
},
"excludes": {
"description": "List of patches to exclude from update.",
"items": {
"type": "string"
},
"type": "array"
},
"exclusivePatches": {
"description": "An exclusive list of patches to be updated. These are the only patches\nthat will be installed using 'zypper patch patch:\u003cpatch_name\u003e' command.\nThis field must not be used with any other patch configuration fields.",
"items": {
"type": "string"
},
"type": "array"
},
"severities": {
"description": "Install only patches with these severities.\nCommon severities include critical, important, moderate, and low.",
"items": {
"type": "string"
},
"type": "array"
},
"withOptional": {
"description": "Adds the `--with-optional` flag to `zypper patch`.",
"type": "boolean"
},
"withUpdate": {
"description": "Adds the `--with-update` flag, to `zypper patch`.",
"type": "boolean"
}
},
"type": "object"
}
},
"servicePath": "",
"title": "Cloud OS Config API",
"version": "v1beta",
"version_module": true
}