google-apis-servicecontrol_v2 0.17.0 → 0.18.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: 786803413423e9b9cc177a3e769e5960f78968449ee658b5b9cdce8934b1f0a0
4
- data.tar.gz: b94077fa484977d844fab48b00552f0360121436c6a60cdb70a9a0551a11f871
3
+ metadata.gz: 935a80250c595e30278813e03958176b0659f7c0c1da6939136f8eb653b9e849
4
+ data.tar.gz: c17d511fdea9a9a12f8d042d6fcf7af7b00e70be510a0bf2f2de8e693966e9cd
5
5
  SHA512:
6
- metadata.gz: c814d116630ff7eaaf3820ad2d2c8414c3e7ff20d073b830e1f9cf3fc72c482b479dcd08c90f5e1b88ee1417d7918636561eabee5cfe8ee3a5ecc88dba1e3d59
7
- data.tar.gz: a4ec684368237b4d05f47bce4d05fc14dd7885f2f5d64d0801b2a30ca5314177b937f1dcbec29737d5465ef35a0a3104177f123993d477310ea1058fe1b56c80
6
+ metadata.gz: d9e52288658f22fe7d134368860315fb1000c09d62c54fb5313669b48757990af9018f86e32e70d725f6927f96488a69f4fc1c18c5c4bcf7be24c3be4243dc61
7
+ data.tar.gz: 8d9b96193b9be39c49548851c6ee044a48af9a91c487f94d1f8fc958326e76e3698810700fe720660e0a4e6f793c4274ad1d352e55da811c2eb4368128173874
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-servicecontrol_v2
2
2
 
3
+ ### v0.18.0 (2022-03-17)
4
+
5
+ * Regenerated from discovery document revision 20220315
6
+
3
7
  ### v0.17.0 (2022-02-23)
4
8
 
5
9
  * Regenerated from discovery document revision 20220218
@@ -188,6 +188,11 @@ module Google
188
188
  # @return [Fixnum]
189
189
  attr_accessor :num_response_items
190
190
 
191
+ # Information related to policy violations for this request.
192
+ # Corresponds to the JSON property `policyViolationInfo`
193
+ # @return [Google::Apis::ServicecontrolV2::PolicyViolationInfo]
194
+ attr_accessor :policy_violation_info
195
+
191
196
  # The operation request. This may not include all request parameters, such as
192
197
  # those that are too large, privacy-sensitive, or duplicated elsewhere in the
193
198
  # log record. It should never include user-generated data, such as file contents.
@@ -267,6 +272,7 @@ module Google
267
272
  @metadata = args[:metadata] if args.key?(:metadata)
268
273
  @method_name = args[:method_name] if args.key?(:method_name)
269
274
  @num_response_items = args[:num_response_items] if args.key?(:num_response_items)
275
+ @policy_violation_info = args[:policy_violation_info] if args.key?(:policy_violation_info)
270
276
  @request = args[:request] if args.key?(:request)
271
277
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
272
278
  @resource_location = args[:resource_location] if args.key?(:resource_location)
@@ -561,6 +567,50 @@ module Google
561
567
  end
562
568
  end
563
569
 
