google-cloud-audit_manager-v1 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,6 +41,20 @@ module Google
41
41
  # at the project level using the service agent at the organization or folder
42
42
  # level, all the buckets that are associated with the service agent are
43
43
  # available.
44
+ # @!attribute [rw] validate_only
45
+ # @return [::Boolean]
46
+ # Optional. If `true`, only validates the request and does not enroll the
47
+ # resource. This executes standard request validation (such as schema, IAM,
48
+ # and destination checks) and skips the apply phase.
49
+ #
50
+ # Use this field for the following purposes:
51
+ # * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
52
+ # dry-run mutations (e.g., `terraform plan`) without creating real
53
+ # resources or incurring costs.
54
+ # * **User Interface Validation**: Enable real-time form and permission
55
+ # validation in custom UIs before submitting requests.
56
+ # * **CI/CD & Automation**: Test your scripts, permissions, and parameters
57
+ # safely without consuming resource quotas.
44
58
  class EnrollResourceRequest
45
59
  include ::Google::Protobuf::MessageExts
46
60
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -82,6 +96,21 @@ module Google
82
96
  # @return [::String]
83
97
  # Required. Framework (set of controls) that the audit scope report is
84
98
  # generated against. For example, `NIST_800_53`.
99
+ # @!attribute [rw] validate_only
100
+ # @return [::Boolean]
101
+ # Optional. If `true`, only validates the request and does not generate the
102
+ # audit scope report. This executes standard request validation (such as
103
+ # schema, framework existence, scope, and IAM checks) and skips the apply
104
+ # phase.
105
+ #
106
+ # Use this field for the following purposes:
107
+ # * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
108
+ # dry-run mutations (e.g., `terraform plan`) without creating real
109
+ # resources or incurring costs.
110
+ # * **User Interface Validation**: Enable real-time form and permission
111
+ # validation in custom UIs before submitting requests.
112
+ # * **CI/CD & Automation**: Test your scripts, permissions, and parameters
113
+ # safely without consuming resource quotas.
85
114
  class GenerateAuditScopeReportRequest
86
115
  include ::Google::Protobuf::MessageExts
87
116
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -684,6 +713,235 @@ module Google
684
713
  extend ::Google::Protobuf::MessageExts::ClassMethods
685
714
  end
686
715
 
