grpc-google-iam-v1 0.6.8 → 1.0.0

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: d9acdc267e6c0d2c9845ba0d6b862235e6b08755
4
- data.tar.gz: 43ad335b501c781cf566a8edeabbee6a397cfd4a
2
+ SHA256:
3
+ metadata.gz: 3a050fccc380333648ffd32b5ac181367f6c86094ffcaa2796398563553fbfdc
4
+ data.tar.gz: 12f5d23cf2f8139f9944a51e38b3807ed8572a42303b3e027c28b71ba1bb2904
5
5
  SHA512:
6
- metadata.gz: e992d622daf79428a8bd72acb70e9cb042a64eb0ee4b382a29fdcd39aeff68cba4fa5ffddaa01a896227c773d33c5c3ab3f1fded01810dc4d1c3433d37956e2c
7
- data.tar.gz: 89677570683222c187124cfc2f14fcae68bbf2c7e14749fc03e8c3c0cd257a61c692988271a455e085b919f5f47342f53e735b727a907508d8d3f76b898d408f
6
+ metadata.gz: 3bbcd7bed633e27ca781f60098d1e13f18acba91d551019ba69c3fdf275eade8aa6da680c5aa6ce58e53e3524db0bf5f803c88856e92642f207e9ac4a0c77a27
7
+ data.tar.gz: 4b86946ee4fa0c9cb85d8d6abca422e50fec25eb82c22970acafa4fa698c9a2adeb29a3987c7c8d7564f37037e37563091c48c01b95b8116b7e7f2da603083ed
data/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Release History
2
+
3
+ ## 1.0.0 (2021-09-03)
4
+
5
+ * Bumped version to 1.0.0.
6
+ * Removed unnecessary files from the gem package.
7
+ * Update googleapis-common-protos dependency to 1.3.12.
8
+
9
+ ## 0.6.11 / 2021-02-01
10
+
11
+ * Fully qualify proto names internally.
12
+ * Update googleapis-common-protos dependency to 1.3.11.
13
+ * Require protobuf 3.14.
14
+
15
+ ## 0.6.10 / 2020-04-08
16
+
17
+ * Add "options" field to Google::Iam::V1::GetIamPolicyRequest.
18
+ * Support conditional policy bindings via the "condition" field in Google::Iam::V1::Binding.
19
+ * Support policy delta types.
20
+ * Update googleapis-common-protos dependency to 1.3.10.
21
+ * Require protobuf 3.11.
data/README.md ADDED
@@ -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
@@ -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
  #
@@ -48,7 +51,7 @@ module Google
48
51
  # attached.
49
52
  class Service
50
53
 
51
- include GRPC::GenericService
54
+ include ::GRPC::GenericService
52
55
 
53
56
  self.marshal_class_method = :encode
54
57
  self.unmarshal_class_method = :decode
@@ -56,12 +59,19 @@ module Google
56
59
 
57
60
  # Sets the access control policy on the specified resource. Replaces any
58
61
  # existing policy.
59
- 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.
62
- rpc :GetIamPolicy, GetIamPolicyRequest, Policy
62
+ rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
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.
66
+ rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
63
67
  # Returns permissions that a caller has on the specified resource.
64
- rpc :TestIamPermissions, TestIamPermissionsRequest, TestIamPermissionsResponse
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.
74
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
65
75
  end
66
76
 
67
77
  Stub = Service.rpc_stub_class
@@ -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
@@ -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.0.0".freeze
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,95 +1,78 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc-google-iam-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 1.0.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: 2016-09-23 00:00:00.000000000 Z
11
+ date: 2021-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: grpc
14
+ name: googleapis-common-protos
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
17
+ - - ">="
25
18
  - !ruby/object:Gem::Version
26
- version: '1.0'
27
- - !ruby/object:Gem::Dependency
28
- name: googleauth
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
19
+ version: 1.3.12
20
+ - - "<"
32
21
  - !ruby/object:Gem::Version
33
- version: 0.5.1
22
+ version: '2.0'
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.5.1
41
- - !ruby/object:Gem::Dependency
42
- name: googleapis-common-protos
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
27
+ - - ">="
46
28
  - !ruby/object:Gem::Version
47
- version: 1.3.1
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
29
+ version: 1.3.12
30
+ - - "<"
53
31
  - !ruby/object:Gem::Version
54
- version: 1.3.1
32
+ version: '2.0'
55
33
  - !ruby/object:Gem::Dependency
56
- name: bundler
34
+ name: google-protobuf
57
35
  requirement: !ruby/object:Gem::Requirement
58
36
  requirements:
59
37
  - - "~>"
60
38
  - !ruby/object:Gem::Version
61
- version: '1.9'
62
- type: :development
39
+ version: '3.14'
40
+ type: :runtime
63
41
  prerelease: false
64
42
  version_requirements: !ruby/object:Gem::Requirement
65
43
  requirements:
66
44
  - - "~>"
67
45
  - !ruby/object:Gem::Version
68
- version: '1.9'
46
+ version: '3.14'
69
47
  - !ruby/object:Gem::Dependency
70
- name: rake
48
+ name: grpc
71
49
  requirement: !ruby/object:Gem::Requirement
72
50
  requirements:
73
51
  - - "~>"
74
52
  - !ruby/object:Gem::Version
75
- version: '10.4'
76
- type: :development
53
+ version: '1.27'
54
+ type: :runtime
77
55
  prerelease: false
78
56
  version_requirements: !ruby/object:Gem::Requirement
79
57
  requirements:
80
58
  - - "~>"
81
59
  - !ruby/object:Gem::Version
82
- version: '10.4'
83
- description: a grpc-based api
84
- email: googleapis-packages@google.com
60
+ version: '1.27'
61
+ description: Common protos and gRPC services for Google IAM
62
+ email:
63
+ - googleapis-packages@google.com
85
64
  executables: []
86
65
  extensions: []
87
66
  extra_rdoc_files: []
88
67
  files:
68
+ - CHANGELOG.md
69
+ - README.md
89
70
  - lib/google/iam/v1/iam_policy_pb.rb
90
71
  - lib/google/iam/v1/iam_policy_services_pb.rb
72
+ - lib/google/iam/v1/options_pb.rb
91
73
  - lib/google/iam/v1/policy_pb.rb
92
- homepage: https://github.com/googleapis/googleapis
74
+ - lib/grpc/google/iam/v1/version.rb
75
+ homepage: https://github.com/googleapis/common-protos-ruby
93
76
  licenses:
94
77
  - Apache-2.0
95
78
  metadata: {}
@@ -101,17 +84,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
84
  requirements:
102
85
  - - ">="
103
86
  - !ruby/object:Gem::Version
104
- version: 2.0.0
87
+ version: '2.3'
105
88
  required_rubygems_version: !ruby/object:Gem::Requirement
106
89
  requirements:
107
90
  - - ">="
108
91
  - !ruby/object:Gem::Version
109
92
  version: '0'
110
- requirements:
111
- - libgrpc ~> 0.9.0 needs to be installed
112
- rubyforge_project:
113
- rubygems_version: 2.4.8
93
+ requirements: []
94
+ rubygems_version: 3.2.17
114
95
  signing_key:
115
96
  specification_version: 4
116
- summary: GRPC library for service grpc-google-iam-v1
97
+ summary: Common protos and gRPC services for Google IAM
117
98
  test_files: []