google-cloud-container_analysis-v1 0.4.7 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c43a62e17050d537cff4b2c65944b2b1923099f6c06a0ae8dd3d2ecf782daacc
4
- data.tar.gz: 8b637b5e0210af995d7edcd781b09290e9e74515b327ad48f2344e77e7795a4c
3
+ metadata.gz: edc240dfb3f700729ee32cf89eac1de524e3bd3295892f33c4551ff6d63af039
4
+ data.tar.gz: c13d95ef5572f70f642a60b7834128b818cb31c8e7f123f9eef20a384ea47e6b
5
5
  SHA512:
6
- metadata.gz: 7ee8eea2784b9b8900dfbb34a7071e6b17388a5036960488fb09136bd1a43a224f476b82586c1c707ca1778dffa73c3d572c8ab5222998965dc0827031faa79d
7
- data.tar.gz: 5ae886224b1a0ce679044b2838887219655eac14f1131328dfc4d6fee584bbdfe76172006ff21f215b4e8095820b34ffd6be04e9ab860f4faa53be652974b689
6
+ metadata.gz: da9c6aeb82b2aad9d6c9ec04c871d50141196ee9028e4ce7c0625542c6ccafdb4f16bbd8e6b63527a94dacddfac59a61dde1294c47d38a5f7798ec9d4c1553d8
7
+ data.tar.gz: 1119960c0e714b0a60d90d2d183e18b3a52e9742f71b4a576ac08c65f2071d6dbfa6237f9c81415e8333e94aa6b0b5977d24c29821634e57884557080fcce543
@@ -182,7 +182,7 @@ module Google
182
182
  # @param options [::Gapic::CallOptions, ::Hash]
183
183
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
184
184
  #
185
- # @overload set_iam_policy(resource: nil, policy: nil)
185
+ # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
186
186
  # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
187
187
  # least one keyword argument is required. To specify no parameters, or to keep all
188
188
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -195,6 +195,12 @@ module Google
195
195
  # the policy is limited to a few 10s of KB. An empty policy is a
196
196
  # valid policy but certain Cloud Platform services (such as Projects)
197
197
  # might reject them.
198
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
199
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
200
+ # the fields in the mask will be modified. If no mask is provided, the
201
+ # following default mask is used:
202
+ #
203
+ # `paths: "bindings, etag"`
198
204
  #
199
205
  # @yield [response, operation] Access the result along with the RPC operation
200
206
  # @yieldparam response [::Google::Iam::V1::Policy]
@@ -290,7 +296,7 @@ module Google
290
296
  # See the operation documentation for the appropriate value for this field.
291
297
  # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
292
298
  # OPTIONAL: A `GetPolicyOptions` object for specifying options to
293
- # `GetIamPolicy`. This field is only used by Cloud IAM.
299
+ # `GetIamPolicy`.
294
300
  #
295
301
  # @yield [response, operation] Access the result along with the RPC operation
296
302
  # @yieldparam response [::Google::Iam::V1::Policy]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ContainerAnalysis
23
23
  module V1
24
- VERSION = "0.4.7"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/container_analysis/v1"
29
31
  # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
30
32
  #
@@ -7,9 +7,6 @@ require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/iam/v1/iam_policy_pb'
9
9
  require 'google/iam/v1/policy_pb'
10
- require 'google/protobuf/timestamp_pb'
11
- require 'grafeas/v1/common_pb'
12
- require 'grafeas/v1/grafeas_pb'
13
10
  require 'grafeas/v1/severity_pb'
14
11
  require 'google/protobuf'
15
12
 
@@ -31,6 +31,13 @@ module Google
31
31
  # the policy is limited to a few 10s of KB. An empty policy is a
32
32
  # valid policy but certain Cloud Platform services (such as Projects)
33
33
  # might reject them.
34
+ # @!attribute [rw] update_mask
35
+ # @return [::Google::Protobuf::FieldMask]
36
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
37
+ # the fields in the mask will be modified. If no mask is provided, the
38
+ # following default mask is used:
39
+ #
40
+ # `paths: "bindings, etag"`
34
41
  class SetIamPolicyRequest
35
42
  include ::Google::Protobuf::MessageExts
36
43
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -44,7 +51,7 @@ module Google
44
51
  # @!attribute [rw] options
45
52
  # @return [::Google::Iam::V1::GetPolicyOptions]
46
53
  # OPTIONAL: A `GetPolicyOptions` object for specifying options to
