grpc-google-iam-v1 0.6.9 → 0.6.10

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
- SHA1:
3
- metadata.gz: 81e51ab2abfb292e372171a08cb443d84460a2b9
4
- data.tar.gz: 02d1f1b8b2024a18e8f6554e277bc61c4f6e29ab
2
+ SHA256:
3
+ metadata.gz: c028b83f251ce45f74fdddbd78eef4fa2cda23dfc6e86e044419740f24b1082b
4
+ data.tar.gz: 9f7a521af05e56233e25b7031e352960709d696fe75c411a7e1d19fa9abad601
5
5
  SHA512:
6
- metadata.gz: 4f8585d756ae79631ac69949a3a2d92cac0899cbfc690637d8fc671fdaf471ede5ea35856b2a32421d31923dae1fd3088fca63422eea5d8ad923103bef6a61d3
7
- data.tar.gz: b22cec7b5ba3f7cf41392838b82fabefd24de11402e756c18243151310a419e0c6e6c247b9b4459e2a444f6a2e690ad79e62b4cadc9154f71f0f351966091de8
6
+ metadata.gz: ca2f6461d902730c2992a93742b7f6ed907124fb5c8ae86fd61a31c92f5d6d0c5f76d96ca7426011a38c617c47e0cd526468bd22fe01272b429a0cd40bd79e9c
7
+ data.tar.gz: 719cfb139ece2bbefeefce277c868502e48dfefa4fec0c4e70eaa0a7c9d7fa77115f551f198da87de96730f7d7de8a184648a211fb374e8133c507683554ccd0
@@ -0,0 +1,10 @@
1
+ Gemfile.lock
2
+ .DS_STORE
3
+ /.bundle/
4
+ /.yardoc
5
+ /_yardoc/
6
+ /coverage/
7
+ /doc/
8
+ /pkg/
9
+ /spec/reports/
10
+ /tmp/
@@ -0,0 +1,9 @@
1
+ # Release History
2
+
3
+ ### 0.6.10 / 2020-04-08
4
+
5
+ * Add "options" field to Google::Iam::V1::GetIamPolicyRequest.
6
+ * Support conditional policy bindings via the "condition" field in Google::Iam::V1::Binding.
7
+ * Support policy delta types.
8
+ * Update googleapis-common-protos dependency to 1.3.10.
9
+ * Require protobuf 3.11 and grpc 1.27.
data/Gemfile ADDED
@@ -0,0 +1,8 @@
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"
@@ -0,0 +1,19 @@
1
+ # Common Services
2
+
3
+ This gem contains common protos and gRPC services for Google IAM.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'grpc-google-iam-v1'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install grpc-google-iam-v1
@@ -0,0 +1,54 @@
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
@@ -0,0 +1,44 @@
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
@@ -3,31 +3,39 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/iam/v1/options_pb'
6
7
  require 'google/iam/v1/policy_pb'
8
+ require 'google/api/annotations_pb'
9
+ require 'google/api/client_pb'
10
+ require 'google/api/field_behavior_pb'
11
+ require 'google/api/resource_pb'
7
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.iam.v1.SetIamPolicyRequest" do
9
- optional :resource, :string, 1
10
- optional :policy, :message, 2, "google.iam.v1.Policy"
11
- end
12
- add_message "google.iam.v1.GetIamPolicyRequest" do
13
- optional :resource, :string, 1
14
- end
15
- add_message "google.iam.v1.TestIamPermissionsRequest" do
16
- optional :resource, :string, 1
17
- repeated :permissions, :string, 2
18
- end
19
- add_message "google.iam.v1.TestIamPermissionsResponse" do
20
- repeated :permissions, :string, 1
13
+ add_file("google/iam/v1/iam_policy.proto", :syntax => :proto3) do
14
+ add_message "google.iam.v1.SetIamPolicyRequest" do
15
+ optional :resource, :string, 1
16
+ optional :policy, :message, 2, "google.iam.v1.Policy"
17
+ end
18
+ add_message "google.iam.v1.GetIamPolicyRequest" do
19
+ optional :resource, :string, 1
20
+ optional :options, :message, 2, "google.iam.v1.GetPolicyOptions"
21
+ end
22
+ add_message "google.iam.v1.TestIamPermissionsRequest" do
23
+ optional :resource, :string, 1
24
+ repeated :permissions, :string, 2
25
+ end
26
+ add_message "google.iam.v1.TestIamPermissionsResponse" do
27
+ repeated :permissions, :string, 1
28
+ end
21
29
  end
22
30
  end
23
31
 
24
32
  module Google
25
33
  module Iam
26
34
  module V1
