google-apis-securitycenter_v1 0.73.0 → 0.74.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: 54f29848fa48a148735f83189999adae9962384d603e1f7b185ca85446a905ec
4
- data.tar.gz: 9aa19802961078c47f9a49e92ecf495d90bb3469debdd03bda5cd6464592e5e9
3
+ metadata.gz: 84d775db12f5865b248f56f6d262238cc98d69588b14f9ea118eb454a96b41fa
4
+ data.tar.gz: c4be2b19cdee7ead5cf6ae9baab30a6fc98fb34203ad3cb4832692d2d04c338a
5
5
  SHA512:
6
- metadata.gz: 80229234b07a426500190dbbe3ff28cd77104e25c78cc78ef4a893be10651dedd869a058a1be4d398eea6ac336e3b68b99236a26332459b648775ed129f634a5
7
- data.tar.gz: 3199854e7ca783b0a33a833cd0fc056a30e99bccf286d56c60140d206d45477cbc14d7881d0f19461defa637fcb789cd7af73a78a2c945878689d4dd33e4cb79
6
+ metadata.gz: 7a6fdc748848470a4b3805600da4df1703cd307a79865041bb5cf8619063b9da6d11310586f3a42358577ba333f3d9dceafbe36d841716c7348a51159062a5fd
7
+ data.tar.gz: 59ea1c4113bd7326f060f3913173f049321e38cf6322c0cec8c1ece7ea816a7ece0c52d1b9c7e310484da5917afd2272cfecb2b0bb33d06d16638a369168ec07
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-securitycenter_v1
2
2
 
3
+ ### v0.74.0 (2024-01-23)
4
+
5
+ * Regenerated from discovery document revision 20240119
6
+ * Regenerated using generator version 0.13.0
7
+
3
8
  ### v0.73.0 (2024-01-07)
4
9
 
5
10
  * Regenerated from discovery document revision 20240101
@@ -330,7 +330,7 @@ module Google
330
330
 
331
331
  # The resource name of the attack path simulation result that contains the
332
332
  # details regarding this attack exposure score. Example: organizations/123/
333
- # attackExposureResults/456
333
+ # simulations/456/attackExposureResults/789
334
334
  # Corresponds to the JSON property `attackExposureResult`
335
335
  # @return [String]
336
336
  attr_accessor :attack_exposure_result
@@ -827,7 +827,10 @@ module Google
827
827
  attr_accessor :members
828
828
 
829
829
  # Role that is assigned to the list of `members`, or principals. For example, `
830
- # roles/viewer`, `roles/editor`, or `roles/owner`.
830
+ # roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
831
+ # roles and permissions, see the [IAM documentation](https://cloud.google.com/
832
+ # iam/docs/roles-overview). For a list of the available pre-defined roles, see [
833
+ # here](https://cloud.google.com/iam/docs/understanding-roles).
831
834
  # Corresponds to the JSON property `role`
832
835
  # @return [String]
833
836
  attr_accessor :role
@@ -5043,6 +5046,41 @@ module Google
5043
5046
  end
5044
5047
  end
5045
5048
 
5049
+ # The policy field that violates the deployed posture and its expected and and
5050
+ # detected values.
5051
+ class PolicyDriftDetails
5052
+ include Google::Apis::Core::Hashable
5053
+
5054
+ # The detected value that violates the deployed posture, for example, `false` or
5055
+ # `allowed_values=`"projects/22831892”``.
5056
+ # Corresponds to the JSON property `detectedValue`
5057
+ # @return [String]
5058
+ attr_accessor :detected_value
5059
+
5060
+ # The value of this field that was configured in a posture, for example, `true`
5061
+ # or `allowed_values=`"projects/29831892”``.
5062
+ # Corresponds to the JSON property `expectedValue`
5063
+ # @return [String]
5064
+ attr_accessor :expected_value
5065
+
5066
+ # The name of the updated field, for example constraint.implementation.
5067
+ # policy_rules[0].enforce
5068
+ # Corresponds to the JSON property `field`
5069
+ # @return [String]
5070
+ attr_accessor :field
5071
+
5072
+ def initialize(**args)
5073
+ update!(**args)
5074
+ end
5075
+
5076
+ # Update properties of this object
5077
+ def update!(**args)
5078
+ @detected_value = args[:detected_value] if args.key?(:detected_value)
5079
+ @expected_value = args[:expected_value] if args.key?(:expected_value)
5080
+ @field = args[:field] if args.key?(:field)
5081
+ end
5082
+ end
5083
+
5046
5084
  # A position in the uploaded text version of a module.
5047
5085
  class Position
5048
5086
  include Google::Apis::Core::Hashable
@@ -5493,26 +5531,41 @@ module Google
5493
5531
  class SecurityPosture