47
- # `GetIamPolicy`. This field is only used by Cloud IAM.
54
+ # `GetIamPolicy`.
48
55
  class GetIamPolicyRequest
49
56
  include ::Google::Protobuf::MessageExts
50
57
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -23,14 +23,24 @@ module Google
23
23
  # Encapsulates settings provided to GetIamPolicy.
24
24
  # @!attribute [rw] requested_policy_version
25
25
  # @return [::Integer]
26
- # Optional. The policy format version to be returned.
26
+ # Optional. The maximum policy version that will be used to format the
27
+ # policy.
27
28
  #
28
29
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
29
30
  # rejected.
30
31
  #
31
- # Requests for policies with any conditional bindings must specify version 3.
32
- # Policies without any conditional bindings may specify any valid value or
33
- # leave the field unset.
32
+ # Requests for policies with any conditional role bindings must specify
33
+ # version 3. Policies with no conditional role bindings may specify any valid
34
+ # value or leave the field unset.
35
+ #
36
+ # The policy in the response might use the policy version that you specified,
37
+ # or it might use a lower policy version. For example, if you specify version
38
+ # 3, but the policy has no conditional role bindings, the response uses
39
+ # version 1.
40
+ #
41
+ # To learn which resources support conditions in their IAM policies, see the
42
+ # [IAM
43
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
34
44
  class GetPolicyOptions
35
45
  include ::Google::Protobuf::MessageExts
36
46
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -20,19 +20,24 @@
20
20
  module Google
21
21
  module Iam
22
22
  module V1
23
- # Defines an Identity and Access Management (IAM) policy. It is used to
24
- # specify access control policies for Cloud Platform resources.
23
+ # An Identity and Access Management (IAM) policy, which specifies access
24
+ # controls for Google Cloud resources.
25
25
  #
26
26
  #
27
27
  # A `Policy` is a collection of `bindings`. A `binding` binds one or more
28
- # `members` to a single `role`. Members can be user accounts, service accounts,
29
- # Google groups, and domains (such as G Suite). A `role` is a named list of
30
- # permissions (defined by IAM or configured by users). A `binding` can
31
- # optionally specify a `condition`, which is a logic expression that further
32
- # constrains the role binding based on attributes about the request and/or
33
- # target resource.
28
+ # `members`, or principals, to a single `role`. Principals can be user
29
+ # accounts, service accounts, Google groups, and domains (such as G Suite). A
30
+ # `role` is a named list of permissions; each `role` can be an IAM predefined
31
+ # role or a user-created custom role.
34
32
  #
35
- # **JSON Example**
33
+ # For some types of Google Cloud resources, a `binding` can also specify a
34
+ # `condition`, which is a logical expression that allows access to a resource
35
+ # only if the expression evaluates to `true`. A condition can add constraints
36
+ # based on attributes of the request, the resource, or both. To learn which
37
+ # resources support conditions in their IAM policies, see the
38
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
39
+ #
40
+ # **JSON example:**
36
41
  #
37
42
  # {
38
43
  # "bindings": [
@@ -47,18 +52,21 @@ module Google
47
52
  # },
48
53
  # {
49
54
  # "role": "roles/resourcemanager.organizationViewer",
50
- # "members": ["user:eve@example.com"],
55
+ # "members": [
56
+ # "user:eve@example.com"
57
+ # ],
51
58
  # "condition": {
52
59
  # "title": "expirable access",
53
60
  # "description": "Does not grant access after Sep 2020",
54
- # "expression": "request.time <
55
- # timestamp('2020-10-01T00:00:00.000Z')",
61
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
56
62
  # }
57
63
  # }
58
- # ]
64
+ # ],
65
+ # "etag": "BwWWja0YfJA=",
66
+ # "version": 3
59
67
  # }
60
68
  #
61
- # **YAML Example**
69
+ # **YAML example:**
62
70
  #
63
71
  # bindings:
64
72
  # - members:
@@ -74,30 +82,52 @@ module Google
74
82
  # title: expirable access
75
83
  # description: Does not grant access after Sep 2020
76
84
  # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
85
+ # etag: BwWWja0YfJA=
86
+ # version: 3
77
87
  #
78
88
  # For a description of IAM and its features, see the
79
- # [IAM developer's guide](https://cloud.google.com/iam/docs).
89
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
80
90
  # @!attribute [rw] version