27
- SetIamPolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.SetIamPolicyRequest").msgclass
28
- GetIamPolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.GetIamPolicyRequest").msgclass
29
- TestIamPermissionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.TestIamPermissionsRequest").msgclass
30
- TestIamPermissionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.TestIamPermissionsResponse").msgclass
35
+ SetIamPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.SetIamPolicyRequest").msgclass
36
+ GetIamPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.GetIamPolicyRequest").msgclass
37
+ TestIamPermissionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.TestIamPermissionsRequest").msgclass
38
+ TestIamPermissionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.TestIamPermissionsResponse").msgclass
31
39
  end
32
40
  end
33
41
  end
@@ -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 (c) 2015, Google Inc.
4
+ # Copyright 2019 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,6 +15,7 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
+ #
18
19
 
19
20
  require 'grpc'
20
21
  require 'google/iam/v1/iam_policy_pb'
@@ -25,6 +26,8 @@ module Google
25
26
  module IAMPolicy
26
27
  # ## API Overview
27
28
  #
29
+ # Manages Identity and Access Management (IAM) policies.
30
+ #
28
31
  # Any implementation of an API that offers access control features
29
32
  # implements the google.iam.v1.IAMPolicy interface.
30
33
  #
@@ -57,10 +60,17 @@ module Google
57
60
  # Sets the access control policy on the specified resource. Replaces any
58
61
  # existing policy.
59
62
  rpc :SetIamPolicy, SetIamPolicyRequest, Policy
60
- # Gets the access control policy for a resource. Is empty if the
61
- # policy or the resource does not exist.
63
+ # Gets the access control policy for a resource.
64
+ # Returns an empty policy if the resource exists and does not have a policy
65
+ # set.
62
66
  rpc :GetIamPolicy, GetIamPolicyRequest, Policy
63
67
  # Returns permissions that a caller has on the specified resource.
68
+ # If the resource does not exist, this will return an empty set of
69
+ # permissions, not a NOT_FOUND error.
70
+ #
71
+ # Note: This operation is designed to be used for building permission-aware
72
+ # UIs and command-line tools, not for authorization checking. This operation
73
+ # may "fail open" without warning.
64
74
  rpc :TestIamPermissions, TestIamPermissionsRequest, TestIamPermissionsResponse
65
75
  end
66
76
 
@@ -0,0 +1,21 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/iam/v1/options.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/iam/v1/options.proto", :syntax => :proto3) do
9
+ add_message "google.iam.v1.GetPolicyOptions" do
10
+ optional :requested_policy_version, :int32, 1
11
+ end
12
+ end
13
+ end
14
+
15
+ module Google
16
+ module Iam
17
+ module V1
18
+ GetPolicyOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.GetPolicyOptions").msgclass
19
+ end
20
+ end
21
+ end
@@ -3,23 +3,59 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/type/expr_pb'
7
+ require 'google/api/annotations_pb'
6
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.iam.v1.Policy" do
8
- optional :version, :int32, 1
9
- repeated :bindings, :message, 4, "google.iam.v1.Binding"
10
- optional :etag, :bytes, 3
11
- end
12
- add_message "google.iam.v1.Binding" do
13
- optional :role, :string, 1
14
- repeated :members, :string, 2
9
+ add_file("google/iam/v1/policy.proto", :syntax => :proto3) do
10
+ add_message "google.iam.v1.Policy" do
11
+ optional :version, :int32, 1
12
+ repeated :bindings, :message, 4, "google.iam.v1.Binding"
13
+ optional :etag, :bytes, 3
14
+ end
15
+ add_message "google.iam.v1.Binding" do
16
+ optional :role, :string, 1
17
+ repeated :members, :string, 2
18
+ optional :condition, :message, 3, "google.type.Expr"
19
+ end
20
+ add_message "google.iam.v1.PolicyDelta" do
21
+ repeated :binding_deltas, :message, 1, "google.iam.v1.BindingDelta"
22
+ repeated :audit_config_deltas, :message, 2, "google.iam.v1.AuditConfigDelta"
23
+ end
24
+ add_message "google.iam.v1.BindingDelta" do
25
+ optional :action, :enum, 1, "google.iam.v1.BindingDelta.Action"
26
+ optional :role, :string, 2
27
+ optional :member, :string, 3
28
+ optional :condition, :message, 4, "google.type.Expr"
29
+ end
30
+ add_enum "google.iam.v1.BindingDelta.Action" do
31
+ value :ACTION_UNSPECIFIED, 0
32
+ value :ADD, 1
33
+ value :REMOVE, 2
34
+ end
35
+ add_message "google.iam.v1.AuditConfigDelta" do
36
+ optional :action, :enum, 1, "google.iam.v1.AuditConfigDelta.Action"
37
+ optional :service, :string, 2
38
+ optional :exempted_member, :string, 3
39
+ optional :log_type, :string, 4
40
+ end
41
+ add_enum "google.iam.v1.AuditConfigDelta.Action" do
42
+ value :ACTION_UNSPECIFIED, 0
43
+ value :ADD, 1
44
+ value :REMOVE, 2
45
+ end
15
46
  end
