google-cloud-policy_simulator-v1 1.3.0 → 1.4.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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -4
  4. data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/client.rb +848 -0
  5. data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/credentials.rb +47 -0
  6. data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/operations.rb +813 -0
  7. data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/paths.rb +138 -0
  8. data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/rest/client.rb +794 -0
  9. data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/rest/operations.rb +998 -0
  10. data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/rest/service_stub.rb +326 -0
  11. data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service/rest.rb +63 -0
  12. data/lib/google/cloud/policy_simulator/v1/org_policy_violations_preview_service.rb +66 -0
  13. data/lib/google/cloud/policy_simulator/v1/rest.rb +2 -1
  14. data/lib/google/cloud/policy_simulator/v1/simulator/rest/operations.rb +42 -0
  15. data/lib/google/cloud/policy_simulator/v1/version.rb +1 -1
  16. data/lib/google/cloud/policy_simulator/v1.rb +3 -2
  17. data/lib/google/cloud/policysimulator/v1/explanations_pb.rb +1 -1
  18. data/lib/google/cloud/policysimulator/v1/orgpolicy_pb.rb +70 -0
  19. data/lib/google/cloud/policysimulator/v1/orgpolicy_services_pb.rb +76 -0
  20. data/lib/google/cloud/policysimulator/v1/simulator_pb.rb +1 -1
  21. data/proto_docs/google/cloud/orgpolicy/v2/constraint.rb +370 -0
  22. data/proto_docs/google/cloud/orgpolicy/v2/orgpolicy.rb +454 -0
  23. data/proto_docs/google/cloud/policysimulator/v1/explanations.rb +3 -3
  24. data/proto_docs/google/cloud/policysimulator/v1/orgpolicy.rb +380 -0
  25. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  26. data/proto_docs/google/protobuf/struct.rb +108 -0
  27. metadata +32 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94ff6f620b2dca5e23af60d592e0b3e3b5dfaa98413c9f8fa89baabc6507318a
4
- data.tar.gz: ea71cec31bf67962328a20a59d7a2316a892b1f181f6faa3befe34842dad81f6
3
+ metadata.gz: 10d67afd749739835559974aaf4293f42459b7f9a198b06e718c2f2cfc772548
4
+ data.tar.gz: ea8b0febddad046c468ddd3c659f6b2a7d1bb53aeda5f76d2957b5051906d5e5
5
5
  SHA512:
6
- metadata.gz: 7484f8b2d49be4c728a446d64c957163471c72094967dd266e2e1707a4a197178e5274b650018d08cd80c38cc9963cb4a3794dc6e75c8ea1308d31edaddae4ad
7
- data.tar.gz: 7bde17b98a028c338bfd2336ce5d52a39eca2c9b1e6582a18da86ad83f93da49d194d5d4debe491bb31192bd14e80d0399ad540db8eff53cef2cc81323b00bb6
6
+ metadata.gz: 6166ead880619c3262aa55842ecdc2d106180136fce9b5940470e36682cebbd4e330a8018c734ef3c5b488d85c3757cb46ac2d5c9ea58cf0d1daa390f95e7e32
7
+ data.tar.gz: 0c08f0c362406e121386345695440289cb2f5e26a1bf03ab14b7eb8f64349dad166f8e370cac416a2c74a749b5c0573087ab2f6b0b0e61a07b87ce06b99fe697
data/AUTHENTICATION.md CHANGED
@@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
56
56
  ```ruby
57
57
  require "google/cloud/policy_simulator/v1"
58
58
 
59
- client = ::Google::Cloud::PolicySimulator::V1::Simulator::Client.new do |config|
59
+ client = ::Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreviewService::Client.new do |config|
60
60
  config.credentials = "path/to/credentialfile.json"
61
61
  end
62
62
  ```
@@ -66,11 +66,11 @@ To configure a credentials file globally for all clients:
66
66
  ```ruby
67
67
  require "google/cloud/policy_simulator/v1"
68
68
 
69
- ::Google::Cloud::PolicySimulator::V1::Simulator::Client.configure do |config|
69
+ ::Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreviewService::Client.configure do |config|
70
70
  config.credentials = "path/to/credentialfile.json"
71
71
  end
72
72
 
73
- client = ::Google::Cloud::PolicySimulator::V1::Simulator::Client.new
73
+ client = ::Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreviewService::Client.new
74
74
  ```
75
75
 
76
76
  ### Environment Variables
@@ -100,7 +100,7 @@ require "google/cloud/policy_simulator/v1"
100
100
 
101
101
  ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
102
102
 
103
- client = ::Google::Cloud::PolicySimulator::V1::Simulator::Client.new
103
+ client = ::Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreviewService::Client.new
104
104
  ```
105
105
 
106
106
  ### Local ADC file
data/README.md CHANGED
@@ -32,9 +32,9 @@ In order to use this library, you first need to go through the following steps:
32
32
  ```ruby
33
33
  require "google/cloud/policy_simulator/v1"
34
34
 
35
- client = ::Google::Cloud::PolicySimulator::V1::Simulator::Client.new
36
- request = ::Google::Cloud::PolicySimulator::V1::GetReplayRequest.new # (request fields as keyword arguments...)
37
- response = client.get_replay request
35
+ client = ::Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreviewService::Client.new
36
+ request = ::Google::Cloud::PolicySimulator::V1::ListOrgPolicyViolationsPreviewsRequest.new # (request fields as keyword arguments...)
37
+ response = client.list_org_policy_violations_previews request
38
38
  ```
39
39
 
40
40
  View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest)
@@ -75,7 +75,7 @@ constructing a client object. For example:
75
75
  require "google/cloud/policy_simulator/v1"
76
76
  require "logger"
77
77
 
78
- client = ::Google::Cloud::PolicySimulator::V1::Simulator::Client.new do |config|
78
+ client = ::Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreviewService::Client.new do |config|
79
79
  config.logger = Logger.new "my-app.log"
80
80
  end
81
81
  ```