google-cloud-security_center 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42758d476885e1a14f212061f6295e12854035c8c6d549269ee1fc1088a5843d
4
- data.tar.gz: 656c204474291f4128b6471e8b7e59859586f42a32bb708cd989e4a0134a4f67
3
+ metadata.gz: '019bb708a8fdc1e2ef54b647973de6f681ef142282658bd4172fa4b80db5943d'
4
+ data.tar.gz: e7e1e25e1e43118cf8a379609942a9a0d24adb057bfdb37f562e8d0394bf950c
5
5
  SHA512:
6
- metadata.gz: c2131b55b189c7a63081e1e1c6ef47d47677c9ffb378a8ab54008f2dad2a2a921059913a9cd4e7642d422568213afbb0b928030328224955582aa75f87d5dde9
7
- data.tar.gz: '0126848a28cc2764bde832585394d2cdcfe54d47e92327df788a9be04823bdf731938c17eeb127fa81320db167627154a545e761754d6d459c7f5d3fd45e119e'
6
+ metadata.gz: fa9480b19556fe24da1ce64ac05929a25ef8a2200fe9e86d717f7622b796c7146dd64011348f7924e98429fb397fcb84eb67ff59ae5e31ea8dd46c660caf3b12
7
+ data.tar.gz: 1962bd19d3a87b97d7d149995b961c5d0330b7997c4d8a1fc193d26b80f9259116def04c3c2b462c477f4696c2b1fb55c5570c4467454f5b1943e0de28deacf9
@@ -20,8 +20,7 @@ module Google
20
20
  # @!attribute [rw] resource
21
21
  # @return [String]
22
22
  # REQUIRED: The resource for which the policy is being specified.
23
- # `resource` is usually specified as a path. For example, a Project
24
- # resource is specified as `projects/{project}`.
23
+ # See the operation documentation for the appropriate value for this field.
25
24
  # @!attribute [rw] policy
26
25
  # @return [Google::Iam::V1::Policy]
27
26
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
@@ -34,16 +33,14 @@ module Google
34
33
  # @!attribute [rw] resource
35
34
  # @return [String]
36
35
  # REQUIRED: The resource for which the policy is being requested.
37
- # `resource` is usually specified as a path. For example, a Project
38
- # resource is specified as `projects/{project}`.
36
+ # See the operation documentation for the appropriate value for this field.
39
37
  class GetIamPolicyRequest; end
40
38
 
41
39
  # Request message for `TestIamPermissions` method.
42
40
  # @!attribute [rw] resource
43
41
  # @return [String]
44
42
  # REQUIRED: The resource for which the policy detail is being requested.
45
- # `resource` is usually specified as a path. For example, a Project
46
- # resource is specified as `projects/{project}`.
43
+ # See the operation documentation for the appropriate value for this field.
47
44
  # @!attribute [rw] permissions
48
45
  # @return [Array<String>]
49
46
  # The set of permissions to check for the `resource`. Permissions with
@@ -20,12 +20,12 @@ module Google
20
20
  # specify access control policies for Cloud Platform resources.
21
21
  #
22
22
  #
23
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
23
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
24
24
  # `members` to a `role`, where the members can be user accounts, Google groups,
25
25
  # Google domains, and service accounts. A `role` is a named list of permissions
26
26
  # defined by IAM.
27
27
  #
28
- # **Example**
28
+ # **JSON Example**
29
29
  #
30
30
  # {
31
31
  # "bindings": [
@@ -35,7 +35,7 @@ module Google
35
35
  # "user:mike@example.com",
36
36
  # "group:admins@example.com",
37
37
  # "domain:google.com",
38
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
38
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
39
39
  # ]
40
40
  # },
41
41
  # {
@@ -45,15 +45,28 @@ module Google
45
45
  # ]
46
46
  # }
47
47
  #
48
- # For a description of IAM and its features, see the
49
- # [IAM developer's guide](https://cloud.google.com/iam).
48
+ # **YAML Example**
49
+ #
50
+ # bindings:
51
+ # * members:
52
+ # * user:mike@example.com
53
+ # * group:admins@example.com
54
+ # * domain:google.com
55
+ # * serviceAccount:my-other-app@appspot.gserviceaccount.com
56
+ # role: roles/owner
57
+ # * members:
58
+ # * user:sean@example.com
59
+ # role: roles/viewer
60
+ #
61
+ #
62
+ # For a description of IAM and its features, see the
63
+ # [IAM developer's guide](https://cloud.google.com/iam/docs).
50
64
  # @!attribute [rw] version
51
65
  # @return [Integer]
52
- # Version of the `Policy`. The default version is 0.
66
+ # Deprecated.
53
67
  # @!attribute [rw] bindings
54
68
  # @return [Array<Google::Iam::V1::Binding>]
55
69
  # Associates a list of `members` to a `role`.
56
- # Multiple `bindings` must not be specified for the same `role`.
57
70
  # `bindings` with no members will result in an error.
58
71
  # @!attribute [rw] etag
59
72
  # @return [String]
@@ -74,7 +87,6 @@ module Google
74
87
  # @return [String]
75
88
  # Role that is assigned to `members`.
76
89
  # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
77
- # Required
78
90
  # @!attribute [rw] members
79
91
  # @return [Array<String>]
80
92
  # Specifies the identities requesting access for a Cloud Platform resource.
@@ -87,7 +99,7 @@ module Google
87
99
  # who is authenticated with a Google account or a service account.
88
100
  #
89
101
  # * `user:{emailid}`: An email address that represents a specific Google
90
- # account. For example, `alice@gmail.com` or `joe@example.com`.
102
+ # account. For example, `alice@gmail.com` .
91
103
  #
