google-apis-servicecontrol_v2 0.16.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/servicecontrol_v2/classes.rb +108 -0
- data/lib/google/apis/servicecontrol_v2/gem_version.rb +2 -2
- data/lib/google/apis/servicecontrol_v2/representations.rb +49 -0
- data/lib/google/apis/servicecontrol_v2/service.rb +23 -21
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd2250724f4da1ca3baf96e5d1ae235eb8cf0afae05ffc29194d802194cff719
|
4
|
+
data.tar.gz: 63874b975eb84e27e6431cef0955695b825aa08980fa61e98c7ba385ec39d1b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcf0ecb4a69ade21a9ce0ea2d8d3c70e9fb82da7e52c05ea0cff6bd1944a41cfd71aaa24b93eb4e42b61f19b60967c8894e914f5faf3752731e8083937254ee1
|
7
|
+
data.tar.gz: e26e8e89a23fd9118a09a0556c94ddc6c542456a5bcea2b83638809ffe951107f32145d44bcf5a80baf55bde55899d97fb740b881d55cdbb24435f77c1c0235c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-servicecontrol_v2
|
2
2
|
|
3
|
+
### v0.19.0 (2022-03-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220325
|
6
|
+
|
7
|
+
### v0.18.0 (2022-03-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220315
|
10
|
+
|
11
|
+
### v0.17.0 (2022-02-23)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220218
|
14
|
+
|
3
15
|
### v0.16.0 (2022-02-19)
|
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.
|
19
|
+
GEM_VERSION = "0.19.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 = "
|
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
|
56
|
-
# operation should be allowed based on the service
|
57
|
-
# policies. It must be called before the operation is
|
58
|
-
# information, see [Admission Control](
|
59
|
-
# control). NOTE: The admission
|
60
|
-
# of 60s. The caller **must**
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# Control API Access
|
66
|
-
# docs/service-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
|
105
|
-
# operations that have occurred on a service. It must be
|
106
|
-
# operations have been executed. For more information, see [
|
107
|
-
# /service-infrastructure/docs/
|
108
|
-
# reporting has a hard limit of 1000
|
109
|
-
# recommended to have no more than 100
|
110
|
-
#
|
111
|
-
# For more information, see [
|
112
|
-
# google.com/service-
|
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.
|
4
|
+
version: 0.19.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-
|
11
|
+
date: 2022-03-28 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-servicecontrol_v2/v0.19.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: []
|