google-cloud-cloud_security_compliance-v1 0.1.0 → 0.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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -4
  4. data/lib/google/cloud/cloud_security_compliance/v1/audit/client.rb +859 -0
  5. data/lib/google/cloud/cloud_security_compliance/v1/audit/credentials.rb +47 -0
  6. data/lib/google/cloud/cloud_security_compliance/v1/audit/operations.rb +841 -0
  7. data/lib/google/cloud/cloud_security_compliance/v1/audit/paths.rb +110 -0
  8. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/client.rb +796 -0
  9. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb +925 -0
  10. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/service_stub.rb +387 -0
  11. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest.rb +54 -0
  12. data/lib/google/cloud/cloud_security_compliance/v1/audit.rb +56 -0
  13. data/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb +1 -1
  14. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/client.rb +608 -0
  15. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/credentials.rb +47 -0
  16. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/paths.rb +72 -0
  17. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/client.rb +559 -0
  18. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/service_stub.rb +234 -0
  19. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest.rb +54 -0
  20. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service.rb +56 -0
  21. data/lib/google/cloud/cloud_security_compliance/v1/config/client.rb +133 -102
  22. data/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb +113 -99
  23. data/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb +80 -41
  24. data/lib/google/cloud/cloud_security_compliance/v1/deployment/operations.rb +20 -3
  25. data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb +60 -38
  26. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb +940 -0
  27. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/credentials.rb +47 -0
  28. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/paths.rb +142 -0
  29. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb +870 -0
  30. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/service_stub.rb +456 -0
  31. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest.rb +53 -0
  32. data/lib/google/cloud/cloud_security_compliance/v1/monitoring.rb +55 -0
  33. data/lib/google/cloud/cloud_security_compliance/v1/rest.rb +4 -1
  34. data/lib/google/cloud/cloud_security_compliance/v1/version.rb +1 -1
  35. data/lib/google/cloud/cloud_security_compliance/v1.rb +5 -2
  36. data/lib/google/cloud/cloudsecuritycompliance/v1/audit_pb.rb +70 -0
  37. data/lib/google/cloud/cloudsecuritycompliance/v1/audit_services_pb.rb +51 -0
  38. data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_pb.rb +54 -0
  39. data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_services_pb.rb +54 -0
  40. data/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb +4 -1
  41. data/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb +1 -1
  42. data/lib/google/cloud/cloudsecuritycompliance/v1/config_services_pb.rb +58 -55
  43. data/lib/google/cloud/cloudsecuritycompliance/v1/deployment_services_pb.rb +9 -6
  44. data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb +74 -0
  45. data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_services_pb.rb +53 -0
  46. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/audit.rb +413 -0
  47. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.rb +108 -0
  48. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb +210 -181
  49. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb +69 -57
  50. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb +180 -139
  51. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb +527 -0
  52. data/proto_docs/google/type/interval.rb +45 -0
  53. metadata +34 -1
@@ -21,12 +21,12 @@ module Google
21
21
  module Cloud
22
22
  module CloudSecurityCompliance
23
23
  module V1
24
- # Request message for listing Frameworks.
24
+ # Request message for [ListFrameworks][].
25
25
  # @!attribute [rw] parent
26
26
  # @return [::String]
27
27
  # Required. The parent resource name, in the format
28
28
  # `organizations/{organization}/locations/{location}`.
29
- # Only global location is supported.
29
+ # The only supported location is `global`.
30
30
  # @!attribute [rw] page_size
31
31
  # @return [::Integer]
32
32
  # Optional. The maximum number of frameworks to return. The default value is
@@ -43,11 +43,11 @@ module Google
43
43
  extend ::Google::Protobuf::MessageExts::ClassMethods
44
44
  end
45
45
 
46
- # Response message for listing Frameworks.
47
- # Contains a paginated list of Framework resources.
46
+ # The response message for [ListFrameworks][].
47
+ # Returns a paginated list of Framework resources.
48
48
  # @!attribute [rw] frameworks
49
49
  # @return [::Array<::Google::Cloud::CloudSecurityCompliance::V1::Framework>]
50
- # The list of Framework resources.
50
+ # The list of framework resources.
51
51
  # @!attribute [rw] next_page_token
52
52
  # @return [::String]
53
53
  # A pagination token. To retrieve the next page of results, call the method
@@ -57,51 +57,50 @@ module Google
57
57
  extend ::Google::Protobuf::MessageExts::ClassMethods
58
58
  end
59
59
 
60
- # Request message for getting a Framework.
60
+ # The request message for [GetFramework][].
61
61
  # @!attribute [rw] name
62
62
  # @return [::String]
63
- # Required. The name of the framework to retrieve.
64
- # Format:
65
- # organizations/\\{organization}/locations/\\{location}/frameworks/\\{framework_id}
63
+ # Required. The name of the framework to retrieve, in the format
64
+ # `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
65
+ # The only supported location is `global`.
66
66
  # @!attribute [rw] major_revision_id