570
+ # Represents OrgPolicy Violation information.
571
+ class OrgPolicyViolationInfo
572
+ include Google::Apis::Core::Hashable
573
+
574
+ # Optional. Resource payload that is currently in scope and is subjected to
575
+ # orgpolicy conditions. This payload may be the subset of the actual Resource
576
+ # that may come in the request. This payload should not contain any core content.
577
+ # Corresponds to the JSON property `payload`
578
+ # @return [Hash<String,Object>]
579
+ attr_accessor :payload
580
+
581
+ # Optional. Tags referenced on the resource at the time of evaluation. These
582
+ # also include the federated tags, if they are supplied in the CheckOrgPolicy or
583
+ # CheckCustomConstraints Requests. Optional field as of now. These tags are the
584
+ # Cloud tags that are available on the resource during the policy evaluation and
585
+ # will be available as part of the OrgPolicy check response for logging purposes.
586
+ # Corresponds to the JSON property `resourceTags`
587
+ # @return [Hash<String,String>]
588
+ attr_accessor :resource_tags
589
+
590
+ # Optional. Resource type that the orgpolicy is checked against. Example:
591
+ # compute.googleapis.com/Instance, store.googleapis.com/bucket
592
+ # Corresponds to the JSON property `resourceType`
593
+ # @return [String]
594
+ attr_accessor :resource_type
595
+
596
+ # Optional. Policy violations
597
+ # Corresponds to the JSON property `violationInfo`
598
+ # @return [Array<Google::Apis::ServicecontrolV2::ViolationInfo>]
599
+ attr_accessor :violation_info
600
+
601
+ def initialize(**args)
602
+ update!(**args)
603
+ end
604
+
605
+ # Update properties of this object
606
+ def update!(**args)
607
+ @payload = args[:payload] if args.key?(:payload)
608
+ @resource_tags = args[:resource_tags] if args.key?(:resource_tags)
609
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
610
+ @violation_info = args[:violation_info] if args.key?(:violation_info)
611
+ end
612
+ end
613
+
564
614
  # This message defines attributes for a node that handles a network request. The
565
615
  # node can be either a service or an application that sends, forwards, or
566
616
  # receives the request. Service peers should fill in `principal` and `labels` as
@@ -611,6 +661,25 @@ module Google
611
661
  end
612
662
  end
613
663
 
664
+ # Information related to policy violations for this request.
665
+ class PolicyViolationInfo
666
+ include Google::Apis::Core::Hashable
667
+
668
+ # Represents OrgPolicy Violation information.
669
+ # Corresponds to the JSON property `orgPolicyViolationInfo`
670
+ # @return [Google::Apis::ServicecontrolV2::OrgPolicyViolationInfo]
671
+ attr_accessor :org_policy_violation_info
672
+
673
+ def initialize(**args)
674
+ update!(**args)
675
+ end
676
+
677
+ # Update properties of this object
678
+ def update!(**args)
679
+ @org_policy_violation_info = args[:org_policy_violation_info] if args.key?(:org_policy_violation_info)
680
+ end
681
+ end
682
+
614
683
  # Request message for the Report method.
615
684
  class ReportRequest
616
685
  include Google::Apis::Core::Hashable
@@ -1486,6 +1555,45 @@ module Google
1486
1555
  @line = args[:line] if args.key?(:line)
1487
1556
  end
1488
1557
  end
1558
+
1559
+ # Provides information about the Policy violation info for this request.
1560
+ class ViolationInfo
1561
+ include Google::Apis::Core::Hashable
1562
+
1563
+ # Optional. Value that is being checked for the policy. This could be in
1564
+ # encrypted form (if pii sensitive). This field will only be emitted in
1565
+ # LIST_POLICY types
1566
+ # Corresponds to the JSON property `checkedValue`
1567
+ # @return [String]
1568
+ attr_accessor :checked_value
1569
+
1570
+ # Optional. Constraint name
1571
+ # Corresponds to the JSON property `constraint`
1572
+ # @return [String]
1573
+ attr_accessor :constraint
1574
+
1575
+ # Optional. Error message that policy is indicating.
1576
+ # Corresponds to the JSON property `errorMessage`
1577
+ # @return [String]
1578
+ attr_accessor :error_message
1579
+
1580
+ # Optional. Indicates the type of the policy.
1581
+ # Corresponds to the JSON property `policyType`
1582
+ # @return [String]
1583
+ attr_accessor :policy_type
1584
+
1585
+ def initialize(**args)
1586
+ update!(**args)
1587
+ end
1588
+
1589
+ # Update properties of this object
1590
+ def update!(**args)
1591
+ @checked_value = args[:checked_value] if args.key?(:checked_value)
1592
+ @constraint = args[:constraint] if args.key?(:constraint)
1593
+ @error_message = args[:error_message] if args.key?(:error_message)
1594
+ @policy_type = args[:policy_type] if args.key?(:policy_type)
1595
+ end
1596
+ end
1489
1597
  end
