google-apis-policysimulator_v1beta 0.10.0 → 0.12.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: d43b2f1577f22dd87de1deeba384ef850b4bfbe0ab233f762d7768c1afe80c30
4
- data.tar.gz: 71bd27f8916aeee1e74141c2ce3a571af6ab5e6ed56082137a513fa471985ed8
3
+ metadata.gz: c19bf2a8d461f086f50df0c75fc370ce5fb6c0103cecee0ec18f043425ea25ab
4
+ data.tar.gz: a70787f503bcb930a7211111f8c4b975f40382a5ea3a6b0a38d22ba0246ccdfe
5
5
  SHA512:
6
- metadata.gz: 5e93d2218e9276ca45e6644b61814ea681242b101a25976c318dcde79a403581eda1106b2c8b906802e605b315b7cf392e8431bddab02be1da9b8365a6410776
7
- data.tar.gz: aad203994172220fc19175631ee8d0c40896e65c743f6b12e642b99833265989d8c772d12c4617df3f22bdccb1b565433fba7b0c0badba1d3b46d6b97f15030a
6
+ metadata.gz: 47cc7e750d4f089a55568af977901111bc8b3b1821981e44e299d229fa0ca7b7f1170c37ff8774f6d7b7dbc04bb7395f29db75fca6394aa5bd5901bb894953c1
7
+ data.tar.gz: 3cccd3ae3f049f7f198cced2735622d7f38c489000ddcffc50be5f74b2567d3231e030ba052976a56147b767b7636ea0c83ed6877db6504d47663eb182bf6c0b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-policysimulator_v1beta
2
2
 
3
+ ### v0.12.0 (2024-05-19)
4
+
5
+ * Regenerated from discovery document revision 20240505
6
+ * Regenerated using generator version 0.15.0
7
+
8
+ ### v0.11.0 (2024-02-24)
9
+
10
+ * Regenerated from discovery document revision 20240218
11
+ * Regenerated using generator version 0.14.0
12
+
3
13
  ### v0.10.0 (2024-01-28)
4
14
 
5
15
  * Regenerated from discovery document revision 20240121
data/OVERVIEW.md CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/iam/docs/simulating-access)
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -514,6 +514,58 @@ module Google
514
514
  end
515
515
  end
516
516
 
517
+ # CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
518
+ # OrgPolicyViolationsPreview generations operation.
519
+ class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
520
+ include Google::Apis::Core::Hashable
521
+
522
+ # Time when the request was received.
523
+ # Corresponds to the JSON property `requestTime`
524
+ # @return [String]
525
+ attr_accessor :request_time
526
+
527
+ # Total number of resources that need scanning. Should equal resource_scanned +
528
+ # resources_pending
529
+ # Corresponds to the JSON property `resourcesFound`
530
+ # @return [Fixnum]
531
+ attr_accessor :resources_found
532
+
533
+ # Number of resources still to scan.
534
+ # Corresponds to the JSON property `resourcesPending`
535
+ # @return [Fixnum]
536
+ attr_accessor :resources_pending
537
+
538
+ # Number of resources already scanned.
539
+ # Corresponds to the JSON property `resourcesScanned`
540
+ # @return [Fixnum]
541
+ attr_accessor :resources_scanned
542
+
543
+ # Time when the request started processing, i.e., when the state was set to
544
+ # RUNNING.
545
+ # Corresponds to the JSON property `startTime`
546
+ # @return [String]
547
+ attr_accessor :start_time
548
+
549
+ # Output only. The current state of the operation.
550
+ # Corresponds to the JSON property `state`
551
+ # @return [String]
552
+ attr_accessor :state
553
+
554
+ def initialize(**args)
555
+ update!(**args)
556
+ end
557
+
558
+ # Update properties of this object
559
+ def update!(**args)
560
+ @request_time = args[:request_time] if args.key?(:request_time)
561
+ @resources_found = args[:resources_found] if args.key?(:resources_found)
562
+ @resources_pending = args[:resources_pending] if args.key?(:resources_pending)
563
+ @resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
564
+ @start_time = args[:start_time] if args.key?(:start_time)
565
+ @state = args[:state] if args.key?(:state)
566
+ end
567
+ end
568
+
517
569
  # GenerateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
518
570
  # OrgPolicyViolationsPreview generations operation.
519
571
  class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
@@ -971,6 +1023,58 @@ module Google
971
1023
  end
972
1024
  end
973
1025
 
1026
+ # CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
1027
+ # OrgPolicyViolationsPreview generations operation.
1028
+ class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
1029
+ include Google::Apis::Core::Hashable
1030
+
1031
+ # Time when the request was received.
1032
+ # Corresponds to the JSON property `requestTime`
1033
+ # @return [String]
1034
+ attr_accessor :request_time
1035
+
1036
+ # Total number of resources that need scanning. Should equal resource_scanned +
1037
+ # resources_pending
1038
+ # Corresponds to the JSON property `resourcesFound`
1039
+ # @return [Fixnum]
1040
+ attr_accessor :resources_found
1041
+
1042
+ # Number of resources still to scan.
1043
+ # Corresponds to the JSON property `resourcesPending`
1044
+ # @return [Fixnum]
1045
+ attr_accessor :resources_pending
1046
+
1047
+ # Number of resources already scanned.
1048
+ # Corresponds to the JSON property `resourcesScanned`
1049
+ # @return [Fixnum]
1050
+ attr_accessor :resources_scanned
1051
+
1052
+ # Time when the request started processing, i.e., when the state was set to
1053
+ # RUNNING.
1054
+ # Corresponds to the JSON property `startTime`
1055
+ # @return [String]
1056
+ attr_accessor :start_time
1057
+
1058
+ # Output only. The current state of the operation.
1059
+ # Corresponds to the JSON property `state`
1060
+ # @return [String]
1061
+ attr_accessor :state
1062
+
1063
+ def initialize(**args)
1064
+ update!(**args)
1065
+ end
1066
+
1067
+ # Update properties of this object
1068
+ def update!(**args)
1069
+ @request_time = args[:request_time] if args.key?(:request_time)
1070
+ @resources_found = args[:resources_found] if args.key?(:resources_found)
1071
+ @resources_pending = args[:resources_pending] if args.key?(:resources_pending)
1072
+ @resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
1073
+ @start_time = args[:start_time] if args.key?(:start_time)
1074
+ @state = args[:state] if args.key?(:state)
1075
+ end
1076
+ end
1077
+
974
1078
  # Details about how a set of policies, listed in ExplainedPolicy, resulted in a
