google-apis-assuredworkloads_v1 0.50.0 → 0.52.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: 94f2a4e00140514fb69bc6b5859af9cf762ef8d521448b2b03c8b4d140677b0e
4
- data.tar.gz: 0b19d07c9205f00fd4d1eaace6fa463c1b1e01049ea286c3c0a8f217da0aff53
3
+ metadata.gz: cddb5afe2273227ab1c44311d462e657da415711f00c47d7ad397e49647eae15
4
+ data.tar.gz: 7bafb970678d55021c100c706bfa522600b984c4793b224644c823f92deef5d0
5
5
  SHA512:
6
- metadata.gz: a4bfb3bdd86551e52155eb45e5e6e9abd2e7353ccd9a58019ae810febdb7e71353851239ed4ff3fb826edf99cbe932c1978ee791101bb51cb6f3e3b1c6469902
7
- data.tar.gz: c76053287bb90f832aa0a076b39b42d2ed68878a11b751573cf9dd82c3ad9700bf4a91b0e2d9763224d3836876c1401b6008d3de9e885554b51de4f26ee0e36a
6
+ metadata.gz: 3ba1e95a0dedff8690d3638424c85684e6fddada0c6c4c96eb87540fcdce8b8970def6398c82024f40d4e0eef57a4018642bab96261039235323b9d500ebb529
7
+ data.tar.gz: 57c269d12f0f33684a5abdf6f2a5ac138dd08e027fd6bb449dcd5890e387ea147cc86fe259b8f60779d869b702aec478c9d58fbaac261714dce0bbea4a166616
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-assuredworkloads_v1
2
2
 
3
+ ### v0.52.0 (2024-01-22)
4
+
5
+ * Regenerated using generator version 0.13.0
6
+
7
+ ### v0.51.0 (2023-12-10)
8
+
9
+ * Regenerated from discovery document revision 20231201
10
+
3
11
  ### v0.50.0 (2023-11-19)
4
12
 
5
13
  * Regenerated from discovery document revision 20231110
@@ -22,7 +22,7 @@ module Google
22
22
  module Apis
23
23
  module AssuredworkloadsV1
24
24
 
25
- # Request for acknowledging the violation Next Id: 5
25
+ # Request for acknowledging the violation
26
26
  class GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest
27
27
  include Google::Apis::Core::Hashable
28
28
 
@@ -168,6 +168,19 @@ module Google
168
168
  end
169
169
  end
170
170
 
171
+ # Response for EnableResourceMonitoring endpoint.
172
+ class GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse
173
+ include Google::Apis::Core::Hashable
174
+
175
+ def initialize(**args)
176
+ update!(**args)
177
+ end
178
+
179
+ # Update properties of this object
180
+ def update!(**args)
181
+ end
182
+ end
183
+
171
184
  # Response of ListViolations endpoint.
172
185
  class GoogleCloudAssuredworkloadsV1ListViolationsResponse
173
186
  include Google::Apis::Core::Hashable
@@ -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.50.0"
19
+ GEM_VERSION = "0.52.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231110"
25
+ REVISION = "20231201"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class GoogleCloudAssuredworkloadsV1ListViolationsResponse
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -252,6 +258,12 @@ module Google
252
258
  end
253
259
  end
254
260
 
261
+ class GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse
262
+ # @private
263
+ class Representation < Google::Apis::Core::JsonRepresentation
264
+ end
265
+ end
266
+
255
267
  class GoogleCloudAssuredworkloadsV1ListViolationsResponse
256
268
  # @private
257
269
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/learnmoreurl
34
34
  class AssuredworkloadsService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://assuredworkloads.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://assuredworkloads.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-assuredworkloads_v1',
48
50
  client_version: Google::Apis::AssuredworkloadsV1::GEM_VERSION)
49
51
  @batch_path = 'batch'
@@ -256,6 +258,37 @@ module Google
256
258
  execute_or_queue_command(command, &block)
257
259
  end
258
260
 
261
+ # Enable resource violation monitoring for a workload.
262
+ # @param [String] name
263
+ # Required. The `name` field is used to identify the workload. Format:
264
+ # organizations/`org_id`/locations/`location_id`/workloads/`workload_id`
265
+ # @param [String] fields
266
+ # Selector specifying which fields to include in a partial response.
267
+ # @param [String] quota_user
268
+ # Available to use for quota purposes for server-side applications. Can be any
269
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
270
+ # @param [Google::Apis::RequestOptions] options
271
+ # Request-specific options
272
+ #
273
+ # @yield [result, err] Result & error if block supplied
274
+ # @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse] parsed result object
275
+ # @yieldparam err [StandardError] error object if request failed
276
+ #
277
+ # @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse]
278
+ #
279
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
282
+ def enable_organization_location_workload_resource_monitoring(name, fields: nil, quota_user: nil, options: nil, &block)
283
+ command = make_simple_command(:post, 'v1/{+name}:enableResourceMonitoring', options)
284
+ command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse::Representation
285
+ command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse
286
+ command.params['name'] = name unless name.nil?
287
+ command.query['fields'] = fields unless fields.nil?
288
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
289
+ execute_or_queue_command(command, &block)
290
+ end
291
+
259
292
  # Gets Assured Workload associated with a CRM Node
260
293
  # @param [String] name
261
294
  # Required. The resource name of the Workload to fetch. This is the workloads's
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.50.0
4
+ version: 0.52.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-11-19 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.50.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-assuredworkloads_v1/v0.52.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.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Assured Workloads API V1