google-apis-assuredworkloads_v1beta1 0.17.0 → 0.19.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: 68a646a365a9467a0e72dbeaae4e533d53875cd338cfeb3ce734c49931ee468d
4
- data.tar.gz: e958206a3d226467e555671c22ab1167e14430a22a3e6b800f754def45a24686
3
+ metadata.gz: d278bd0c18996008edbb2402721db10155a331e9d1344e014f843d5d730a2c0c
4
+ data.tar.gz: 2502055885f0973b89709acd40bf3cb4ee08be28832c0d1ee211e6ef386736dd
5
5
  SHA512:
6
- metadata.gz: 022216a70acafb5ea3127e66a73674988e4c995c8d60f59f5590ac75f0418a48a5fb4a25f042944e8dbfc75859a6e77276fa6b806598177642b082a0a55bc3b7
7
- data.tar.gz: b33f6ec2c278cf89c7d8835e0ef7cecb073e0d3b04367ca7fcf050c30534db870c55589b167e056fb3ef6e6ba67041924ccc046cdf4d67aa5dcdf2ec29c8ef0b
6
+ metadata.gz: 14760af7a1a63360deb52c8b371c7b55a2e3cf0e597c796bf63361f8225f43207421752ea08f1085886cf3a7587b2e2af512a6528c61b05a679c1370f382b854
7
+ data.tar.gz: 13e8018065a547a6dd8b44ba364087801f7d864dc924c92ab08e3c1f0c80ec3558fa0387820768c1a71aa154efff8f22a9cf41fc4c619e1ce864216232dc440c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-assuredworkloads_v1beta1
2
2
 
3
+ ### v0.19.0 (2023-09-10)
4
+
5
+ * Regenerated from discovery document revision 20230831
6
+
7
+ ### v0.18.0 (2023-08-27)
8
+
9
+ * Regenerated from discovery document revision 20230818
10
+
3
11
  ### v0.17.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230804
@@ -80,13 +80,6 @@ module Google
80
80
  # @return [Array<Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis>]
81
81
  attr_accessor :asset_move_analyses
82
82
 
83
- # A list of blockers that should be addressed before moving the source project
84
- # or project-based workload to the destination folder-based workload. This field
85
- # is now deprecated.
86
- # Corresponds to the JSON property `blockers`
87
- # @return [Array<String>]
88
- attr_accessor :blockers
89
-
90
83
  # The next page token. Is empty if the last page is reached.
91
84
  # Corresponds to the JSON property `nextPageToken`
92
85
  # @return [String]
@@ -99,7 +92,6 @@ module Google
99
92
  # Update properties of this object
100
93
  def update!(**args)
101
94
  @asset_move_analyses = args[:asset_move_analyses] if args.key?(:asset_move_analyses)
102
- @blockers = args[:blockers] if args.key?(:blockers)
103
95
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
104
96
  end
105
97
  end
@@ -363,7 +355,7 @@ module Google
363
355
  end
364
356
  end
365
357
 
366
- # Workload monitoring Violation. Next Id: 27
358
+ # Workload monitoring Violation. Next Id: 28
367
359
  class GoogleCloudAssuredworkloadsV1beta1Violation
368
360
  include Google::Apis::Core::Hashable
369
361
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AssuredworkloadsV1beta1
18
18
  # Version of the google-apis-assuredworkloads_v1beta1 gem
19
- GEM_VERSION = "0.17.0"
19
+ GEM_VERSION = "0.19.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 = "20230831"
26
26
  end
27
27
  end
28
28
  end
@@ -252,7 +252,6 @@ module Google
252
252
  class Representation < Google::Apis::Core::JsonRepresentation
253
253
  collection :asset_move_analyses, as: 'assetMoveAnalyses', class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis, decorator: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis::Representation
254
254
 
255
- collection :blockers, as: 'blockers'
256
255
  property :next_page_token, as: 'nextPageToken'
257
256
  end
258
257
  end