975
1079
  # certain AccessState when replaying an access tuple.
976
1080
  class GoogleCloudPolicysimulatorV1betaExplainedAccess
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PolicysimulatorV1beta
18
18
  # Version of the google-apis-policysimulator_v1beta gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.1"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240121"
25
+ REVISION = "20240505"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -142,6 +148,12 @@ module Google
142
148
  include Google::Apis::Core::JsonObjectSupport
143
149
  end
144
150
 
151
+ class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
145
157
  class GoogleCloudPolicysimulatorV1betaExplainedAccess
146
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
159
 
@@ -422,6 +434,18 @@ module Google
422
434
  end
423
435
  end
424
436
 
437
+ class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
438
+ # @private
439
+ class Representation < Google::Apis::Core::JsonRepresentation
440
+ property :request_time, as: 'requestTime'
441
+ property :resources_found, as: 'resourcesFound'
442
+ property :resources_pending, as: 'resourcesPending'
443
+ property :resources_scanned, as: 'resourcesScanned'
444
+ property :start_time, as: 'startTime'
445
+ property :state, as: 'state'
446
+ end
447
+ end
448
+
425
449
  class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
426
450
  # @private
427
451
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -531,6 +555,18 @@ module Google
531
555
  end
532
556
  end
533
557
 
558
+ class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
559
+ # @private
560
+ class Representation < Google::Apis::Core::JsonRepresentation
561
+ property :request_time, as: 'requestTime'
562
+ property :resources_found, as: 'resourcesFound'
563
+ property :resources_pending, as: 'resourcesPending'
564
+ property :resources_scanned, as: 'resourcesScanned'
565
+ property :start_time, as: 'startTime'
566
+ property :state, as: 'state'
567
+ end
568
+ end
569
+
534
570
  class GoogleCloudPolicysimulatorV1betaExplainedAccess
535
571
  # @private
536
572
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -389,15 +389,17 @@ module Google
389
389
  execute_or_queue_command(command, &block)
390
390
  end
391
391
 
392
- # GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for
393
- # the proposed changes in the provided OrgPolicyViolationsPreview.
394
- # OrgPolicyOverlay. The changes to OrgPolicy are specified by this `
395
- # OrgPolicyOverlay`. The resources to scan are inferred from these specified
396
- # changes.
392
+ # CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the
393
+ # proposed changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay.
394
+ # The changes to OrgPolicy are specified by this `OrgPolicyOverlay`. The
395
+ # resources to scan are inferred from these specified changes.
397
396
  # @param [String] parent
398
397
  # Required. The organization under which this OrgPolicyViolationsPreview will be
399
398
  # created. Example: `organizations/my-example-org/locations/global`
400
399
  # @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
400
+ # @param [String] org_policy_violations_preview_id
401
+ # Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If
402
+ # not provided, a random ID will be generated.
401
403
  # @param [String] fields
402
404
  # Selector specifying which fields to include in a partial response.
403
405
  # @param [String] quota_user
@@ -415,13 +417,14 @@ module Google
415
417
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
416
418
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
417
419
  # @raise [Google::Apis::AuthorizationError] Authorization is required
418
- def org_organization_location_policy_violations_previews(parent, google_cloud_policysimulator_v1beta_org_policy_violations_preview_object = nil, fields: nil, quota_user: nil, options: nil, &block)
420
+ def create_organization_location_org_policy_violations_preview(parent, google_cloud_policysimulator_v1beta_org_policy_violations_preview_object = nil, org_policy_violations_preview_id: nil, fields: nil, quota_user: nil, options: nil, &block)
419
421
  command = make_simple_command(:post, 'v1beta/{+parent}/orgPolicyViolationsPreviews', options)
420
422
  command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
421
423
  command.request_object = google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
422
424
  command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
423
425
  command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
424
426
  command.params['parent'] = parent unless parent.nil?
427
+ command.query['orgPolicyViolationsPreviewId'] = org_policy_violations_preview_id unless org_policy_violations_preview_id.nil?
425
428
  command.query['fields'] = fields unless fields.nil?
426
429
  command.query['quotaUser'] = quota_user unless quota_user.nil?
427
430
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-policysimulator_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.12.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-28 00:00:00.000000000 Z
11
+ date: 2024-05-19 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.12.0
19
+ version: 0.15.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.12.0
29
+ version: 0.15.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-policysimulator_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta/v0.12.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.3
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Policy Simulator API V1beta