google-cloud-os_config-v1 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,6 +67,27 @@ module Google
67
67
  resource.call(**args)
68
68
  end
69
69
 
70
+ ##
71
+ # Create a fully-qualified InstanceOSPolicyAssignment resource string.
72
+ #
73
+ # The resource will be in the following format:
74
+ #
75
+ # `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}`
76
+ #
77
+ # @param project [String]
78
+ # @param location [String]
79
+ # @param instance [String]
80
+ # @param assignment [String]
81
+ #
82
+ # @return [::String]
83
+ def instance_os_policy_assignment_path project:, location:, instance:, assignment:
84
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
85
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
86
+ raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
87
+
88
+ "projects/#{project}/locations/#{location}/instances/#{instance}/osPolicyAssignments/#{assignment}"
89
+ end
90
+
70
91
  ##
71
92
  # Create a fully-qualified Inventory resource string.
72
93
  #
@@ -86,6 +107,63 @@ module Google
86
107
  "projects/#{project}/locations/#{location}/instances/#{instance}/inventory"
87
108
  end
88
109
 
110
+ ##
111
+ # Create a fully-qualified Location resource string.
112
+ #
113
+ # The resource will be in the following format:
114
+ #
115
+ # `projects/{project}/locations/{location}`
116
+ #
117
+ # @param project [String]
118
+ # @param location [String]
119
+ #
120
+ # @return [::String]
121
+ def location_path project:, location:
122
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
123
+
124
+ "projects/#{project}/locations/#{location}"
125
+ end
126
+
127
+ ##
128
+ # Create a fully-qualified OSPolicyAssignment resource string.
129
+ #
130
+ # The resource will be in the following format:
131
+ #
132
+ # `projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}`
133
+ #
134
+ # @param project [String]
135
+ # @param location [String]
136
+ # @param os_policy_assignment [String]
137
+ #
138
+ # @return [::String]
139
+ def os_policy_assignment_path project:, location:, os_policy_assignment:
140
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
141
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
142
+
143
+ "projects/#{project}/locations/#{location}/osPolicyAssignments/#{os_policy_assignment}"
144
+ end
145
+
146
+ ##
147
+ # Create a fully-qualified OSPolicyAssignmentReport resource string.
148
+ #
149
+ # The resource will be in the following format:
150
+ #
151
+ # `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
152
+ #
153
+ # @param project [String]
154
+ # @param location [String]
155
+ # @param instance [String]
156
+ # @param assignment [String]
157
+ #
158
+ # @return [::String]
159
+ def os_policy_assignment_report_path project:, location:, instance:, assignment:
160
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
161
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
162
+ raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
163
+
164
+ "projects/#{project}/locations/#{location}/instances/#{instance}/osPolicyAssignments/#{assignment}/report"
165
+ end
166
+
89
167
  ##
90
168
  # Create a fully-qualified VulnerabilityReport resource string.
91
169
  #
@@ -24,6 +24,7 @@ require "google/cloud/os_config/v1/version"
24
24
 
25
25
  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
+ require "google/cloud/os_config/v1/os_config_zonal_service/operations"
27
28
  require "google/cloud/os_config/v1/os_config_zonal_service/client"
28
29
 
