google-cloud-os_config-v1alpha 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google-cloud-os_config-v1alpha.rb +21 -0
  7. data/lib/google/cloud/os_config/v1alpha.rb +38 -0
  8. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service.rb +53 -0
  9. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/client.rb +1347 -0
  10. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/credentials.rb +51 -0
  11. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/operations.rb +655 -0
  12. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/paths.rb +145 -0
  13. data/lib/google/cloud/os_config/v1alpha/version.rb +28 -0
  14. data/lib/google/cloud/osconfig/v1alpha/config_common_pb.rb +59 -0
  15. data/lib/google/cloud/osconfig/v1alpha/instance_os_policies_compliance_pb.rb +56 -0
  16. data/lib/google/cloud/osconfig/v1alpha/inventory_pb.rb +136 -0
  17. data/lib/google/cloud/osconfig/v1alpha/os_policy_assignments_pb.rb +128 -0
  18. data/lib/google/cloud/osconfig/v1alpha/os_policy_pb.rb +204 -0
  19. data/lib/google/cloud/osconfig/v1alpha/osconfig_common_pb.rb +25 -0
  20. data/lib/google/cloud/osconfig/v1alpha/osconfig_zonal_service_pb.rb +26 -0
  21. data/lib/google/cloud/osconfig/v1alpha/osconfig_zonal_service_services_pb.rb +107 -0
  22. data/lib/google/cloud/osconfig/v1alpha/vulnerability_pb.rb +118 -0
  23. data/proto_docs/README.md +4 -0
  24. data/proto_docs/google/api/field_behavior.rb +65 -0
  25. data/proto_docs/google/api/resource.rb +283 -0
  26. data/proto_docs/google/cloud/osconfig/v1alpha/config_common.rb +127 -0
  27. data/proto_docs/google/cloud/osconfig/v1alpha/instance_os_policies_compliance.rb +167 -0
  28. data/proto_docs/google/cloud/osconfig/v1alpha/inventory.rb +377 -0
  29. data/proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb +585 -0
  30. data/proto_docs/google/cloud/osconfig/v1alpha/os_policy_assignments.rb +367 -0
  31. data/proto_docs/google/cloud/osconfig/v1alpha/osconfig_common.rb +40 -0
  32. data/proto_docs/google/cloud/osconfig/v1alpha/vulnerability.rb +341 -0
  33. data/proto_docs/google/longrunning/operations.rb +164 -0
  34. data/proto_docs/google/protobuf/any.rb +141 -0
  35. data/proto_docs/google/protobuf/duration.rb +98 -0
  36. data/proto_docs/google/protobuf/empty.rb +36 -0
  37. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  38. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  39. data/proto_docs/google/rpc/status.rb +46 -0
  40. metadata +230 -0
