google-apis-assuredworkloads_v1 0.45.0 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b553770439e952ec6d8c0c2b7381f8276ae3fb03f58ac2ac05d4aece0e61b0fe
4
- data.tar.gz: b0e97dca8ff3718ab534448282d225f83c92ecb74117e4db7e127f0519bbd752
3
+ metadata.gz: 78ff62a65c076d6884b7efab9dd98af710120bbc88ab7dd563c131a2b717a399
4
+ data.tar.gz: ede51f6e37f8e05d37508de69be98615c6613fa069b95d88675819abb6de7f97
5
5
  SHA512:
6
- metadata.gz: 27742a00de7d802548b3737d43a4198ac8fcba21fae798be1ca5f1dd082fdf8b76786614bab52e3a2bf89499a03a27c687f5aa8666b48b82d904d6c310128326
7
- data.tar.gz: c67e4c92bec39b2808ab780728cca839fb77b04f671722db10513b2119a256325bddd0652d2599074df3efe363683e7143640d0453e6da9a119bddf971997a68
6
+ metadata.gz: 327a231db8188bbefc864b1c9103e6350b8f34157d32d913fa75505e89c8c1cfc1c6b523f0f155d28ca805e13bc9dd021a4f722946f65f872c0c56e07dd301e9
7
+ data.tar.gz: a6b33e7a258858e51a429686c80cfece577e537955bcf8dd700d4471ac7eaf9c16bce0322a71484fc13eb47b1f5abdb7ff38b0d87a9b32b58f905f6b1decc53a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-assuredworkloads_v1
2
2
 
3
+ ### v0.47.0 (2023-10-22)
4
+
5
+ * Regenerated from discovery document revision 20231017
6
+
7
+ ### v0.46.0 (2023-09-17)
8
+
9
+ * Regenerated from discovery document revision 20230907
10
+
3
11
  ### v0.45.0 (2023-08-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20230818
@@ -65,6 +65,65 @@ module Google
65
65
  end
66
66
  end
67
67
 
68
+ # Response containing the analysis results for the hypothetical resource move.
69
+ class GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse
70
+ include Google::Apis::Core::Hashable
71
+
72
+ # List of analysis results for each asset in scope.
73
+ # Corresponds to the JSON property `assetMoveAnalyses`
74
+ # @return [Array<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AssetMoveAnalysis>]
75
+ attr_accessor :asset_move_analyses
76
+
77
+ # The next page token. Is empty if the last page is reached.
78
+ # Corresponds to the JSON property `nextPageToken`
79
+ # @return [String]
80
+ attr_accessor :next_page_token
81
+
82
+ def initialize(**args)
83
+ update!(**args)
84
+ end
85
+
86
+ # Update properties of this object
87
+ def update!(**args)
88
+ @asset_move_analyses = args[:asset_move_analyses] if args.key?(:asset_move_analyses)
89
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
90
+ end
91
+ end
92
+
93
+ # Represents move analysis results for an asset.
94
+ class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
95
+ include Google::Apis::Core::Hashable
96
+
97
+ # List of eligible analyses performed for the asset.
98
+ # Corresponds to the JSON property `analysisGroups`
99
+ # @return [Array<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveAnalysisGroup>]
100
+ attr_accessor :analysis_groups
101
+
102
+ # The full resource name of the asset being analyzed. Example: //compute.
103
+ # googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
104
+ # Corresponds to the JSON property `asset`
105
+ # @return [String]
106
+ attr_accessor :asset
107
+
108
+ # Type of the asset being analyzed. Possible values will be among the ones
109
+ # listed [here](https://cloud.google.com/asset-inventory/docs/supported-asset-
110
+ # types#searchable_asset_types).
111
+ # Corresponds to the JSON property `assetType`
112
+ # @return [String]
113
+ attr_accessor :asset_type
114
+
115
+ def initialize(**args)
116
+ update!(**args)
117
+ end
118
+
119
+ # Update properties of this object
120
+ def update!(**args)
121
+ @analysis_groups = args[:analysis_groups] if args.key?(:analysis_groups)
122
+ @asset = args[:asset] if args.key?(:asset)
123
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
124
+ end
125
+ end
126
+
68
127
  # Operation metadata to give request details of CreateWorkload.
