google-cloud-container_analysis 0.3.1 → 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.
@@ -1,41 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.devtools.containeranalysis.v1.ContainerAnalysis": {
4
- "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
10
- },
11
- "retry_params": {
12
- "default": {
13
- "initial_retry_delay_millis": 100,
14
- "retry_delay_multiplier": 1.3,
15
- "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
17
- "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
19
- "total_timeout_millis": 600000
20
- }
21
- },
22
- "methods": {
23
- "SetIamPolicy": {
24
- "timeout_millis": 30000,
25
- "retry_codes_name": "non_idempotent",
26
- "retry_params_name": "default"
27
- },
28
- "GetIamPolicy": {
29
- "timeout_millis": 30000,
30
- "retry_codes_name": "non_idempotent",
31
- "retry_params_name": "default"
32
- },
33
- "TestIamPermissions": {
34
- "timeout_millis": 30000,
35
- "retry_codes_name": "non_idempotent",
36
- "retry_params_name": "default"
37
- }
38
- }
39
- }
40
- }
41
- }
@@ -1,41 +0,0 @@
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
- require "googleauth"
17
-
18
- module Google
19
- module Cloud
20
- module ContainerAnalysis
21
- module V1
22
- class Credentials < Google::Auth::Credentials
23
- SCOPE = [
24
- "https://www.googleapis.com/auth/cloud-platform"
25
- ].freeze
26
- PATH_ENV_VARS = %w(CONTAINER_ANALYSIS_CREDENTIALS
27
- CONTAINER_ANALYSIS_KEYFILE
28
- GOOGLE_CLOUD_CREDENTIALS
29
- GOOGLE_CLOUD_KEYFILE
30
- GCLOUD_KEYFILE)
31
- JSON_ENV_VARS = %w(CONTAINER_ANALYSIS_CREDENTIALS_JSON
32
- CONTAINER_ANALYSIS_KEYFILE_JSON
33
- GOOGLE_CLOUD_CREDENTIALS_JSON
34
- GOOGLE_CLOUD_KEYFILE_JSON
35
- GCLOUD_KEYFILE_JSON)
36
- DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
37
- end
38
- end
39
- end
40
- end
41
- end
@@ -1,64 +0,0 @@
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 Iam
18
- module V1
19
- # Request message for `SetIamPolicy` method.
20
- # @!attribute [rw] resource
21
- # @return [String]
22
- # REQUIRED: The resource for which the policy is being specified.
23
- # See the operation documentation for the appropriate value for this field.
24
- # @!attribute [rw] policy
25
- # @return [Google::Iam::V1::Policy]
26
- # REQUIRED: The complete policy to be applied to the `resource`. The size of
27
- # the policy is limited to a few 10s of KB. An empty policy is a
28
- # valid policy but certain Cloud Platform services (such as Projects)
29
- # might reject them.
30
- class SetIamPolicyRequest; end
31
-
32
- # Request message for `GetIamPolicy` method.
33
- # @!attribute [rw] resource
34
- # @return [String]
35
- # REQUIRED: The resource for which the policy is being requested.
36
- # See the operation documentation for the appropriate value for this field.
37
- # @!attribute [rw] options
38
- # @return [Google::Iam::V1::GetPolicyOptions]
39
- # OPTIONAL: A `GetPolicyOptions` object for specifying options to
40
- # `GetIamPolicy`. This field is only used by Cloud IAM.
41
- class GetIamPolicyRequest; end
42
-
43
- # Request message for `TestIamPermissions` method.
44
- # @!attribute [rw] resource
45
- # @return [String]
46
- # REQUIRED: The resource for which the policy detail is being requested.
47
- # See the operation documentation for the appropriate value for this field.
48
- # @!attribute [rw] permissions
49
- # @return [Array<String>]
50
- # The set of permissions to check for the `resource`. Permissions with
51
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
52
- # information see
53
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
54
- class TestIamPermissionsRequest; end
55
-
56
- # Response message for `TestIamPermissions` method.
57
- # @!attribute [rw] permissions
58
- # @return [Array<String>]
59
- # A subset of `TestPermissionsRequest.permissions` that the caller is
60
- # allowed.
61
- class TestIamPermissionsResponse; end
62
- end
63
- end
64
- end
@@ -1,33 +0,0 @@
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 Iam
18
- module V1
19
- # Encapsulates settings provided to GetIamPolicy.
20
- # @!attribute [rw] requested_policy_version
21
- # @return [Integer]
22
- # Optional. The policy format version to be returned.
23
- #
24
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
25
- # rejected.
26
- #
27
- # Requests for policies with any conditional bindings must specify version 3.
28
- # Policies without any conditional bindings may specify any valid value or
29
- # leave the field unset.
30
- class GetPolicyOptions; end
31
- end
32
- end
33
- end
@@ -1,130 +0,0 @@
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 Iam
18
- module V1
19
- # Defines an Identity and Access Management (IAM) policy. It is used to
20
- # specify access control policies for Cloud Platform resources.
21
- #
22
- #
23
- # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
24
- # `members` to a `role`, where the members can be user accounts, Google groups,
25
- # Google domains, and service accounts. A `role` is a named list of permissions
26
- # defined by IAM.
27
- #
28
- # **JSON Example**
29
- #
30
- # {
31
- # "bindings": [
32
- # {
33
- # "role": "roles/owner",
34
- # "members": [
35
- # "user:mike@example.com",
36
- # "group:admins@example.com",
37
- # "domain:google.com",
38
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
39
- # ]
40
- # },
41
- # {
42
- # "role": "roles/viewer",
43
- # "members": ["user:sean@example.com"]
44
- # }
45
- # ]
46
- # }
47
- #
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).
64
- # @!attribute [rw] version
65
- # @return [Integer]
66
- # Specifies the format of the policy.
67
- #
68
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
69
- # rejected.
70
- #
71
- # Policies with any conditional bindings must specify version 3. Policies
72
- # without any conditional bindings may specify any valid value or leave the
73
- # field unset.
74
- # @!attribute [rw] bindings
75
- # @return [Array<Google::Iam::V1::Binding>]
76
- # Associates a list of `members` to a `role`.
77
- # `bindings` with no members will result in an error.
78
- # @!attribute [rw] etag
79
- # @return [String]
80
- # `etag` is used for optimistic concurrency control as a way to help
81
- # prevent simultaneous updates of a policy from overwriting each other.
82
- # It is strongly suggested that systems make use of the `etag` in the
83
- # read-modify-write cycle to perform policy updates in order to avoid race
84
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
85
- # systems are expected to put that etag in the request to `setIamPolicy` to
86
- # ensure that their change will be applied to the same version of the policy.
87
- #
88
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
89
- # policy is overwritten.
90
- class Policy; end
91
-
92
- # Associates `members` with a `role`.
93
- # @!attribute [rw] role
94
- # @return [String]
95
- # Role that is assigned to `members`.
96
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
97
- # @!attribute [rw] members
98
- # @return [Array<String>]
99
- # Specifies the identities requesting access for a Cloud Platform resource.
100
- # `members` can have the following values:
101
- #
102
- # * `allUsers`: A special identifier that represents anyone who is
103
- # on the internet; with or without a Google account.
104
- #
105
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
106
- # who is authenticated with a Google account or a service account.
107
- #
108
- # * `user:{emailid}`: An email address that represents a specific Google
109
- # account. For example, `alice@example.com` .
110
- #
111
- #
112
- # * `serviceAccount:{emailid}`: An email address that represents a service
113
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
114
- #
115
- # * `group:{emailid}`: An email address that represents a Google group.
116
- # For example, `admins@example.com`.
117
- #
118
- #
119
- # * `domain:{domain}`: The G Suite domain (primary) that represents all the
120
- # users of that domain. For example, `google.com` or `example.com`.
121
- # @!attribute [rw] condition
122
- # @return [Google::Type::Expr]
123
- # The condition that is associated with this binding.
124
- # NOTE: An unsatisfied condition will not allow user access via current
125
- # binding. Different bindings, including their conditions, are examined
126
- # independently.
127
- class Binding; end
128
- end
129
- end
130
- end
@@ -1,45 +0,0 @@
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
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/devtools/containeranalysis/v1/containeranalysis.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/iam/v1/iam_policy_pb'
9
- require 'google/iam/v1/policy_pb'
10
- require 'google/protobuf/timestamp_pb'
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- end
13
-
14
- module Google::Cloud::ContainerAnalysis::V1
15
- end
@@ -1,77 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/devtools/containeranalysis/v1/containeranalysis.proto for package 'Google::Cloud::ContainerAnalysis::V1'
3
- # Original file comments:
4
- # Copyright 2019 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
-
20
-
21
- require 'grpc'
22
- require 'google/devtools/containeranalysis/v1/containeranalysis_pb'
23
-
24
- module Google::Cloud::ContainerAnalysis::V1
25
- module ContainerAnalysisService
26
- # Retrieves analysis results of Cloud components such as Docker container
27
- # images. The Container Analysis API is an implementation of the
28
- # [Grafeas](https://grafeas.io) API.
29
- #
30
- # Analysis results are stored as a series of occurrences. An `Occurrence`
31
- # contains information about a specific analysis instance on a resource. An
32
- # occurrence refers to a `Note`. A note contains details describing the
33
- # analysis and is generally stored in a separate project, called a `Provider`.
34
- # Multiple occurrences can refer to the same note.
35
- #
36
- # For example, an SSL vulnerability could affect multiple images. In this case,
37
- # there would be one note for the vulnerability and an occurrence for each
38
- # image with the vulnerability referring to that note.
39
- class Service
40
-
41
- include GRPC::GenericService
42
-
43
- self.marshal_class_method = :encode
44
- self.unmarshal_class_method = :decode
45
- self.service_name = 'google.devtools.containeranalysis.v1.ContainerAnalysis'
46
-
47
- # Sets the access control policy on the specified note or occurrence.
48
- # Requires `containeranalysis.notes.setIamPolicy` or
49
- # `containeranalysis.occurrences.setIamPolicy` permission if the resource is
50
- # a note or an occurrence, respectively.
51
- #
52
- # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
53
- # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
54
- # occurrences.
55
- rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
56
- # Gets the access control policy for a note or an occurrence resource.
57
- # Requires `containeranalysis.notes.setIamPolicy` or
58
- # `containeranalysis.occurrences.setIamPolicy` permission if the resource is
59
- # a note or occurrence, respectively.
60
- #
61
- # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
62
- # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
63
- # occurrences.
64
- rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
65
- # Returns the permissions that a caller has on the specified note or
66
- # occurrence. Requires list permission on the project (for example,
67
- # `containeranalysis.notes.list`).
68
- #
69
- # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
70
- # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
71
- # occurrences.
72
- rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
73
- end
74
-
75
- Stub = Service.rpc_stub_class
76
- end
77
- end