29
30
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsConfig
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -0,0 +1,92 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1/os_policy_assignment_reports.proto
3
+
4
+ require 'google/api/field_behavior_pb'
5
+ require 'google/api/resource_pb'
6
+ require 'google/protobuf/timestamp_pb'
7
+ require 'google/protobuf'
8
+
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/cloud/osconfig/v1/os_policy_assignment_reports.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest" do
12
+ optional :name, :string, 1
13
+ end
14
+ add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest" do
15
+ optional :parent, :string, 1
16
+ optional :page_size, :int32, 2
17
+ optional :filter, :string, 3
18
+ optional :page_token, :string, 4
19
+ end
20
+ add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse" do
21
+ repeated :os_policy_assignment_reports, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignmentReport"
22
+ optional :next_page_token, :string, 2
23
+ end
24
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport" do
25
+ optional :name, :string, 1
26
+ optional :instance, :string, 2
27
+ optional :os_policy_assignment, :string, 3
28
+ repeated :os_policy_compliances, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance"
29
+ optional :update_time, :message, 5, "google.protobuf.Timestamp"
30
+ optional :last_run_id, :string, 6
31
+ end
32
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance" do
33
+ optional :os_policy_id, :string, 1
34
+ optional :compliance_state, :enum, 2, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState"
35
+ optional :compliance_state_reason, :string, 3
36
+ repeated :os_policy_resource_compliances, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance"
37
+ end
38
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance" do
39
+ optional :os_policy_resource_id, :string, 1
40
+ repeated :config_steps, :message, 2, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep"
41
+ optional :compliance_state, :enum, 3, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState"
42
+ optional :compliance_state_reason, :string, 4
43
+ oneof :output do
44
+ optional :exec_resource_output, :message, 5, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput"
45
+ end
46
+ end
47
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep" do
48
+ optional :type, :enum, 1, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type"
49
+ optional :error_message, :string, 2
50
+ end
51
+ add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type" do
52
+ value :TYPE_UNSPECIFIED, 0
53
+ value :VALIDATION, 1
54
+ value :DESIRED_STATE_CHECK, 2
55
+ value :DESIRED_STATE_ENFORCEMENT, 3
56
+ value :DESIRED_STATE_CHECK_POST_ENFORCEMENT, 4
57
+ end
58
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput" do
59
+ optional :enforcement_output, :bytes, 2
60
+ end
61
+ add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState" do
62
+ value :UNKNOWN, 0
63
+ value :COMPLIANT, 1
64
+ value :NON_COMPLIANT, 2
65
+ end
66
+ add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState" do
67
+ value :UNKNOWN, 0
68
+ value :COMPLIANT, 1
69
+ value :NON_COMPLIANT, 2
70
+ end
71
+ end
72
+ end
73
+
74
+ module Google
75
+ module Cloud
76
+ module OsConfig
77
+ module V1
78
+ GetOSPolicyAssignmentReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest").msgclass
79
+ ListOSPolicyAssignmentReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest").msgclass
80
+ ListOSPolicyAssignmentReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse").msgclass
81
+ OSPolicyAssignmentReport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport").msgclass
82
+ OSPolicyAssignmentReport::OSPolicyCompliance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance").msgclass
83
+ OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance").msgclass
84
+ OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::OSPolicyResourceConfigStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep").msgclass
85
+ OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::OSPolicyResourceConfigStep::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type").enummodule
86
+ OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::ExecResourceOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput").msgclass
87
+ OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::ComplianceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState").enummodule
88
+ OSPolicyAssignmentReport::OSPolicyCompliance::ComplianceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState").enummodule
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,134 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1/os_policy_assignments.proto
3
+
4
+ require 'google/api/field_behavior_pb'
5
+ require 'google/api/resource_pb'
6
+ require 'google/cloud/osconfig/v1/os_policy_pb'
7
+ require 'google/cloud/osconfig/v1/osconfig_common_pb'
8
+ require 'google/protobuf/duration_pb'
9
+ require 'google/protobuf/field_mask_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ require 'google/protobuf'
12
+
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/osconfig/v1/os_policy_assignments.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignment" do
16
+ optional :name, :string, 1
17
+ optional :description, :string, 2
18
+ repeated :os_policies, :message, 3, "google.cloud.osconfig.v1.OSPolicy"
19
+ optional :instance_filter, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter"
20
+ optional :rollout, :message, 5, "google.cloud.osconfig.v1.OSPolicyAssignment.Rollout"
21
+ optional :revision_id, :string, 6
22
+ optional :revision_create_time, :message, 7, "google.protobuf.Timestamp"
23
+ optional :etag, :string, 8
24
+ optional :rollout_state, :enum, 9, "google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState"
25
+ optional :baseline, :bool, 10
26
+ optional :deleted, :bool, 11
27
+ optional :reconciling, :bool, 12
28
+ optional :uid, :string, 13
29
+ end
30
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet" do
31
+ map :labels, :string, :string, 1
32
+ end
33
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter" do
34
+ optional :all, :bool, 1
35
+ repeated :inclusion_labels, :message, 2, "google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet"
36
+ repeated :exclusion_labels, :message, 3, "google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet"
37
+ repeated :inventories, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory"
38
+ end
39
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory" do
40
+ optional :os_short_name, :string, 1
41
+ optional :os_version, :string, 2
42
+ end
43
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignment.Rollout" do
44
+ optional :disruption_budget, :message, 1, "google.cloud.osconfig.v1.FixedOrPercent"
45
+ optional :min_wait_duration, :message, 2, "google.protobuf.Duration"
46
+ end
47
+ add_enum "google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState" do
48
+ value :ROLLOUT_STATE_UNSPECIFIED, 0
49
+ value :IN_PROGRESS, 1
50
+ value :CANCELLING, 2
51
+ value :CANCELLED, 3
52
+ value :SUCCEEDED, 4
53
+ end
54
+ add_message "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata" do
55
+ optional :os_policy_assignment, :string, 1
56
+ optional :api_method, :enum, 2, "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod"
57
+ optional :rollout_state, :enum, 3, "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState"
58
+ optional :rollout_start_time, :message, 4, "google.protobuf.Timestamp"
59
+ optional :rollout_update_time, :message, 5, "google.protobuf.Timestamp"
60
+ end
61
+ add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod" do
62
+ value :API_METHOD_UNSPECIFIED, 0
63
+ value :CREATE, 1
64
+ value :UPDATE, 2
65
+ value :DELETE, 3
66
+ end
67
+ add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState" do
68
+ value :ROLLOUT_STATE_UNSPECIFIED, 0
69
+ value :IN_PROGRESS, 1
70
+ value :CANCELLING, 2
71
+ value :CANCELLED, 3
72
+ value :SUCCEEDED, 4
73
+ end
74
+ add_message "google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest" do
75
+ optional :parent, :string, 1
76
+ optional :os_policy_assignment, :message, 2, "google.cloud.osconfig.v1.OSPolicyAssignment"
77
+ optional :os_policy_assignment_id, :string, 3
78
+ end
79
+ add_message "google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest" do
80
+ optional :os_policy_assignment, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignment"
81
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
82
+ end
83
+ add_message "google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest" do
84
+ optional :name, :string, 1
85
+ end
86
+ add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest" do
87
+ optional :parent, :string, 1
88
+ optional :page_size, :int32, 2
89
+ optional :page_token, :string, 3
90
+ end
91
+ add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse" do
92
+ repeated :os_policy_assignments, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignment"
93
+ optional :next_page_token, :string, 2
94
+ end
95
+ add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest" do
96
+ optional :name, :string, 1
97
+ optional :page_size, :int32, 2
98
+ optional :page_token, :string, 3
99
+ end
100
+ add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse" do
101
+ repeated :os_policy_assignments, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignment"
102
+ optional :next_page_token, :string, 2
103
+ end
104
+ add_message "google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest" do
105
+ optional :name, :string, 1
106
+ end
107
+ end
108
+ end
109
+
110
+ module Google
111
+ module Cloud
112
+ module OsConfig
113
+ module V1
114
+ OSPolicyAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment").msgclass
115
+ OSPolicyAssignment::LabelSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet").msgclass
116
+ OSPolicyAssignment::InstanceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter").msgclass
117
+ OSPolicyAssignment::InstanceFilter::Inventory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory").msgclass
118
+ OSPolicyAssignment::Rollout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.Rollout").msgclass
119
+ OSPolicyAssignment::RolloutState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState").enummodule
120
+ OSPolicyAssignmentOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata").msgclass
121
+ OSPolicyAssignmentOperationMetadata::APIMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod").enummodule
122
+ OSPolicyAssignmentOperationMetadata::RolloutState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState").enummodule
123
+ CreateOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest").msgclass
124
+ UpdateOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest").msgclass
125
+ GetOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest").msgclass
126
+ ListOSPolicyAssignmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest").msgclass
127
+ ListOSPolicyAssignmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse").msgclass
128
+ ListOSPolicyAssignmentRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest").msgclass
129
+ ListOSPolicyAssignmentRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse").msgclass
130
+ DeleteOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest").msgclass
131
+ end
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,204 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1/os_policy.proto
3
+
4
+ require 'google/api/field_behavior_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/osconfig/v1/os_policy.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.osconfig.v1.OSPolicy" do
10
+ optional :id, :string, 1
11
+ optional :description, :string, 2
12
+ optional :mode, :enum, 3, "google.cloud.osconfig.v1.OSPolicy.Mode"
13
+ repeated :resource_groups, :message, 4, "google.cloud.osconfig.v1.OSPolicy.ResourceGroup"
14
+ optional :allow_no_resource_group_match, :bool, 5
15
+ end
16
+ add_message "google.cloud.osconfig.v1.OSPolicy.InventoryFilter" do
17
+ optional :os_short_name, :string, 1
18
+ optional :os_version, :string, 2
19
+ end
20
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource" do
21
+ optional :id, :string, 1
22
+ oneof :resource_type do
23
+ optional :pkg, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource"
24
+ optional :repository, :message, 3, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource"
25
+ optional :exec, :message, 4, "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource"
26
+ optional :file, :message, 5, "google.cloud.osconfig.v1.OSPolicy.Resource.FileResource"
27
+ end
28
+ end
29
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.File" do
30
+ optional :allow_insecure, :bool, 4
31
+ oneof :type do
32
+ optional :remote, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote"
33
+ optional :gcs, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs"
34
+ optional :local_path, :string, 3
35
+ end
36
+ end
37
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote" do
38
+ optional :uri, :string, 1
39
+ optional :sha256_checksum, :string, 2
40
+ end
41
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs" do
42
+ optional :bucket, :string, 1
43
+ optional :object, :string, 2
44
+ optional :generation, :int64, 3
45
+ end
46
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource" do
47
+ optional :desired_state, :enum, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState"
48
+ oneof :system_package do
49
+ optional :apt, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT"
50
+ optional :deb, :message, 3, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb"
51
+ optional :yum, :message, 4, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM"
52
+ optional :zypper, :message, 5, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper"
53
+ optional :rpm, :message, 6, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM"
54
+ optional :googet, :message, 7, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet"
55
+ optional :msi, :message, 8, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI"
56
+ end
57
+ end
58
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb" do
59
+ optional :source, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File"
60
+ optional :pull_deps, :bool, 2
61
+ end
62
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT" do
63
+ optional :name, :string, 1
64
+ end
65
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM" do
66
+ optional :source, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File"
67
+ optional :pull_deps, :bool, 2
68
+ end
69
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM" do
70
+ optional :name, :string, 1
71
+ end
72
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper" do
73
+ optional :name, :string, 1
74
+ end
75
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet" do
76
+ optional :name, :string, 1
77
+ end
78
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI" do
79
+ optional :source, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File"
80
+ repeated :properties, :string, 2
81
+ end
82
+ add_enum "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState" do
83
+ value :DESIRED_STATE_UNSPECIFIED, 0
84
+ value :INSTALLED, 1
85
+ value :REMOVED, 2
86
+ end
87
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource" do
88
+ oneof :repository do
89
+ optional :apt, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository"
90
+ optional :yum, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository"
91
+ optional :zypper, :message, 3, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository"
92
+ optional :goo, :message, 4, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository"
93
+ end
94
+ end
95
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository" do
96
+ optional :archive_type, :enum, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType"
97
+ optional :uri, :string, 2
98
+ optional :distribution, :string, 3
99
+ repeated :components, :string, 4
100
+ optional :gpg_key, :string, 5
101
+ end
102
+ add_enum "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType" do
103
+ value :ARCHIVE_TYPE_UNSPECIFIED, 0
104
+ value :DEB, 1
105
+ value :DEB_SRC, 2
106
+ end
107
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository" do
108
+ optional :id, :string, 1
109
+ optional :display_name, :string, 2
110
+ optional :base_url, :string, 3
111
+ repeated :gpg_keys, :string, 4
112
+ end
113
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository" do
114
+ optional :id, :string, 1
115
+ optional :display_name, :string, 2
116
+ optional :base_url, :string, 3
117
+ repeated :gpg_keys, :string, 4
118
+ end
119
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository" do
120
+ optional :name, :string, 1
121
+ optional :url, :string, 2
122
+ end
123
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource" do
124
+ optional :validate, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec"
125
+ optional :enforce, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec"
126
+ end
127
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec" do
128
+ repeated :args, :string, 3
129
+ optional :interpreter, :enum, 4, "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter"
130
+ optional :output_file_path, :string, 5
131
+ oneof :source do
132
+ optional :file, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File"
133
+ optional :script, :string, 2
134
+ end
135
+ end
136
+ add_enum "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter" do
137
+ value :INTERPRETER_UNSPECIFIED, 0
138
+ value :NONE, 1
139
+ value :SHELL, 2
140
+ value :POWERSHELL, 3
141
+ end
142
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.FileResource" do
143
+ optional :path, :string, 3
144
+ optional :state, :enum, 4, "google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState"
145
+ optional :permissions, :string, 5
146
+ oneof :source do
147
+ optional :file, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File"
148
+ optional :content, :string, 2
149
+ end
150
+ end
151
+ add_enum "google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState" do
152
+ value :DESIRED_STATE_UNSPECIFIED, 0
153
+ value :PRESENT, 1
154
+ value :ABSENT, 2
155
+ value :CONTENTS_MATCH, 3
156
+ end
157
+ add_message "google.cloud.osconfig.v1.OSPolicy.ResourceGroup" do
158
+ repeated :inventory_filters, :message, 1, "google.cloud.osconfig.v1.OSPolicy.InventoryFilter"
159
+ repeated :resources, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource"
160
+ end
161
+ add_enum "google.cloud.osconfig.v1.OSPolicy.Mode" do
162
+ value :MODE_UNSPECIFIED, 0
163
+ value :VALIDATION, 1
164
+ value :ENFORCEMENT, 2
165
+ end
166
+ end
167
+ end
168
+
169
+ module Google
170
+ module Cloud
171
+ module OsConfig
172
+ module V1
173
+ OSPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy").msgclass
174
+ OSPolicy::InventoryFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.InventoryFilter").msgclass
175
+ OSPolicy::Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource").msgclass
176
+ OSPolicy::Resource::File = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.File").msgclass
177
+ OSPolicy::Resource::File::Remote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote").msgclass
178
+ OSPolicy::Resource::File::Gcs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs").msgclass
179
+ OSPolicy::Resource::PackageResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource").msgclass
180
+ OSPolicy::Resource::PackageResource::Deb = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb").msgclass
181
+ OSPolicy::Resource::PackageResource::APT = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT").msgclass
182
+ OSPolicy::Resource::PackageResource::RPM = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM").msgclass
183
+ OSPolicy::Resource::PackageResource::YUM = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM").msgclass
184
+ OSPolicy::Resource::PackageResource::Zypper = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper").msgclass
185
+ OSPolicy::Resource::PackageResource::GooGet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet").msgclass
186
+ OSPolicy::Resource::PackageResource::MSI = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI").msgclass
187
+ OSPolicy::Resource::PackageResource::DesiredState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState").enummodule
188
+ OSPolicy::Resource::RepositoryResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource").msgclass
189
+ OSPolicy::Resource::RepositoryResource::AptRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository").msgclass
190
+ OSPolicy::Resource::RepositoryResource::AptRepository::ArchiveType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType").enummodule
191
+ OSPolicy::Resource::RepositoryResource::YumRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository").msgclass
192
+ OSPolicy::Resource::RepositoryResource::ZypperRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository").msgclass
193
+ OSPolicy::Resource::RepositoryResource::GooRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository").msgclass
194
+ OSPolicy::Resource::ExecResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource").msgclass
195
+ OSPolicy::Resource::ExecResource::Exec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec").msgclass
196
+ OSPolicy::Resource::ExecResource::Exec::Interpreter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter").enummodule
197
+ OSPolicy::Resource::FileResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.FileResource").msgclass
198
+ OSPolicy::Resource::FileResource::DesiredState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState").enummodule
199
+ OSPolicy::ResourceGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.ResourceGroup").msgclass
200
+ OSPolicy::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Mode").enummodule
201
+ end
202
+ end
203
+ end
204
+ end
@@ -3,9 +3,11 @@
3
3
 