@@ -0,0 +1,145 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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
+
20
+ module Google
21
+ module Cloud
22
+ module OsConfig
23
+ module V1alpha
24
+ module OsConfigZonalService
25
+ # Path helper methods for the OsConfigZonalService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Instance resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/instances/{instance}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param instance [String]
37
+ #
38
+ # @return [::String]
39
+ def instance_path project:, location:, instance:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/instances/#{instance}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified InstanceOSPoliciesCompliance resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param instance [String]
56
+ #
57
+ # @return [::String]
58
+ def instance_os_policies_compliance_path project:, location:, instance:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/instanceOSPoliciesCompliances/#{instance}"
63
+ end
64
+
65
+ ##
66
+ # Create a fully-qualified Inventory resource string.
67
+ #
68
+ # The resource will be in the following format:
69
+ #
70
+ # `projects/{project}/locations/{location}/instances/{instance}/inventory`
71
+ #
72
+ # @param project [String]
73
+ # @param location [String]
74
+ # @param instance [String]
75
+ #
76
+ # @return [::String]
77
+ def inventory_path project:, location:, instance:
78
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
79
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
80
+
81
+ "projects/#{project}/locations/#{location}/instances/#{instance}/inventory"
82
+ end
83
+
84
+ ##
85
+ # Create a fully-qualified Location resource string.
86
+ #
87
+ # The resource will be in the following format:
88
+ #
89
+ # `projects/{project}/locations/{location}`
90
+ #
91
+ # @param project [String]
92
+ # @param location [String]
93
+ #
94
+ # @return [::String]
95
+ def location_path project:, location:
96
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
97
+
98
+ "projects/#{project}/locations/#{location}"
99
+ end
100
+
101
+ ##
102
+ # Create a fully-qualified OSPolicyAssignment resource string.
103
+ #
104
+ # The resource will be in the following format:
105
+ #
106
+ # `projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}`
107
+ #
108
+ # @param project [String]
109
+ # @param location [String]
110
+ # @param os_policy_assignment [String]
111
+ #
112
+ # @return [::String]
113
+ def os_policy_assignment_path project:, location:, os_policy_assignment:
114
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
115
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
116
+
117
+ "projects/#{project}/locations/#{location}/osPolicyAssignments/#{os_policy_assignment}"
118
+ end
119
+
120
+ ##
121
+ # Create a fully-qualified VulnerabilityReport resource string.
122
+ #
123
+ # The resource will be in the following format:
124
+ #
125
+ # `projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport`
126
+ #
127
+ # @param project [String]
128
+ # @param location [String]
129
+ # @param instance [String]
130
+ #
131
+ # @return [::String]
132
+ def vulnerability_report_path project:, location:, instance:
133
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
134
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
135
+
136
+ "projects/#{project}/locations/#{location}/instances/#{instance}/vulnerabilityReport"
137
+ end
138
+
139
+ extend self
140
+ end
141
+ end
142
+ end
143
+ end
144
+ end
145
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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
+
20
+ module Google
21
+ module Cloud
22
+ module OsConfig
23
+ module V1alpha
24
+ VERSION = "0.1.0"
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,59 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1alpha/config_common.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/cloud/osconfig/v1alpha/config_common.proto", :syntax => :proto3) do
8
+ add_message "google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep" do
9
+ optional :type, :enum, 1, "google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type"
10
+ optional :outcome, :enum, 2, "google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome"
11
+ optional :error_message, :string, 3
12
+ end
13
+ add_enum "google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type" do
14
+ value :TYPE_UNSPECIFIED, 0
15
+ value :VALIDATION, 1
16
+ value :DESIRED_STATE_CHECK, 2
17
+ value :DESIRED_STATE_ENFORCEMENT, 3
18
+ value :DESIRED_STATE_CHECK_POST_ENFORCEMENT, 4
19
+ end
20
+ add_enum "google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome" do
21
+ value :OUTCOME_UNSPECIFIED, 0
22
+ value :SUCCEEDED, 1
23
+ value :FAILED, 2
24
+ end
25
+ add_message "google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance" do
26
+ optional :os_policy_resource_id, :string, 1
27
+ repeated :config_steps, :message, 2, "google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep"
28
+ optional :state, :enum, 3, "google.cloud.osconfig.v1alpha.OSPolicyComplianceState"
29
+ oneof :output do
30
+ optional :exec_resource_output, :message, 4, "google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput"
31
+ end
32
+ end
33
+ add_message "google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput" do
34
+ optional :enforcement_output, :bytes, 2
35
+ end
36
+ add_enum "google.cloud.osconfig.v1alpha.OSPolicyComplianceState" do
37
+ value :OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED, 0
38
+ value :COMPLIANT, 1
39
+ value :NON_COMPLIANT, 2
40
+ value :UNKNOWN, 3
41
+ value :NO_OS_POLICIES_APPLICABLE, 4
42
+ end
43
+ end
44
+ end
45
+
46
+ module Google
47
+ module Cloud
48
+ module OsConfig
49
+ module V1alpha
50
+ OSPolicyResourceConfigStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep").msgclass
51
+ OSPolicyResourceConfigStep::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type").enummodule
52
+ OSPolicyResourceConfigStep::Outcome = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome").enummodule
53
+ OSPolicyResourceCompliance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance").msgclass
54
+ OSPolicyResourceCompliance::ExecResourceOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput").msgclass
55
+ OSPolicyComplianceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyComplianceState").enummodule
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,56 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/osconfig/v1alpha/config_common_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto", :syntax => :proto3) do
12
+ add_message "google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance" do
13
+ optional :name, :string, 1
14
+ optional :instance, :string, 2
15
+ optional :state, :enum, 3, "google.cloud.osconfig.v1alpha.OSPolicyComplianceState"
16
+ optional :detailed_state, :string, 4
17
+ optional :detailed_state_reason, :string, 5
18
+ repeated :os_policy_compliances, :message, 6, "google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance"
19
+ optional :last_compliance_check_time, :message, 7, "google.protobuf.Timestamp"
20
+ optional :last_compliance_run_id, :string, 8
21
+ end
22
+ add_message "google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance" do
23
+ optional :os_policy_id, :string, 1
24
+ optional :os_policy_assignment, :string, 2
25
+ optional :state, :enum, 4, "google.cloud.osconfig.v1alpha.OSPolicyComplianceState"
26
+ repeated :os_policy_resource_compliances, :message, 5, "google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance"
27
+ end
28
+ add_message "google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest" do
29
+ optional :name, :string, 1
30
+ end
31
+ add_message "google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest" do
32
+ optional :parent, :string, 1
33
+ optional :page_size, :int32, 2
34
+ optional :page_token, :string, 3
35
+ optional :filter, :string, 4
36
+ end
37
+ add_message "google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse" do
38
+ repeated :instance_os_policies_compliances, :message, 1, "google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance"
39
+ optional :next_page_token, :string, 2
40
+ end
41
+ end
42
+ end
43
+
44
+ module Google
45
+ module Cloud
46
+ module OsConfig
47
+ module V1alpha
48
+ InstanceOSPoliciesCompliance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance").msgclass
49
+ InstanceOSPoliciesCompliance::OSPolicyCompliance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance").msgclass
50
+ GetInstanceOSPoliciesComplianceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest").msgclass
51
+ ListInstanceOSPoliciesCompliancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest").msgclass
52
+ ListInstanceOSPoliciesCompliancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse").msgclass
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,136 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1alpha/inventory.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/cloud/osconfig/v1alpha/inventory.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.osconfig.v1alpha.Inventory" do
12
+ optional :name, :string, 3
13
+ optional :os_info, :message, 1, "google.cloud.osconfig.v1alpha.Inventory.OsInfo"
14
+ map :items, :string, :message, 2, "google.cloud.osconfig.v1alpha.Inventory.Item"
15
+ optional :update_time, :message, 4, "google.protobuf.Timestamp"
16
+ end
17
+ add_message "google.cloud.osconfig.v1alpha.Inventory.OsInfo" do
18
+ optional :hostname, :string, 9
19
+ optional :long_name, :string, 2
20
+ optional :short_name, :string, 3
21
+ optional :version, :string, 4
22
+ optional :architecture, :string, 5
23
+ optional :kernel_version, :string, 6
24
+ optional :kernel_release, :string, 7
25
+ optional :osconfig_agent_version, :string, 8
26
+ end
27
+ add_message "google.cloud.osconfig.v1alpha.Inventory.Item" do
28
+ optional :id, :string, 1
29
+ optional :origin_type, :enum, 2, "google.cloud.osconfig.v1alpha.Inventory.Item.OriginType"
30
+ optional :create_time, :message, 8, "google.protobuf.Timestamp"
31
+ optional :update_time, :message, 9, "google.protobuf.Timestamp"
32
+ optional :type, :enum, 5, "google.cloud.osconfig.v1alpha.Inventory.Item.Type"
33
+ oneof :details do
34
+ optional :installed_package, :message, 6, "google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage"
35
+ optional :available_package, :message, 7, "google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage"
36
+ end
37
+ end
38
+ add_enum "google.cloud.osconfig.v1alpha.Inventory.Item.OriginType" do
39
+ value :ORIGIN_TYPE_UNSPECIFIED, 0
40
+ value :INVENTORY_REPORT, 1
41
+ end
42
+ add_enum "google.cloud.osconfig.v1alpha.Inventory.Item.Type" do
43
+ value :TYPE_UNSPECIFIED, 0
44
+ value :INSTALLED_PACKAGE, 1
45
+ value :AVAILABLE_PACKAGE, 2
46
+ end
47
+ add_message "google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage" do
48
+ oneof :details do
49
+ optional :yum_package, :message, 1, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage"
50
+ optional :apt_package, :message, 2, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage"
51
+ optional :zypper_package, :message, 3, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage"
52
+ optional :googet_package, :message, 4, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage"
53
+ optional :zypper_patch, :message, 5, "google.cloud.osconfig.v1alpha.Inventory.ZypperPatch"
54
+ optional :wua_package, :message, 6, "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage"
55
+ optional :qfe_package, :message, 7, "google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage"
56
+ optional :cos_package, :message, 8, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage"
57
+ end
58
+ end
59
+ add_message "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage" do
60
+ optional :package_name, :string, 4
61
+ optional :architecture, :string, 2
62
+ optional :version, :string, 3
63
+ end
64
+ add_message "google.cloud.osconfig.v1alpha.Inventory.ZypperPatch" do
65
+ optional :patch_name, :string, 5
66
+ optional :category, :string, 2
67
+ optional :severity, :string, 3
68
+ optional :summary, :string, 4
69
+ end
70
+ add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage" do
71
+ optional :title, :string, 1
72
+ optional :description, :string, 2
73
+ repeated :categories, :message, 3, "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory"
74
+ repeated :kb_article_ids, :string, 4
75
+ optional :support_url, :string, 11
76
+ repeated :more_info_urls, :string, 5
77
+ optional :update_id, :string, 6
78
+ optional :revision_number, :int32, 7
79
+ optional :last_deployment_change_time, :message, 10, "google.protobuf.Timestamp"
80
+ end
81
+ add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory" do
82
+ optional :id, :string, 1
83
+ optional :name, :string, 2
84
+ end
85
+ add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage" do
86
+ optional :caption, :string, 1
87
+ optional :description, :string, 2
88
+ optional :hot_fix_id, :string, 3
89
+ optional :install_time, :message, 5, "google.protobuf.Timestamp"
90
+ end
91
+ add_message "google.cloud.osconfig.v1alpha.GetInventoryRequest" do
92
+ optional :name, :string, 1
93
+ optional :view, :enum, 2, "google.cloud.osconfig.v1alpha.InventoryView"
94
+ end
95
+ add_message "google.cloud.osconfig.v1alpha.ListInventoriesRequest" do
96
+ optional :parent, :string, 1
97
+ optional :view, :enum, 2, "google.cloud.osconfig.v1alpha.InventoryView"
98
+ optional :page_size, :int32, 3
99
+ optional :page_token, :string, 4
100
+ optional :filter, :string, 5
101
+ end
102
+ add_message "google.cloud.osconfig.v1alpha.ListInventoriesResponse" do
103
+ repeated :inventories, :message, 1, "google.cloud.osconfig.v1alpha.Inventory"
104
+ optional :next_page_token, :string, 2
105
+ end
106
+ add_enum "google.cloud.osconfig.v1alpha.InventoryView" do
107
+ value :INVENTORY_VIEW_UNSPECIFIED, 0
108
+ value :BASIC, 1
109
+ value :FULL, 2
110
+ end
111
+ end
112
+ end
113
+
114
+ module Google
115
+ module Cloud
116
+ module OsConfig
117
+ module V1alpha
118
+ Inventory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory").msgclass
119
+ Inventory::OsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory.OsInfo").msgclass
120
+ Inventory::Item = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory.Item").msgclass
121
+ Inventory::Item::OriginType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory.Item.OriginType").enummodule
122
+ Inventory::Item::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory.Item.Type").enummodule
123
+ Inventory::SoftwarePackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage").msgclass
124
+ Inventory::VersionedPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory.VersionedPackage").msgclass
125
+ Inventory::ZypperPatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory.ZypperPatch").msgclass
126
+ Inventory::WindowsUpdatePackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage").msgclass
127
+ Inventory::WindowsUpdatePackage::WindowsUpdateCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory").msgclass
128
+ Inventory::WindowsQuickFixEngineeringPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage").msgclass
129
+ GetInventoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.GetInventoryRequest").msgclass
130
+ ListInventoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.ListInventoriesRequest").msgclass
131
+ ListInventoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.ListInventoriesResponse").msgclass
132
+ InventoryView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.InventoryView").enummodule
133
+ end
134
+ end
135
+ end
136
+ end
@@ -0,0 +1,128 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1alpha/os_policy_assignments.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/osconfig/v1alpha/os_policy_pb'
9
+ require 'google/cloud/osconfig/v1alpha/osconfig_common_pb'
10
+ require 'google/protobuf/duration_pb'
11
+ require 'google/protobuf/field_mask_pb'
12
+ require 'google/protobuf/timestamp_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/osconfig/v1alpha/os_policy_assignments.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.osconfig.v1alpha.OSPolicyAssignment" do
16
+ optional :name, :string, 1
17
+ optional :description, :string, 2
18
+ repeated :os_policies, :message, 3, "google.cloud.osconfig.v1alpha.OSPolicy"
19
+ optional :instance_filter, :message, 4, "google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter"
20
+ optional :rollout, :message, 5, "google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout"
21
+ optional :revision_id, :string, 6
22
+ optional :revision_create_time, :message, 7, "google.protobuf.Timestamp"
23
+ optional :rollout_state, :enum, 9, "google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState"
24
+ optional :baseline, :bool, 10
25
+ optional :deleted, :bool, 11
26
+ optional :reconciling, :bool, 12
27
+ optional :uid, :string, 13
28
+ end
29
+ add_message "google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet" do
30
+ map :labels, :string, :string, 1
31
+ end
32
+ add_message "google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter" do
33
+ optional :all, :bool, 1
34
+ repeated :os_short_names, :string, 2
35
+ repeated :inclusion_labels, :message, 3, "google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet"
36
+ repeated :exclusion_labels, :message, 4, "google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet"
37
+ end
38
+ add_message "google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout" do
39
+ optional :disruption_budget, :message, 1, "google.cloud.osconfig.v1alpha.FixedOrPercent"
40
+ optional :min_wait_duration, :message, 2, "google.protobuf.Duration"
41
+ end
42
+ add_enum "google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState" do
43
+ value :ROLLOUT_STATE_UNSPECIFIED, 0
44
+ value :IN_PROGRESS, 1
45
+ value :CANCELLING, 2
46
+ value :CANCELLED, 3
47
+ value :SUCCEEDED, 4
48
+ end
49
+ add_message "google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata" do
50
+ optional :os_policy_assignment, :string, 1
51
+ optional :api_method, :enum, 2, "google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod"
52
+ optional :rollout_state, :enum, 3, "google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState"
53
+ optional :rollout_start_time, :message, 4, "google.protobuf.Timestamp"
54
+ optional :rollout_update_time, :message, 5, "google.protobuf.Timestamp"
55
+ end
56
+ add_enum "google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod" do
57
+ value :API_METHOD_UNSPECIFIED, 0
58
+ value :CREATE, 1
59
+ value :UPDATE, 2
60
+ value :DELETE, 3
61
+ end
62
+ add_enum "google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState" do
63
+ value :ROLLOUT_STATE_UNSPECIFIED, 0
64
+ value :IN_PROGRESS, 1
65
+ value :CANCELLING, 2
66
+ value :CANCELLED, 3
67
+ value :SUCCEEDED, 4
68
+ end
69
+ add_message "google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest" do
70
+ optional :parent, :string, 1
71
+ optional :os_policy_assignment, :message, 2, "google.cloud.osconfig.v1alpha.OSPolicyAssignment"
72
+ optional :os_policy_assignment_id, :string, 3
73
+ end
74
+ add_message "google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest" do
75
+ optional :os_policy_assignment, :message, 1, "google.cloud.osconfig.v1alpha.OSPolicyAssignment"
76
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
77
+ end
78
+ add_message "google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest" do
79
+ optional :name, :string, 1
80
+ end
81
+ add_message "google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest" do
82
+ optional :parent, :string, 1
83
+ optional :page_size, :int32, 2
84
+ optional :page_token, :string, 3
85
+ end
86
+ add_message "google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse" do
87
+ repeated :os_policy_assignments, :message, 1, "google.cloud.osconfig.v1alpha.OSPolicyAssignment"
88
+ optional :next_page_token, :string, 2
89
+ end
90
+ add_message "google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest" do
91
+ optional :name, :string, 1
92
+ optional :page_size, :int32, 2
93
+ optional :page_token, :string, 3
94
+ end
95
+ add_message "google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse" do
96
+ repeated :os_policy_assignments, :message, 1, "google.cloud.osconfig.v1alpha.OSPolicyAssignment"
97
+ optional :next_page_token, :string, 2
98
+ end
99
+ add_message "google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest" do
100
+ optional :name, :string, 1
101
+ end
102
+ end
103
+ end
104
+
105
+ module Google
106
+ module Cloud
107
+ module OsConfig
108
+ module V1alpha
109
+ OSPolicyAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyAssignment").msgclass
110
+ OSPolicyAssignment::LabelSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet").msgclass
111
+ OSPolicyAssignment::InstanceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter").msgclass
112
+ OSPolicyAssignment::Rollout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout").msgclass
113
+ OSPolicyAssignment::RolloutState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState").enummodule
114
+ OSPolicyAssignmentOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata").msgclass
115
+ OSPolicyAssignmentOperationMetadata::APIMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod").enummodule
116
+ OSPolicyAssignmentOperationMetadata::RolloutState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState").enummodule
117
+ CreateOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest").msgclass
118
+ UpdateOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest").msgclass
119
+ GetOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest").msgclass
120
+ ListOSPolicyAssignmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest").msgclass
121
+ ListOSPolicyAssignmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse").msgclass
122
+ ListOSPolicyAssignmentRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest").msgclass
123
+ ListOSPolicyAssignmentRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse").msgclass
124
+ DeleteOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest").msgclass
125
+ end
126
+ end
127
+ end
128
+ end