[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud OsConfig V1 Client - Class OsInfo (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.Inventory.OsInfo)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.Inventory.OsInfo)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.Inventory.OsInfo)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.Inventory.OsInfo)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.Inventory.OsInfo)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.Inventory.OsInfo) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client class OsInfo.\n\nOperating system information for the VM.\n\nGenerated from protobuf message `google.cloud.osconfig.v1.Inventory.OsInfo`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1 \\\\ Inventory\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHostname\n\nThe VM hostname.\n\n### setHostname\n\nThe VM hostname.\n\n### getLongName\n\nThe operating system long name.\n\nFor example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019\nDatacenter'.\n\n### setLongName\n\nThe operating system long name.\n\nFor example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019\nDatacenter'.\n\n### getShortName\n\nThe operating system short name.\n\nFor example, 'windows' or 'debian'.\n\n### setShortName\n\nThe operating system short name.\n\nFor example, 'windows' or 'debian'.\n\n### getVersion\n\nThe version of the operating system.\n\n### setVersion\n\nThe version of the operating system.\n\n### getArchitecture\n\nThe system architecture of the operating system.\n\n### setArchitecture\n\nThe system architecture of the operating system.\n\n### getKernelVersion\n\nThe kernel version of the operating system.\n\n### setKernelVersion\n\nThe kernel version of the operating system.\n\n### getKernelRelease\n\nThe kernel release of the operating system.\n\n### setKernelRelease\n\nThe kernel release of the operating system.\n\n### getOsconfigAgentVersion\n\nThe current version of the OS Config agent running on the VM.\n\n### setOsconfigAgentVersion\n\nThe current version of the OS Config agent running on the VM."]]