grpc-google-iam-v1 0.6.10 → 1.1.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: c028b83f251ce45f74fdddbd78eef4fa2cda23dfc6e86e044419740f24b1082b
4
- data.tar.gz: 9f7a521af05e56233e25b7031e352960709d696fe75c411a7e1d19fa9abad601
3
+ metadata.gz: 97e1815c26e20654e28dd7ad681302fd5fc6a80775a84e5cb242086ff696728a
4
+ data.tar.gz: b54d2e8fc73181d2b005a1097c22a0dd4f686eee7f0e99efda57886c958c1f94
5
5
  SHA512:
6
- metadata.gz: ca2f6461d902730c2992a93742b7f6ed907124fb5c8ae86fd61a31c92f5d6d0c5f76d96ca7426011a38c617c47e0cd526468bd22fe01272b429a0cd40bd79e9c
7
- data.tar.gz: 719cfb139ece2bbefeefce277c868502e48dfefa4fec0c4e70eaa0a7c9d7fa77115f551f198da87de96730f7d7de8a184648a211fb374e8133c507683554ccd0
6
+ metadata.gz: 20e1675584f0a9ffc57b5c7310b865ed02d8236e800c9558d8bc041d18a2b6de278ee7bc4df7844d66410105bc0b8fb30dad5bd67313f2563e5261c69a7f8457
7
+ data.tar.gz: 2a39d4c1535ceefead863880f3fdb0dfe37fff74f6e57cafbfa91140daa1be4f00469733a31e0180b803686587d56dec8ae9275d9462723dd800d77e0f3fc271
data/CHANGELOG.md CHANGED
@@ -1,9 +1,26 @@
1
1
  # Release History
2
2
 
3
+ ### 1.1.0 (2022-04-05)
4
+
5
+ * Added audit_configs field to the Policy object.
6
+ * Added update_mask parameter to the set_iam_policy call.
7
+
8
+ ### 1.0.0 (2021-09-03)
9
+
10
+ * Bumped version to 1.0.0.
11
+ * Removed unnecessary files from the gem package.
12
+ * Update googleapis-common-protos dependency to 1.3.12.
13
+
14
+ ### 0.6.11 / 2021-02-01
15
+
16
+ * Fully qualify proto names internally.
17
+ * Update googleapis-common-protos dependency to 1.3.11.
18
+ * Require protobuf 3.14.
19
+
3
20
  ### 0.6.10 / 2020-04-08
4
21
 
5
22
  * Add "options" field to Google::Iam::V1::GetIamPolicyRequest.
6
23
  * Support conditional policy bindings via the "condition" field in Google::Iam::V1::Binding.
7
24
  * Support policy delta types.
8
25
  * Update googleapis-common-protos dependency to 1.3.10.
9
- * Require protobuf 3.11 and grpc 1.27.
26
+ * Require protobuf 3.11.
@@ -1,19 +1,21 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/iam/v1/iam_policy.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
- require 'google/iam/v1/options_pb'
7
- require 'google/iam/v1/policy_pb'
8
4
  require 'google/api/annotations_pb'
9
5
  require 'google/api/client_pb'
10
6
  require 'google/api/field_behavior_pb'
11
7
  require 'google/api/resource_pb'
8
+ require 'google/iam/v1/options_pb'
9
+ require 'google/iam/v1/policy_pb'
10
+ require 'google/protobuf/field_mask_pb'
11
+ require 'google/protobuf'
12
+
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 2019 Google LLC.
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
- # ## API Overview
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,19 +59,21 @@ module Google
59
59
 
60
60
  # Sets the access control policy on the specified resource. Replaces any
61
61
  # existing policy.
62
- rpc :SetIamPolicy, SetIamPolicyRequest, Policy
62
+ #
63
+ # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
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
65
67
  # set.
66
- rpc :GetIamPolicy, GetIamPolicyRequest, Policy
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
73
75
  # may "fail open" without warning.
74
- rpc :TestIamPermissions, TestIamPermissionsRequest, TestIamPermissionsResponse
76
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
75
77
  end
76
78
 
77
79
  Stub = Service.rpc_stub_class
@@ -3,7 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
7
  add_file("google/iam/v1/options.proto", :syntax => :proto3) do
9
8
  add_message "google.iam.v1.GetPolicyOptions" do
@@ -1,15 +1,15 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/iam/v1/policy.proto
3
3
 
4
+ require 'google/type/expr_pb'
4
5
  require 'google/protobuf'
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.0".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: 0.6.10
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - Google Inc
7
+ - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2022-04-05 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.10
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.10
29
+ version: 1.3.12
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2.0'
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '3.11'
39
+ version: '3.14'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '3.11'
46
+ version: '3.14'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: grpc
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -58,65 +58,20 @@ dependencies:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '1.27'
61
- - !ruby/object:Gem::Dependency
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: '0'
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.1.2
94
+ rubygems_version: 3.3.5
140
95
  signing_key:
141
96
  specification_version: 4
142
97
  summary: Common protos and gRPC services for Google IAM
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- Gemfile.lock
2
- .DS_STORE
3
- /.bundle/
4
- /.yardoc
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
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,54 +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 "Remove the compiled protos."
41
- task :clean_protos do
42
- FileUtils.rm_rf "lib"
43
- end
44
-
45
- desc "Run the CI build"
46
- task :ci do
47
- puts "\nCompiling Protos\n"
48
- Rake::Task[:compile_protos].invoke
49
- end
50
-
51
- Rake::Task[:build].enhance [:compile_protos]
52
- Rake::Task[:clean].enhance [:clean_protos]
53
-
54
- task default: :ci
@@ -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.10"
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.10", "< 2.0"
38
- spec.add_dependency "google-protobuf", "~> 3.11"
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