google-cloud-os_config-v1 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +3 -3
  4. data/lib/google/cloud/os_config/v1/os_config_service/client.rb +18 -22
  5. data/lib/google/cloud/os_config/v1/os_config_service/rest/client.rb +1183 -0
  6. data/lib/google/cloud/os_config/v1/os_config_service/rest/service_stub.rb +762 -0
  7. data/lib/google/cloud/os_config/v1/os_config_service/rest.rb +55 -0
  8. data/lib/google/cloud/os_config/v1/os_config_service.rb +7 -1
  9. data/lib/google/cloud/os_config/v1/os_config_zonal_service/client.rb +38 -46
  10. data/lib/google/cloud/os_config/v1/os_config_zonal_service/operations.rb +17 -17
  11. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/client.rb +1284 -0
  12. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/operations.rb +795 -0
  13. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/service_stub.rb +758 -0
  14. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest.rb +56 -0
  15. data/lib/google/cloud/os_config/v1/os_config_zonal_service.rb +7 -1
  16. data/lib/google/cloud/os_config/v1/rest.rb +38 -0
  17. data/lib/google/cloud/os_config/v1/version.rb +1 -1
  18. data/lib/google/cloud/os_config/v1.rb +7 -2
  19. data/lib/google/cloud/osconfig/v1/inventory_pb.rb +26 -109
  20. data/lib/google/cloud/osconfig/v1/os_policy_assignment_reports_pb.rb +25 -61
  21. data/lib/google/cloud/osconfig/v1/os_policy_assignments_pb.rb +29 -93
  22. data/lib/google/cloud/osconfig/v1/os_policy_pb.rb +24 -158
  23. data/lib/google/cloud/osconfig/v1/osconfig_common_pb.rb +24 -7
  24. data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +25 -2
  25. data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_pb.rb +25 -2
  26. data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +30 -88
  27. data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +27 -209
  28. data/lib/google/cloud/osconfig/v1/vulnerability_pb.rb +25 -92
  29. data/proto_docs/google/api/client.rb +381 -0
  30. data/proto_docs/google/api/launch_stage.rb +71 -0
  31. data/proto_docs/google/protobuf/any.rb +7 -4
  32. data/proto_docs/google/protobuf/empty.rb +0 -2
  33. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  34. data/proto_docs/google/rpc/status.rb +4 -2
  35. metadata +19 -8
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/os_config/v1/version"
24
+
25
+ require "google/cloud/os_config/v1/os_config_zonal_service/credentials"
26
+ require "google/cloud/os_config/v1/os_config_zonal_service/paths"
27
+ require "google/cloud/os_config/v1/os_config_zonal_service/rest/operations"
28
+ require "google/cloud/os_config/v1/os_config_zonal_service/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module OsConfig
33
+ module V1
34
+ ##
35
+ # Zonal OS Config API
36
+ #
37
+ # The OS Config service is the server-side component that allows users to
38
+ # manage package installations and patch jobs for Compute Engine VM instances.
39
+ #
40
+ # To load this service and instantiate a REST client:
41
+ #
42
+ # require "google/cloud/os_config/v1/os_config_zonal_service/rest"
43
+ # client = ::Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
44
+ #
45
+ module OsConfigZonalService
46
+ # Client for the REST transport
47
+ module Rest
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+
55
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
56
+ require "google/cloud/os_config/v1/os_config_zonal_service/rest/helpers" if ::File.file? helper_path
@@ -26,6 +26,7 @@ require "google/cloud/os_config/v1/os_config_zonal_service/credentials"
26
26
  require "google/cloud/os_config/v1/os_config_zonal_service/paths"
27
27
  require "google/cloud/os_config/v1/os_config_zonal_service/operations"
28
28
  require "google/cloud/os_config/v1/os_config_zonal_service/client"
29
+ require "google/cloud/os_config/v1/os_config_zonal_service/rest"
29
30
 
30
31
  module Google
31
32
  module Cloud
@@ -37,11 +38,16 @@ module Google
37
38
  # The OS Config service is the server-side component that allows users to
38
39
  # manage package installations and patch jobs for Compute Engine VM instances.
39
40
  #
40
- # To load this service and instantiate a client:
41
+ # @example Load this service and instantiate a gRPC client
41
42
  #