716
+ # Request message for
717
+ # {::Google::Cloud::AuditManager::V1::AuditManager::Client#create_audit_schedule CreateAuditSchedule}.
718
+ # @!attribute [rw] parent
719
+ # @return [::String]
720
+ # Required. Project or folder that this audit schedule is for, in one of the
721
+ # following formats:
722
+ #
723
+ # * `projects/{project}/locations/{location}`
724
+ # * `folders/{folder}/locations/{location}`
725
+ # @!attribute [rw] audit_schedule
726
+ # @return [::Google::Cloud::AuditManager::V1::AuditSchedule]
727
+ # Required. Audit schedule to create.
728
+ # @!attribute [rw] audit_schedule_id
729
+ # @return [::String]
730
+ # Required. ID to use for the audit schedule, which becomes the final
731
+ # component of the audit schedule's resource name.
732
+ # @!attribute [rw] validate_only
733
+ # @return [::Boolean]
734
+ # Optional. If `true`, only validates the request and does not create the
735
+ # audit schedule. This executes standard request validation (such as schema,
736
+ # framework existence, scope, and IAM checks) and skips the apply phase.
737
+ #
738
+ # Use this field for the following purposes:
739
+ # * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
740
+ # dry-run mutations (e.g., `terraform plan`) without creating real
741
+ # resources or incurring costs.
742
+ # * **User Interface Validation**: Enable real-time form and permission
743
+ # validation in custom UIs before submitting requests.
744
+ # * **CI/CD & Automation**: Test your scripts, permissions, and parameters
745
+ # safely without consuming resource quotas.
746
+ class CreateAuditScheduleRequest
747
+ include ::Google::Protobuf::MessageExts
748
+ extend ::Google::Protobuf::MessageExts::ClassMethods
749
+ end
750
+
751
+ # Request message for
752
+ # {::Google::Cloud::AuditManager::V1::AuditManager::Client#update_audit_schedule UpdateAuditSchedule}.
753
+ # @!attribute [rw] audit_schedule
754
+ # @return [::Google::Cloud::AuditManager::V1::AuditSchedule]
755
+ # Required. Audit schedule to update.
756
+ # @!attribute [rw] update_mask
757
+ # @return [::Google::Protobuf::FieldMask]
758
+ # Optional. List of fields to update.
759
+ # @!attribute [rw] validate_only
760
+ # @return [::Boolean]
761
+ # Optional. If `true`, only validates the request and does not update the
762
+ # audit schedule. This executes standard request validation (such as
763
+ # schema, framework existence, scope, and IAM checks) and skips the apply
764
+ # phase.
765
+ #
766
+ # Use this field for the following purposes:
767
+ # * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
768
+ # dry-run mutations (e.g., `terraform plan`) without creating real
769
+ # resources or incurring costs.
770
+ # * **User Interface Validation**: Enable real-time form and permission
771
+ # validation in custom UIs before submitting requests.
772
+ # * **CI/CD & Automation**: Test your scripts, permissions, and parameters
773
+ # safely without consuming resource quotas.
774
+ class UpdateAuditScheduleRequest
775
+ include ::Google::Protobuf::MessageExts
776
+ extend ::Google::Protobuf::MessageExts::ClassMethods
777
+ end
778
+
779
+ # Request message for
780
+ # {::Google::Cloud::AuditManager::V1::AuditManager::Client#get_audit_schedule GetAuditSchedule}.
781
+ # @!attribute [rw] name
782
+ # @return [::String]
783
+ # Required. Name of the audit schedule to retrieve, in one of the following
784
+ # formats:
785
+ #
786
+ # * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}`
787
+ # * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}`
788
+ # * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}`
789
+ class GetAuditScheduleRequest
790
+ include ::Google::Protobuf::MessageExts
791
+ extend ::Google::Protobuf::MessageExts::ClassMethods
792
+ end
793
+
794
+ # Request message for
795
+ # {::Google::Cloud::AuditManager::V1::AuditManager::Client#list_audit_schedules ListAuditSchedules}.
796
+ # @!attribute [rw] parent
797
+ # @return [::String]
798
+ # Required. Parent for the audit schedule, in one of the following formats:
799
+ #
800
+ # * `projects/{project}/locations/{location}`
801
+ # * `folders/{folder}/locations/{location}`
802
+ # * `organizations/{organization}/locations/{location}`
803
+ # @!attribute [rw] page_size
804
+ # @return [::Integer]
805
+ # Optional. Maximum number of items to return in a single page. The service
806
+ # might return fewer items than this value. If unspecified, the service picks
807
+ # an appropriate default. The maximum value is 100; values above 100 are
808
+ # reduced to 100.
809
+ # @!attribute [rw] page_token
810
+ # @return [::String]
811
+ # Optional. A page token, received from a previous call, to retrieve the next
812
+ # page of results.
813
+ class ListAuditSchedulesRequest
814
+ include ::Google::Protobuf::MessageExts
815
+ extend ::Google::Protobuf::MessageExts::ClassMethods
816
+ end
817
+
818
+ # Response message for
819
+ # {::Google::Cloud::AuditManager::V1::AuditManager::Client#list_audit_schedules ListAuditSchedules}.
820
+ # @!attribute [rw] audit_schedules
821
+ # @return [::Array<::Google::Cloud::AuditManager::V1::AuditSchedule>]
822
+ # List of audit schedules.
823
+ # @!attribute [rw] next_page_token
824
+ # @return [::String]
825
+ # A token that you can send as the `page_token` in a subsequent request to
826
+ # retrieve the next page of results. If this field is empty, there are no
827
+ # subsequent pages.
828
+ # @!attribute [rw] unreachable
829
+ # @return [::Array<::String>]
830
+ # Locations that can't be reached.
831
+ class ListAuditSchedulesResponse
832
+ include ::Google::Protobuf::MessageExts
833
+ extend ::Google::Protobuf::MessageExts::ClassMethods
834
+ end
835
+
836
+ # An audit schedule, in one of the following formats:
837
+ #
838
+ # * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}`
839
+ # * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}`
840
+ # @!attribute [rw] name
841
+ # @return [::String]
842
+ # Identifier. Unique identifier for the audit schedule.
843
+ # Format:
844
+ # projects/\\{project}/locations/\\{location}/auditSchedules/\\{audit_schedule}
845
+ # folders/\\{folder}/locations/\\{location}/auditSchedules/\\{audit_schedule}
846
+ # organizations/\\{organization}/locations/\\{location}/auditSchedules/\\{audit_schedule}
847
+ # @!attribute [rw] display_name
848
+ # @return [::String]
849
+ # Optional. Display name for the audit schedule.
850
+ # @!attribute [rw] gcs_uri
851
+ # @return [::String]
852
+ # Required. Cloud Storage bucket where Audit Manager can upload the audit
853
+ # report and evidence. The format is `gs://{bucket_name}`.
854
+ # @!attribute [rw] compliance_framework
855
+ # @return [::String]
856
+ # Required. Framework (set of controls) that the audit scope report is
857
+ # generated against. For example, `NIST_800_53`.
858
+ # @!attribute [rw] report_format
859
+ # @return [::Google::Cloud::AuditManager::V1::AuditSchedule::AuditReportFormat]
860
+ # Required. Format for the audit report.
861
+ # @!attribute [rw] schedule_config
862
+ # @return [::Google::Cloud::AuditManager::V1::ScheduleConfig]
863
+ # Required. Configuration that defines when and how often audit runs are
864
+ # automatically triggered for this schedule.
865
+ # @!attribute [rw] state
866
+ # @return [::Google::Cloud::AuditManager::V1::ScheduleState]
867
+ # Optional. State of the audit schedule. While most states are managed by the
868
+ # system, you can use
869
+ # {::Google::Cloud::AuditManager::V1::AuditManager::Client#update_audit_schedule UpdateAuditSchedule}
870
+ # to start, pause, or delete the schedule.
871
+ # @!attribute [r] create_time
872
+ # @return [::Google::Protobuf::Timestamp]
873
+ # Output only. Timestamp when the schedule was created.
874
+ # @!attribute [r] update_time
875
+ # @return [::Google::Protobuf::Timestamp]
876
+ # Output only. Timestamp when the schedule was last updated.
877
+ # @!attribute [r] next_run_time
878
+ # @return [::Google::Protobuf::Timestamp]
879
+ # Output only. Calculated timestamp for the next scheduled run.
880
+ # @!attribute [r] last_trigger_time
881
+ # @return [::Google::Protobuf::Timestamp]
882
+ # Output only. Timestamp when the audit run was last triggered.
883
+ # @!attribute [r] error_message
884
+ # @return [::String]
885
+ # Output only. Describes the error if the schedule is in an error state.
886
+ class AuditSchedule
887
+ include ::Google::Protobuf::MessageExts
888
+ extend ::Google::Protobuf::MessageExts::ClassMethods
889
+
890
+ # Format for the audit report.
891
+ module AuditReportFormat
892
+ # Default value. This value is unused.
893
+ AUDIT_REPORT_FORMAT_UNSPECIFIED = 0
894
+
895
+ # Open Document Format (ODF).
896
+ AUDIT_REPORT_FORMAT_ODF = 1
897
+ end
898
+ end
899
+
900
+ # Timing and frequency parameters for recurring audit runs.
901
+ # @!attribute [rw] start_time
902
+ # @return [::Google::Protobuf::Timestamp]
903
+ # Required. Date and time when the first audit run is triggered.
904
+ # Subsequent runs are based on this time and the chosen frequency.
905
+ # @!attribute [rw] end_time
906
+ # @return [::Google::Protobuf::Timestamp]
907
+ # Optional. Date that the schedule stops.
908
+ # If not specified, the schedule runs indefinitely.
909
+ # @!attribute [rw] frequency
910
+ # @return [::Google::Cloud::AuditManager::V1::ScheduleConfig::Frequency]
911
+ # Required. Frequency of audit runs.
912
+ # @!attribute [rw] time_zone
913
+ # @return [::String]
914
+ # Optional. Time zone for the audit schedule in IANA format (for example,
915
+ # `America/New_York`). The time zone is used to interpret the `start_time`
916
+ # and the `end_time`, and to calculate subsequent run dates.
917
+ # If not specified, the time zone default is UTC.
918
+ class ScheduleConfig
919
+ include ::Google::Protobuf::MessageExts
920
+ extend ::Google::Protobuf::MessageExts::ClassMethods
921
+
922
+ # Frequency of audit runs.
923
+ module Frequency
924
+ # Default value. This value is unused.
925
+ FREQUENCY_UNSPECIFIED = 0
926
+
927
+ # The audit runs every day.
928
+ DAILY = 1
929
+
930
+ # The audit runs weekly on the same day of the week as `start_time`.
931
+ WEEKLY = 2
932
+
933
+ # The audit runs monthly on the same day of the month as `start_time`.
934
+ MONTHLY = 3
935
+
936
+ # The audit runs quarterly (every 3 months) on the same
937
+ # day of the month as `start_time`.
938
+ QUARTERLY = 4
939
+
940
+ # The audit runs annually on the same month and day as `start_time`.
941
+ ANNUALLY = 5
942
+ end
943
+ end
944
+
687
945
  # Different execution states of the Audit Manager service.
