google-apis-policytroubleshooter_v1 0.10.0 → 0.13.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: f78bb462ac5a843d2d8226a6392e09d5dd889da4cc023ca53a26d8337aa1aa7b
4
- data.tar.gz: 4e6685ef780510c049365e054bdf50b7a44359d0b445f4b1156a8877d0d6d0c0
3
+ metadata.gz: 05ed2fa2176e2180e224373ea1c6e3444986aaad23bcd40a564df0472f19103f
4
+ data.tar.gz: a1f4d21852a7c7999c78af122f80f19bd58ac86b171bd18f50c5cdc485c25c75
5
5
  SHA512:
6
- metadata.gz: 0d8ca59b592459260288e5364229f4e301af08bb213c5d48ae255f30b41e60ad9523d0349e8eed6c4da00e5a03ae3b360da2151691d3ccc61e3209dd7d88c044
7
- data.tar.gz: c5d716a9996079a0f1b4ad9ac094893a78b96e76af50d665e679bafa723a98022937ac2bdb151eee74cca6fb8ac474954b46ad03475ceda1193d26272a5acac4
6
+ metadata.gz: 1f92634c5924a4da248d6a2bda72fe8e507e4d842260072d92c53772996722dae375d73dbd694ae4391f54163ac46498a74ac81094ede9ddc8ce8fe91e54d214
7
+ data.tar.gz: 8655824be7630eac7156885d62cfdb8a2505b7c5f050565089fefac56e0ebbe15de451b626bf13e563cfe4fc8828fd3604ea9770e9a729f6e224e3c50dca8c93
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-policytroubleshooter_v1
2
2
 
3
+ ### v0.13.0 (2022-04-19)
4
+
5
+ * Regenerated from discovery document revision 20220415
6
+
7
+ ### v0.12.0 (2022-04-05)
8
+
9
+ * Regenerated from discovery document revision 20220402
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.11.0 (2021-12-14)
13
+
14
+ * Unspecified changes
15
+
3
16
  ### v0.10.0 (2021-10-20)
4
17
 
5
18
  * Unspecified changes
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/policytroubleshooter_v1"
51
51
  client = Google::Apis::PolicytroubleshooterV1::PolicyTroubleshooterService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -291,6 +291,11 @@ module Google
291
291
  # @return [String]
292
292
  attr_accessor :access
293
293
 
294
+ # The general errors contained in the troubleshooting response.
295
+ # Corresponds to the JSON property `errors`
296
+ # @return [Array<Google::Apis::PolicytroubleshooterV1::GoogleRpcStatus>]
297
+ attr_accessor :errors
298
+
294
299
  # List of IAM policies that were evaluated to check the principal's permissions,
295
300
  # with annotations to indicate how each policy contributed to the final result.
296
301
  # The list of policies can include the policy for the resource itself. It can
@@ -309,6 +314,7 @@ module Google
309
314
  # Update properties of this object
310
315
  def update!(**args)
311
316
  @access = args[:access] if args.key?(:access)
317
+ @errors = args[:errors] if args.key?(:errors)
312
318
  @explained_policies = args[:explained_policies] if args.key?(:explained_policies)
313
319
  end
314
320
  end
@@ -407,7 +413,7 @@ module Google
407
413
  # @return [Google::Apis::PolicytroubleshooterV1::GoogleTypeExpr]
408
414
  attr_accessor :condition
409
415
 
410
- # Specifies the principals requesting access for a Cloud Platform resource. `
416
+ # Specifies the principals requesting access for a Google Cloud resource. `
411
417
  # members` can have the following values: * `allUsers`: A special identifier
412
418
  # that represents anyone who is on the internet; with or without a Google
413
419
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -550,6 +556,45 @@ module Google
550
556
  end
551
557
  end
552
558
 
559
+ # The `Status` type defines a logical error model that is suitable for different
560
+ # programming environments, including REST APIs and RPC APIs. It is used by [
561
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
562
+ # data: error code, error message, and error details. You can find out more
563
+ # about this error model and how to work with it in the [API Design Guide](https:
564
+ # //cloud.google.com/apis/design/errors).
565
+ class GoogleRpcStatus
566
+ include Google::Apis::Core::Hashable
567
+
568
+ # The status code, which should be an enum value of google.rpc.Code.
569
+ # Corresponds to the JSON property `code`
570
+ # @return [Fixnum]
571
+ attr_accessor :code
572
+
573
+ # A list of messages that carry the error details. There is a common set of
574
+ # message types for APIs to use.
575
+ # Corresponds to the JSON property `details`
576
+ # @return [Array<Hash<String,Object>>]
577
+ attr_accessor :details
578
+
579
+ # A developer-facing error message, which should be in English. Any user-facing
580
+ # error message should be localized and sent in the google.rpc.Status.details
581
+ # field, or localized by the client.
582
+ # Corresponds to the JSON property `message`
583
+ # @return [String]
584
+ attr_accessor :message
585
+
586
+ def initialize(**args)
587
+ update!(**args)
588
+ end
589
+
590
+ # Update properties of this object
591
+ def update!(**args)
592
+ @code = args[:code] if args.key?(:code)
593
+ @details = args[:details] if args.key?(:details)
594
+ @message = args[:message] if args.key?(:message)
595
+ end
596
+ end
597
+
553
598
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
554
599
  # CEL is a C-like expression language. The syntax and semantics of CEL are
555
600
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PolicytroubleshooterV1
18
18
  # Version of the google-apis-policytroubleshooter_v1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211008"
25
+ REVISION = "20220415"
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 GoogleRpcStatus
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class GoogleTypeExpr
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -145,6 +151,8 @@ module Google
145
151
  # @private
146
152
  class Representation < Google::Apis::Core::JsonRepresentation
147
153
  property :access, as: 'access'
154
+ collection :errors, as: 'errors', class: Google::Apis::PolicytroubleshooterV1::GoogleRpcStatus, decorator: Google::Apis::PolicytroubleshooterV1::GoogleRpcStatus::Representation
155
+
148
156
  collection :explained_policies, as: 'explainedPolicies', class: Google::Apis::PolicytroubleshooterV1::GoogleCloudPolicytroubleshooterV1ExplainedPolicy, decorator: Google::Apis::PolicytroubleshooterV1::GoogleCloudPolicytroubleshooterV1ExplainedPolicy::Representation
149
157
 
150
158
  end
@@ -189,6 +197,15 @@ module Google
189
197
  end
190
198
  end
191
199
 
200
+ class GoogleRpcStatus
201
+ # @private
202
+ class Representation < Google::Apis::Core::JsonRepresentation
203
+ property :code, as: 'code'
204
+ collection :details, as: 'details'
205
+ property :message, as: 'message'
206
+ end
207
+ end
208
+
192
209
  class GoogleTypeExpr
193
210
  # @private
194
211
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-policytroubleshooter_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.13.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: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-04-25 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-policytroubleshooter_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-policytroubleshooter_v1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policytroubleshooter_v1/v0.13.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policytroubleshooter_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.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Policy Troubleshooter API V1