google-apis-servicecontrol_v2 0.17.0 → 0.20.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: 786803413423e9b9cc177a3e769e5960f78968449ee658b5b9cdce8934b1f0a0
4
- data.tar.gz: b94077fa484977d844fab48b00552f0360121436c6a60cdb70a9a0551a11f871
3
+ metadata.gz: 29824162bab8fbe2c1c9976b020bd5a5240c3df728c71abd9596efebdd9703ac
4
+ data.tar.gz: d177f3c3216df7374bde86ff3c644329ba13c26dfe6ce9463ca9e0be1b78ce6c
5
5
  SHA512:
6
- metadata.gz: c814d116630ff7eaaf3820ad2d2c8414c3e7ff20d073b830e1f9cf3fc72c482b479dcd08c90f5e1b88ee1417d7918636561eabee5cfe8ee3a5ecc88dba1e3d59
7
- data.tar.gz: a4ec684368237b4d05f47bce4d05fc14dd7885f2f5d64d0801b2a30ca5314177b937f1dcbec29737d5465ef35a0a3104177f123993d477310ea1058fe1b56c80
6
+ metadata.gz: a8fee405677f963ae03a7ac76f5ac666e50af1dcb7636bdcf18d65f7a99976b4873adb83360d2511f5e884f46262897404a910637679a7f72f33e96a0f8bd9c1
7
+ data.tar.gz: 046c5cea4efbe430c04fb3e01a22cc4bc03ea2561d10ba20b136f081854f73392928ef579c645f26842442845ecc7b4c91ec7f727c24c752cdc5f7f83d8056de
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-servicecontrol_v2
2
2
 
3
+ ### v0.20.0 (2022-06-07)
4
+
5
+ * Regenerated using generator version 0.5.0
6
+
7
+ ### v0.19.0 (2022-03-26)
8
+
9
+ * Regenerated from discovery document revision 20220325
10
+
11
+ ### v0.18.0 (2022-03-17)
12
+
13
+ * Regenerated from discovery document revision 20220315
14
+
3
15
  ### v0.17.0 (2022-02-23)
4
16
 
5
17
  * 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.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220218"
25
+ REVISION = "20220325"
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
@@ -52,18 +52,19 @@ module Google
52
52
 
53
53
  # Private Preview. This feature is only available for approved services. This
54
54
  # method provides admission control for services that are integrated with [
55
- # Service Infrastructure](/service-infrastructure). It checks whether an
56
- # operation should be allowed based on the service configuration and relevant
57
- # policies. It must be called before the operation is executed. For more
58
- # information, see [Admission Control](/service-infrastructure/docs/admission-
59
- # control). NOTE: The admission control has an expected policy propagation delay
60
- # of 60s. The caller **must** not depend on the most recent policy changes. NOTE:
61
- # The admission control has a hard limit of 1 referenced resources per call. If
62
- # an operation refers to more than 1 resources, the caller must call the Check
63
- # method multiple times. This method requires the `servicemanagement.services.
64
- # check` permission on the specified service. For more information, see [Service
65
- # Control API Access Control](https://cloud.google.com/service-infrastructure/
66
- # docs/service-control/access-control).
55
+ # Service Infrastructure](https://cloud.google.com/service-infrastructure). It
56
+ # checks whether an operation should be allowed based on the service
57
+ # configuration and relevant policies. It must be called before the operation is
58
+ # executed. For more information, see [Admission Control](https://cloud.google.
59
+ # com/service-infrastructure/docs/admission-control). NOTE: The admission
60
+ # control has an expected policy propagation delay of 60s. The caller **must**
61
+ # not depend on the most recent policy changes. NOTE: The admission control has
62
+ # a hard limit of 1 referenced resources per call. If an operation refers to
63
+ # more than 1 resources, the caller must call the Check method multiple times.
64
+ # This method requires the `servicemanagement.services.check` permission on the
65
+ # specified service. For more information, see [Service Control API Access
66
+ # Control](https://cloud.google.com/service-infrastructure/docs/service-control/
67
+ # access-control).
67
68
  # @param [String] service_name
68
69
  # The service name as specified in its service configuration. For example, `"
69
70
  # pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/
@@ -101,15 +102,16 @@ module Google
101
102
 
102
103
  # Private Preview. This feature is only available for approved services. This
103
104
  # method provides telemetry reporting for services that are integrated with [
104
- # Service Infrastructure](/service-infrastructure). It reports a list of
105
- # operations that have occurred on a service. It must be called after the
106
- # operations have been executed. For more information, see [Telemetry Reporting](
107
- # /service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry
108
- # reporting has a hard limit of 1000 operations and 1MB per Report call. It is
109
- # recommended to have no more than 100 operations per call. This method requires
110
- # the `servicemanagement.services.report` permission on the specified service.
111
- # For more information, see [Service Control API Access Control](https://cloud.
112
- # google.com/service-infrastructure/docs/service-control/access-control).
105
+ # Service Infrastructure](https://cloud.google.com/service-infrastructure). It
106
+ # reports a list of operations that have occurred on a service. It must be
107
+ # called after the operations have been executed. For more information, see [
108
+ # Telemetry Reporting](https://cloud.google.com/service-infrastructure/docs/
109
+ # telemetry-reporting). NOTE: The telemetry reporting has a hard limit of 1000
110
+ # operations and 1MB per Report call. It is recommended to have no more than 100
111
+ # operations per call. This method requires the `servicemanagement.services.
112
+ # report` permission on the specified service. For more information, see [
113
+ # Service Control API Access Control](https://cloud.google.com/service-
114
+ # infrastructure/docs/service-control/access-control).
113
115
  # @param [String] service_name
114
116
  # The service name as specified in its service configuration. For example, `"
115
117
  # pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/
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.20.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-06-13 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.4'
19
+ version: '0.5'
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.4'
29
+ version: '0.5'
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-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.20.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: []
@@ -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.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Service Control API V2