81
91
  # @return [::Integer]
82
92
  # Specifies the format of the policy.
83
93
  #
84
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
85
- # rejected.
94
+ # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
95
+ # are rejected.
96
+ #
97
+ # Any operation that affects conditional role bindings must specify version
98
+ # `3`. This requirement applies to the following operations:
86
99
  #
87
- # Operations affecting conditional bindings must specify version 3. This can
88
- # be either setting a conditional policy, modifying a conditional binding,
89
- # or removing a binding (conditional or unconditional) from the stored
90
- # conditional policy.
91
- # Operations on non-conditional policies may specify any valid value or
92
- # leave the field unset.
100
+ # * Getting a policy that includes a conditional role binding
101
+ # * Adding a conditional role binding to a policy
102
+ # * Changing a conditional role binding in a policy
103
+ # * Removing any role binding, with or without a condition, from a policy
104
+ # that includes conditions
93
105
  #
94
- # If no etag is provided in the call to `setIamPolicy`, version compliance
95
- # checks against the stored policy is skipped.
106
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
107
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
108
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
109
+ # the conditions in the version `3` policy are lost.
110
+ #
111
+ # If a policy does not include any conditions, operations on that policy may
112
+ # specify any valid version or leave the field unset.
113
+ #
114
+ # To learn which resources support conditions in their IAM policies, see the
115
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
96
116
  # @!attribute [rw] bindings
97
117
  # @return [::Array<::Google::Iam::V1::Binding>]
98
- # Associates a list of `members` to a `role`. Optionally may specify a
99
- # `condition` that determines when binding is in effect.
100
- # `bindings` with no members will result in an error.
118
+ # Associates a list of `members`, or principals, with a `role`. Optionally,
119
+ # may specify a `condition` that determines how and when the `bindings` are
120
+ # applied. Each of the `bindings` must contain at least one principal.
121
+ #
122
+ # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
123
+ # of these principals can be Google groups. Each occurrence of a principal
124
+ # counts towards these limits. For example, if the `bindings` grant 50
125
+ # different roles to `user:alice@example.com`, and not to any other
126
+ # principal, then you can add another 1,450 principals to the `bindings` in
127
+ # the `Policy`.
128
+ # @!attribute [rw] audit_configs
129
+ # @return [::Array<::Google::Iam::V1::AuditConfig>]
130
+ # Specifies cloud audit logging configuration for this policy.
101
131
  # @!attribute [rw] etag
102
132
  # @return [::String]
103
133
  # `etag` is used for optimistic concurrency control as a way to help
@@ -108,23 +138,23 @@ module Google
108
138
  # systems are expected to put that etag in the request to `setIamPolicy` to
109
139
  # ensure that their change will be applied to the same version of the policy.
110
140
  #
111
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
112
- # policy is overwritten. Due to blind-set semantics of an etag-less policy,
113
- # 'setIamPolicy' will not fail even if the incoming policy version does not
114
- # meet the requirements for modifying the stored policy.
141
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
142
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
143
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
144
+ # the conditions in the version `3` policy are lost.
115
145
  class Policy
116
146
  include ::Google::Protobuf::MessageExts
117
147
  extend ::Google::Protobuf::MessageExts::ClassMethods
118
148
  end
119
149
 
120
- # Associates `members` with a `role`.
150
+ # Associates `members`, or principals, with a `role`.
121
151
  # @!attribute [rw] role
122
152
  # @return [::String]
123
- # Role that is assigned to `members`.
153
+ # Role that is assigned to the list of `members`, or principals.
124
154
  # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
125
155
  # @!attribute [rw] members
126
156
  # @return [::Array<::String>]
127
- # Specifies the identities requesting access for a Cloud Platform resource.
157
+ # Specifies the principals requesting access for a Cloud Platform resource.
128
158
  # `members` can have the following values:
129
159
  #
130
160
  # * `allUsers`: A special identifier that represents anyone who is
@@ -143,20 +173,160 @@ module Google
143
173
  # * `group:{emailid}`: An email address that represents a Google group.
144
174
  # For example, `admins@example.com`.
145
175
  #