42
43
  # require "google/cloud/os_config/v1/os_config_zonal_service"
43
44
  # client = ::Google::Cloud::OsConfig::V1::OsConfigZonalService::Client.new
44
45
  #
46
+ # @example Load this service and instantiate a REST client
47
+ #
48
+ # require "google/cloud/os_config/v1/os_config_zonal_service/rest"
49
+ # client = ::Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::Client.new
50
+ #
45
51
  module OsConfigZonalService
46
52
  end
47
53
  end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/os_config/v1/os_config_service/rest"
20
+ require "google/cloud/os_config/v1/os_config_zonal_service/rest"
21
+ require "google/cloud/os_config/v1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module OsConfig
26
+ ##
27
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/os_config/v1/rest"
32
+ # client = ::Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsConfig
23
23
  module V1
24
- VERSION = "0.11.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -24,13 +24,18 @@ module Google
24
24
  module Cloud
25
25
  module OsConfig
26
26
  ##
27
- # To load this package, including all its services, and instantiate a client:
27
+ # API client module.
28
28
  #
29
- # @example
29
+ # @example Load this package, including all its services, and instantiate a gRPC client
30
30
  #
31
31
  # require "google/cloud/os_config/v1"
32
32
  # client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new
33
33
  #
34
+ # @example Load this package, including all its services, and instantiate a REST client
35
+ #
36
+ # require "google/cloud/os_config/v1"
37
+ # client = ::Google::Cloud::OsConfig::V1::OsConfigService::Rest::Client.new
38
+ #
34
39
  module V1
35
40
  end
36
41
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/osconfig/v1/inventory.proto
3
4
 
@@ -8,117 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
  require 'google/type/date_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/osconfig/v1/inventory.proto", :syntax => :proto3) do