92
104
  #
93
105
  # * `serviceAccount:{emailid}`: An email address that represents a service
@@ -96,8 +108,15 @@ module Google
96
108
  # * `group:{emailid}`: An email address that represents a Google group.
97
109
  # For example, `admins@example.com`.
98
110
  #
99
- # * `domain:{domain}`: A Google Apps domain name that represents all the
111
+ #
112
+ # * `domain:{domain}`: The G Suite domain (primary) that represents all the
100
113
  # users of that domain. For example, `google.com` or `example.com`.
114
+ # @!attribute [rw] condition
115
+ # @return [Google::Type::Expr]
116
+ # The condition that is associated with this binding.
117
+ # NOTE: An unsatisfied condition will not allow user access via current
118
+ # binding. Different bindings, including their conditions, are examined
119
+ # independently.
101
120
  class Binding; end
102
121
  end
103
122
  end
@@ -0,0 +1,45 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Google
17
+ module Type
18
+ # Represents an expression text. Example:
19
+ #
20
+ # title: "User account presence"
21
+ # description: "Determines whether the request has a user account"
22
+ # expression: "size(request.user) > 0"
23
+ # @!attribute [rw] expression
24
+ # @return [String]
25
+ # Textual representation of an expression in
26
+ # Common Expression Language syntax.
27
+ #
28
+ # The application context of the containing message determines which
29
+ # well-known feature set of CEL is supported.
30
+ # @!attribute [rw] title
31
+ # @return [String]
32
+ # An optional title for the expression, i.e. a short string describing
33
+ # its purpose. This can be used e.g. in UIs which allow to enter the
34
+ # expression.
35
+ # @!attribute [rw] description
36
+ # @return [String]
37
+ # An optional description of the expression. This is a longer text which
38
+ # describes the expression, e.g. when hovered over it in a UI.
39
+ # @!attribute [rw] location
40
+ # @return [String]
41
+ # An optional string indicating the location of the expression for error
42
+ # reporting, e.g. a file name and a position in the file.
43
+ class Expr; end
44
+ end
45
+ end
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
29
29
 
30
30
  require "google/cloud/security_center/v1/securitycenter_service_pb"
31
31
  require "google/cloud/security_center/v1/credentials"
32
+ require "google/cloud/security_center/version"
32
33
 
33
34
  module Google
34
35
  module Cloud
@@ -294,7 +295,7 @@ module Google
294
295
  updater_proc = credentials.updater_proc
295
296
  end
296
297
 
297
- package_version = Gem.loaded_specs['google-cloud-security_center'].version.version
298
+ package_version = Google::Cloud::SecurityCenter::VERSION
298
299
 
299
300
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
300
301
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -579,8 +580,7 @@ module Google
579
580
  #
580
581
  # @param resource [String]
581
582
  # REQUIRED: The resource for which the policy is being requested.
582
- # `resource` is usually specified as a path. For example, a Project
583
- # resource is specified as `projects/{project}`.
583
+ # See the operation documentation for the appropriate value for this field.
584
584
  # @param options [Google::Gax::CallOptions]
585
585
  # Overrides the default settings for this call, e.g, timeout,
586
586
  # retries, etc.
@@ -1496,8 +1496,7 @@ module Google
1496
1496
  #
1497
1497
  # @param resource [String]
1498
1498
  # REQUIRED: The resource for which the policy is being specified.
1499
- # `resource` is usually specified as a path. For example, a Project
1500
- # resource is specified as `projects/{project}`.
1499
+ # See the operation documentation for the appropriate value for this field.
1501
1500
  # @param policy [Google::Iam::V1::Policy | Hash]
1502
1501
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
1503
1502
  # the policy is limited to a few 10s of KB. An empty policy is a
@@ -1540,8 +1539,7 @@ module Google
1540
1539
  #
1541
1540
  # @param resource [String]
1542
1541
  # REQUIRED: The resource for which the policy detail is being requested.
1543
- # `resource` is usually specified as a path. For example, a Project
1544
- # resource is specified as `projects/{project}`.
1542
+ # See the operation documentation for the appropriate value for this field.
1545
1543
  # @param permissions [Array<String>]
1546
1544
  # The set of permissions to check for the `resource`. Permissions with
1547
1545
  # wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -0,0 +1,22 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Google
17
+ module Cloud
18
+ module SecurityCenter
19
+ VERSION = "0.2.1".freeze
20
+ end
21
+ end
22
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security_center
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-07 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -138,6 +138,7 @@ files:
138
138
  - lib/google/cloud/security_center/v1/doc/google/protobuf/struct.rb
139
139
  - lib/google/cloud/security_center/v1/doc/google/protobuf/timestamp.rb
140
140
  - lib/google/cloud/security_center/v1/doc/google/rpc/status.rb
141
+ - lib/google/cloud/security_center/v1/doc/google/type/expr.rb
141
142
  - lib/google/cloud/security_center/v1/finding_pb.rb
142
143
  - lib/google/cloud/security_center/v1/helpers.rb
143
144
  - lib/google/cloud/security_center/v1/organization_settings_pb.rb
@@ -148,6 +149,7 @@ files:
148
149
  - lib/google/cloud/security_center/v1/securitycenter_service_pb.rb
149
150
  - lib/google/cloud/security_center/v1/securitycenter_service_services_pb.rb
150
151
  - lib/google/cloud/security_center/v1/source_pb.rb
152
+ - lib/google/cloud/security_center/version.rb
151
153
  homepage: https://github.com/googleapis/googleapis
152
154
  licenses:
153
155
  - Apache-2.0