176
+ # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
177
+ # identifier) representing a user that has been recently deleted. For
178
+ # example, `alice@example.com?uid=123456789012345678901`. If the user is
179
+ # recovered, this value reverts to `user:{emailid}` and the recovered user
180
+ # retains the role in the binding.
181
+ #
182
+ # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
183
+ # unique identifier) representing a service account that has been recently
184
+ # deleted. For example,
185
+ # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
186
+ # If the service account is undeleted, this value reverts to
187
+ # `serviceAccount:{emailid}` and the undeleted service account retains the
188
+ # role in the binding.
189
+ #
190
+ # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
191
+ # identifier) representing a Google group that has been recently
192
+ # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
193
+ # the group is recovered, this value reverts to `group:{emailid}` and the
194
+ # recovered group retains the role in the binding.
195
+ #
146
196
  #
147
197
  # * `domain:{domain}`: The G Suite domain (primary) that represents all the
148
198
  # users of that domain. For example, `google.com` or `example.com`.
149
199
  # @!attribute [rw] condition
150
200
  # @return [::Google::Type::Expr]
151
201
  # The condition that is associated with this binding.
152
- # NOTE: An unsatisfied condition will not allow user access via current
153
- # binding. Different bindings, including their conditions, are examined
154
- # independently.
202
+ #
203
+ # If the condition evaluates to `true`, then this binding applies to the
204
+ # current request.
205
+ #
206
+ # If the condition evaluates to `false`, then this binding does not apply to
207
+ # the current request. However, a different role binding might grant the same
208
+ # role to one or more of the principals in this binding.
209
+ #
210
+ # To learn which resources support conditions in their IAM policies, see the
211
+ # [IAM
212
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
155
213
  class Binding
156
214
  include ::Google::Protobuf::MessageExts
157
215
  extend ::Google::Protobuf::MessageExts::ClassMethods
158
216
  end
159
217
 
218
+ # Specifies the audit configuration for a service.
219
+ # The configuration determines which permission types are logged, and what
220
+ # identities, if any, are exempted from logging.
221
+ # An AuditConfig must have one or more AuditLogConfigs.
222
+ #
223
+ # If there are AuditConfigs for both `allServices` and a specific service,
224
+ # the union of the two AuditConfigs is used for that service: the log_types
225
+ # specified in each AuditConfig are enabled, and the exempted_members in each
226
+ # AuditLogConfig are exempted.
227
+ #
228
+ # Example Policy with multiple AuditConfigs:
229
+ #
230
+ # {
231
+ # "audit_configs": [
232
+ # {
233
+ # "service": "allServices",
234
+ # "audit_log_configs": [
235
+ # {
236
+ # "log_type": "DATA_READ",
237
+ # "exempted_members": [
238
+ # "user:jose@example.com"
239
+ # ]
240
+ # },
241
+ # {
242
+ # "log_type": "DATA_WRITE"
243
+ # },
244
+ # {
245
+ # "log_type": "ADMIN_READ"
246
+ # }
247
+ # ]
248
+ # },
249
+ # {
250
+ # "service": "sampleservice.googleapis.com",
251
+ # "audit_log_configs": [
252
+ # {
253
+ # "log_type": "DATA_READ"
254
+ # },
255
+ # {
256
+ # "log_type": "DATA_WRITE",
257
+ # "exempted_members": [
258
+ # "user:aliya@example.com"
259
+ # ]
260
+ # }
261
+ # ]
262
+ # }
263
+ # ]
264
+ # }
265
+ #
266
+ # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
267
+ # logging. It also exempts jose@example.com from DATA_READ logging, and
268
+ # aliya@example.com from DATA_WRITE logging.
269
+ # @!attribute [rw] service
270
+ # @return [::String]
271
+ # Specifies a service that will be enabled for audit logging.
272
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
273
+ # `allServices` is a special value that covers all services.
274
+ # @!attribute [rw] audit_log_configs
275
+ # @return [::Array<::Google::Iam::V1::AuditLogConfig>]
276
+ # The configuration for logging of each type of permission.
277
+ class AuditConfig
278
+ include ::Google::Protobuf::MessageExts
279
+ extend ::Google::Protobuf::MessageExts::ClassMethods
280
+ end
281
+
282
+ # Provides the configuration for logging a type of permissions.
283
+ # Example:
284
+ #
285
+ # {
286
+ # "audit_log_configs": [
287
+ # {
288
+ # "log_type": "DATA_READ",
289
+ # "exempted_members": [
290
+ # "user:jose@example.com"
291
+ # ]
292
+ # },
293
+ # {
294
+ # "log_type": "DATA_WRITE"
295
+ # }
296
+ # ]
297
+ # }
298
+ #
299
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
300
+ # jose@example.com from DATA_READ logging.
301
+ # @!attribute [rw] log_type
302
+ # @return [::Google::Iam::V1::AuditLogConfig::LogType]
303
+ # The log type that this config enables.
304
+ # @!attribute [rw] exempted_members
305
+ # @return [::Array<::String>]
306
+ # Specifies the identities that do not cause logging for this type of
307
+ # permission.
308
+ # Follows the same format of {::Google::Iam::V1::Binding#members Binding.members}.
309
+ class AuditLogConfig
310
+ include ::Google::Protobuf::MessageExts
311
+ extend ::Google::Protobuf::MessageExts::ClassMethods
312
+
313
+ # The list of valid permission types for which logging can be configured.
314
+ # Admin writes are always logged, and are not configurable.
315
+ module LogType
316
+ # Default case. Should never be this.
317
+ LOG_TYPE_UNSPECIFIED = 0
318
+
319
+ # Admin reads. Example: CloudIAM getIamPolicy
320
+ ADMIN_READ = 1
321
+
322
+ # Data writes. Example: CloudSQL Users create
323
+ DATA_WRITE = 2
324
+
325
+ # Data reads. Example: CloudSQL Users list
326
+ DATA_READ = 3
327
+ end
328
+ end
329
+
160
330
  # The difference delta between two policies.
