google-apis-assuredworkloads_v1 0.44.0 → 0.46.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54d79a630646cd8c54a33658d8f45c2a2b15515486fad37b73f3c63eb8124007
4
- data.tar.gz: 5e16733f4c83a78b89c3d3e3d9a5185b146bbb30c641684b02bd6547dd1ea58c
3
+ metadata.gz: 4423b775f2fdec0e9a321ac47ddcd4098f6aac077cccd259e5fa4ce976a0091d
4
+ data.tar.gz: 1f1d010291dba712408bb9a92afb4a03c239d7c0058926680697770c5ea2e07a
5
5
  SHA512:
6
- metadata.gz: ce696ee64612eaaa5cd1481db6151f56b40f06ff80f88d73389a21daaf8b17481915a87915ca5bf56eff0f401017ef2502bce60ba15dfc7b874d162b9a1ef456
7
- data.tar.gz: 667da68e4f35f4f99351784bea6125125f0f4587ebac36b7a2b6215511ab74bbd88130268fcf473da863b212ac8124ea6364bc87bf9cd665760749fd4dce1750
6
+ metadata.gz: f4fe38bfeae385f144b44eea1999a149b9d8bb55ebab2999e3b5da8e57af1b4b240cf3ed0cd23900807e4ea062fc065d0f8f4f44099fdc7a0be514f09a84b283
7
+ data.tar.gz: 2ba8ff0b03f610d98a767577ee3cc8db0bcd54058a8df9e0fec039256f13b667838dd4dae71e600c843e740a1d17b4dccf950ab9eade890659717fab97aab374
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-assuredworkloads_v1
2
2
 
3
+ ### v0.46.0 (2023-09-17)
4
+
5
+ * Regenerated from discovery document revision 20230907
6
+
7
+ ### v0.45.0 (2023-08-27)
8
+
9
+ * Regenerated from discovery document revision 20230818
10
+
3
11
  ### v0.44.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230804
@@ -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
@@ -219,7 +362,7 @@ module Google
219
362
  end
220
363
  end
221
364
 
222
- # Workload monitoring Violation. Next Id: 27
365
+ # Workload monitoring Violation. Next Id: 28
223
366
  class GoogleCloudAssuredworkloadsV1Violation
224
367
  include Google::Apis::Core::Hashable
225
368
 
@@ -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.44.0"
19
+ GEM_VERSION = "0.46.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 = "20230804"
25
+ REVISION = "20230907"
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
@@ -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.44.0
4
+ version: 0.46.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-20 00:00:00.000000000 Z
11
+ date: 2023-09-17 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.44.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.46.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Assured Workloads API V1