@@ -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::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse] parsed result object
159
+ # @yieldparam err [StandardError] error object if request failed
160
+ #
161
+ # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse]
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, 'v1beta1/{+target}:analyzeWorkloadMove', options)
168
+ command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse::Representation
169
+ command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse
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 `
@@ -504,66 +561,6 @@ module Google
504
561
  command.query['quotaUser'] = quota_user unless quota_user.nil?
505
562
  execute_or_queue_command(command, &block)
506
563
  end
507
-
508
- # Analyzes a hypothetical move of a source resource to a target(destination)
509
- # folder-based workload to surface compliance risks.
510
- # @param [String] project
511
- # The source type is a project. Specify the project's relative resource name,
512
- # formatted as either a project number or a project ID: "projects/`
513
- # PROJECT_NUMBER`" or "projects/`PROJECT_ID`" For example: "projects/
514
- # 951040570662" when specifying a project number, or "projects/my-project-123"
515
- # when specifying a project ID.
516
- # @param [String] target
517
- # Required. The resource ID of the folder-based destination workload. This
518
- # workload is where the source resource will hypothetically be moved to. Specify
519
- # the workload's relative resource name, formatted as: "organizations/`
520
- # ORGANIZATION_ID`/locations/`LOCATION_ID`/workloads/`WORKLOAD_ID`" For example:
521
- # "organizations/123/locations/us-east1/workloads/assured-workload-2"
522
- # @param [Boolean] analyze_child_assets
523
- # Optional. Indicates if all child assets of the source resource should also be
524
- # analyzed in addition to the source.
525
- # @param [Fixnum] page_size
526
- # Optional. Page size. If a value is not specified, the default value of 10 is
527
- # used.
528
- # @param [String] page_token
529
- # Optional. The page token from the previous response. It needs to be passed in
530
- # the second and following requests.
531
- # @param [String] source
532
- # The source type is a project-based workload. Specify the workloads's relative
533
- # resource name, formatted as: "organizations/`ORGANIZATION_ID`/locations/`
534
- # LOCATION_ID`/workloads/`WORKLOAD_ID`" For example: "organizations/123/
535
- # locations/us-east1/workloads/assured-workload-1" This option is now deprecated.
536
- # @param [String] fields
537
- # Selector specifying which fields to include in a partial response.
538
- # @param [String] quota_user
539
- # Available to use for quota purposes for server-side applications. Can be any
540
- # arbitrary string assigned to a user, but should not exceed 40 characters.
541
- # @param [Google::Apis::RequestOptions] options
542
- # Request-specific options
543
- #
544
- # @yield [result, err] Result & error if block supplied
545
- # @yieldparam result [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse] parsed result object
546
- # @yieldparam err [StandardError] error object if request failed
547
- #
548
- # @return [Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse]
549
- #
550
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
551
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
552
- # @raise [Google::Apis::AuthorizationError] Authorization is required
553
- def analyze_project_organization_location_workload_workload_move(project, target, analyze_child_assets: nil, page_size: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
554
- command = make_simple_command(:get, 'v1beta1/{+project}/{+target}:analyzeWorkloadMove', options)
555
- command.response_representation = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse::Representation
556
- command.response_class = Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse
557
- command.params['project'] = project unless project.nil?
558
- command.params['target'] = target unless target.nil?
559
- command.query['analyzeChildAssets'] = analyze_child_assets unless analyze_child_assets.nil?
560
- command.query['pageSize'] = page_size unless page_size.nil?
561
- command.query['pageToken'] = page_token unless page_token.nil?
562
- command.query['source'] = source unless source.nil?
563
- command.query['fields'] = fields unless fields.nil?
564
- command.query['quotaUser'] = quota_user unless quota_user.nil?
565
- execute_or_queue_command(command, &block)
566
- end
567
564
 
568
565
  protected
569
566
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-assuredworkloads_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.19.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-13 00:00:00.000000000 Z
11
+ date: 2023-09-10 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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1beta1/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1beta1/v0.19.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-assuredworkloads_v1beta1
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 V1beta1