grpc-google-iam-v1 0.6.11 → 1.1.1
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 +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/google/iam/v1/iam_policy_pb.rb +4 -2
- data/lib/google/iam/v1/iam_policy_services_pb.rb +7 -5
- data/lib/google/iam/v1/options_pb.rb +0 -1
- data/lib/google/iam/v1/policy_pb.rb +18 -1
- data/lib/grpc/google/iam/v1/version.rb +23 -0
- metadata +9 -54
- data/.gitignore +0 -10
- data/Gemfile +0 -8
- data/Rakefile +0 -64
- data/grpc-google-iam-v1.gemspec +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17fbbc27e2919544851a9adc64b4e9310aa3b1eaae5fa41ec0ecc3e01979b57d
|
4
|
+
data.tar.gz: fd68b4ddfac73427f1643e05a40a596ba210ff125a0061312a241f05c1081827
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 975acc3e42694e54c7ff80697645d6ab953109248b6706db83fd6fe3b5352261e07c54dd186f105b0b48c331433ed06c7631ca227e1841c2a13e5085d7202e01
|
7
|
+
data.tar.gz: 89816737ac46b0d5b26560cac6b1152aabb41cdd9982e9bb51d86df35a30d9ac91c589af94c66b7ec32ef1b6ebd492e2cbea5cd714e1e62a31b59fb4bf099d92
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 1.1.1 (2022-06-23)
|
4
|
+
|
5
|
+
#### Bug Fixes
|
6
|
+
|
7
|
+
* Remove some unnecessary requires
|
8
|
+
|
9
|
+
### 1.1.0 (2022-04-05)
|
10
|
+
|
11
|
+
* Added audit_configs field to the Policy object.
|
12
|
+
* Added update_mask parameter to the set_iam_policy call.
|
13
|
+
|
14
|
+
### 1.0.0 (2021-09-03)
|
15
|
+
|
16
|
+
* Bumped version to 1.0.0.
|
17
|
+
* Removed unnecessary files from the gem package.
|
18
|
+
* Update googleapis-common-protos dependency to 1.3.12.
|
19
|
+
|
3
20
|
### 0.6.11 / 2021-02-01
|
4
21
|
|
5
22
|
* Fully qualify proto names internally.
|
@@ -3,17 +3,19 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/iam/v1/options_pb'
|
7
|
-
require 'google/iam/v1/policy_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
9
7
|
require 'google/api/client_pb'
|
10
8
|
require 'google/api/field_behavior_pb'
|
11
9
|
require 'google/api/resource_pb'
|
10
|
+
require 'google/iam/v1/options_pb'
|
11
|
+
require 'google/iam/v1/policy_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
12
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
14
|
add_file("google/iam/v1/iam_policy.proto", :syntax => :proto3) do
|
14
15
|
add_message "google.iam.v1.SetIamPolicyRequest" do
|
15
16
|
optional :resource, :string, 1
|
16
17
|
optional :policy, :message, 2, "google.iam.v1.Policy"
|
18
|
+
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
17
19
|
end
|
18
20
|
add_message "google.iam.v1.GetIamPolicyRequest" do
|
19
21
|
optional :resource, :string, 1
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/iam/v1/iam_policy.proto for package 'google.iam.v1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2022 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,7 +15,6 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
#
|
19
18
|
|
20
19
|
require 'grpc'
|
21
20
|
require 'google/iam/v1/iam_policy_pb'
|
@@ -24,7 +23,8 @@ module Google
|
|
24
23
|
module Iam
|
25
24
|
module V1
|
26
25
|
module IAMPolicy
|
27
|
-
#
|
26
|
+
# API Overview
|
27
|
+
#
|
28
28
|
#
|
29
29
|
# Manages Identity and Access Management (IAM) policies.
|
30
30
|
#
|
@@ -51,7 +51,7 @@ module Google
|
|
51
51
|
# attached.
|
52
52
|
class Service
|
53
53
|
|
54
|
-
include GRPC::GenericService
|
54
|
+
include ::GRPC::GenericService
|
55
55
|
|
56
56
|
self.marshal_class_method = :encode
|
57
57
|
self.unmarshal_class_method = :decode
|
@@ -59,6 +59,8 @@ module Google
|
|
59
59
|
|
60
60
|
# Sets the access control policy on the specified resource. Replaces any
|
61
61
|
# existing policy.
|
62
|
+
#
|
63
|
+
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
62
64
|
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
63
65
|
# Gets the access control policy for a resource.
|
64
66
|
# Returns an empty policy if the resource exists and does not have a policy
|
@@ -66,7 +68,7 @@ module Google
|
|
66
68
|
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
67
69
|
# Returns permissions that a caller has on the specified resource.
|
68
70
|
# If the resource does not exist, this will return an empty set of
|
69
|
-
# permissions, not a NOT_FOUND error.
|
71
|
+
# permissions, not a `NOT_FOUND` error.
|
70
72
|
#
|
71
73
|
# Note: This operation is designed to be used for building permission-aware
|
72
74
|
# UIs and command-line tools, not for authorization checking. This operation
|
@@ -4,12 +4,12 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'google/type/expr_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
8
|
add_file("google/iam/v1/policy.proto", :syntax => :proto3) do
|
10
9
|
add_message "google.iam.v1.Policy" do
|
11
10
|
optional :version, :int32, 1
|
12
11
|
repeated :bindings, :message, 4, "google.iam.v1.Binding"
|
12
|
+
repeated :audit_configs, :message, 6, "google.iam.v1.AuditConfig"
|
13
13
|
optional :etag, :bytes, 3
|
14
14
|
end
|
15
15
|
add_message "google.iam.v1.Binding" do
|
@@ -17,6 +17,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
17
|
repeated :members, :string, 2
|
18
18
|
optional :condition, :message, 3, "google.type.Expr"
|
19
19
|
end
|
20
|
+
add_message "google.iam.v1.AuditConfig" do
|
21
|
+
optional :service, :string, 1
|
22
|
+
repeated :audit_log_configs, :message, 3, "google.iam.v1.AuditLogConfig"
|
23
|
+
end
|
24
|
+
add_message "google.iam.v1.AuditLogConfig" do
|
25
|
+
optional :log_type, :enum, 1, "google.iam.v1.AuditLogConfig.LogType"
|
26
|
+
repeated :exempted_members, :string, 2
|
27
|
+
end
|
28
|
+
add_enum "google.iam.v1.AuditLogConfig.LogType" do
|
29
|
+
value :LOG_TYPE_UNSPECIFIED, 0
|
30
|
+
value :ADMIN_READ, 1
|
31
|
+
value :DATA_WRITE, 2
|
32
|
+
value :DATA_READ, 3
|
33
|
+
end
|
20
34
|
add_message "google.iam.v1.PolicyDelta" do
|
21
35
|
repeated :binding_deltas, :message, 1, "google.iam.v1.BindingDelta"
|
22
36
|
repeated :audit_config_deltas, :message, 2, "google.iam.v1.AuditConfigDelta"
|
@@ -51,6 +65,9 @@ module Google
|
|
51
65
|
module V1
|
52
66
|
Policy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.Policy").msgclass
|
53
67
|
Binding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.Binding").msgclass
|
68
|
+
AuditConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.AuditConfig").msgclass
|
69
|
+
AuditLogConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.AuditLogConfig").msgclass
|
70
|
+
AuditLogConfig::LogType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.AuditLogConfig.LogType").enummodule
|
54
71
|
PolicyDelta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.PolicyDelta").msgclass
|
55
72
|
BindingDelta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.BindingDelta").msgclass
|
56
73
|
BindingDelta::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.BindingDelta.Action").enummodule
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Iam
|
19
|
+
module V1
|
20
|
+
VERSION = "1.1.1".freeze
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc-google-iam-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Google
|
7
|
+
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: googleapis-common-protos
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.3.
|
19
|
+
version: 1.3.12
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2.0'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.3.
|
29
|
+
version: 1.3.12
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2.0'
|
@@ -58,65 +58,20 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '1.27'
|
61
|
-
|
62
|
-
name: bundler
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '2.1'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '2.1'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: grpc-tools
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '1.27'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '1.27'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: rake
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '13.0'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '13.0'
|
103
|
-
description:
|
61
|
+
description: Common protos and gRPC services for Google IAM
|
104
62
|
email:
|
105
63
|
- googleapis-packages@google.com
|
106
64
|
executables: []
|
107
65
|
extensions: []
|
108
66
|
extra_rdoc_files: []
|
109
67
|
files:
|
110
|
-
- ".gitignore"
|
111
68
|
- CHANGELOG.md
|
112
|
-
- Gemfile
|
113
69
|
- README.md
|
114
|
-
- Rakefile
|
115
|
-
- grpc-google-iam-v1.gemspec
|
116
70
|
- lib/google/iam/v1/iam_policy_pb.rb
|
117
71
|
- lib/google/iam/v1/iam_policy_services_pb.rb
|
118
72
|
- lib/google/iam/v1/options_pb.rb
|
119
73
|
- lib/google/iam/v1/policy_pb.rb
|
74
|
+
- lib/grpc/google/iam/v1/version.rb
|
120
75
|
homepage: https://github.com/googleapis/common-protos-ruby
|
121
76
|
licenses:
|
122
77
|
- Apache-2.0
|
@@ -129,14 +84,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
129
84
|
requirements:
|
130
85
|
- - ">="
|
131
86
|
- !ruby/object:Gem::Version
|
132
|
-
version: '
|
87
|
+
version: '2.3'
|
133
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
89
|
requirements:
|
135
90
|
- - ">="
|
136
91
|
- !ruby/object:Gem::Version
|
137
92
|
version: '0'
|
138
93
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
94
|
+
rubygems_version: 3.3.14
|
140
95
|
signing_key:
|
141
96
|
specification_version: 4
|
142
97
|
summary: Common protos and gRPC services for Google IAM
|
data/.gitignore
DELETED
data/Gemfile
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
4
|
-
|
5
|
-
gemspec
|
6
|
-
|
7
|
-
gem "googleapis-common-protos", path: "../googleapis-common-protos"
|
8
|
-
gem "googleapis-common-protos-types", path: "../googleapis-common-protos-types"
|
data/Rakefile
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2018 Google LLC
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
require 'bundler/gem_tasks'
|
18
|
-
|
19
|
-
desc "Compile the necessary protobuf files."
|
20
|
-
task :compile_protos do
|
21
|
-
Rake::Task[:clean_protos].invoke
|
22
|
-
FileUtils.mkdir 'lib'
|
23
|
-
|
24
|
-
protos = [
|
25
|
-
"../googleapis/google/iam/v1/*.proto"
|
26
|
-
]
|
27
|
-
|
28
|
-
command = []
|
29
|
-
command << "grpc_tools_ruby_protoc"
|
30
|
-
command << "--grpc_out=lib"
|
31
|
-
command << "--ruby_out=lib"
|
32
|
-
command << "-I ../googleapis"
|
33
|
-
command += protos
|
34
|
-
full_command = command.join " "
|
35
|
-
|
36
|
-
puts full_command
|
37
|
-
system full_command
|
38
|
-
end
|
39
|
-
|
40
|
-
desc "Test loading all proto files"
|
41
|
-
task :test_loading do
|
42
|
-
puts "\nLoading proto files"
|
43
|
-
Dir.glob("lib/google/**/*_pb.rb") do |path|
|
44
|
-
puts path
|
45
|
-
require_relative path
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
desc "Remove the compiled protos."
|
50
|
-
task :clean_protos do
|
51
|
-
FileUtils.rm_rf "lib"
|
52
|
-
end
|
53
|
-
|
54
|
-
desc "Run the CI build"
|
55
|
-
task :ci do
|
56
|
-
puts "\nCompiling Protos\n"
|
57
|
-
Rake::Task[:compile_protos].invoke
|
58
|
-
Rake::Task[:test_loading].invoke
|
59
|
-
end
|
60
|
-
|
61
|
-
Rake::Task[:build].enhance [:compile_protos]
|
62
|
-
Rake::Task[:clean].enhance [:clean_protos]
|
63
|
-
|
64
|
-
task default: :ci
|
data/grpc-google-iam-v1.gemspec
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2018 Google LLC
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
Gem::Specification.new do |spec|
|
18
|
-
spec.name = "grpc-google-iam-v1"
|
19
|
-
spec.version = "0.6.11"
|
20
|
-
spec.authors = ["Google Inc"]
|
21
|
-
spec.email = ["googleapis-packages@google.com"]
|
22
|
-
spec.licenses = ["Apache-2.0"]
|
23
|
-
|
24
|
-
spec.summary = "Common protos and gRPC services for Google IAM"
|
25
|
-
spec.homepage = "https://github.com/googleapis/common-protos-ruby"
|
26
|
-
|
27
|
-
# Specify which files should be added to the gem when it is released. The `git
|
28
|
-
# ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
|
-
spec.files = Dir.chdir File.expand_path(__dir__) do
|
30
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
31
|
-
f.match %r{^(test|spec|features)/}
|
32
|
-
end
|
33
|
-
end
|
34
|
-
spec.files += Dir.glob "lib/**/*_pb.rb"
|
35
|
-
spec.require_paths = ["lib"]
|
36
|
-
|
37
|
-
spec.add_dependency "googleapis-common-protos", ">= 1.3.11", "< 2.0"
|
38
|
-
spec.add_dependency "google-protobuf", "~> 3.14"
|
39
|
-
spec.add_dependency "grpc", "~> 1.27"
|
40
|
-
|
41
|
-
spec.add_development_dependency "bundler", "~> 2.1"
|
42
|
-
spec.add_development_dependency "grpc-tools", "~> 1.27"
|
43
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
44
|
-
end
|