google-cloud-notebooks-v1 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/notebooks/v1/diagnostic_config_pb.rb +28 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/client.rb +364 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/paths.rb +17 -0
- data/lib/google/cloud/notebooks/v1/managed_service_pb.rb +18 -0
- data/lib/google/cloud/notebooks/v1/managed_service_services_pb.rb +6 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +133 -0
- data/lib/google/cloud/notebooks/v1/runtime_pb.rb +9 -0
- data/lib/google/cloud/notebooks/v1/service_pb.rb +6 -0
- data/lib/google/cloud/notebooks/v1/service_services_pb.rb +2 -0
- data/lib/google/cloud/notebooks/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/notebooks/v1/diagnostic_config.rb +62 -0
- data/proto_docs/google/cloud/notebooks/v1/managed_service.rb +65 -0
- data/proto_docs/google/cloud/notebooks/v1/runtime.rb +24 -2
- data/proto_docs/google/cloud/notebooks/v1/service.rb +13 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +50 -4
@@ -0,0 +1,62 @@
|
|
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 Cloud
|
22
|
+
module Notebooks
|
23
|
+
module V1
|
24
|
+
# Defines flags that are used to run the diagnostic tool
|
25
|
+
# @!attribute [rw] gcs_bucket
|
26
|
+
# @return [::String]
|
27
|
+
# Required. User Cloud Storage bucket location (REQUIRED)
|
28
|
+
# ## Must be formatted with path prefix (gs://$GCS_BUCKET)
|
29
|
+
#
|
30
|
+
# Permissions:
|
31
|
+
# User Managed Notebooks:
|
32
|
+
# - storage.buckets.writer: Must be given to the project's service account
|
33
|
+
# attached to VM.
|
34
|
+
# Google Managed Notebooks:
|
35
|
+
# - storage.buckets.writer: Must be given to the project's service account or
|
36
|
+
# ## user credentials attached to VM depending on authentication mode.
|
37
|
+
#
|
38
|
+
# Cloud Storage bucket Log file will be written to
|
39
|
+
# gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz
|
40
|
+
# @!attribute [rw] relative_path
|
41
|
+
# @return [::String]
|
42
|
+
# Optional. Defines the relative storage path in the Cloud Storage bucket where the
|
43
|
+
# diagnostic logs will be written: Default path will be the root directory of
|
44
|
+
# the Cloud Storage bucket (gs://$GCS_BUCKET/$DATE_$TIME.tar.gz) Example of
|
45
|
+
# full path where Log file will be written: gs://$GCS_BUCKET/$RELATIVE_PATH/
|
46
|
+
# @!attribute [rw] repair_flag_enabled
|
47
|
+
# @return [::Boolean]
|
48
|
+
# Optional. Enables flag to repair service for instance
|
49
|
+
# @!attribute [rw] packet_capture_flag_enabled
|
50
|
+
# @return [::Boolean]
|
51
|
+
# Optional. Enables flag to capture packets from the instance for 30 seconds
|
52
|
+
# @!attribute [rw] copy_home_files_flag_enabled
|
53
|
+
# @return [::Boolean]
|
54
|
+
# Optional. Enables flag to copy all `/home/jupyter` folder contents
|
55
|
+
class DiagnosticConfig
|
56
|
+
include ::Google::Protobuf::MessageExts
|
57
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -156,6 +156,21 @@ module Google
|
|
156
156
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
157
157
|
end
|
158
158
|
|
159
|
+
# Request for upgrading a Managed Notebook Runtime to the latest version.
|
160
|
+
# option (google.api.message_visibility).restriction =
|
161
|
+
# "TRUSTED_TESTER,SPECIAL_TESTER";
|
162
|
+
# @!attribute [rw] name
|
163
|
+
# @return [::String]
|
164
|
+
# Required. Format:
|
165
|
+
# `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
|
166
|
+
# @!attribute [rw] request_id
|
167
|
+
# @return [::String]
|
168
|
+
# Idempotent request UUID.
|
169
|
+
class UpgradeRuntimeRequest
|
170
|
+
include ::Google::Protobuf::MessageExts
|
171
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
172
|
+
end
|
173
|
+
|
159
174
|
# Request for reporting a Managed Notebook Event.
|
160
175
|
# @!attribute [rw] name
|
161
176
|
# @return [::String]
|
@@ -173,6 +188,43 @@ module Google
|
|
173
188
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
174
189
|
end
|
175
190
|
|
191
|
+
# Request for updating a Managed Notebook configuration.
|
192
|
+
# @!attribute [rw] runtime
|
193
|
+
# @return [::Google::Cloud::Notebooks::V1::Runtime]
|
194
|
+
# Required. The Runtime to be updated.
|
195
|
+
# @!attribute [rw] update_mask
|
196
|
+
# @return [::Google::Protobuf::FieldMask]
|
197
|
+
# Required. Specifies the path, relative to `Runtime`, of
|
198
|
+
# the field to update. For example, to change the software configuration
|
199
|
+
# kernels, the `update_mask` parameter would be
|
200
|
+
# specified as `software_config.kernels`,
|
201
|
+
# and the `PATCH` request body would specify the new value, as follows:
|
202
|
+
#
|
203
|
+
# {
|
204
|
+
# "software_config":{
|
205
|
+
# "kernels": [{
|
206
|
+
# 'repository':
|
207
|
+
# 'gcr.io/deeplearning-platform-release/pytorch-gpu', 'tag':
|
208
|
+
# 'latest' }],
|
209
|
+
# }
|
210
|
+
# }
|
211
|
+
#
|
212
|
+
#
|
213
|
+
# Currently, only the following fields can be updated:
|
214
|
+
# - software_config.kernels
|
215
|
+
# - software_config.post_startup_script
|
216
|
+
# - software_config.custom_gpu_driver_path
|
217
|
+
# - software_config.idle_shutdown
|
218
|
+
# - software_config.idle_shutdown_timeout
|
219
|
+
# - software_config.disable_terminal
|
220
|
+
# @!attribute [rw] request_id
|
221
|
+
# @return [::String]
|
222
|
+
# Idempotent request UUID.
|
223
|
+
class UpdateRuntimeRequest
|
224
|
+
include ::Google::Protobuf::MessageExts
|
225
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
226
|
+
end
|
227
|
+
|
176
228
|
# Request for getting a new access token.
|
177
229
|
# @!attribute [rw] name
|
178
230
|
# @return [::String]
|
@@ -198,6 +250,19 @@ module Google
|
|
198
250
|
include ::Google::Protobuf::MessageExts
|
199
251
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
200
252
|
end
|
253
|
+
|
254
|
+
# Request for creating a notebook instance diagnostic file.
|
255
|
+
# @!attribute [rw] name
|
256
|
+
# @return [::String]
|
257
|
+
# Required. Format:
|
258
|
+
# `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
|
259
|
+
# @!attribute [rw] diagnostic_config
|
260
|
+
# @return [::Google::Cloud::Notebooks::V1::DiagnosticConfig]
|
261
|
+
# Required. Defines flags that are used to run the diagnostic tool
|
262
|
+
class DiagnoseRuntimeRequest
|
263
|
+
include ::Google::Protobuf::MessageExts
|
264
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
265
|
+
end
|
201
266
|
end
|
202
267
|
end
|
203
268
|
end
|
@@ -423,9 +423,31 @@ module Google
|
|
423
423
|
# @!attribute [r] upgradeable
|
424
424
|
# @return [::Boolean]
|
425
425
|
# Output only. Bool indicating whether an newer image is available in an image family.
|
426
|
+
# @!attribute [rw] post_startup_script_behavior
|
427
|
+
# @return [::Google::Cloud::Notebooks::V1::RuntimeSoftwareConfig::PostStartupScriptBehavior]
|
428
|
+
# Behavior for the post startup script.
|
429
|
+
# @!attribute [rw] disable_terminal
|
430
|
+
# @return [::Boolean]
|
431
|
+
# Bool indicating whether JupyterLab terminal will be available or not.
|
432
|
+
# Default: False
|
433
|
+
# @!attribute [r] version
|
434
|
+
# @return [::String]
|
435
|
+
# Output only. version of boot image such as M100, from release label of the image.
|
426
436
|
class RuntimeSoftwareConfig
|
427
437
|
include ::Google::Protobuf::MessageExts
|
428
438
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
439
|
+
|
440
|
+
# Behavior for the post startup script.
|
441
|
+
module PostStartupScriptBehavior
|
442
|
+
# Unspecified post startup script behavior. Will run only once at creation.
|
443
|
+
POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0
|
444
|
+
|
445
|
+
# Runs the post startup script provided during creation at every start.
|
446
|
+
RUN_EVERY_START = 1
|
447
|
+
|
448
|
+
# Downloads and runs the provided post startup script at every start.
|
449
|
+
DOWNLOAD_AND_RUN_EVERY_START = 2
|
450
|
+
end
|
429
451
|
end
|
430
452
|
|
431
453
|
# Contains runtime daemon metrics, such as OS and kernels and sessions stats.
|
@@ -526,8 +548,8 @@ module Google
|
|
526
548
|
#
|
527
549
|
# A full URL or partial URI. Examples:
|
528
550
|
#
|
529
|
-
# * `https://www.googleapis.com/compute/v1/projects/[project_id]/
|
530
|
-
# * `projects/[project_id]/
|
551
|
+
# * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default`
|
552
|
+
# * `projects/[project_id]/global/networks/default`
|
531
553
|
#
|
532
554
|
# Runtimes are managed resources inside Google Infrastructure.
|
533
555
|
# Runtimes support the following network configurations:
|
@@ -481,6 +481,19 @@ module Google
|
|
481
481
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
482
482
|
end
|
483
483
|
|
484
|
+
# Request for creating a notebook instance diagnostic file.
|
485
|
+
# @!attribute [rw] name
|
486
|
+
# @return [::String]
|
487
|
+
# Required. Format:
|
488
|
+
# `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
489
|
+
# @!attribute [rw] diagnostic_config
|
490
|
+
# @return [::Google::Cloud::Notebooks::V1::DiagnosticConfig]
|
491
|
+
# Required. Defines flags that are used to run the diagnostic tool
|
492
|
+
class DiagnoseInstanceRequest
|
493
|
+
include ::Google::Protobuf::MessageExts
|
494
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
495
|
+
end
|
496
|
+
|
484
497
|
# Response for listing environments.
|
485
498
|
# @!attribute [rw] environments
|
486
499
|
# @return [::Array<::Google::Cloud::Notebooks::V1::Environment>]
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,229 @@
|
|
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
|
+
# `FieldMask` represents a set of symbolic field paths, for example:
|
23
|
+
#
|
24
|
+
# paths: "f.a"
|
25
|
+
# paths: "f.b.d"
|
26
|
+
#
|
27
|
+
# Here `f` represents a field in some root message, `a` and `b`
|
28
|
+
# fields in the message found in `f`, and `d` a field found in the
|
29
|
+
# message in `f.b`.
|
30
|
+
#
|
31
|
+
# Field masks are used to specify a subset of fields that should be
|
32
|
+
# returned by a get operation or modified by an update operation.
|
33
|
+
# Field masks also have a custom JSON encoding (see below).
|
34
|
+
#
|
35
|
+
# # Field Masks in Projections
|
36
|
+
#
|
37
|
+
# When used in the context of a projection, a response message or
|
38
|
+
# sub-message is filtered by the API to only contain those fields as
|
39
|
+
# specified in the mask. For example, if the mask in the previous
|
40
|
+
# example is applied to a response message as follows:
|
41
|
+
#
|
42
|
+
# f {
|
43
|
+
# a : 22
|
44
|
+
# b {
|
45
|
+
# d : 1
|
46
|
+
# x : 2
|
47
|
+
# }
|
48
|
+
# y : 13
|
49
|
+
# }
|
50
|
+
# z: 8
|
51
|
+
#
|
52
|
+
# The result will not contain specific values for fields x,y and z
|
53
|
+
# (their value will be set to the default, and omitted in proto text
|
54
|
+
# output):
|
55
|
+
#
|
56
|
+
#
|
57
|
+
# f {
|
58
|
+
# a : 22
|
59
|
+
# b {
|
60
|
+
# d : 1
|
61
|
+
# }
|
62
|
+
# }
|
63
|
+
#
|
64
|
+
# A repeated field is not allowed except at the last position of a
|
65
|
+
# paths string.
|
66
|
+
#
|
67
|
+
# If a FieldMask object is not present in a get operation, the
|
68
|
+
# operation applies to all fields (as if a FieldMask of all fields
|
69
|
+
# had been specified).
|
70
|
+
#
|
71
|
+
# Note that a field mask does not necessarily apply to the
|
72
|
+
# top-level response message. In case of a REST get operation, the
|
73
|
+
# field mask applies directly to the response, but in case of a REST
|
74
|
+
# list operation, the mask instead applies to each individual message
|
75
|
+
# in the returned resource list. In case of a REST custom method,
|
76
|
+
# other definitions may be used. Where the mask applies will be
|
77
|
+
# clearly documented together with its declaration in the API. In
|
78
|
+
# any case, the effect on the returned resource/resources is required
|
79
|
+
# behavior for APIs.
|
80
|
+
#
|
81
|
+
# # Field Masks in Update Operations
|
82
|
+
#
|
83
|
+
# A field mask in update operations specifies which fields of the
|
84
|
+
# targeted resource are going to be updated. The API is required
|
85
|
+
# to only change the values of the fields as specified in the mask
|
86
|
+
# and leave the others untouched. If a resource is passed in to
|
87
|
+
# describe the updated values, the API ignores the values of all
|
88
|
+
# fields not covered by the mask.
|
89
|
+
#
|
90
|
+
# If a repeated field is specified for an update operation, new values will
|
91
|
+
# be appended to the existing repeated field in the target resource. Note that
|
92
|
+
# a repeated field is only allowed in the last position of a `paths` string.
|
93
|
+
#
|
94
|
+
# If a sub-message is specified in the last position of the field mask for an
|
95
|
+
# update operation, then new value will be merged into the existing sub-message
|
96
|
+
# in the target resource.
|
97
|
+
#
|
98
|
+
# For example, given the target message:
|
99
|
+
#
|
100
|
+
# f {
|
101
|
+
# b {
|
102
|
+
# d: 1
|
103
|
+
# x: 2
|
104
|
+
# }
|
105
|
+
# c: [1]
|
106
|
+
# }
|
107
|
+
#
|
108
|
+
# And an update message:
|
109
|
+
#
|
110
|
+
# f {
|
111
|
+
# b {
|
112
|
+
# d: 10
|
113
|
+
# }
|
114
|
+
# c: [2]
|
115
|
+
# }
|
116
|
+
#
|
117
|
+
# then if the field mask is:
|
118
|
+
#
|
119
|
+
# paths: ["f.b", "f.c"]
|
120
|
+
#
|
121
|
+
# then the result will be:
|
122
|
+
#
|
123
|
+
# f {
|
124
|
+
# b {
|
125
|
+
# d: 10
|
126
|
+
# x: 2
|
127
|
+
# }
|
128
|
+
# c: [1, 2]
|
129
|
+
# }
|
130
|
+
#
|
131
|
+
# An implementation may provide options to override this default behavior for
|
132
|
+
# repeated and message fields.
|
133
|
+
#
|
134
|
+
# In order to reset a field's value to the default, the field must
|
135
|
+
# be in the mask and set to the default value in the provided resource.
|
136
|
+
# Hence, in order to reset all fields of a resource, provide a default
|
137
|
+
# instance of the resource and set all fields in the mask, or do
|
138
|
+
# not provide a mask as described below.
|
139
|
+
#
|
140
|
+
# If a field mask is not present on update, the operation applies to
|
141
|
+
# all fields (as if a field mask of all fields has been specified).
|
142
|
+
# Note that in the presence of schema evolution, this may mean that
|
143
|
+
# fields the client does not know and has therefore not filled into
|
144
|
+
# the request will be reset to their default. If this is unwanted
|
145
|
+
# behavior, a specific service may require a client to always specify
|
146
|
+
# a field mask, producing an error if not.
|
147
|
+
#
|
148
|
+
# As with get operations, the location of the resource which
|
149
|
+
# describes the updated values in the request message depends on the
|
150
|
+
# operation kind. In any case, the effect of the field mask is
|
151
|
+
# required to be honored by the API.
|
152
|
+
#
|
153
|
+
# ## Considerations for HTTP REST
|
154
|
+
#
|
155
|
+
# The HTTP kind of an update operation which uses a field mask must
|
156
|
+
# be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
157
|
+
# (PUT must only be used for full updates).
|
158
|
+
#
|
159
|
+
# # JSON Encoding of Field Masks
|
160
|
+
#
|
161
|
+
# In JSON, a field mask is encoded as a single string where paths are
|
162
|
+
# separated by a comma. Fields name in each path are converted
|
163
|
+
# to/from lower-camel naming conventions.
|
164
|
+
#
|
165
|
+
# As an example, consider the following message declarations:
|
166
|
+
#
|
167
|
+
# message Profile {
|
168
|
+
# User user = 1;
|
169
|
+
# Photo photo = 2;
|
170
|
+
# }
|
171
|
+
# message User {
|
172
|
+
# string display_name = 1;
|
173
|
+
# string address = 2;
|
174
|
+
# }
|
175
|
+
#
|
176
|
+
# In proto a field mask for `Profile` may look as such:
|
177
|
+
#
|
178
|
+
# mask {
|
179
|
+
# paths: "user.display_name"
|
180
|
+
# paths: "photo"
|
181
|
+
# }
|
182
|
+
#
|
183
|
+
# In JSON, the same mask is represented as below:
|
184
|
+
#
|
185
|
+
# {
|
186
|
+
# mask: "user.displayName,photo"
|
187
|
+
# }
|
188
|
+
#
|
189
|
+
# # Field Masks and Oneof Fields
|
190
|
+
#
|
191
|
+
# Field masks treat fields in oneofs just as regular fields. Consider the
|
192
|
+
# following message:
|
193
|
+
#
|
194
|
+
# message SampleMessage {
|
195
|
+
# oneof test_oneof {
|
196
|
+
# string name = 4;
|
197
|
+
# SubMessage sub_message = 9;
|
198
|
+
# }
|
199
|
+
# }
|
200
|
+
#
|
201
|
+
# The field mask can be:
|
202
|
+
#
|
203
|
+
# mask {
|
204
|
+
# paths: "name"
|
205
|
+
# }
|
206
|
+
#
|
207
|
+
# Or:
|
208
|
+
#
|
209
|
+
# mask {
|
210
|
+
# paths: "sub_message"
|
211
|
+
# }
|
212
|
+
#
|
213
|
+
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
214
|
+
# paths.
|
215
|
+
#
|
216
|
+
# ## Field Mask Verification
|
217
|
+
#
|
218
|
+
# The implementation of any API method which has a FieldMask type field in the
|
219
|
+
# request should verify the included field paths, and return an
|
220
|
+
# `INVALID_ARGUMENT` error if any path is unmappable.
|
221
|
+
# @!attribute [rw] paths
|
222
|
+
# @return [::Array<::String>]
|
223
|
+
# The set of field mask paths.
|
224
|
+
class FieldMask
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
@@ -0,0 +1,75 @@
|
|
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 Type
|
22
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
23
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
24
|
+
# are documented at https://github.com/google/cel-spec.
|
25
|
+
#
|
26
|
+
# Example (Comparison):
|
27
|
+
#
|
28
|
+
# title: "Summary size limit"
|
29
|
+
# description: "Determines if a summary is less than 100 chars"
|
30
|
+
# expression: "document.summary.size() < 100"
|
31
|
+
#
|
32
|
+
# Example (Equality):
|
33
|
+
#
|
34
|
+
# title: "Requestor is owner"
|
35
|
+
# description: "Determines if requestor is the document owner"
|
36
|
+
# expression: "document.owner == request.auth.claims.email"
|
37
|
+
#
|
38
|
+
# Example (Logic):
|
39
|
+
#
|
40
|
+
# title: "Public documents"
|
41
|
+
# description: "Determine whether the document should be publicly visible"
|
42
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
43
|
+
#
|
44
|
+
# Example (Data Manipulation):
|
45
|
+
#
|
46
|
+
# title: "Notification string"
|
47
|
+
# description: "Create a notification string with a timestamp."
|
48
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
49
|
+
#
|
50
|
+
# The exact variables and functions that may be referenced within an expression
|
51
|
+
# are determined by the service that evaluates it. See the service
|
52
|
+
# documentation for additional information.
|
53
|
+
# @!attribute [rw] expression
|
54
|
+
# @return [::String]
|
55
|
+
# Textual representation of an expression in Common Expression Language
|
56
|
+
# syntax.
|
57
|
+
# @!attribute [rw] title
|
58
|
+
# @return [::String]
|
59
|
+
# Optional. Title for the expression, i.e. a short string describing
|
60
|
+
# its purpose. This can be used e.g. in UIs which allow to enter the
|
61
|
+
# expression.
|
62
|
+
# @!attribute [rw] description
|
63
|
+
# @return [::String]
|
64
|
+
# Optional. Description of the expression. This is a longer text which
|
65
|
+
# describes the expression, e.g. when hovered over it in a UI.
|
66
|
+
# @!attribute [rw] location
|
67
|
+
# @return [::String]
|
68
|
+
# Optional. String indicating the location of the expression for error
|
69
|
+
# reporting, e.g. a file name and a position in the file.
|
70
|
+
class Expr
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-notebooks-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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-
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -44,6 +44,46 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: google-cloud-location
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.0'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.0'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: google-iam-v1
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0.0'
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.a
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.0'
|
84
|
+
- - "<"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.a
|
47
87
|
- !ruby/object:Gem::Dependency
|
48
88
|
name: google-style
|
49
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,6 +213,7 @@ files:
|
|
173
213
|
- README.md
|
174
214
|
- lib/google-cloud-notebooks-v1.rb
|
175
215
|
- lib/google/cloud/notebooks/v1.rb
|
216
|
+
- lib/google/cloud/notebooks/v1/diagnostic_config_pb.rb
|
176
217
|
- lib/google/cloud/notebooks/v1/environment_pb.rb
|
177
218
|
- lib/google/cloud/notebooks/v1/event_pb.rb
|
178
219
|
- lib/google/cloud/notebooks/v1/execution_pb.rb
|
@@ -196,8 +237,11 @@ files:
|
|
196
237
|
- lib/google/cloud/notebooks/v1/service_services_pb.rb
|
197
238
|
- lib/google/cloud/notebooks/v1/version.rb
|
198
239
|
- proto_docs/README.md
|
240
|
+
- proto_docs/google/api/client.rb
|
199
241
|
- proto_docs/google/api/field_behavior.rb
|
242
|
+
- proto_docs/google/api/launch_stage.rb
|
200
243
|
- proto_docs/google/api/resource.rb
|
244
|
+
- proto_docs/google/cloud/notebooks/v1/diagnostic_config.rb
|
201
245
|
- proto_docs/google/cloud/notebooks/v1/environment.rb
|
202
246
|
- proto_docs/google/cloud/notebooks/v1/event.rb
|
203
247
|
- proto_docs/google/cloud/notebooks/v1/execution.rb
|
@@ -211,8 +255,10 @@ files:
|
|
211
255
|
- proto_docs/google/protobuf/any.rb
|
212
256
|
- proto_docs/google/protobuf/duration.rb
|
213
257
|
- proto_docs/google/protobuf/empty.rb
|
258
|
+
- proto_docs/google/protobuf/field_mask.rb
|
214
259
|
- proto_docs/google/protobuf/timestamp.rb
|
215
260
|
- proto_docs/google/rpc/status.rb
|
261
|
+
- proto_docs/google/type/expr.rb
|
216
262
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
217
263
|
licenses:
|
218
264
|
- Apache-2.0
|