161
331
  # @!attribute [rw] binding_deltas
162
332
  # @return [::Array<::Google::Iam::V1::BindingDelta>]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-container_analysis-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-16 00:00:00.000000000 Z
11
+ date: 2022-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -68,22 +68,16 @@ dependencies:
68
68
  name: grpc-google-iam-v1
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: 0.6.10
74
- - - "<"
71
+ - - "~>"
75
72
  - !ruby/object:Gem::Version
76
- version: 2.a
73
+ version: '1.1'
77
74
  type: :runtime
78
75
  prerelease: false
79
76
  version_requirements: !ruby/object:Gem::Requirement
80
77
  requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 0.6.10
84
- - - "<"
78
+ - - "~>"
85
79
  - !ruby/object:Gem::Version
86
- version: 2.a
80
+ version: '1.1'
87
81
  - !ruby/object:Gem::Dependency
88
82
  name: google-style
89
83
  requirement: !ruby/object:Gem::Requirement
@@ -227,30 +221,9 @@ files:
227
221
  - proto_docs/google/iam/v1/iam_policy.rb
228
222
  - proto_docs/google/iam/v1/options.rb
229
223
  - proto_docs/google/iam/v1/policy.rb
230
- - proto_docs/google/protobuf/any.rb
231
- - proto_docs/google/protobuf/empty.rb
232
224
  - proto_docs/google/protobuf/field_mask.rb
233
- - proto_docs/google/protobuf/timestamp.rb
234
- - proto_docs/google/rpc/status.rb
235
225
  - proto_docs/google/type/expr.rb
236
- - proto_docs/grafeas/v1/attestation.rb
237
- - proto_docs/grafeas/v1/build.rb
238
- - proto_docs/grafeas/v1/common.rb
239
- - proto_docs/grafeas/v1/compliance.rb
240
- - proto_docs/grafeas/v1/cvss.rb
241
- - proto_docs/grafeas/v1/deployment.rb
242
- - proto_docs/grafeas/v1/discovery.rb
243
- - proto_docs/grafeas/v1/dsse_attestation.rb
244
- - proto_docs/grafeas/v1/grafeas.rb
245
- - proto_docs/grafeas/v1/image.rb
246
- - proto_docs/grafeas/v1/intoto_provenance.rb
247
- - proto_docs/grafeas/v1/intoto_statement.rb
248
- - proto_docs/grafeas/v1/package.rb
249
- - proto_docs/grafeas/v1/provenance.rb
250
226
  - proto_docs/grafeas/v1/severity.rb
251
- - proto_docs/grafeas/v1/slsa_provenance.rb
252
- - proto_docs/grafeas/v1/upgrade.rb
253
- - proto_docs/grafeas/v1/vulnerability.rb
254
227
  homepage: https://github.com/googleapis/google-cloud-ruby
255
228
  licenses:
256
229
  - Apache-2.0
