google-apis-notebooks_v1 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/notebooks_v1/classes.rb +91 -72
- data/lib/google/apis/notebooks_v1/gem_version.rb +2 -2
- data/lib/google/apis/notebooks_v1/representations.rb +2 -0
- data/lib/google/apis/notebooks_v1/service.rb +116 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 894ad2b301172e56625b457029b94b638cb4dcebf4589b9ffcb5d17881be95e6
|
4
|
+
data.tar.gz: c2b407e798448b13376c6cbfe3ff7ae912fe897baabeaee956580d333e27d4cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a90564f02432e1eb82516ff2d2cfd14c78fe5fb0d858e7c85a68ac5df95ceb65e550ddc7e75436b2f2b70412ac855971f6176a5d2466112c1841425dbba35f
|
7
|
+
data.tar.gz: ef3ae4427e602705cdafc94471a87bc3471599caf57076460c32c75e9d2dc209139041bb26d94e7a70f292ed7fcedab681cc1012c948c356f76ed432a716cc94
|
data/CHANGELOG.md
CHANGED
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Notebooks service in particular.)
|
67
67
|
|
@@ -49,7 +49,7 @@ module Google
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
# Associates `members
|
52
|
+
# Associates `members`, or principals, with a `role`.
|
53
53
|
class Binding
|
54
54
|
include Google::Apis::Core::Hashable
|
55
55
|
|
@@ -72,7 +72,7 @@ module Google
|
|
72
72
|
# @return [Google::Apis::NotebooksV1::Expr]
|
73
73
|
attr_accessor :condition
|
74
74
|
|
75
|
-
# Specifies the
|
75
|
+
# Specifies the principals requesting access for a Cloud Platform resource. `
|
76
76
|
# members` can have the following values: * `allUsers`: A special identifier
|
77
77
|
# that represents anyone who is on the internet; with or without a Google
|
78
78
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -102,8 +102,8 @@ module Google
|
|
102
102
|
# @return [Array<String>]
|
103
103
|
attr_accessor :members
|
104
104
|
|
105
|
-
# Role that is assigned to `members
|
106
|
-
#
|
105
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
106
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
107
107
|
# Corresponds to the JSON property `role`
|
108
108
|
# @return [String]
|
109
109
|
attr_accessor :role
|
@@ -165,8 +165,8 @@ module Google
|
|
165
165
|
class DataprocParameters
|
166
166
|
include Google::Apis::Core::Hashable
|
167
167
|
|
168
|
-
# URI for cluster used to run Dataproc execution. Format:
|
169
|
-
# regions/`REGION`/clusters/`CLUSTER_NAME
|
168
|
+
# URI for cluster used to run Dataproc execution. Format: `projects/`PROJECT_ID`/
|
169
|
+
# regions/`REGION`/clusters/`CLUSTER_NAME``
|
170
170
|
# Corresponds to the JSON property `cluster`
|
171
171
|
# @return [String]
|
172
172
|
attr_accessor :cluster
|
@@ -507,8 +507,8 @@ module Google
|
|
507
507
|
attr_accessor :dataproc_parameters
|
508
508
|
|
509
509
|
# Path to the notebook file to execute. Must be in a Google Cloud Storage bucket.
|
510
|
-
# Format: gs://`bucket_name`/`folder`/`notebook_file_name
|
511
|
-
# notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
|
510
|
+
# Format: `gs://`bucket_name`/`folder`/`notebook_file_name`` Ex: `gs://
|
511
|
+
# notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
|
512
512
|
# Corresponds to the JSON property `inputNotebookFile`
|
513
513
|
# @return [String]
|
514
514
|
attr_accessor :input_notebook_file
|
@@ -518,6 +518,12 @@ module Google
|
|
518
518
|
# @return [String]
|
519
519
|
attr_accessor :job_type
|
520
520
|
|
521
|
+
# Name of the kernel spec to use. This must be specified if the kernel spec name
|
522
|
+
# on the execution target does not match the name in the input notebook file.
|
523
|
+
# Corresponds to the JSON property `kernelSpec`
|
524
|
+
# @return [String]
|
525
|
+
attr_accessor :kernel_spec
|
526
|
+
|
521
527
|
# Labels for execution. If execution is scheduled, a field included will be 'nbs-
|
522
528
|
# scheduled'. Otherwise, it is an immediate execution, and an included field
|
523
529
|
# will be 'nbs-immediate'. Use fields to efficiently index between various types
|
@@ -547,8 +553,8 @@ module Google
|
|
547
553
|
attr_accessor :master_type
|
548
554
|
|
549
555
|
# Path to the notebook folder to write to. Must be in a Google Cloud Storage
|
550
|
-
# bucket path. Format: gs://`bucket_name`/`folder
|
551
|
-
# scheduled_notebooks
|
556
|
+
# bucket path. Format: `gs://`bucket_name`/`folder`` Ex: `gs://notebook_user/
|
557
|
+
# scheduled_notebooks`
|
552
558
|
# Corresponds to the JSON property `outputNotebookFolder`
|
553
559
|
# @return [String]
|
554
560
|
attr_accessor :output_notebook_folder
|
@@ -561,7 +567,7 @@ module Google
|
|
561
567
|
# Parameters to be overridden in the notebook during execution. Ref https://
|
562
568
|
# papermill.readthedocs.io/en/latest/usage-parameterize.html on how to
|
563
569
|
# specifying parameters in the input notebook and pass them here in an YAML file.
|
564
|
-
# Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml
|
570
|
+
# Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml`
|
565
571
|
# Corresponds to the JSON property `paramsYamlFile`
|
566
572
|
# @return [String]
|
567
573
|
attr_accessor :params_yaml_file
|
@@ -595,6 +601,7 @@ module Google
|
|
595
601
|
@dataproc_parameters = args[:dataproc_parameters] if args.key?(:dataproc_parameters)
|
596
602
|
@input_notebook_file = args[:input_notebook_file] if args.key?(:input_notebook_file)
|
597
603
|
@job_type = args[:job_type] if args.key?(:job_type)
|
604
|
+
@kernel_spec = args[:kernel_spec] if args.key?(:kernel_spec)
|
598
605
|
@labels = args[:labels] if args.key?(:labels)
|
599
606
|
@master_type = args[:master_type] if args.key?(:master_type)
|
600
607
|
@output_notebook_folder = args[:output_notebook_folder] if args.key?(:output_notebook_folder)
|
@@ -853,8 +860,8 @@ module Google
|
|
853
860
|
alias_method :no_remove_data_disk?, :no_remove_data_disk
|
854
861
|
|
855
862
|
# Path to a Bash script that automatically runs after a notebook instance fully
|
856
|
-
# boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/
|
857
|
-
# name).
|
863
|
+
# boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/
|
864
|
+
# file-name`).
|
858
865
|
# Corresponds to the JSON property `postStartupScript`
|
859
866
|
# @return [String]
|
860
867
|
attr_accessor :post_startup_script
|
@@ -1085,9 +1092,9 @@ module Google
|
|
1085
1092
|
# @return [String]
|
1086
1093
|
attr_accessor :next_page_token
|
1087
1094
|
|
1088
|
-
# Executions IDs that could not be reached. For example
|
1095
|
+
# Executions IDs that could not be reached. For example: ['projects/`project_id`/
|
1089
1096
|
# location/`location`/executions/imagenet_test1', 'projects/`project_id`/
|
1090
|
-
# location/`location`/executions/classifier_train1']
|
1097
|
+
# location/`location`/executions/classifier_train1']
|
1091
1098
|
# Corresponds to the JSON property `unreachable`
|
1092
1099
|
# @return [Array<String>]
|
1093
1100
|
attr_accessor :unreachable
|
@@ -1236,9 +1243,9 @@ module Google
|
|
1236
1243
|
# @return [Array<Google::Apis::NotebooksV1::Schedule>]
|
1237
1244
|
attr_accessor :schedules
|
1238
1245
|
|
1239
|
-
# Schedules that could not be reached. For example
|
1246
|
+
# Schedules that could not be reached. For example: ['projects/`project_id`/
|
1240
1247
|
# location/`location`/schedules/monthly_digest', 'projects/`project_id`/location/
|
1241
|
-
# `location`/schedules/weekly_sentiment']
|
1248
|
+
# `location`/schedules/weekly_sentiment']
|
1242
1249
|
# Corresponds to the JSON property `unreachable`
|
1243
1250
|
# @return [Array<String>]
|
1244
1251
|
attr_accessor :unreachable
|
@@ -1593,37 +1600,42 @@ module Google
|
|
1593
1600
|
|
1594
1601
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1595
1602
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1596
|
-
# A `binding` binds one or more `members
|
1597
|
-
# user accounts, service accounts, Google groups, and domains (
|
1598
|
-
# A `role` is a named list of permissions; each `role` can be
|
1599
|
-
# role or a user-created custom role. For some types of Google
|
1600
|
-
# a `binding` can also specify a `condition`, which is a
|
1601
|
-
# allows access to a resource only if the expression
|
1602
|
-
# condition can add constraints based on attributes of
|
1603
|
-
# or both. To learn which resources support
|
1604
|
-
# see the [IAM documentation](https://cloud.
|
1605
|
-
# resource-policies). **JSON example:** ` "
|
1606
|
-
# resourcemanager.organizationAdmin", "members": [
|
1607
|
-
# group:admins@example.com", "domain:google.com", "
|
1608
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
1609
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
1610
|
-
# title": "expirable access", "description": "Does not grant
|
1611
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1612
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1613
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
1614
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1615
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
1616
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
1617
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
1618
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1619
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
1620
|
-
# google.com/iam/docs/).
|
1603
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
1604
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
1605
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
1606
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
1607
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
1608
|
+
# logical expression that allows access to a resource only if the expression
|
1609
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
1610
|
+
# the request, the resource, or both. To learn which resources support
|
1611
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1612
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
1613
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1614
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1615
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1616
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1617
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1618
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1619
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1620
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
1621
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1622
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
1623
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
1624
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
1625
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1626
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
1627
|
+
# cloud.google.com/iam/docs/).
|
1621
1628
|
class Policy
|
1622
1629
|
include Google::Apis::Core::Hashable
|
1623
1630
|
|
1624
|
-
# Associates a list of `members
|
1625
|
-
# condition` that determines how and when the `bindings` are applied.
|
1626
|
-
# the `bindings` must contain at least one
|
1631
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
1632
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
1633
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
1634
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
1635
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
1636
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
1637
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
1638
|
+
# principals to the `bindings` in the `Policy`.
|
1627
1639
|
# Corresponds to the JSON property `bindings`
|
1628
1640
|
# @return [Array<Google::Apis::NotebooksV1::Binding>]
|
1629
1641
|
attr_accessor :bindings
|
@@ -2092,8 +2104,8 @@ module Google
|
|
2092
2104
|
attr_accessor :notebook_upgrade_schedule
|
2093
2105
|
|
2094
2106
|
# Path to a Bash script that automatically runs after a notebook instance fully
|
2095
|
-
# boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/
|
2096
|
-
# name).
|
2107
|
+
# boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/
|
2108
|
+
# file-name`).
|
2097
2109
|
# Corresponds to the JSON property `postStartupScript`
|
2098
2110
|
# @return [String]
|
2099
2111
|
attr_accessor :post_startup_script
|
@@ -2231,31 +2243,31 @@ module Google
|
|
2231
2243
|
|
2232
2244
|
# An Identity and Access Management (IAM) policy, which specifies access
|
2233
2245
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
2234
|
-
# A `binding` binds one or more `members
|
2235
|
-
# user accounts, service accounts, Google groups, and domains (
|
2236
|
-
# A `role` is a named list of permissions; each `role` can be
|
2237
|
-
# role or a user-created custom role. For some types of Google
|
2238
|
-
# a `binding` can also specify a `condition`, which is a
|
2239
|
-
# allows access to a resource only if the expression
|
2240
|
-
# condition can add constraints based on attributes of
|
2241
|
-
# or both. To learn which resources support
|
2242
|
-
# see the [IAM documentation](https://cloud.
|
2243
|
-
# resource-policies). **JSON example:** ` "
|
2244
|
-
# resourcemanager.organizationAdmin", "members": [
|
2245
|
-
# group:admins@example.com", "domain:google.com", "
|
2246
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
2247
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
2248
|
-
# title": "expirable access", "description": "Does not grant
|
2249
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2250
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
2251
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
2252
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2253
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
2254
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
2255
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
2256
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
2257
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
2258
|
-
# google.com/iam/docs/).
|
2246
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
2247
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
2248
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
2249
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
2250
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
2251
|
+
# logical expression that allows access to a resource only if the expression
|
2252
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
2253
|
+
# the request, the resource, or both. To learn which resources support
|
2254
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2255
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
2256
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
2257
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
2258
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
2259
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
2260
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
2261
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2262
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
2263
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
2264
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2265
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
2266
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
2267
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
2268
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
2269
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
2270
|
+
# cloud.google.com/iam/docs/).
|
2259
2271
|
# Corresponds to the JSON property `policy`
|
2260
2272
|
# @return [Google::Apis::NotebooksV1::Policy]
|
2261
2273
|
attr_accessor :policy
|
@@ -2704,6 +2716,12 @@ module Google
|
|
2704
2716
|
class VertexAiParameters
|
2705
2717
|
include Google::Apis::Core::Hashable
|
2706
2718
|
|
2719
|
+
# Environment variables. At most 100 environment variables can be specified and
|
2720
|
+
# unique. Example: GCP_BUCKET=gs://my-bucket/samples/
|
2721
|
+
# Corresponds to the JSON property `env`
|
2722
|
+
# @return [Hash<String,String>]
|
2723
|
+
attr_accessor :env
|
2724
|
+
|
2707
2725
|
# The full name of the Compute Engine [network](/compute/docs/networks-and-
|
2708
2726
|
# firewalls#networks) to which the Job should be peered. For example, `projects/
|
2709
2727
|
# 12345/global/networks/myVPC`. [Format](https://cloud.google.com/compute/docs/
|
@@ -2721,6 +2739,7 @@ module Google
|
|
2721
2739
|
|
2722
2740
|
# Update properties of this object
|
2723
2741
|
def update!(**args)
|
2742
|
+
@env = args[:env] if args.key?(:env)
|
2724
2743
|
@network = args[:network] if args.key?(:network)
|
2725
2744
|
end
|
2726
2745
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NotebooksV1
|
18
18
|
# Version of the google-apis-notebooks_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211019"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -562,6 +562,7 @@ module Google
|
|
562
562
|
|
563
563
|
property :input_notebook_file, as: 'inputNotebookFile'
|
564
564
|
property :job_type, as: 'jobType'
|
565
|
+
property :kernel_spec, as: 'kernelSpec'
|
565
566
|
hash :labels, as: 'labels'
|
566
567
|
property :master_type, as: 'masterType'
|
567
568
|
property :output_notebook_folder, as: 'outputNotebookFolder'
|
@@ -1109,6 +1110,7 @@ module Google
|
|
1109
1110
|
class VertexAiParameters
|
1110
1111
|
# @private
|
1111
1112
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1113
|
+
hash :env, as: 'env'
|
1112
1114
|
property :network, as: 'network'
|
1113
1115
|
end
|
1114
1116
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
364
364
|
# @param [String] filter
|
365
365
|
# Filter applied to resulting executions. Currently only supports filtering
|
366
|
-
# executions by a specified schedule_id. Format:
|
366
|
+
# executions by a specified schedule_id. Format: `schedule_id=`
|
367
367
|
# @param [String] order_by
|
368
368
|
# Sort by field.
|
369
369
|
# @param [Fixnum] page_size
|
@@ -1410,6 +1410,47 @@ module Google
|
|
1410
1410
|
execute_or_queue_command(command, &block)
|
1411
1411
|
end
|
1412
1412
|
|
1413
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1414
|
+
# resource exists and does not have a policy set.
|
1415
|
+
# @param [String] resource
|
1416
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
1417
|
+
# operation documentation for the appropriate value for this field.
|
1418
|
+
# @param [Fixnum] options_requested_policy_version
|
1419
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
1420
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
1421
|
+
# policies with any conditional bindings must specify version 3. Policies
|
1422
|
+
# without any conditional bindings may specify any valid value or leave the
|
1423
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
1424
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
1425
|
+
# resource-policies).
|
1426
|
+
# @param [String] fields
|
1427
|
+
# Selector specifying which fields to include in a partial response.
|
1428
|
+
# @param [String] quota_user
|
1429
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1430
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1431
|
+
# @param [Google::Apis::RequestOptions] options
|
1432
|
+
# Request-specific options
|
1433
|
+
#
|
1434
|
+
# @yield [result, err] Result & error if block supplied
|
1435
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
|
1436
|
+
# @yieldparam err [StandardError] error object if request failed
|
1437
|
+
#
|
1438
|
+
# @return [Google::Apis::NotebooksV1::Policy]
|
1439
|
+
#
|
1440
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1441
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1442
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1443
|
+
def get_project_location_runtime_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1444
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1445
|
+
command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
|
1446
|
+
command.response_class = Google::Apis::NotebooksV1::Policy
|
1447
|
+
command.params['resource'] = resource unless resource.nil?
|
1448
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1449
|
+
command.query['fields'] = fields unless fields.nil?
|
1450
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1451
|
+
execute_or_queue_command(command, &block)
|
1452
|
+
end
|
1453
|
+
|
1413
1454
|
# Lists Runtimes in a given project and location.
|
1414
1455
|
# @param [String] parent
|
1415
1456
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
@@ -1515,6 +1556,42 @@ module Google
|
|
1515
1556
|
execute_or_queue_command(command, &block)
|
1516
1557
|
end
|
1517
1558
|
|
1559
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1560
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1561
|
+
# PERMISSION_DENIED` errors.
|
1562
|
+
# @param [String] resource
|
1563
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1564
|
+
# operation documentation for the appropriate value for this field.
|
1565
|
+
# @param [Google::Apis::NotebooksV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1566
|
+
# @param [String] fields
|
1567
|
+
# Selector specifying which fields to include in a partial response.
|
1568
|
+
# @param [String] quota_user
|
1569
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1570
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1571
|
+
# @param [Google::Apis::RequestOptions] options
|
1572
|
+
# Request-specific options
|
1573
|
+
#
|
1574
|
+
# @yield [result, err] Result & error if block supplied
|
1575
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
|
1576
|
+
# @yieldparam err [StandardError] error object if request failed
|
1577
|
+
#
|
1578
|
+
# @return [Google::Apis::NotebooksV1::Policy]
|
1579
|
+
#
|
1580
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1581
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1582
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1583
|
+
def set_runtime_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1584
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1585
|
+
command.request_representation = Google::Apis::NotebooksV1::SetIamPolicyRequest::Representation
|
1586
|
+
command.request_object = set_iam_policy_request_object
|
1587
|
+
command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
|
1588
|
+
command.response_class = Google::Apis::NotebooksV1::Policy
|
1589
|
+
command.params['resource'] = resource unless resource.nil?
|
1590
|
+
command.query['fields'] = fields unless fields.nil?
|
1591
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1592
|
+
execute_or_queue_command(command, &block)
|
1593
|
+
end
|
1594
|
+
|
1518
1595
|
# Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume"
|
1519
1596
|
# on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-
|
1520
1597
|
# start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-
|
@@ -1623,6 +1700,44 @@ module Google
|
|
1623
1700
|
execute_or_queue_command(command, &block)
|
1624
1701
|
end
|
1625
1702
|
|
1703
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1704
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1705
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1706
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1707
|
+
# This operation may "fail open" without warning.
|
1708
|
+
# @param [String] resource
|
1709
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1710
|
+
# operation documentation for the appropriate value for this field.
|
1711
|
+
# @param [Google::Apis::NotebooksV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1712
|
+
# @param [String] fields
|
1713
|
+
# Selector specifying which fields to include in a partial response.
|
1714
|
+
# @param [String] quota_user
|
1715
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1716
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1717
|
+
# @param [Google::Apis::RequestOptions] options
|
1718
|
+
# Request-specific options
|
1719
|
+
#
|
1720
|
+
# @yield [result, err] Result & error if block supplied
|
1721
|
+
# @yieldparam result [Google::Apis::NotebooksV1::TestIamPermissionsResponse] parsed result object
|
1722
|
+
# @yieldparam err [StandardError] error object if request failed
|
1723
|
+
#
|
1724
|
+
# @return [Google::Apis::NotebooksV1::TestIamPermissionsResponse]
|
1725
|
+
#
|
1726
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1727
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1728
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1729
|
+
def test_runtime_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1730
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1731
|
+
command.request_representation = Google::Apis::NotebooksV1::TestIamPermissionsRequest::Representation
|
1732
|
+
command.request_object = test_iam_permissions_request_object
|
1733
|
+
command.response_representation = Google::Apis::NotebooksV1::TestIamPermissionsResponse::Representation
|
1734
|
+
command.response_class = Google::Apis::NotebooksV1::TestIamPermissionsResponse
|
1735
|
+
command.params['resource'] = resource unless resource.nil?
|
1736
|
+
command.query['fields'] = fields unless fields.nil?
|
1737
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1738
|
+
execute_or_queue_command(command, &block)
|
1739
|
+
end
|
1740
|
+
|
1626
1741
|
# Creates a new Scheduled Notebook in a given project and location.
|
1627
1742
|
# @param [String] parent
|
1628
1743
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-notebooks_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.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: 2021-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.18.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|