67
67
  # @return [::Integer]
68
- # Optional. The Framework major version to retrieve. If not specified, the
69
- # most recently updated revision_id is retrieved.
68
+ # Optional. The framework major version to retrieve. If not specified, the
69
+ # most recently updated `revision_id` is retrieved.
70
70
  class GetFrameworkRequest
71
71
  include ::Google::Protobuf::MessageExts
72
72
  extend ::Google::Protobuf::MessageExts::ClassMethods
73
73
  end
74
74
 
75
- # Request message for creating a Framework
75
+ # The request message for [CreateFramework][].
76
76
  # @!attribute [rw] parent
77
77
  # @return [::String]
78
78
  # Required. The parent resource name, in the format
79
79
  # `organizations/{organization}/locations/{location}`.
80
+ # The only supported location is `global`.
80
81
  # @!attribute [rw] framework_id
81
82
  # @return [::String]
82
- # Required. ID of the framework.
83
- # This is not the full name of the framework.
84
- # This is the last part of the full name of the framework.
83
+ # Required. The identifier (ID) of the framework. The ID is not the full name
84
+ # of the framework; it's the last part of the full name of the framework.
85
85
  # @!attribute [rw] framework
86
86
  # @return [::Google::Cloud::CloudSecurityCompliance::V1::Framework]
87
- # Required. The resource being created
87
+ # Required. The resource being created.
88
88
  class CreateFrameworkRequest
89
89
  include ::Google::Protobuf::MessageExts
90
90
  extend ::Google::Protobuf::MessageExts::ClassMethods
91
91
  end
92
92
 
93
- # Request message for updating a Framework.
93
+ # The request message for [UpdateFramework][].
94
94
  # @!attribute [rw] update_mask
95
95
  # @return [::Google::Protobuf::FieldMask]
96
- # Optional. Field mask is used to specify the fields to be overwritten in the
97
- # Framework resource by the update.
98
- # The fields specified in the update_mask are relative to the resource, not
99
- # the full request. A field will be overwritten if it is in the mask. If the
100
- # user does not provide a mask then all fields present in the request will be
101
- # overwritten.
96
+ # Optional. A field mask is used to specify the fields to be overwritten in
97
+ # the framework resource by the update. The fields specified in the
98
+ # `update_mask` are relative to the resource, not the full request. A field
99
+ # is overwritten if it is in the mask. If you don't provide a mask then all
100
+ # fields present in the request will be overwritten.
102
101
  # @!attribute [rw] framework
103
102
  # @return [::Google::Cloud::CloudSecurityCompliance::V1::Framework]
104
- # Required. The resource being updated
103
+ # Required. The resource that is being updated.
105
104
  # @!attribute [rw] major_revision_id
106
105
  # @return [::Integer]
107
106
  # Optional. The major version ID of the framework to update.
@@ -110,42 +109,45 @@ module Google
110
109
  extend ::Google::Protobuf::MessageExts::ClassMethods
111
110
  end
112
111
 
113
- # Request message for deleting a Framework.
112
+ # Request message for [DeleteFramework][].
114
113
  # @!attribute [rw] name
115
114
  # @return [::String]
116
- # Required. Name of the resource, in the format
115
+ # Required. The name of the resource, in the format
117
116
  # `organizations/{organization}/locations/{location}/frameworks/{framework}`.
117
+ # The only supported location is `global`.
118
118
  class DeleteFrameworkRequest
119
119
  include ::Google::Protobuf::MessageExts
120
120
  extend ::Google::Protobuf::MessageExts::ClassMethods
121
121
  end
122
122
 
123
- # Request message for listing CloudControls.
123
+ # Request message for [ListCloudControls][].
124
124
  # @!attribute [rw] parent
125
125
  # @return [::String]
126
126
  # Required. The parent resource name, in the format
127
127
  # `organizations/{organization}/locations/{location}`.
128
+ # The only supported location is `global`.
128
129
  # @!attribute [rw] page_size
129
130
  # @return [::Integer]
130
- # Optional. The maximum number of CloudControls to return. The default value
131
+ # Optional. The maximum number of cloud controls to return. The default value
131
132
  # is `500`.
132
133
  #
133
134
  # If you exceed the maximum value of `1000`, then the service uses the
134
135
  # maximum value.
135
136
  # @!attribute [rw] page_token
136
137
  # @return [::String]
137
- # Optional. A pagination token returned from a previous request to list
138
- # CloudControls. Provide this token to retrieve the next page of results.
138
+ # Optional. A pagination token that's returned from a previous request to
139
+ # list cloud controls. Provide this token to retrieve the next page of
140
+ # results.
139
141
  #
140
- # When paginating, parent provided to
141
- # ListCloudControls request must match the call that provided the page
142
- # token.
142
+ # When paginating, the parent that you provide to the
143
+ # {::Google::Cloud::CloudSecurityCompliance::V1::Config::Client#list_cloud_controls ListCloudControls}
144
+ # request must match the call that provided the page token.
143
145
  class ListCloudControlsRequest