688
946
  module OperationState
689
947
  # Default value. This value is unused.
@@ -735,6 +993,31 @@ module Google
735
993
  # The resource can't be audited.
736
994
  AUDIT_NOT_SUPPORTED = 5
737
995
  end
996
+
997
+ # State of an audit schedule.
998
+ module ScheduleState
999
+ # Default value. This value is unused.
1000
+ SCHEDULE_STATE_UNSPECIFIED = 0
1001
+
1002
+ # Schedule is active and will trigger runs.
1003
+ SCHEDULE_STATE_ACTIVE = 1
1004
+
1005
+ # Schedule is paused and will not trigger runs.
1006
+ SCHEDULE_STATE_PAUSED = 2
1007
+
1008
+ # Schedule end time has passed.
1009
+ SCHEDULE_STATE_COMPLETED = 3
1010
+
1011
+ # Schedule setup failed during creation or update.
1012
+ SCHEDULE_STATE_FAILED_SETUP = 4
1013
+
1014
+ # Schedule is in an error state due to persistent failure to trigger an
1015
+ # audit. Manual intervention is required.
1016
+ SCHEDULE_STATE_ERROR = 5
1017
+
1018
+ # Schedule has been marked for deletion by the user.
1019
+ SCHEDULE_STATE_DELETED = 6
1020
+ end
738
1021
  end