16
47
  end
17
48
 
18
49
  module Google
19
50
  module Iam
20
51
  module V1
21
- Policy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.Policy").msgclass
22
- Binding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.Binding").msgclass
52
+ Policy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.Policy").msgclass
53
+ Binding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.Binding").msgclass
54
+ PolicyDelta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.PolicyDelta").msgclass
55
+ BindingDelta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.BindingDelta").msgclass
56
+ BindingDelta::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.BindingDelta.Action").enummodule
57
+ AuditConfigDelta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.AuditConfigDelta").msgclass
58
+ AuditConfigDelta::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v1.AuditConfigDelta.Action").enummodule
23
59
  end
24
60
  end
25
61
  end
metadata CHANGED
@@ -1,61 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc-google-iam-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.6.10
5
5
  platform: ruby
6
6
  authors:
7
- - Google API Authors
7
+ - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-02 00:00:00.000000000 Z
11
+ date: 2020-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: googleapis-common-protos
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.3.10
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 1.3.10
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: google-protobuf
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '3.11'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '3.11'
13
47
  - !ruby/object:Gem::Dependency
14
48
  name: grpc
15
49
  requirement: !ruby/object:Gem::Requirement
16
50
  requirements:
17
51
  - - "~>"
18
52
  - !ruby/object:Gem::Version
19
- version: '1.0'
53
+ version: '1.27'
20
54
  type: :runtime
21
55
  prerelease: false
22
56
  version_requirements: !ruby/object:Gem::Requirement
23
57
  requirements:
24
58
  - - "~>"
25
59
  - !ruby/object:Gem::Version
26
- version: '1.0'
60
+ version: '1.27'
27
61
  - !ruby/object:Gem::Dependency
28
- name: googleapis-common-protos
62
+ name: bundler
29
63
  requirement: !ruby/object:Gem::Requirement
30
64
  requirements:
31
- - - ">="
65
+ - - "~>"
32
66
  - !ruby/object:Gem::Version
33
- version: 1.3.1
34
- - - "<"
67
+ version: '2.1'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
35
73
  - !ruby/object:Gem::Version
36
- version: '2.0'
37
- type: :runtime
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
38
83
  prerelease: false
39
84
  version_requirements: !ruby/object:Gem::Requirement
40
85
  requirements:
41
- - - ">="
86
+ - - "~>"
42
87
  - !ruby/object:Gem::Version
43
- version: 1.3.1
44
- - - "<"
88
+ version: '1.27'
89
+ - !ruby/object:Gem::Dependency
90
+ name: rake
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
45
94
  - !ruby/object:Gem::Version
46
- version: '2.0'
47
- description: Google IAM gRPC client library
48
- email: googleapis-packages@google.com
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:
104
+ email:
105
+ - googleapis-packages@google.com
49
106
  executables: []
50
107
  extensions: []
51
108
  extra_rdoc_files: []
52
109
  files:
110
+ - ".gitignore"
111
+ - CHANGELOG.md
112
+ - Gemfile
113
+ - README.md
114
+ - Rakefile
115
+ - grpc-google-iam-v1.gemspec
53
116
  - lib/google/iam/v1/iam_policy_pb.rb
54
117
  - lib/google/iam/v1/iam_policy_services_pb.rb
118
+ - lib/google/iam/v1/options_pb.rb
55
119
  - lib/google/iam/v1/policy_pb.rb
56
- homepage: https://github.com/googleapis/googleapis
120
+ homepage: https://github.com/googleapis/common-protos-ruby
57
121
  licenses:
58
- - BSD-3-Clause
122
+ - Apache-2.0
59
123
  metadata: {}
60
124
  post_install_message:
61
125
  rdoc_options: []
@@ -65,16 +129,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
129
  requirements:
66
130
  - - ">="
67
131
  - !ruby/object:Gem::Version
68
- version: 2.0.0
132
+ version: '0'
69
133
  required_rubygems_version: !ruby/object:Gem::Requirement
70
134
  requirements:
71
135
  - - ">="
72
136
  - !ruby/object:Gem::Version
73
137
  version: '0'
74
138
  requirements: []
75
- rubyforge_project:
76
- rubygems_version: 2.4.8
139
+ rubygems_version: 3.1.2
77
140
  signing_key:
78
141
  specification_version: 4
79
- summary: Google IAM proto types and gRPC library
142
+ summary: Common protos and gRPC services for Google IAM
80
143
  test_files: []