google-iam-v3 0.a → 0.1.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 +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/iam/v3/operation_metadata_pb.rb +44 -0
- data/lib/google/iam/v3/policy_binding_resources_pb.rb +50 -0
- data/lib/google/iam/v3/policy_bindings/client.rb +1130 -0
- data/lib/google/iam/v3/policy_bindings/credentials.rb +45 -0
- data/lib/google/iam/v3/policy_bindings/operations.rb +811 -0
- data/lib/google/iam/v3/policy_bindings/paths.rb +140 -0
- data/lib/google/iam/v3/policy_bindings/rest/client.rb +1062 -0
- data/lib/google/iam/v3/policy_bindings/rest/operations.rb +926 -0
- data/lib/google/iam/v3/policy_bindings/rest/service_stub.rb +535 -0
- data/lib/google/iam/v3/policy_bindings/rest.rb +52 -0
- data/lib/google/iam/v3/policy_bindings.rb +55 -0
- data/lib/google/iam/v3/policy_bindings_service_pb.rb +59 -0
- data/lib/google/iam/v3/policy_bindings_service_services_pb.rb +63 -0
- data/lib/google/iam/v3/principal_access_boundary_policies/client.rb +1083 -0
- data/lib/google/iam/v3/principal_access_boundary_policies/credentials.rb +45 -0
- data/lib/google/iam/v3/principal_access_boundary_policies/operations.rb +811 -0
- data/lib/google/iam/v3/principal_access_boundary_policies/paths.rb +67 -0
- data/lib/google/iam/v3/principal_access_boundary_policies/rest/client.rb +1015 -0
- data/lib/google/iam/v3/principal_access_boundary_policies/rest/operations.rb +926 -0
- data/lib/google/iam/v3/principal_access_boundary_policies/rest/service_stub.rb +447 -0
- data/lib/google/iam/v3/principal_access_boundary_policies/rest.rb +52 -0
- data/lib/google/iam/v3/principal_access_boundary_policies.rb +55 -0
- data/lib/google/iam/v3/principal_access_boundary_policies_service_pb.rb +61 -0
- data/lib/google/iam/v3/principal_access_boundary_policies_service_services_pb.rb +56 -0
- data/lib/google/iam/v3/principal_access_boundary_policy_resources_pb.rb +49 -0
- data/lib/google/iam/v3/rest.rb +36 -0
- data/lib/google/iam/v3/version.rb +7 -2
- data/lib/google/iam/v3.rb +44 -0
- data/lib/google-iam-v3.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/iam/v3/operation_metadata.rb +55 -0
- data/proto_docs/google/iam/v3/policy_binding_resources.rb +171 -0
- data/proto_docs/google/iam/v3/policy_bindings_service.rb +232 -0
- data/proto_docs/google/iam/v3/principal_access_boundary_policies_service.rb +191 -0
- data/proto_docs/google/iam/v3/principal_access_boundary_policy_resources.rb +127 -0
- data/proto_docs/google/longrunning/operations.rb +173 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +107 -10
@@ -0,0 +1,56 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/iam/v3/principal_access_boundary_policies_service.proto for package 'google.iam.v3'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2025 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/iam/v3/principal_access_boundary_policies_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Iam
|
24
|
+
module V3
|
25
|
+
module PrincipalAccessBoundaryPolicies
|
26
|
+
# Manages Identity and Access Management (IAM) principal access boundary
|
27
|
+
# policies.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.iam.v3.PrincipalAccessBoundaryPolicies'
|
35
|
+
|
36
|
+
# Creates a principal access boundary policy, and returns a long running
|
37
|
+
# operation.
|
38
|
+
rpc :CreatePrincipalAccessBoundaryPolicy, ::Google::Iam::V3::CreatePrincipalAccessBoundaryPolicyRequest, ::Google::Longrunning::Operation
|
39
|
+
# Gets a principal access boundary policy.
|
40
|
+
rpc :GetPrincipalAccessBoundaryPolicy, ::Google::Iam::V3::GetPrincipalAccessBoundaryPolicyRequest, ::Google::Iam::V3::PrincipalAccessBoundaryPolicy
|
41
|
+
# Updates a principal access boundary policy.
|
42
|
+
rpc :UpdatePrincipalAccessBoundaryPolicy, ::Google::Iam::V3::UpdatePrincipalAccessBoundaryPolicyRequest, ::Google::Longrunning::Operation
|
43
|
+
# Deletes a principal access boundary policy.
|
44
|
+
rpc :DeletePrincipalAccessBoundaryPolicy, ::Google::Iam::V3::DeletePrincipalAccessBoundaryPolicyRequest, ::Google::Longrunning::Operation
|
45
|
+
# Lists principal access boundary policies.
|
46
|
+
rpc :ListPrincipalAccessBoundaryPolicies, ::Google::Iam::V3::ListPrincipalAccessBoundaryPoliciesRequest, ::Google::Iam::V3::ListPrincipalAccessBoundaryPoliciesResponse
|
47
|
+
# Returns all policy bindings that bind a specific policy if a user has
|
48
|
+
# searchPolicyBindings permission on that policy.
|
49
|
+
rpc :SearchPrincipalAccessBoundaryPolicyBindings, ::Google::Iam::V3::SearchPrincipalAccessBoundaryPolicyBindingsRequest, ::Google::Iam::V3::SearchPrincipalAccessBoundaryPolicyBindingsResponse
|
50
|
+
end
|
51
|
+
|
52
|
+
Stub = Service.rpc_stub_class
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/iam/v3/principal_access_boundary_policy_resources.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/field_info_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
|
12
|
+
|
13
|
+
descriptor_data = "\n>google/iam/v3/principal_access_boundary_policy_resources.proto\x12\rgoogle.iam.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x05\n\x1dPrincipalAccessBoundaryPolicy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x03uid\x18\x02 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12W\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32=.google.iam.v3.PrincipalAccessBoundaryPolicy.AnnotationsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12I\n\x07\x64\x65tails\x18\x08 \x01(\x0b\x32\x33.google.iam.v3.PrincipalAccessBoundaryPolicyDetailsB\x03\xe0\x41\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xec\x01\xea\x41\xe8\x01\n0iam.googleapis.com/PrincipalAccessBoundaryPolicy\x12torganizations/{organization}/locations/{location}/principalAccessBoundaryPolicies/{principal_access_boundary_policy}*\x1fprincipalAccessBoundaryPolicies2\x1dprincipalAccessBoundaryPolicy\"\x8e\x01\n$PrincipalAccessBoundaryPolicyDetails\x12\x44\n\x05rules\x18\x01 \x03(\x0b\x32\x30.google.iam.v3.PrincipalAccessBoundaryPolicyRuleB\x03\xe0\x41\x02\x12 \n\x13\x65nforcement_version\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xd0\x01\n!PrincipalAccessBoundaryPolicyRule\x12\x18\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tresources\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12L\n\x06\x65\x66\x66\x65\x63t\x18\x03 \x01(\x0e\x32\x37.google.iam.v3.PrincipalAccessBoundaryPolicyRule.EffectB\x03\xe0\x41\x02\"+\n\x06\x45\x66\x66\x65\x63t\x12\x16\n\x12\x45\x46\x46\x45\x43T_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x42\x99\x01\n\x11\x63om.google.iam.v3B+PrincipalAccessBoundaryPolicyResourcesProtoP\x01Z)cloud.google.com/go/iam/apiv3/iampb;iampb\xaa\x02\x13Google.Cloud.Iam.V3\xca\x02\x13Google\\Cloud\\Iam\\V3b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
38
|
+
end
|
39
|
+
|
40
|
+
module Google
|
41
|
+
module Iam
|
42
|
+
module V3
|
43
|
+
PrincipalAccessBoundaryPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v3.PrincipalAccessBoundaryPolicy").msgclass
|
44
|
+
PrincipalAccessBoundaryPolicyDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v3.PrincipalAccessBoundaryPolicyDetails").msgclass
|
45
|
+
PrincipalAccessBoundaryPolicyRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v3.PrincipalAccessBoundaryPolicyRule").msgclass
|
46
|
+
PrincipalAccessBoundaryPolicyRule::Effect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v3.PrincipalAccessBoundaryPolicyRule.Effect").enummodule
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/iam/v3/policy_bindings/rest"
|
20
|
+
require "google/iam/v3/principal_access_boundary_policies/rest"
|
21
|
+
require "google/iam/v3/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Iam
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/iam/v3/rest"
|
31
|
+
# client = ::Google::Iam::V3::PolicyBindings::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V3
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright 2025 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
6
|
# you may not use this file except in compliance with the License.
|
5
7
|
# You may obtain a copy of the License at
|
6
8
|
#
|
7
|
-
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
10
|
#
|
9
11
|
# Unless required by applicable law or agreed to in writing, software
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -12,10 +14,13 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
15
20
|
module Google
|
16
21
|
module Iam
|
17
22
|
module V3
|
18
|
-
VERSION = "0.
|
23
|
+
VERSION = "0.1.0"
|
19
24
|
end
|
20
25
|
end
|
21
26
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/iam/v3/policy_bindings"
|
20
|
+
require "google/iam/v3/principal_access_boundary_policies"
|
21
|
+
require "google/iam/v3/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Iam
|
25
|
+
##
|
26
|
+
# API client module.
|
27
|
+
#
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
|
+
#
|
30
|
+
# require "google/iam/v3"
|
31
|
+
# client = ::Google::Iam::V3::PolicyBindings::Client.new
|
32
|
+
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/iam/v3"
|
36
|
+
# client = ::Google::Iam::V3::PolicyBindings::Rest::Client.new
|
37
|
+
#
|
38
|
+
module V3
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
helper_path = ::File.join __dir__, "v3", "_helpers.rb"
|
44
|
+
require "google/iam/v3/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/iam/v3"
|