69
128
  class GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata
70
129
  include Google::Apis::Core::Hashable
@@ -153,6 +212,90 @@ module Google
153
212
  end
154
213
  end
155
214
 
215
+ # Represents a logical group of checks performed for an asset. If successful,
216
+ # the group contains the analysis result, otherwise it contains an error with
217
+ # the failure reason.
218
+ class GoogleCloudAssuredworkloadsV1MoveAnalysisGroup
219
+ include Google::Apis::Core::Hashable
220
+
221
+ # Represents the successful move analysis results for a group.
222
+ # Corresponds to the JSON property `analysisResult`
223
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveAnalysisResult]
224
+ attr_accessor :analysis_result
225
+
226
+ # Name of the analysis group.
227
+ # Corresponds to the JSON property `displayName`
228
+ # @return [String]
229
+ attr_accessor :display_name
230
+
231
+ # The `Status` type defines a logical error model that is suitable for different
232
+ # programming environments, including REST APIs and RPC APIs. It is used by [
233
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
234
+ # data: error code, error message, and error details. You can find out more
235
+ # about this error model and how to work with it in the [API Design Guide](https:
236
+ # //cloud.google.com/apis/design/errors).
237
+ # Corresponds to the JSON property `error`
238
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleRpcStatus]
239
+ attr_accessor :error
240
+
241
+ def initialize(**args)
242
+ update!(**args)
243
+ end
244
+
245
+ # Update properties of this object
246
+ def update!(**args)
247
+ @analysis_result = args[:analysis_result] if args.key?(:analysis_result)
248
+ @display_name = args[:display_name] if args.key?(:display_name)
249
+ @error = args[:error] if args.key?(:error)
250
+ end
251
+ end
252
+
253
+ # Represents the successful move analysis results for a group.
254
+ class GoogleCloudAssuredworkloadsV1MoveAnalysisResult
255
+ include Google::Apis::Core::Hashable
256
+
257
+ # List of blockers. If not resolved, these will result in compliance violations
258
+ # in the target.
259
+ # Corresponds to the JSON property `blockers`
260
+ # @return [Array<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveImpact>]
261
+ attr_accessor :blockers
262
+
263
+ # List of warnings. These are risks that may or may not result in compliance
264
+ # violations.
265
+ # Corresponds to the JSON property `warnings`
266
+ # @return [Array<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveImpact>]
267
+ attr_accessor :warnings
268
+
269
+ def initialize(**args)
270
+ update!(**args)
271
+ end
272
+
273
+ # Update properties of this object
274
+ def update!(**args)
275
+ @blockers = args[:blockers] if args.key?(:blockers)
276
+ @warnings = args[:warnings] if args.key?(:warnings)
277
+ end
278
+ end
279
+
280
+ # Represents the impact of moving the asset to the target.
281
+ class GoogleCloudAssuredworkloadsV1MoveImpact
282
+ include Google::Apis::Core::Hashable
283
+
284
+ # Explanation of the impact.
285
+ # Corresponds to the JSON property `detail`
286
+ # @return [String]
287
+ attr_accessor :detail
288
+
289
+ def initialize(**args)
290
+ update!(**args)
291
+ end
292
+
293
+ # Update properties of this object
294
+ def update!(**args)
295
+ @detail = args[:detail] if args.key?(:detail)
296
+ end
297
+ end
298
+
156
299
  # Request for updating permission settings for a partner workload.
157
300
  class GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest
158
301
  include Google::Apis::Core::Hashable
@@ -593,6 +736,14 @@ module Google
593
736
  # @return [String]
594
737
  attr_accessor :provisioned_resources_parent
595
738
 