739
1022
  end
740
1023
  end
@@ -0,0 +1,229 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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 Protobuf
22
+ # `FieldMask` represents a set of symbolic field paths, for example:
23
+ #
24
+ # paths: "f.a"
25
+ # paths: "f.b.d"
26
+ #
27
+ # Here `f` represents a field in some root message, `a` and `b`
28
+ # fields in the message found in `f`, and `d` a field found in the
29
+ # message in `f.b`.
30
+ #
31
+ # Field masks are used to specify a subset of fields that should be
32
+ # returned by a get operation or modified by an update operation.
33
+ # Field masks also have a custom JSON encoding (see below).
34
+ #
35
+ # # Field Masks in Projections
36
+ #
37
+ # When used in the context of a projection, a response message or
38
+ # sub-message is filtered by the API to only contain those fields as
39
+ # specified in the mask. For example, if the mask in the previous
40
+ # example is applied to a response message as follows:
41
+ #
42
+ # f {
43
+ # a : 22
44
+ # b {
45
+ # d : 1
46
+ # x : 2
47
+ # }
48
+ # y : 13
49
+ # }
50
+ # z: 8
51
+ #
52
+ # The result will not contain specific values for fields x,y and z
53
+ # (their value will be set to the default, and omitted in proto text
54
+ # output):
55
+ #
56
+ #
57
+ # f {
58
+ # a : 22
59
+ # b {
60
+ # d : 1
61
+ # }
62
+ # }
63
+ #
64
+ # A repeated field is not allowed except at the last position of a
65
+ # paths string.
66
+ #
67
+ # If a FieldMask object is not present in a get operation, the
68
+ # operation applies to all fields (as if a FieldMask of all fields
69
+ # had been specified).
70
+ #
71
+ # Note that a field mask does not necessarily apply to the
72
+ # top-level response message. In case of a REST get operation, the
73
+ # field mask applies directly to the response, but in case of a REST
74
+ # list operation, the mask instead applies to each individual message
75
+ # in the returned resource list. In case of a REST custom method,
76
+ # other definitions may be used. Where the mask applies will be
77
+ # clearly documented together with its declaration in the API. In
78
+ # any case, the effect on the returned resource/resources is required
79
+ # behavior for APIs.
80
+ #
81
+ # # Field Masks in Update Operations
82
+ #
83
+ # A field mask in update operations specifies which fields of the
84
+ # targeted resource are going to be updated. The API is required
85
+ # to only change the values of the fields as specified in the mask
86
+ # and leave the others untouched. If a resource is passed in to
87
+ # describe the updated values, the API ignores the values of all
88
+ # fields not covered by the mask.
89
+ #
90
+ # If a repeated field is specified for an update operation, new values will
91
+ # be appended to the existing repeated field in the target resource. Note that
92
+ # a repeated field is only allowed in the last position of a `paths` string.
93
+ #
94
+ # If a sub-message is specified in the last position of the field mask for an
95
+ # update operation, then new value will be merged into the existing sub-message
96
+ # in the target resource.
97
+ #
98
+ # For example, given the target message:
99
+ #
100
+ # f {
101
+ # b {
102
+ # d: 1
103
+ # x: 2
104
+ # }
105
+ # c: [1]
106
+ # }
107
+ #
108
+ # And an update message:
109
+ #
110
+ # f {
111
+ # b {
112
+ # d: 10
113
+ # }
114
+ # c: [2]
115
+ # }
116
+ #
117
+ # then if the field mask is:
118
+ #
119
+ # paths: ["f.b", "f.c"]
120
+ #
121
+ # then the result will be:
122
+ #
123
+ # f {
124
+ # b {
125
+ # d: 10
126
+ # x: 2
127
+ # }
128
+ # c: [1, 2]
129
+ # }
130
+ #
131
+ # An implementation may provide options to override this default behavior for
132
+ # repeated and message fields.
133
+ #
134
+ # In order to reset a field's value to the default, the field must
135
+ # be in the mask and set to the default value in the provided resource.
136
+ # Hence, in order to reset all fields of a resource, provide a default
137
+ # instance of the resource and set all fields in the mask, or do
138
+ # not provide a mask as described below.
139
+ #
140
+ # If a field mask is not present on update, the operation applies to
141
+ # all fields (as if a field mask of all fields has been specified).
142
+ # Note that in the presence of schema evolution, this may mean that
143
+ # fields the client does not know and has therefore not filled into
144
+ # the request will be reset to their default. If this is unwanted
145
+ # behavior, a specific service may require a client to always specify
146
+ # a field mask, producing an error if not.
147
+ #
148
+ # As with get operations, the location of the resource which
149
+ # describes the updated values in the request message depends on the
150
+ # operation kind. In any case, the effect of the field mask is
151
+ # required to be honored by the API.
152
+ #
153
+ # ## Considerations for HTTP REST
154
+ #
155
+ # The HTTP kind of an update operation which uses a field mask must
156
+ # be set to PATCH instead of PUT in order to satisfy HTTP semantics
157
+ # (PUT must only be used for full updates).
158
+ #
159
+ # # JSON Encoding of Field Masks
160
+ #
161
+ # In JSON, a field mask is encoded as a single string where paths are
162
+ # separated by a comma. Fields name in each path are converted
163
+ # to/from lower-camel naming conventions.
164
+ #
165
+ # As an example, consider the following message declarations:
166
+ #
167
+ # message Profile {
168
+ # User user = 1;
169
+ # Photo photo = 2;
170
+ # }
171
+ # message User {
172
+ # string display_name = 1;
173
+ # string address = 2;
174
+ # }
175
+ #
176
+ # In proto a field mask for `Profile` may look as such:
177
+ #
178
+ # mask {
179
+ # paths: "user.display_name"
180
+ # paths: "photo"
181
+ # }
182
+ #
183
+ # In JSON, the same mask is represented as below:
184
+ #
185
+ # {
186
+ # mask: "user.displayName,photo"
187
+ # }
188
+ #
189
+ # # Field Masks and Oneof Fields
190
+ #
191
+ # Field masks treat fields in oneofs just as regular fields. Consider the
192
+ # following message:
193
+ #
194
+ # message SampleMessage {
195
+ # oneof test_oneof {
196
+ # string name = 4;
197
+ # SubMessage sub_message = 9;
198
+ # }
199
+ # }
200
+ #
201
+ # The field mask can be:
202
+ #
203
+ # mask {
204
+ # paths: "name"
205
+ # }
206
+ #
207
+ # Or:
208
+ #
209
+ # mask {
210
+ # paths: "sub_message"
211
+ # }
212
+ #
213
+ # Note that oneof type names ("test_oneof" in this case) cannot be used in
214
+ # paths.
215
+ #
216
+ # ## Field Mask Verification
217
+ #
218
+ # The implementation of any API method which has a FieldMask type field in the
219
+ # request should verify the included field paths, and return an
220
+ # `INVALID_ARGUMENT` error if any path is unmappable.
221
+ # @!attribute [rw] paths
222
+ # @return [::Array<::String>]
223
+ # The set of field mask paths.
224
+ class FieldMask
225
+ include ::Google::Protobuf::MessageExts
226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
227
+ end
228
+ end
229
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-audit_manager-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -90,6 +90,7 @@ files:
90
90
  - proto_docs/google/protobuf/any.rb
91
91
  - proto_docs/google/protobuf/duration.rb
92
92
  - proto_docs/google/protobuf/empty.rb
93
+ - proto_docs/google/protobuf/field_mask.rb
93
94
  - proto_docs/google/protobuf/timestamp.rb
94
95
  - proto_docs/google/rpc/status.rb
95
96
  homepage: https://github.com/googleapis/google-cloud-ruby