144
146
  include ::Google::Protobuf::MessageExts
145
147
  extend ::Google::Protobuf::MessageExts::ClassMethods
146
148
  end
147
149
 
148
- # Response message for ListCloudControls.
150
+ # The response message for [ListCloudControls][].
149
151
  # @!attribute [rw] cloud_controls
150
152
  # @return [::Array<::Google::Cloud::CloudSecurityCompliance::V1::CloudControl>]
151
153
  # The list of CloudControl resources.
@@ -158,61 +160,71 @@ module Google
158
160
  extend ::Google::Protobuf::MessageExts::ClassMethods
159
161
  end
160
162
 
161
- # Request message for getting a CloudControl.
163
+ # The request message for [GetCloudControl][].
162
164
  # @!attribute [rw] name
163
165
  # @return [::String]
164
- # Required. The name of the cloudcontrol to retrieve in the format:
165
- # organizations/\\{organization}/locations/\\{location}/cloudControls/\\{cloud_control}
166
+ # Required. The name of the cloud control to retrieve, in the format
167
+ # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
168
+ # The only supported location is `global`.
169
+ # @!attribute [rw] major_revision_id
170
+ # @return [::Integer]
171
+ # Optional. The major version of the cloud control to retrieve. If not
172
+ # specified, the most recently updated `revision_id` is retrieved.
166
173
  class GetCloudControlRequest
167
174
  include ::Google::Protobuf::MessageExts
168
175
  extend ::Google::Protobuf::MessageExts::ClassMethods
169
176
  end
170
177
 
171
- # Request message for creating a CloudControl
178
+ # The request message for [CreateCloudControl][].
172
179
  # @!attribute [rw] parent
173
180
  # @return [::String]
174
181
  # Required. The parent resource name, in the format
175
182
  # `organizations/{organization}/locations/{location}`.
183
+ # The only supported location is `global`.
176
184
  # @!attribute [rw] cloud_control_id
177
185
  # @return [::String]
178
- # Required. ID of the CloudControl.
179
- # This is the last segment of the CloudControl resource name.
180
- # Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
186
+ # Required. The identifier for the cloud control, which is the last segment
187
+ # of the cloud control name. The format is
188
+ # `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
181
189
  # @!attribute [rw] cloud_control
182
190
  # @return [::Google::Cloud::CloudSecurityCompliance::V1::CloudControl]
183
- # Required. The resource being created
191
+ # Required. The cloud control that's being created.
184
192
  class CreateCloudControlRequest
185
193
  include ::Google::Protobuf::MessageExts
186
194
  extend ::Google::Protobuf::MessageExts::ClassMethods
187
195
  end
188
196
 
189
- # Request message for UpdateCloudControl.
197
+ # The request message for [UpdateCloudControl][].
190
198
  # @!attribute [rw] update_mask
191
199
  # @return [::Google::Protobuf::FieldMask]
192
- # Optional. Field mask is used to specify the fields to be overwritten in the
193
- # CloudControl resource by the update.
194
- # The fields specified in the update_mask are relative to the resource, not
195
- # the full request. A field will be overwritten if it is in the mask. If the
196
- # user does not provide a mask then all fields present in the request will be
197
- # overwritten. The fields that can be updated are:
198
- # 1. Display_name
199
- # 2. Description
200
- # 3. Parameters
201
- # 4. Rules
202
- # 5. ParameterSpec.
200
+ # Optional. Use a field mask to specify the fields to be overwritten in the
201
+ # cloud control during the update.
202
+ # The fields that you specify in the `update_mask` are relative to the
203
+ # cloud control, not the full request. A field is overwritten if it is in
204
+ # the mask. If you don't provide a mask, all fields in the request
205
+ # are updated.
206
+ #
207
+ # You can update the following fields:
208
+ #
209
+ # - Display name
210
+ # - Description
211
+ # - Parameters
212
+ # - Rules
213
+ # - Parameter specification
203
214
  # @!attribute [rw] cloud_control
204
215
  # @return [::Google::Cloud::CloudSecurityCompliance::V1::CloudControl]
205
- # Required. The resource being updated
216
+ # Required. The cloud control that you're updating.
206
217
  class UpdateCloudControlRequest
207
218
  include ::Google::Protobuf::MessageExts
208
219
  extend ::Google::Protobuf::MessageExts::ClassMethods
209
220
  end
210
221
 
211
- # Request message for deleting a CloudControl.
222
+ # The request message for [DeleteCloudControl][].
212
223
  # @!attribute [rw] name
213
224
  # @return [::String]
214
- # Required. Name of the resource, in the format
225
+ # Required. The name of the cloud control to delete, in the format
215
226
  # `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
227
+ # The only supported location is `global`.
216
228
  class DeleteCloudControlRequest
217
229
  include ::Google::Protobuf::MessageExts
218
230
  extend ::Google::Protobuf::MessageExts::ClassMethods