5494
5532
  include Google::Apis::Core::Hashable
5495
5533
 
5496
- # The name of the policy that has been updated, for example, `projects/`
5497
- # project_id`/policies/`constraint_name``.
5534
+ # The name of the updated policy, for example, `projects/`project_id`/policies/`
5535
+ # constraint_name``.
5498
5536
  # Corresponds to the JSON property `changedPolicy`
5499
5537
  # @return [String]
5500
5538
  attr_accessor :changed_policy
5501
5539
 
5502
- # Name of the posture, for example, `organizations/`org_id`/locations/`location`/
5503
- # postures/`posture_name``.
5540
+ # Name of the posture, for example, `CIS-Posture`.
5504
5541
  # Corresponds to the JSON property `name`
5505
5542
  # @return [String]
5506
5543
  attr_accessor :name
5507
5544
 
5508
- # The name of the posture deployment, for example, `projects/`project_id`/
5545
+ # The ID of the updated policy, for example, `compute-policy-1`.
5546
+ # Corresponds to the JSON property `policy`
5547
+ # @return [String]
5548
+ attr_accessor :policy
5549
+
5550
+ # The details about a change in an updated policy that violates the deployed
5551
+ # posture.
5552
+ # Corresponds to the JSON property `policyDriftDetails`
5553
+ # @return [Array<Google::Apis::SecuritycenterV1::PolicyDriftDetails>]
5554
+ attr_accessor :policy_drift_details
5555
+
5556
+ # The name of the updated policyset, for example, `cis-policyset`.
5557
+ # Corresponds to the JSON property `policySet`
5558
+ # @return [String]
5559
+ attr_accessor :policy_set
5560
+
5561
+ # The name of the posture deployment, for example, `organizations/`org_id`/
5509
5562
  # posturedeployments/`posture_deployment_id``.
5510
5563
  # Corresponds to the JSON property `postureDeployment`
5511
5564
  # @return [String]
5512
5565
  attr_accessor :posture_deployment
5513
5566
 
5514
5567
  # The project, folder, or organization on which the posture is deployed, for
5515
- # example, `projects/`project_id``.
5568
+ # example, `projects/`project_number``.
5516
5569
  # Corresponds to the JSON property `postureDeploymentResource`
5517
5570
  # @return [String]
5518
5571
  attr_accessor :posture_deployment_resource
@@ -5530,6 +5583,9 @@ module Google
5530
5583
  def update!(**args)
5531
5584
  @changed_policy = args[:changed_policy] if args.key?(:changed_policy)
5532
5585
  @name = args[:name] if args.key?(:name)
5586
+ @policy = args[:policy] if args.key?(:policy)
5587
+ @policy_drift_details = args[:policy_drift_details] if args.key?(:policy_drift_details)
5588
+ @policy_set = args[:policy_set] if args.key?(:policy_set)
5533
5589
  @posture_deployment = args[:posture_deployment] if args.key?(:posture_deployment)
5534
5590
  @posture_deployment_resource = args[:posture_deployment_resource] if args.key?(:posture_deployment_resource)
5535
5591
  @revision_id = args[:revision_id] if args.key?(:revision_id)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SecuritycenterV1
18
18
  # Version of the google-apis-securitycenter_v1 gem
19
- GEM_VERSION = "0.73.0"
19
+ GEM_VERSION = "0.74.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 = "20240101"
25
+ REVISION = "20240119"
26
26
  end
27
27
  end
28
28
  end
@@ -694,6 +694,12 @@ module Google
694
694
  include Google::Apis::Core::JsonObjectSupport
695
695
  end
696
696
 
697
+ class PolicyDriftDetails
698
+ class Representation < Google::Apis::Core::JsonRepresentation; end
699
+
700
+ include Google::Apis::Core::JsonObjectSupport
701
+ end
702
+
697
703
  class Position
698
704
  class Representation < Google::Apis::Core::JsonRepresentation; end
699
705
 
@@ -2122,6 +2128,15 @@ module Google
2122
2128
  end
2123
2129
  end
2124
2130
 
2131
+ class PolicyDriftDetails
2132
+ # @private
2133
+ class Representation < Google::Apis::Core::JsonRepresentation
2134
+ property :detected_value, as: 'detectedValue'
2135
+ property :expected_value, as: 'expectedValue'
2136
+ property :field, as: 'field'
2137
+ end
2138
+ end
2139
+
2125
2140
  class Position
2126
2141
  # @private
2127
2142
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2245,6 +2260,10 @@ module Google
2245
2260
  class Representation < Google::Apis::Core::JsonRepresentation
2246
2261
  property :changed_policy, as: 'changedPolicy'
2247
2262
  property :name, as: 'name'