@@ -1,141 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2022 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
-
20
- module Google
21
- module Protobuf
22
- # `Any` contains an arbitrary serialized protocol buffer message along with a
23
- # URL that describes the type of the serialized message.
24
- #
25
- # Protobuf library provides support to pack/unpack Any values in the form
26
- # of utility functions or additional generated methods of the Any type.
27
- #
28
- # Example 1: Pack and unpack a message in C++.
29
- #
30
- # Foo foo = ...;
31
- # Any any;
32
- # any.PackFrom(foo);
33
- # ...
34
- # if (any.UnpackTo(&foo)) {
35
- # ...
36
- # }
37
- #
38
- # Example 2: Pack and unpack a message in Java.
39
- #
40
- # Foo foo = ...;
41
- # Any any = Any.pack(foo);
42
- # ...
43
- # if (any.is(Foo.class)) {
44
- # foo = any.unpack(Foo.class);
45
- # }
46
- #
47
- # Example 3: Pack and unpack a message in Python.
48
- #
49
- # foo = Foo(...)
50
- # any = Any()
51
- # any.Pack(foo)
52
- # ...
53
- # if any.Is(Foo.DESCRIPTOR):
54
- # any.Unpack(foo)
55
- # ...
56
- #
57
- # Example 4: Pack and unpack a message in Go
58
- #
59
- # foo := &pb.Foo{...}
60
- # any, err := anypb.New(foo)
61
- # if err != nil {
62
- # ...
63
- # }
64
- # ...
65
- # foo := &pb.Foo{}
66
- # if err := any.UnmarshalTo(foo); err != nil {
67
- # ...
68
- # }
69
- #
70
- # The pack methods provided by protobuf library will by default use
71
- # 'type.googleapis.com/full.type.name' as the type URL and the unpack
72
- # methods only use the fully qualified type name after the last '/'
73
- # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
- # name "y.z".
75
- #
76
- #
77
- # JSON
78
- # ====
79
- # The JSON representation of an `Any` value uses the regular
80
- # representation of the deserialized, embedded message, with an
81
- # additional field `@type` which contains the type URL. Example:
82
- #
83
- # package google.profile;
84
- # message Person {
85
- # string first_name = 1;
86
- # string last_name = 2;
87
- # }
88
- #
89
- # {
90
- # "@type": "type.googleapis.com/google.profile.Person",
91
- # "firstName": <string>,
92
- # "lastName": <string>
93
- # }
94
- #
95
- # If the embedded message type is well-known and has a custom JSON
96
- # representation, that representation will be embedded adding a field
97
- # `value` which holds the custom JSON in addition to the `@type`
98
- # field. Example (for message [google.protobuf.Duration][]):
99
- #
100
- # {
101
- # "@type": "type.googleapis.com/google.protobuf.Duration",
102
- # "value": "1.212s"
103
- # }
104
- # @!attribute [rw] type_url
105
- # @return [::String]
106
- # A URL/resource name that uniquely identifies the type of the serialized
107
- # protocol buffer message. This string must contain at least
108
- # one "/" character. The last segment of the URL's path must represent
109
- # the fully qualified name of the type (as in
110
- # `path/google.protobuf.Duration`). The name should be in a canonical form
111
- # (e.g., leading "." is not accepted).
112
- #
113
- # In practice, teams usually precompile into the binary all types that they
114
- # expect it to use in the context of Any. However, for URLs which use the
115
- # scheme `http`, `https`, or no scheme, one can optionally set up a type
116
- # server that maps type URLs to message definitions as follows:
117
- #
118
- # * If no scheme is provided, `https` is assumed.
119
- # * An HTTP GET on the URL must yield a [google.protobuf.Type][]
120
- # value in binary format, or produce an error.
121
- # * Applications are allowed to cache lookup results based on the
122
- # URL, or have them precompiled into a binary to avoid any
123
- # lookup. Therefore, binary compatibility needs to be preserved
124
- # on changes to types. (Use versioned type names to manage
125
- # breaking changes.)
126
- #
127
- # Note: this functionality is not currently available in the official
128
- # protobuf release, and it is not used for type URLs beginning with
129
- # type.googleapis.com.
130
- #
131
- # Schemes other than `http`, `https` (or the empty scheme) might be
132
- # used with implementation specific semantics.
133
- # @!attribute [rw] value
134
- # @return [::String]
135
- # Must be a valid serialized protocol buffer of the above specified type.
136
- class Any
137
- include ::Google::Protobuf::MessageExts
138
- extend ::Google::Protobuf::MessageExts::ClassMethods
139
- end
140
- end
141
- end