739
+ # Output only. Indicates whether resource monitoring is enabled for workload or
740
+ # not. It is true when Resource feed is subscribed to AWM topic and AWM Service
741
+ # Agent Role is binded to AW Service Account for resource Assured workload.
742
+ # Corresponds to the JSON property `resourceMonitoringEnabled`
743
+ # @return [Boolean]
744
+ attr_accessor :resource_monitoring_enabled
745
+ alias_method :resource_monitoring_enabled?, :resource_monitoring_enabled
746
+
596
747
  # Input only. Resource properties that are used to customize workload resources.
597
748
  # These properties (such as custom project id) will be used to create workload
598
749
  # resources if possible. This field is optional.
@@ -644,6 +795,7 @@ module Google
644
795
  @partner = args[:partner] if args.key?(:partner)
645
796
  @partner_permissions = args[:partner_permissions] if args.key?(:partner_permissions)
646
797
  @provisioned_resources_parent = args[:provisioned_resources_parent] if args.key?(:provisioned_resources_parent)
798
+ @resource_monitoring_enabled = args[:resource_monitoring_enabled] if args.key?(:resource_monitoring_enabled)
647
799
  @resource_settings = args[:resource_settings] if args.key?(:resource_settings)
648
800
  @resources = args[:resources] if args.key?(:resources)
649
801
  @saa_enrollment_response = args[:saa_enrollment_response] if args.key?(:saa_enrollment_response)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AssuredworkloadsV1
18
18
  # Version of the google-apis-assuredworkloads_v1 gem
19
- GEM_VERSION = "0.45.0"
19
+ GEM_VERSION = "0.47.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230818"
25
+ REVISION = "20231017"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,18 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
37
49
  class GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
51
 
@@ -52,6 +64,24 @@ module Google
52
64
  include Google::Apis::Core::JsonObjectSupport
53
65
  end
54
66
 
67
+ class GoogleCloudAssuredworkloadsV1MoveAnalysisGroup
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleCloudAssuredworkloadsV1MoveAnalysisResult
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleCloudAssuredworkloadsV1MoveImpact
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
55
85
  class GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest
56
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
87
 
@@ -192,6 +222,25 @@ module Google
192
222
  end
193
223
  end
194
224
 
225
+ class GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse
226
+ # @private
227
+ class Representation < Google::Apis::Core::JsonRepresentation
228
+ collection :asset_move_analyses, as: 'assetMoveAnalyses', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AssetMoveAnalysis, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AssetMoveAnalysis::Representation
229
+
230
+ property :next_page_token, as: 'nextPageToken'
231
+ end
232
+ end
233
+
234
+ class GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
235
+ # @private
236
+ class Representation < Google::Apis::Core::JsonRepresentation
237
+ collection :analysis_groups, as: 'analysisGroups', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveAnalysisGroup, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveAnalysisGroup::Representation
238
+
239
+ property :asset, as: 'asset'
240
+ property :asset_type, as: 'assetType'
241
+ end
242
+ end
243
+
195
244
  class GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata
196
245
  # @private
197
246
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -220,6 +269,34 @@ module Google
220
269
  end
221
270
  end
222
271
 
272
+ class GoogleCloudAssuredworkloadsV1MoveAnalysisGroup
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ property :analysis_result, as: 'analysisResult', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveAnalysisResult, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveAnalysisResult::Representation
276
+
277
+ property :display_name, as: 'displayName'
278
+ property :error, as: 'error', class: Google::Apis::AssuredworkloadsV1::GoogleRpcStatus, decorator: Google::Apis::AssuredworkloadsV1::GoogleRpcStatus::Representation
279
+
280
+ end
281
+ end
282
+
283
+ class GoogleCloudAssuredworkloadsV1MoveAnalysisResult
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ collection :blockers, as: 'blockers', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveImpact, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveImpact::Representation
287
+
288
+ collection :warnings, as: 'warnings', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveImpact, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1MoveImpact::Representation
289
+
290
+ end
291
+ end
292
+
293
+ class GoogleCloudAssuredworkloadsV1MoveImpact
294
+ # @private
295
+ class Representation < Google::Apis::Core::JsonRepresentation
296
+ property :detail, as: 'detail'
297
+ end
298
+ end
299
+
223
300
  class GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest
224
301
  # @private
225
302
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -336,6 +413,7 @@ module Google
336
413
  property :partner_permissions, as: 'partnerPermissions', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions::Representation
337
414
 
338
415
  property :provisioned_resources_parent, as: 'provisionedResourcesParent'
416
+ property :resource_monitoring_enabled, as: 'resourceMonitoringEnabled'
339
417
  collection :resource_settings, as: 'resourceSettings', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceSettings, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceSettings::Representation
340
418
 
341
419
  collection :resources, as: 'resources', class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceInfo, decorator: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceInfo::Representation
@@ -120,6 +120,63 @@ module Google
120
120
  execute_or_queue_command(command, &block)
121
121
  end
122
122
 
123
+ # Analyzes a hypothetical move of a source resource to a target workload to
124
+ # surface compliance risks. The analysis is best effort and is not guaranteed to
125
+ # be exhaustive.
126
+ # @param [String] target
127
+ # Required. The resource ID of the folder-based destination workload. This
128
+ # workload is where the source resource will hypothetically be moved to. Specify
129
+ # the workload's relative resource name, formatted as: "organizations/`
130
+ # ORGANIZATION_ID`/locations/`LOCATION_ID`/workloads/`WORKLOAD_ID`" For example:
131
+ # "organizations/123/locations/us-east1/workloads/assured-workload-2"
132
+ # @param [Array<String>, String] asset_types
133
+ # Optional. List of asset types to be analyzed, including and under the source
134
+ # resource. If empty, all assets are analyzed. The complete list of asset types
135
+ # is available [here](https://cloud.google.com/asset-inventory/docs/supported-
136
+ # asset-types#searchable_asset_types).
137
+ # @param [Fixnum] page_size
138
+ # Optional. Page size. If a value is not specified, the default value of 10 is
139
+ # used.
140
+ # @param [String] page_token
141
+ # Optional. The page token from the previous response. It needs to be passed in
142
+ # the second and following requests.
143
+ # @param [String] project
144
+ # The source type is a project. Specify the project's relative resource name,
145
+ # formatted as either a project number or a project ID: "projects/`
146
+ # PROJECT_NUMBER`" or "projects/`PROJECT_ID`" For example: "projects/
147
+ # 951040570662" when specifying a project number, or "projects/my-project-123"
148
+ # when specifying a project ID.
149
+ # @param [String] fields
150
+ # Selector specifying which fields to include in a partial response.
151
+ # @param [String] quota_user
152
+ # Available to use for quota purposes for server-side applications. Can be any
153
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
154
+ # @param [Google::Apis::RequestOptions] options
155
+ # Request-specific options
156
+ #
157
+ # @yield [result, err] Result & error if block supplied
158
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse] parsed result object
159
+ # @yieldparam err [StandardError] error object if request failed
160
+ #
161
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse]
162
+ #
163
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
164
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
165
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
166
+ def analyze_organization_location_workload_workload_move(target, asset_types: nil, page_size: nil, page_token: nil, project: nil, fields: nil, quota_user: nil, options: nil, &block)
167
+ command = make_simple_command(:get, 'v1/{+target}:analyzeWorkloadMove', options)
168
+ command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse::Representation
169
+ command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse
170
+ command.params['target'] = target unless target.nil?
171
+ command.query['assetTypes'] = asset_types unless asset_types.nil?
172
+ command.query['pageSize'] = page_size unless page_size.nil?
173
+ command.query['pageToken'] = page_token unless page_token.nil?
174
+ command.query['project'] = project unless project.nil?
175
+ command.query['fields'] = fields unless fields.nil?
176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ execute_or_queue_command(command, &block)
178
+ end
179
+
123
180
  # Creates Assured Workload.
124
181
  # @param [String] parent
125
182
  # Required. The resource name of the new Workload's parent. Must be of the form `
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-assuredworkloads_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-27 00:00:00.000000000 Z
11
+ date: 2023-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.47.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1
63
63
  post_install_message:
64
64
  rdoc_options: []