2263
+ property :policy, as: 'policy'
2264
+ collection :policy_drift_details, as: 'policyDriftDetails', class: Google::Apis::SecuritycenterV1::PolicyDriftDetails, decorator: Google::Apis::SecuritycenterV1::PolicyDriftDetails::Representation
2265
+
2266
+ property :policy_set, as: 'policySet'
2248
2267
  property :posture_deployment, as: 'postureDeployment'
2249
2268
  property :posture_deployment_resource, as: 'postureDeploymentResource'
2250
2269
  property :revision_id, as: 'revisionId'
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://cloud.google.com/security-command-center
35
35
  class SecurityCommandCenterService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://securitycenter.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://securitycenter.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-securitycenter_v1',
49
51
  client_version: Google::Apis::SecuritycenterV1::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -4240,6 +4242,13 @@ module Google
4240
4242
  # @param [String] filter
4241
4243
  # The filter expression that filters the valued resources in the response.
4242
4244
  # Supported fields: * `resource_value` supports = * `resource_type` supports =
4245
+ # @param [String] order_by
4246
+ # Optional. The fields by which to order the valued resources response.
4247
+ # Supported fields: * `exposed_score` * `resource_value` * `resource_type` * `
4248
+ # resource` * `display_name` Values should be a comma separated list of fields.
4249
+ # For example: `exposed_score,resource_value`. The default sorting order is
4250
+ # descending. To specify ascending or descending order for a field, append a "
4251
+ # ASC" or a " DESC" suffix, respectively; for example: `exposed_score DESC`.
4243
4252
  # @param [Fixnum] page_size
4244
4253
  # The maximum number of results to return in a single response. Default is 10,
4245
4254
  # minimum is 1, maximum is 1000.
@@ -4264,12 +4273,13 @@ module Google
4264
4273
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4265
4274
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4266
4275
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4267
- def list_organization_simulation_attack_exposure_result_valued_resources(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4276
+ def list_organization_simulation_attack_exposure_result_valued_resources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4268
4277
  command = make_simple_command(:get, 'v1/{+parent}/valuedResources', options)
4269
4278
  command.response_representation = Google::Apis::SecuritycenterV1::ListValuedResourcesResponse::Representation
4270
4279
  command.response_class = Google::Apis::SecuritycenterV1::ListValuedResourcesResponse
4271
4280
  command.params['parent'] = parent unless parent.nil?
4272
4281
  command.query['filter'] = filter unless filter.nil?
4282
+ command.query['orderBy'] = order_by unless order_by.nil?
4273
4283
  command.query['pageSize'] = page_size unless page_size.nil?
4274
4284
  command.query['pageToken'] = page_token unless page_token.nil?
4275
4285
  command.query['fields'] = fields unless fields.nil?
@@ -4365,6 +4375,13 @@ module Google
4365
4375
  # @param [String] filter
4366
4376
  # The filter expression that filters the valued resources in the response.
4367
4377
  # Supported fields: * `resource_value` supports = * `resource_type` supports =
4378
+ # @param [String] order_by
4379
+ # Optional. The fields by which to order the valued resources response.
4380
+ # Supported fields: * `exposed_score` * `resource_value` * `resource_type` * `
4381
+ # resource` * `display_name` Values should be a comma separated list of fields.
4382
+ # For example: `exposed_score,resource_value`. The default sorting order is
4383
+ # descending. To specify ascending or descending order for a field, append a "
4384
+ # ASC" or a " DESC" suffix, respectively; for example: `exposed_score DESC`.
4368
4385
  # @param [Fixnum] page_size
4369
4386
  # The maximum number of results to return in a single response. Default is 10,
4370
4387
  # minimum is 1, maximum is 1000.
@@ -4389,12 +4406,13 @@ module Google
4389
4406
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4390
4407
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4391
4408
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4392
- def list_organization_simulation_valued_resources(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4409
+ def list_organization_simulation_valued_resources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4393
4410
  command = make_simple_command(:get, 'v1/{+parent}/valuedResources', options)
4394
4411
  command.response_representation = Google::Apis::SecuritycenterV1::ListValuedResourcesResponse::Representation
4395
4412
  command.response_class = Google::Apis::SecuritycenterV1::ListValuedResourcesResponse
4396
4413
  command.params['parent'] = parent unless parent.nil?
4397
4414
  command.query['filter'] = filter unless filter.nil?
4415
+ command.query['orderBy'] = order_by unless order_by.nil?
4398
4416
  command.query['pageSize'] = page_size unless page_size.nil?
4399
4417
  command.query['pageToken'] = page_token unless page_token.nil?
4400
4418
  command.query['fields'] = fields unless fields.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-securitycenter_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.73.0
4
+ version: 0.74.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: 2024-01-07 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-securitycenter_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.73.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.74.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1
63
63
  post_install_message:
64
64
  rdoc_options: []