123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- syntax = "proto3";
- package google.cloud.osconfig.v1alpha;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/timestamp.proto";
- import "google/type/date.proto";
- option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
- option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
- option java_multiple_files = true;
- option java_outer_classname = "Inventories";
- option java_package = "com.google.cloud.osconfig.v1alpha";
- option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
- option ruby_package = "Google::Cloud::OsConfig::V1alpha";
- message Inventory {
- option (google.api.resource) = {
- type: "osconfig.googleapis.com/Inventory"
- pattern: "projects/{project}/locations/{location}/instances/{instance}/inventory"
- };
-
- message OsInfo {
-
- string hostname = 9;
-
-
-
- string long_name = 2;
-
-
- string short_name = 3;
-
- string version = 4;
-
- string architecture = 5;
-
- string kernel_version = 6;
-
- string kernel_release = 7;
-
- string osconfig_agent_version = 8;
- }
-
- message Item {
-
- enum OriginType {
-
- ORIGIN_TYPE_UNSPECIFIED = 0;
-
-
- INVENTORY_REPORT = 1;
- }
-
- enum Type {
-
- TYPE_UNSPECIFIED = 0;
-
- INSTALLED_PACKAGE = 1;
-
- AVAILABLE_PACKAGE = 2;
- }
-
- string id = 1;
-
- OriginType origin_type = 2;
-
- google.protobuf.Timestamp create_time = 8;
-
- google.protobuf.Timestamp update_time = 9;
-
- Type type = 5;
-
- oneof details {
-
- SoftwarePackage installed_package = 6;
-
- SoftwarePackage available_package = 7;
- }
- }
-
- message SoftwarePackage {
-
- oneof details {
-
-
-
- VersionedPackage yum_package = 1;
-
-
-
- VersionedPackage apt_package = 2;
-
-
-
- VersionedPackage zypper_package = 3;
-
-
-
- VersionedPackage googet_package = 4;
-
-
-
- ZypperPatch zypper_patch = 5;
-
-
-
- WindowsUpdatePackage wua_package = 6;
-
-
-
-
- WindowsQuickFixEngineeringPackage qfe_package = 7;
-
- VersionedPackage cos_package = 8;
-
- WindowsApplication windows_application = 9;
- }
- }
-
-
- message VersionedPackage {
-
- string package_name = 4;
-
- string architecture = 2;
-
- string version = 3;
- }
-
- message ZypperPatch {
-
- string patch_name = 5;
-
- string category = 2;
-
- string severity = 3;
-
- string summary = 4;
- }
-
-
-
-
-
- message WindowsUpdatePackage {
-
- message WindowsUpdateCategory {
-
- string id = 1;
-
- string name = 2;
- }
-
- string title = 1;
-
- string description = 2;
-
- repeated WindowsUpdateCategory categories = 3;
-
-
- repeated string kb_article_ids = 4;
-
- string support_url = 11;
-
-
- repeated string more_info_urls = 5;
-
-
- string update_id = 6;
-
- int32 revision_number = 7;
-
- google.protobuf.Timestamp last_deployment_change_time = 10;
- }
-
-
-
-
- message WindowsQuickFixEngineeringPackage {
-
- string caption = 1;
-
- string description = 2;
-
- string hot_fix_id = 3;
-
- google.protobuf.Timestamp install_time = 5;
- }
-
-
-
- message WindowsApplication {
-
- string display_name = 1;
-
- string display_version = 2;
-
- string publisher = 3;
-
-
-
- google.type.Date install_date = 4;
-
- string help_link = 5;
- }
-
-
-
-
- string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- OsInfo os_info = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- map<string, Item> items = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message GetInventoryRequest {
-
-
-
-
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "osconfig.googleapis.com/Inventory"
- }
- ];
-
-
- InventoryView view = 2;
- }
- message ListInventoriesRequest {
-
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "compute.googleapis.com/Instance"
- }
- ];
-
-
- InventoryView view = 2;
-
- int32 page_size = 3;
-
-
-
- string page_token = 4;
-
-
- string filter = 5;
- }
- message ListInventoriesResponse {
-
- repeated Inventory inventories = 1;
-
- string next_page_token = 2;
- }
- enum InventoryView {
-
-
- INVENTORY_VIEW_UNSPECIFIED = 0;
-
- BASIC = 1;
-
- FULL = 2;
- }
|