google-apis-orgpolicy_v2 0.9.0 → 0.13.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 +17 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/orgpolicy_v2/classes.rb +35 -0
- data/lib/google/apis/orgpolicy_v2/gem_version.rb +3 -3
- data/lib/google/apis/orgpolicy_v2/representations.rb +17 -0
- data/lib/google/apis/orgpolicy_v2/service.rb +1 -1
- data/lib/google/apis/orgpolicy_v2.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d079407cdbdba57c17d784e8871e67a943106ac65c7b905e9977bc5e2ec849e6
|
4
|
+
data.tar.gz: 88f74782381b9a2884c657c2dbeaab393fd3839e92e4bbd8996da3b8792a37a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c196e3697bcb8bc7be9d5586fbc56ac46e3685fa12a6c578d841dba033bfaf1dce6dbf006cfc809ebcd7d2955e686fffd1eebd1c1032d3e584f82a76773a1156
|
7
|
+
data.tar.gz: 32922b3ba111e5578f5dfc0d16c8fa2d5cfdc3e4c17f7296179cfbb98ec4c2950d92a02def8407f123c2355a0e780b72e21de414a6d67e312447556c0d3ffa48
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-orgpolicy_v2
|
2
2
|
|
3
|
+
### v0.13.0 (2022-02-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220129
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.12.0 (2022-01-11)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220107
|
11
|
+
|
12
|
+
### v0.11.0 (2021-12-14)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.10.0 (2021-12-02)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20211130
|
19
|
+
|
3
20
|
### v0.9.0 (2021-10-21)
|
4
21
|
|
5
22
|
* Unspecified changes
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/orgpolicy_v2"
|
|
51
51
|
client = Google::Apis::OrgpolicyV2::OrgPolicyAPIService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
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.
|
@@ -22,6 +22,34 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module OrgpolicyV2
|
24
24
|
|
25
|
+
# Similar to PolicySpec but with an extra 'launch' field for launch reference.
|
26
|
+
# The PolicySpec here is specific for dry-run/darklaunch.
|
27
|
+
class GoogleCloudOrgpolicyV2AlternatePolicySpec
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# Reference to the launch that will be used while audit logging and to control
|
31
|
+
# the launch. Should be set only in the alternate policy.
|
32
|
+
# Corresponds to the JSON property `launch`
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :launch
|
35
|
+
|
36
|
+
# Defines a Cloud Organization `PolicySpec` which is used to specify `
|
37
|
+
# Constraints` for configurations of Cloud Platform resources.
|
38
|
+
# Corresponds to the JSON property `spec`
|
39
|
+
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec]
|
40
|
+
attr_accessor :spec
|
41
|
+
|
42
|
+
def initialize(**args)
|
43
|
+
update!(**args)
|
44
|
+
end
|
45
|
+
|
46
|
+
# Update properties of this object
|
47
|
+
def update!(**args)
|
48
|
+
@launch = args[:launch] if args.key?(:launch)
|
49
|
+
@spec = args[:spec] if args.key?(:spec)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
25
53
|
# A `constraint` describes a way to restrict resource's configuration. For
|
26
54
|
# example, you could enforce a constraint that controls which cloud services can
|
27
55
|
# be activated across an organization, or whether a Compute Engine instance can
|
@@ -195,6 +223,12 @@ module Google
|
|
195
223
|
class GoogleCloudOrgpolicyV2Policy
|
196
224
|
include Google::Apis::Core::Hashable
|
197
225
|
|
226
|
+
# Similar to PolicySpec but with an extra 'launch' field for launch reference.
|
227
|
+
# The PolicySpec here is specific for dry-run/darklaunch.
|
228
|
+
# Corresponds to the JSON property `alternate`
|
229
|
+
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec]
|
230
|
+
attr_accessor :alternate
|
231
|
+
|
198
232
|
# Immutable. The resource name of the Policy. Must be one of the following forms,
|
199
233
|
# where constraint_name is the name of the constraint which this Policy
|
200
234
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
@@ -219,6 +253,7 @@ module Google
|
|
219
253
|
|
220
254
|
# Update properties of this object
|
221
255
|
def update!(**args)
|
256
|
+
@alternate = args[:alternate] if args.key?(:alternate)
|
222
257
|
@name = args[:name] if args.key?(:name)
|
223
258
|
@spec = args[:spec] if args.key?(:spec)
|
224
259
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module OrgpolicyV2
|
18
18
|
# Version of the google-apis-orgpolicy_v2 gem
|
19
|
-
GEM_VERSION = "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.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220129"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module OrgpolicyV2
|
24
24
|
|
25
|
+
class GoogleCloudOrgpolicyV2AlternatePolicySpec
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class GoogleCloudOrgpolicyV2Constraint
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -88,6 +94,15 @@ module Google
|
|
88
94
|
include Google::Apis::Core::JsonObjectSupport
|
89
95
|
end
|
90
96
|
|
97
|
+
class GoogleCloudOrgpolicyV2AlternatePolicySpec
|
98
|
+
# @private
|
99
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
100
|
+
property :launch, as: 'launch'
|
101
|
+
property :spec, as: 'spec', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec::Representation
|
102
|
+
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
91
106
|
class GoogleCloudOrgpolicyV2Constraint
|
92
107
|
# @private
|
93
108
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -137,6 +152,8 @@ module Google
|
|
137
152
|
class GoogleCloudOrgpolicyV2Policy
|
138
153
|
# @private
|
139
154
|
class Representation < Google::Apis::Core::JsonRepresentation
|
155
|
+
property :alternate, as: 'alternate', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec::Representation
|
156
|
+
|
140
157
|
property :name, as: 'name'
|
141
158
|
property :spec, as: 'spec', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec::Representation
|
142
159
|
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
module OrgpolicyV2
|
23
23
|
# Organization Policy API
|
24
24
|
#
|
25
|
-
# The Org Policy API allows users to configure governance
|
25
|
+
# The Org Policy API allows users to configure governance rules on their GCP
|
26
26
|
# resources across the Cloud Resource Hierarchy.
|
27
27
|
#
|
28
28
|
# @example
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
module Apis
|
22
22
|
# Organization Policy API
|
23
23
|
#
|
24
|
-
# The Org Policy API allows users to configure governance
|
24
|
+
# The Org Policy API allows users to configure governance rules on their GCP
|
25
25
|
# resources across the Cloud Resource Hierarchy.
|
26
26
|
#
|
27
27
|
# @see https://cloud.google.com/orgpolicy/docs/reference/rest/index.html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-orgpolicy_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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:
|
11
|
+
date: 2022-02-07 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-orgpolicy_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.13.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-orgpolicy_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.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Organization Policy API V2
|