1490
1598
  end
1491
1599
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServicecontrolV2
18
18
  # Version of the google-apis-servicecontrol_v2 gem
19
- GEM_VERSION = "0.17.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220218"
25
+ REVISION = "20220315"
26
26
  end
27
27
  end
28
28
  end
@@ -76,12 +76,24 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class OrgPolicyViolationInfo
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class Peer
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
82
88
  include Google::Apis::Core::JsonObjectSupport
83
89
  end
84
90
 
91
+ class PolicyViolationInfo
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
85
97
  class ReportRequest
86
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
99
 
@@ -178,6 +190,12 @@ module Google
178
190
  include Google::Apis::Core::JsonObjectSupport
179
191
  end
180
192
 
193
+ class ViolationInfo
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
181
199
  class Api
182
200
  # @private
183
201
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -219,6 +237,8 @@ module Google
219
237
  hash :metadata, as: 'metadata'
220
238
  property :method_name, as: 'methodName'
221
239
  property :num_response_items, :numeric_string => true, as: 'numResponseItems'
240
+ property :policy_violation_info, as: 'policyViolationInfo', class: Google::Apis::ServicecontrolV2::PolicyViolationInfo, decorator: Google::Apis::ServicecontrolV2::PolicyViolationInfo::Representation
241
+
222
242
  hash :request, as: 'request'
223
243
  property :request_metadata, as: 'requestMetadata', class: Google::Apis::ServicecontrolV2::RequestMetadata, decorator: Google::Apis::ServicecontrolV2::RequestMetadata::Representation
224
244
 
@@ -298,6 +318,17 @@ module Google
298
318
  end
299
319
  end
300
320
 
321
+ class OrgPolicyViolationInfo
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ hash :payload, as: 'payload'
325
+ hash :resource_tags, as: 'resourceTags'
326
+ property :resource_type, as: 'resourceType'
327
+ collection :violation_info, as: 'violationInfo', class: Google::Apis::ServicecontrolV2::ViolationInfo, decorator: Google::Apis::ServicecontrolV2::ViolationInfo::Representation
328
+
329
+ end
330
+ end
331
+
301
332
  class Peer
302
333
  # @private
303
334
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -309,6 +340,14 @@ module Google
309
340
  end
310
341
  end
311
342
 
343
+ class PolicyViolationInfo
344
+ # @private
345
+ class Representation < Google::Apis::Core::JsonRepresentation
346
+ property :org_policy_violation_info, as: 'orgPolicyViolationInfo', class: Google::Apis::ServicecontrolV2::OrgPolicyViolationInfo, decorator: Google::Apis::ServicecontrolV2::OrgPolicyViolationInfo::Representation
347
+
348
+ end
349
+ end
350
+
312
351
  class ReportRequest
313
352
  # @private
314
353
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -499,6 +538,16 @@ module Google
499
538
  property :line, :numeric_string => true, as: 'line'
500
539
  end
501
540
  end
541
+
542
+ class ViolationInfo
543
+ # @private
544
+ class Representation < Google::Apis::Core::JsonRepresentation
545
+ property :checked_value, as: 'checkedValue'
546
+ property :constraint, as: 'constraint'
547
+ property :error_message, as: 'errorMessage'
548
+ property :policy_type, as: 'policyType'
549
+ end
550
+ end
502
551
  end
503
552
  end
504
553
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-servicecontrol_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.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: 2022-02-28 00:00:00.000000000 Z
11
+ date: 2022-03-21 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-servicecontrol_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-servicecontrol_v2/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-servicecontrol_v2/v0.18.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicecontrol_v2
63
63
  post_install_message:
64
64
  rdoc_options: []