13
- add_message "google.cloud.osconfig.v1.Inventory" do
14
- optional :name, :string, 3
15
- optional :os_info, :message, 1, "google.cloud.osconfig.v1.Inventory.OsInfo"
16
- map :items, :string, :message, 2, "google.cloud.osconfig.v1.Inventory.Item"
17
- optional :update_time, :message, 4, "google.protobuf.Timestamp"
18
- end
19
- add_message "google.cloud.osconfig.v1.Inventory.OsInfo" do
20
- optional :hostname, :string, 9
21
- optional :long_name, :string, 2
22
- optional :short_name, :string, 3
23
- optional :version, :string, 4
24
- optional :architecture, :string, 5
25
- optional :kernel_version, :string, 6
26
- optional :kernel_release, :string, 7
27
- optional :osconfig_agent_version, :string, 8
28
- end
29
- add_message "google.cloud.osconfig.v1.Inventory.Item" do
30
- optional :id, :string, 1
31
- optional :origin_type, :enum, 2, "google.cloud.osconfig.v1.Inventory.Item.OriginType"
32
- optional :create_time, :message, 8, "google.protobuf.Timestamp"
33
- optional :update_time, :message, 9, "google.protobuf.Timestamp"
34
- optional :type, :enum, 5, "google.cloud.osconfig.v1.Inventory.Item.Type"
35
- oneof :details do
36
- optional :installed_package, :message, 6, "google.cloud.osconfig.v1.Inventory.SoftwarePackage"
37
- optional :available_package, :message, 7, "google.cloud.osconfig.v1.Inventory.SoftwarePackage"
38
- end
39
- end
40
- add_enum "google.cloud.osconfig.v1.Inventory.Item.OriginType" do
41
- value :ORIGIN_TYPE_UNSPECIFIED, 0
42
- value :INVENTORY_REPORT, 1
43
- end
44
- add_enum "google.cloud.osconfig.v1.Inventory.Item.Type" do
45
- value :TYPE_UNSPECIFIED, 0
46
- value :INSTALLED_PACKAGE, 1
47
- value :AVAILABLE_PACKAGE, 2
48
- end
49
- add_message "google.cloud.osconfig.v1.Inventory.SoftwarePackage" do
50
- oneof :details do
51
- optional :yum_package, :message, 1, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
52
- optional :apt_package, :message, 2, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
53
- optional :zypper_package, :message, 3, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
54
- optional :googet_package, :message, 4, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
55
- optional :zypper_patch, :message, 5, "google.cloud.osconfig.v1.Inventory.ZypperPatch"
56
- optional :wua_package, :message, 6, "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage"
57
- optional :qfe_package, :message, 7, "google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage"
58
- optional :cos_package, :message, 8, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
59
- optional :windows_application, :message, 9, "google.cloud.osconfig.v1.Inventory.WindowsApplication"
60
- end
61
- end
62
- add_message "google.cloud.osconfig.v1.Inventory.VersionedPackage" do
63
- optional :package_name, :string, 4
64
- optional :architecture, :string, 2
65
- optional :version, :string, 3
66
- end
67
- add_message "google.cloud.osconfig.v1.Inventory.ZypperPatch" do
68
- optional :patch_name, :string, 5
69
- optional :category, :string, 2
70
- optional :severity, :string, 3
71
- optional :summary, :string, 4
72
- end
73
- add_message "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage" do
74
- optional :title, :string, 1
75
- optional :description, :string, 2
76
- repeated :categories, :message, 3, "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory"
77
- repeated :kb_article_ids, :string, 4
78
- optional :support_url, :string, 11
79
- repeated :more_info_urls, :string, 5
80
- optional :update_id, :string, 6
81
- optional :revision_number, :int32, 7
82
- optional :last_deployment_change_time, :message, 10, "google.protobuf.Timestamp"
83
- end
84
- add_message "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory" do
85
- optional :id, :string, 1
86
- optional :name, :string, 2
87
- end
88
- add_message "google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage" do
89
- optional :caption, :string, 1
90
- optional :description, :string, 2
91
- optional :hot_fix_id, :string, 3
92
- optional :install_time, :message, 5, "google.protobuf.Timestamp"
93
- end
94
- add_message "google.cloud.osconfig.v1.Inventory.WindowsApplication" do
95
- optional :display_name, :string, 1
96
- optional :display_version, :string, 2
97
- optional :publisher, :string, 3
98
- optional :install_date, :message, 4, "google.type.Date"
99
- optional :help_link, :string, 5
100
- end
101
- add_message "google.cloud.osconfig.v1.GetInventoryRequest" do
102
- optional :name, :string, 1
103
- optional :view, :enum, 2, "google.cloud.osconfig.v1.InventoryView"
104
- end
105
- add_message "google.cloud.osconfig.v1.ListInventoriesRequest" do
106
- optional :parent, :string, 1
107
- optional :view, :enum, 2, "google.cloud.osconfig.v1.InventoryView"
108
- optional :page_size, :int32, 3
109
- optional :page_token, :string, 4
110
- optional :filter, :string, 5
111
- end
112
- add_message "google.cloud.osconfig.v1.ListInventoriesResponse" do
113
- repeated :inventories, :message, 1, "google.cloud.osconfig.v1.Inventory"
114
- optional :next_page_token, :string, 2
115
- end
116
- add_enum "google.cloud.osconfig.v1.InventoryView" do
117
- value :INVENTORY_VIEW_UNSPECIFIED, 0
118
- value :BASIC, 1
119
- value :FULL, 2
12
+
13
+ descriptor_data = "\n(google/cloud/osconfig/v1/inventory.proto\x12\x18google.cloud.osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"\xd8\x15\n\tInventory\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12;\n\x07os_info\x18\x01 \x01(\x0b\x32*.google.cloud.osconfig.v1.Inventory.OsInfo\x12=\n\x05items\x18\x02 \x03(\x0b\x32..google.cloud.osconfig.v1.Inventory.ItemsEntry\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\xb8\x01\n\x06OsInfo\x12\x10\n\x08hostname\x18\t \x01(\t\x12\x11\n\tlong_name\x18\x02 \x01(\t\x12\x12\n\nshort_name\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x05 \x01(\t\x12\x16\n\x0ekernel_version\x18\x06 \x01(\t\x12\x16\n\x0ekernel_release\x18\x07 \x01(\t\x12\x1e\n\x16osconfig_agent_version\x18\x08 \x01(\t\x1a\xb7\x04\n\x04Item\x12\n\n\x02id\x18\x01 \x01(\t\x12H\n\x0borigin_type\x18\x02 \x01(\x0e\x32\x33.google.cloud.osconfig.v1.Inventory.Item.OriginType\x12/\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x04type\x18\x05 \x01(\x0e\x32-.google.cloud.osconfig.v1.Inventory.Item.Type\x12P\n\x11installed_package\x18\x06 \x01(\x0b\x32\x33.google.cloud.osconfig.v1.Inventory.SoftwarePackageH\x00\x12P\n\x11\x61vailable_package\x18\x07 \x01(\x0b\x32\x33.google.cloud.osconfig.v1.Inventory.SoftwarePackageH\x00\"?\n\nOriginType\x12\x1b\n\x17ORIGIN_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10INVENTORY_REPORT\x10\x01\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11INSTALLED_PACKAGE\x10\x01\x12\x15\n\x11\x41VAILABLE_PACKAGE\x10\x02\x42\t\n\x07\x64\x65tails\x1a\xf2\x05\n\x0fSoftwarePackage\x12K\n\x0byum_package\x18\x01 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.Inventory.VersionedPackageH\x00\x12K\n\x0b\x61pt_package\x18\x02 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.Inventory.VersionedPackageH\x00\x12N\n\x0ezypper_package\x18\x03 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.Inventory.VersionedPackageH\x00\x12N\n\x0egooget_package\x18\x04 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.Inventory.VersionedPackageH\x00\x12G\n\x0czypper_patch\x18\x05 \x01(\x0b\x32/.google.cloud.osconfig.v1.Inventory.ZypperPatchH\x00\x12O\n\x0bwua_package\x18\x06 \x01(\x0b\x32\x38.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackageH\x00\x12\\\n\x0bqfe_package\x18\x07 \x01(\x0b\x32\x45.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackageH\x00\x12K\n\x0b\x63os_package\x18\x08 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.Inventory.VersionedPackageH\x00\x12U\n\x13windows_application\x18\t \x01(\x0b\x32\x36.google.cloud.osconfig.v1.Inventory.WindowsApplicationH\x00\x42\t\n\x07\x64\x65tails\x1aO\n\x10VersionedPackage\x12\x14\n\x0cpackage_name\x18\x04 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x1aV\n\x0bZypperPatch\x12\x12\n\npatch_name\x18\x05 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x02 \x01(\t\x12\x10\n\x08severity\x18\x03 \x01(\t\x12\x0f\n\x07summary\x18\x04 \x01(\t\x1a\x83\x03\n\x14WindowsUpdatePackage\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x62\n\ncategories\x18\x03 \x03(\x0b\x32N.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory\x12\x16\n\x0ekb_article_ids\x18\x04 \x03(\t\x12\x13\n\x0bsupport_url\x18\x0b \x01(\t\x12\x16\n\x0emore_info_urls\x18\x05 \x03(\t\x12\x11\n\tupdate_id\x18\x06 \x01(\t\x12\x17\n\x0frevision_number\x18\x07 \x01(\x05\x12?\n\x1blast_deployment_change_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x31\n\x15WindowsUpdateCategory\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x1a\x8f\x01\n!WindowsQuickFixEngineeringPackage\x12\x0f\n\x07\x63\x61ption\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x12\n\nhot_fix_id\x18\x03 \x01(\t\x12\x30\n\x0cinstall_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x92\x01\n\x12WindowsApplication\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x17\n\x0f\x64isplay_version\x18\x02 \x01(\t\x12\x11\n\tpublisher\x18\x03 \x01(\t\x12\'\n\x0cinstall_date\x18\x04 \x01(\x0b\x32\x11.google.type.Date\x12\x11\n\thelp_link\x18\x05 \x01(\t\x1aV\n\nItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.google.cloud.osconfig.v1.Inventory.Item:\x02\x38\x01:n\xea\x41k\n!osconfig.googleapis.com/Inventory\x12\x46projects/{project}/locations/{location}/instances/{instance}/inventory\"\x85\x01\n\x13GetInventoryRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!osconfig.googleapis.com/Inventory\x12\x35\n\x04view\x18\x02 \x01(\x0e\x32\'.google.cloud.osconfig.v1.InventoryView\"\xbf\x01\n\x16ListInventoriesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63ompute.googleapis.com/Instance\x12\x35\n\x04view\x18\x02 \x01(\x0e\x32\'.google.cloud.osconfig.v1.InventoryView\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"l\n\x17ListInventoriesResponse\x12\x38\n\x0binventories\x18\x01 \x03(\x0b\x32#.google.cloud.osconfig.v1.Inventory\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*D\n\rInventoryView\x12\x1e\n\x1aINVENTORY_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\xbb\x01\n\x1c\x63om.google.cloud.osconfig.v1B\x0bInventoriesP\x01Z8cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsConfig::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.type.Date", "google/type/date.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
120
35
  end
121
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
122
39
  end
123
40
 
124
41
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/osconfig/v1/os_policy_assignment_reports.proto
3
4
 
@@ -7,69 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/osconfig/v1/os_policy_assignment_reports.proto", :syntax => :proto3) do
12
- add_message "google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest" do
13
- optional :name, :string, 1
14
- end
15
- add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest" do
16
- optional :parent, :string, 1
17
- optional :page_size, :int32, 2
18
- optional :filter, :string, 3
19
- optional :page_token, :string, 4
20
- end
21
- add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse" do
22
- repeated :os_policy_assignment_reports, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignmentReport"
23
- optional :next_page_token, :string, 2
24
- end
25
- add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport" do
26
- optional :name, :string, 1
27
- optional :instance, :string, 2
28
- optional :os_policy_assignment, :string, 3
29
- repeated :os_policy_compliances, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance"
30
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
31
- optional :last_run_id, :string, 6
32
- end
33
- add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance" do
34
- optional :os_policy_id, :string, 1
35
- optional :compliance_state, :enum, 2, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState"
36
- optional :compliance_state_reason, :string, 3
37
- repeated :os_policy_resource_compliances, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance"
38
- end
39
- add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance" do
40
- optional :os_policy_resource_id, :string, 1
41
- repeated :config_steps, :message, 2, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep"
42
- optional :compliance_state, :enum, 3, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState"
43
- optional :compliance_state_reason, :string, 4
44
- oneof :output do
45
- optional :exec_resource_output, :message, 5, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput"
46
- end
47
- end
48
- add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep" do
49
- optional :type, :enum, 1, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type"
50
- optional :error_message, :string, 2
51
- end
52
- add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type" do
53
- value :TYPE_UNSPECIFIED, 0
54
- value :VALIDATION, 1
55
- value :DESIRED_STATE_CHECK, 2
56
- value :DESIRED_STATE_ENFORCEMENT, 3
57
- value :DESIRED_STATE_CHECK_POST_ENFORCEMENT, 4
58
- end
59
- add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput" do
60
- optional :enforcement_output, :bytes, 2
61
- end
62
- add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState" do
63
- value :UNKNOWN, 0
64
- value :COMPLIANT, 1
65
- value :NON_COMPLIANT, 2
66
- end
67
- add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState" do
68
- value :UNKNOWN, 0
69
- value :COMPLIANT, 1
70
- value :NON_COMPLIANT, 2
11
+
12
+ descriptor_data = "\n;google/cloud/osconfig/v1/os_policy_assignment_reports.proto\x12\x18google.cloud.osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"l\n\"GetOSPolicyAssignmentReportRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0osconfig.googleapis.com/OSPolicyAssignmentReport\"\xa9\x01\n$ListOSPolicyAssignmentReportsRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2osconfig.googleapis.com/InstanceOSPolicyAssignment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x12\n\npage_token\x18\x04 \x01(\t\"\x9a\x01\n%ListOSPolicyAssignmentReportsResponse\x12X\n\x1cos_policy_assignment_reports\x18\x01 \x03(\x0b\x32\x32.google.cloud.osconfig.v1.OSPolicyAssignmentReport\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xcd\x0e\n\x18OSPolicyAssignmentReport\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08instance\x18\x02 \x01(\t\x12M\n\x14os_policy_assignment\x18\x03 \x01(\tB/\xfa\x41,\n*osconfig.googleapis.com/OSPolicyAssignment\x12\x64\n\x15os_policy_compliances\x18\x04 \x03(\x0b\x32\x45.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0blast_run_id\x18\x06 \x01(\t\x1a\xf6\n\n\x12OSPolicyCompliance\x12\x14\n\x0cos_policy_id\x18\x01 \x01(\t\x12o\n\x10\x63ompliance_state\x18\x02 \x01(\x0e\x32U.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState\x12\x1f\n\x17\x63ompliance_state_reason\x18\x03 \x01(\t\x12\x88\x01\n\x1eos_policy_resource_compliances\x18\x04 \x03(\x0b\x32`.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance\x1a\xea\x07\n\x1aOSPolicyResourceCompliance\x12\x1d\n\x15os_policy_resource_id\x18\x01 \x01(\t\x12\x91\x01\n\x0c\x63onfig_steps\x18\x02 \x03(\x0b\x32{.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep\x12\x8a\x01\n\x10\x63ompliance_state\x18\x03 \x01(\x0e\x32p.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState\x12\x1f\n\x17\x63ompliance_state_reason\x18\x04 \x01(\t\x12\x93\x01\n\x14\x65xec_resource_output\x18\x05 \x01(\x0b\x32s.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutputH\x00\x1a\xd6\x02\n\x1aOSPolicyResourceConfigStep\x12\x8f\x01\n\x04type\x18\x01 \x01(\x0e\x32\x80\x01.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type\x12\x15\n\rerror_message\x18\x02 \x01(\t\"\x8e\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nVALIDATION\x10\x01\x12\x17\n\x13\x44\x45SIRED_STATE_CHECK\x10\x02\x12\x1d\n\x19\x44\x45SIRED_STATE_ENFORCEMENT\x10\x03\x12(\n$DESIRED_STATE_CHECK_POST_ENFORCEMENT\x10\x04\x1a\x30\n\x12\x45xecResourceOutput\x12\x1a\n\x12\x65nforcement_output\x18\x02 \x01(\x0c\"@\n\x0f\x43omplianceState\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tCOMPLIANT\x10\x01\x12\x11\n\rNON_COMPLIANT\x10\x02\x42\x08\n\x06output\"@\n\x0f\x43omplianceState\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tCOMPLIANT\x10\x01\x12\x11\n\rNON_COMPLIANT\x10\x02:\x9c\x01\xea\x41\x98\x01\n0osconfig.googleapis.com/OSPolicyAssignmentReport\x12\x64projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reportB\xe5\x02\n\x1c\x63om.google.cloud.osconfig.v1B\x1eOSPolicyAssignmentReportsProtoP\x01Z8cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsConfig::V1\xea\x41\x93\x01\n2osconfig.googleapis.com/InstanceOSPolicyAssignment\x12]projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
71
33
  end
72
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
73
37
  end
74
38
 
75
39
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/osconfig/v1/os_policy_assignments.proto
3
4
 
@@ -11,101 +12,36 @@ require 'google/protobuf/duration_pb'
11
12
  require 'google/protobuf/field_mask_pb'
12
13
  require 'google/protobuf/timestamp_pb'
13
14
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/cloud/osconfig/v1/os_policy_assignments.proto", :syntax => :proto3) do
16
- add_message "google.cloud.osconfig.v1.OSPolicyAssignment" do
17
- optional :name, :string, 1
18
- optional :description, :string, 2
19
- repeated :os_policies, :message, 3, "google.cloud.osconfig.v1.OSPolicy"
20
- optional :instance_filter, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter"
21
- optional :rollout, :message, 5, "google.cloud.osconfig.v1.OSPolicyAssignment.Rollout"
22
- optional :revision_id, :string, 6
23
- optional :revision_create_time, :message, 7, "google.protobuf.Timestamp"
24
- optional :etag, :string, 8
25
- optional :rollout_state, :enum, 9, "google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState"
26
- optional :baseline, :bool, 10
27
- optional :deleted, :bool, 11
28
- optional :reconciling, :bool, 12
29
- optional :uid, :string, 13
30
- end
31
- add_message "google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet" do
32
- map :labels, :string, :string, 1
33
- end
34
- add_message "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter" do
35
- optional :all, :bool, 1
36
- repeated :inclusion_labels, :message, 2, "google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet"
37
- repeated :exclusion_labels, :message, 3, "google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet"
38
- repeated :inventories, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory"
39
- end
40
- add_message "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory" do
41
- optional :os_short_name, :string, 1
42
- optional :os_version, :string, 2
43
- end
44
- add_message "google.cloud.osconfig.v1.OSPolicyAssignment.Rollout" do
45
- optional :disruption_budget, :message, 1, "google.cloud.osconfig.v1.FixedOrPercent"
46
- optional :min_wait_duration, :message, 2, "google.protobuf.Duration"
47
- end
48
- add_enum "google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState" do
49
- value :ROLLOUT_STATE_UNSPECIFIED, 0
50
- value :IN_PROGRESS, 1
51
- value :CANCELLING, 2
52
- value :CANCELLED, 3
53
- value :SUCCEEDED, 4
54
- end
55
- add_message "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata" do
56
- optional :os_policy_assignment, :string, 1
57
- optional :api_method, :enum, 2, "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod"
58
- optional :rollout_state, :enum, 3, "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState"
59
- optional :rollout_start_time, :message, 4, "google.protobuf.Timestamp"
60
- optional :rollout_update_time, :message, 5, "google.protobuf.Timestamp"
61
- end
62
- add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod" do
63
- value :API_METHOD_UNSPECIFIED, 0
64
- value :CREATE, 1
65
- value :UPDATE, 2
66
- value :DELETE, 3
67
- end
68
- add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState" do
69
- value :ROLLOUT_STATE_UNSPECIFIED, 0
70
- value :IN_PROGRESS, 1
71
- value :CANCELLING, 2
72
- value :CANCELLED, 3
73
- value :SUCCEEDED, 4
74
- end
75
- add_message "google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest" do
76
- optional :parent, :string, 1
77
- optional :os_policy_assignment, :message, 2, "google.cloud.osconfig.v1.OSPolicyAssignment"
78
- optional :os_policy_assignment_id, :string, 3
79
- end
80
- add_message "google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest" do
81
- optional :os_policy_assignment, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignment"
82
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
83
- end
84
- add_message "google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest" do
85
- optional :name, :string, 1
86
- end
87
- add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest" do
88
- optional :parent, :string, 1
89
- optional :page_size, :int32, 2
90
- optional :page_token, :string, 3
91
- end
92
- add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse" do
93
- repeated :os_policy_assignments, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignment"
94
- optional :next_page_token, :string, 2
95
- end
96
- add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest" do
97
- optional :name, :string, 1
98
- optional :page_size, :int32, 2
99
- optional :page_token, :string, 3
100
- end
101
- add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse" do
102
- repeated :os_policy_assignments, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignment"
103
- optional :next_page_token, :string, 2
104
- end
105
- add_message "google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest" do
106
- optional :name, :string, 1
15
+
16
+ descriptor_data = "\n4google/cloud/osconfig/v1/os_policy_assignments.proto\x12\x18google.cloud.osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/osconfig/v1/os_policy.proto\x1a.google/cloud/osconfig/v1/osconfig_common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x0b\n\x12OSPolicyAssignment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12<\n\x0bos_policies\x18\x03 \x03(\x0b\x32\".google.cloud.osconfig.v1.OSPolicyB\x03\xe0\x41\x02\x12Y\n\x0finstance_filter\x18\x04 \x01(\x0b\x32;.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilterB\x03\xe0\x41\x02\x12J\n\x07rollout\x18\x05 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutB\x03\xe0\x41\x02\x12\x18\n\x0brevision_id\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12=\n\x14revision_create_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x08 \x01(\t\x12U\n\rrollout_state\x18\t \x01(\x0e\x32\x39.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutStateB\x03\xe0\x41\x03\x12\x15\n\x08\x62\x61seline\x18\n \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x07\x64\x65leted\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\r \x01(\tB\x03\xe0\x41\x03\x1a\x8c\x01\n\x08LabelSet\x12Q\n\x06labels\x18\x01 \x03(\x0b\x32\x41.google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xd8\x02\n\x0eInstanceFilter\x12\x0b\n\x03\x61ll\x18\x01 \x01(\x08\x12O\n\x10inclusion_labels\x18\x02 \x03(\x0b\x32\x35.google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet\x12O\n\x10\x65xclusion_labels\x18\x03 \x03(\x0b\x32\x35.google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet\x12Z\n\x0binventories\x18\x04 \x03(\x0b\x32\x45.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory\x1a;\n\tInventory\x12\x1a\n\ros_short_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nos_version\x18\x02 \x01(\t\x1a\x8e\x01\n\x07Rollout\x12H\n\x11\x64isruption_budget\x18\x01 \x01(\x0b\x32(.google.cloud.osconfig.v1.FixedOrPercentB\x03\xe0\x41\x02\x12\x39\n\x11min_wait_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\"l\n\x0cRolloutState\x12\x1d\n\x19ROLLOUT_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04:\x84\x01\xea\x41\x80\x01\n*osconfig.googleapis.com/OSPolicyAssignment\x12Rprojects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}\"\xe0\x04\n#OSPolicyAssignmentOperationMetadata\x12M\n\x14os_policy_assignment\x18\x01 \x01(\tB/\xfa\x41,\n*osconfig.googleapis.com/OSPolicyAssignment\x12[\n\napi_method\x18\x02 \x01(\x0e\x32G.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod\x12\x61\n\rrollout_state\x18\x03 \x01(\x0e\x32J.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState\x12\x36\n\x12rollout_start_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13rollout_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"K\n\tAPIMethod\x12\x1a\n\x16\x41PI_METHOD_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\"l\n\x0cRolloutState\x12\x1d\n\x19ROLLOUT_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\"\xd3\x01\n\x1f\x43reateOSPolicyAssignmentRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12O\n\x14os_policy_assignment\x18\x02 \x01(\x0b\x32,.google.cloud.osconfig.v1.OSPolicyAssignmentB\x03\xe0\x41\x02\x12$\n\x17os_policy_assignment_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xa8\x01\n\x1fUpdateOSPolicyAssignmentRequest\x12O\n\x14os_policy_assignment\x18\x01 \x01(\x0b\x32,.google.cloud.osconfig.v1.OSPolicyAssignmentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"`\n\x1cGetOSPolicyAssignmentRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*osconfig.googleapis.com/OSPolicyAssignment\"\x82\x01\n\x1eListOSPolicyAssignmentsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x87\x01\n\x1fListOSPolicyAssignmentsResponse\x12K\n\x15os_policy_assignments\x18\x01 \x03(\x0b\x32,.google.cloud.osconfig.v1.OSPolicyAssignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x91\x01\n&ListOSPolicyAssignmentRevisionsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*osconfig.googleapis.com/OSPolicyAssignment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8f\x01\n\'ListOSPolicyAssignmentRevisionsResponse\x12K\n\x15os_policy_assignments\x18\x01 \x03(\x0b\x32,.google.cloud.osconfig.v1.OSPolicyAssignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"c\n\x1f\x44\x65leteOSPolicyAssignmentRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*osconfig.googleapis.com/OSPolicyAssignmentB\xc8\x01\n\x1c\x63om.google.cloud.osconfig.v1B\x18OsPolicyAssignmentsProtoP\x01Z8cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsConfig::V1b\x06proto3"
17
+
18
+ pool = Google::Protobuf::DescriptorPool.generated_pool
19
+
20
+ begin
21
+ pool.add_serialized_file(descriptor_data)
22
+ rescue TypeError => e
23
+ # Compatibility code: will be removed in the next major version.
24
+ require 'google/protobuf/descriptor_pb'
25
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
+ parsed.clear_dependency
27
+ serialized = parsed.class.encode(parsed)
28
+ file = pool.add_serialized_file(serialized)
29
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
+ imports = [
31
+ ["google.cloud.osconfig.v1.OSPolicy", "google/cloud/osconfig/v1/os_policy.proto"],
32
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
33
+ ["google.cloud.osconfig.v1.FixedOrPercent", "google/cloud/osconfig/v1/osconfig_common.proto"],
34
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
35
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
36
+ ]
37
+ imports.each do |type_name, expected_filename|
38
+ import_file = pool.lookup(type_name).file_descriptor
39
+ if import_file.name != expected_filename
40
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
107
41
  end
108
42
  end
43
+ warn "Each proto file must use a consistent fully-qualified name."
44
+ warn "This will become an error in the next major version."
109
45
  end
110
46
 
111
47
  module Google