4
4
  require 'google/api/annotations_pb'
5
5
  require 'google/api/client_pb'
6
- require 'google/api/resource_pb'
7
6
  require 'google/cloud/osconfig/v1/inventory_pb'
7
+ require 'google/cloud/osconfig/v1/os_policy_assignment_reports_pb'
8
+ require 'google/cloud/osconfig/v1/os_policy_assignments_pb'
8
9
  require 'google/cloud/osconfig/v1/vulnerability_pb'
10
+ require 'google/longrunning/operations_pb'
9
11
  require 'google/protobuf'
10
12
 
11
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -36,6 +36,57 @@ module Google
36
36
  self.unmarshal_class_method = :decode
37
37
  self.service_name = 'google.cloud.osconfig.v1.OsConfigZonalService'
38
38
 
39
+ # Create an OS policy assignment.
40
+ #
41
+ # This method also creates the first revision of the OS policy assignment.
42
+ #
43
+ # This method returns a long running operation (LRO) that contains the
44
+ # rollout details. The rollout can be cancelled by cancelling the LRO.
45
+ #
46
+ # For more information, see [Method:
47
+ # projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
48
+ rpc :CreateOSPolicyAssignment, ::Google::Cloud::OsConfig::V1::CreateOSPolicyAssignmentRequest, ::Google::Longrunning::Operation
49
+ # Update an existing OS policy assignment.
50
+ #
51
+ # This method creates a new revision of the OS policy assignment.
52
+ #
53
+ # This method returns a long running operation (LRO) that contains the
54
+ # rollout details. The rollout can be cancelled by cancelling the LRO.
55
+ #
56
+ # For more information, see [Method:
57
+ # projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
58
+ rpc :UpdateOSPolicyAssignment, ::Google::Cloud::OsConfig::V1::UpdateOSPolicyAssignmentRequest, ::Google::Longrunning::Operation
59
+ # Retrieve an existing OS policy assignment.
60
+ #
61
+ # This method always returns the latest revision. In order to retrieve a
62
+ # previous revision of the assignment, also provide the revision ID in the
63
+ # `name` parameter.
64
+ rpc :GetOSPolicyAssignment, ::Google::Cloud::OsConfig::V1::GetOSPolicyAssignmentRequest, ::Google::Cloud::OsConfig::V1::OSPolicyAssignment
65
+ # List the OS policy assignments under the parent resource.
66
+ #
67
+ # For each OS policy assignment, the latest revision is returned.
68
+ rpc :ListOSPolicyAssignments, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentsRequest, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentsResponse
69
+ # List the OS policy assignment revisions for a given OS policy assignment.
70
+ rpc :ListOSPolicyAssignmentRevisions, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentRevisionsRequest, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentRevisionsResponse
71
+ # Delete the OS policy assignment.
72
+ #
73
+ # This method creates a new revision of the OS policy assignment.
74
+ #
75
+ # This method returns a long running operation (LRO) that contains the
76
+ # rollout details. The rollout can be cancelled by cancelling the LRO.
77
+ #
78
+ # If the LRO completes and is not cancelled, all revisions associated with
79
+ # the OS policy assignment are deleted.
80
+ #
81
+ # For more information, see [Method:
82
+ # projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
83
+ rpc :DeleteOSPolicyAssignment, ::Google::Cloud::OsConfig::V1::DeleteOSPolicyAssignmentRequest, ::Google::Longrunning::Operation
84
+ # Get the OS policy asssignment report for the specified Compute Engine VM
85
+ # instance.
86
+ rpc :GetOSPolicyAssignmentReport, ::Google::Cloud::OsConfig::V1::GetOSPolicyAssignmentReportRequest, ::Google::Cloud::OsConfig::V1::OSPolicyAssignmentReport
87
+ # List OS policy asssignment reports for all Compute Engine VM instances in
88
+ # the specified zone.
89
+ rpc :ListOSPolicyAssignmentReports, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentReportsRequest, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentReportsResponse
39
90
  # Get inventory data for the specified VM instance. If the VM has no
40
91
  # associated inventory, the message `NOT_FOUND` is returned.
41
92
  rpc :GetInventory, ::Google::Cloud::OsConfig::V1::GetInventoryRequest, ::Google::Cloud::OsConfig::V1::Inventory