google-apis-notebooks_v1 0.17.0 → 0.21.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: 1f157c90c19457d1c257a900488b84ec33549ca3f6f69bed0bd576c9450b7a09
4
- data.tar.gz: acc66ab1968d2c3e4d5614124d013bd92bcdf19c1dfc63a2d8eb652b2db24d2f
3
+ metadata.gz: c3d45a90a8df6e11e28aefbcdad4ffe0bd7e55de8a7ad74759c85d7a47f22666
4
+ data.tar.gz: 2ca96d8a91d0cec809f9ef78f2c758e494680715207f471f0810422c122c4fef
5
5
  SHA512:
6
- metadata.gz: fc1ed0fe19a296d396d71298a3124278251b9b2531a13ce8a77c20ffa5870057a06cd89fb06a2da083c1ea99ce72b0a9377390d06181d6df6035ff569ba6b51d
7
- data.tar.gz: e12b378594ff24e5be4e4778e811e70cb4268ba58d94a7debe0e1a213ffbe60eb6fb4e9cdc57379dd17f764ea5f769eed558c2ae4918c322f907b70a53d90e66
6
+ metadata.gz: b30f88160ffc7532935f7de16e17dd93c5d9b479479e6573b52ae22e50bad55daaf8f0ec9e571f69e79c7e04986690b97a8067240ee465cb882f99758a29e06b
7
+ data.tar.gz: 0d72d9bbdfdfa6066bad32c05de835e006f9117f493547a298a4bb657b3fb93465ef7db29553c5586f3a150dad538196ebb67d25ff7e1ce1c7857d3e8838ecc8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.21.0 (2022-02-13)
4
+
5
+ * Regenerated from discovery document revision 20220205
6
+
7
+ ### v0.20.0 (2022-01-31)
8
+
9
+ * Regenerated from discovery document revision 20220125
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.19.0 (2022-01-09)
13
+
14
+ * Regenerated from discovery document revision 20220104
15
+ * Unspecified changes
16
+
17
+ ### v0.18.0 (2021-10-25)
18
+
19
+ * Regenerated from discovery document revision 20211019
20
+ * Unspecified changes
21
+
3
22
  ### v0.17.0 (2021-09-21)
4
23
 
5
24
  * Regenerated from discovery document revision 20210916
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/notebooks_v1"
51
51
  client = Google::Apis::NotebooksV1::AIPlatformNotebooksService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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` with a `role`.
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 identities requesting access for a Cloud Platform resource. `
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`. For example, `roles/viewer`, `roles/editor`
106
- # , or `roles/owner`.
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: 'projects/`PROJECT_ID`/
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
@@ -392,6 +392,11 @@ module Google
392
392
  class Event
393
393
  include Google::Apis::Core::Hashable
394
394
 
395
+ # Optional. Event details. This field is used to pass event information.
396
+ # Corresponds to the JSON property `details`
397
+ # @return [Hash<String,String>]
398
+ attr_accessor :details
399
+
395
400
  # Event report time.
396
401
  # Corresponds to the JSON property `reportTime`
397
402
  # @return [String]
@@ -408,6 +413,7 @@ module Google
408
413
 
409
414
  # Update properties of this object
410
415
  def update!(**args)
416
+ @details = args[:details] if args.key?(:details)
411
417
  @report_time = args[:report_time] if args.key?(:report_time)
412
418
  @type = args[:type] if args.key?(:type)
413
419
  end
@@ -507,8 +513,8 @@ module Google
507
513
  attr_accessor :dataproc_parameters
508
514
 
509
515
  # Path to the notebook file to execute. Must be in a Google Cloud Storage bucket.
510
- # Format: gs://`bucket_name`/`folder`/`notebook_file_name` Ex: gs://
511
- # notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
516
+ # Format: `gs://`bucket_name`/`folder`/`notebook_file_name`` Ex: `gs://
517
+ # notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
512
518
  # Corresponds to the JSON property `inputNotebookFile`
513
519
  # @return [String]
514
520
  attr_accessor :input_notebook_file
@@ -518,6 +524,12 @@ module Google
518
524
  # @return [String]
519
525
  attr_accessor :job_type
520
526
 
527
+ # Name of the kernel spec to use. This must be specified if the kernel spec name
528
+ # on the execution target does not match the name in the input notebook file.
529
+ # Corresponds to the JSON property `kernelSpec`
530
+ # @return [String]
531
+ attr_accessor :kernel_spec
532
+
521
533
  # Labels for execution. If execution is scheduled, a field included will be 'nbs-
522
534
  # scheduled'. Otherwise, it is an immediate execution, and an included field
523
535
  # will be 'nbs-immediate'. Use fields to efficiently index between various types
@@ -547,8 +559,8 @@ module Google
547
559
  attr_accessor :master_type
548
560
 
549
561
  # Path to the notebook folder to write to. Must be in a Google Cloud Storage
550
- # bucket path. Format: gs://`bucket_name`/`folder` Ex: gs://notebook_user/
551
- # scheduled_notebooks
562
+ # bucket path. Format: `gs://`bucket_name`/`folder`` Ex: `gs://notebook_user/
563
+ # scheduled_notebooks`
552
564
  # Corresponds to the JSON property `outputNotebookFolder`
553
565
  # @return [String]
554
566
  attr_accessor :output_notebook_folder
@@ -561,7 +573,7 @@ module Google
561
573
  # Parameters to be overridden in the notebook during execution. Ref https://
562
574
  # papermill.readthedocs.io/en/latest/usage-parameterize.html on how to
563
575
  # 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
576
+ # Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml`
565
577
  # Corresponds to the JSON property `paramsYamlFile`
566
578
  # @return [String]
567
579
  attr_accessor :params_yaml_file
@@ -595,6 +607,7 @@ module Google
595
607
  @dataproc_parameters = args[:dataproc_parameters] if args.key?(:dataproc_parameters)
596
608
  @input_notebook_file = args[:input_notebook_file] if args.key?(:input_notebook_file)
597
609
  @job_type = args[:job_type] if args.key?(:job_type)
610
+ @kernel_spec = args[:kernel_spec] if args.key?(:kernel_spec)
598
611
  @labels = args[:labels] if args.key?(:labels)
599
612
  @master_type = args[:master_type] if args.key?(:master_type)
600
613
  @output_notebook_folder = args[:output_notebook_folder] if args.key?(:output_notebook_folder)
@@ -745,6 +758,11 @@ module Google
745
758
  # @return [String]
746
759
  attr_accessor :create_time
747
760
 
761
+ # Output only. Email address of entity that sent original CreateInstance request.
762
+ # Corresponds to the JSON property `creator`
763
+ # @return [String]
764
+ attr_accessor :creator
765
+
748
766
  # Specify a custom Cloud Storage path where the GPU driver is stored. If not
749
767
  # specified, we'll automatically choose from official GPU drivers.
750
768
  # Corresponds to the JSON property `customGpuDriverPath`
@@ -853,8 +871,8 @@ module Google
853
871
  alias_method :no_remove_data_disk?, :no_remove_data_disk
854
872
 
855
873
  # 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/file-
857
- # name).
874
+ # boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/
875
+ # file-name`).
858
876
  # Corresponds to the JSON property `postStartupScript`
859
877
  # @return [String]
860
878
  attr_accessor :post_startup_script
@@ -938,6 +956,7 @@ module Google
938
956
  @boot_disk_type = args[:boot_disk_type] if args.key?(:boot_disk_type)
939
957
  @container_image = args[:container_image] if args.key?(:container_image)
940
958
  @create_time = args[:create_time] if args.key?(:create_time)
959
+ @creator = args[:creator] if args.key?(:creator)
941
960
  @custom_gpu_driver_path = args[:custom_gpu_driver_path] if args.key?(:custom_gpu_driver_path)
942
961
  @data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
943
962
  @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
@@ -1085,9 +1104,9 @@ module Google
1085
1104
  # @return [String]
1086
1105
  attr_accessor :next_page_token
1087
1106
 
1088
- # Executions IDs that could not be reached. For example, ['projects/`project_id`/
1107
+ # Executions IDs that could not be reached. For example: ['projects/`project_id`/
1089
1108
  # location/`location`/executions/imagenet_test1', 'projects/`project_id`/
1090
- # location/`location`/executions/classifier_train1'].
1109
+ # location/`location`/executions/classifier_train1']
1091
1110
  # Corresponds to the JSON property `unreachable`
1092
1111
  # @return [Array<String>]
1093
1112
  attr_accessor :unreachable
@@ -1236,9 +1255,9 @@ module Google
1236
1255
  # @return [Array<Google::Apis::NotebooksV1::Schedule>]
1237
1256
  attr_accessor :schedules
1238
1257
 
1239
- # Schedules that could not be reached. For example, ['projects/`project_id`/
1258
+ # Schedules that could not be reached. For example: ['projects/`project_id`/
1240
1259
  # location/`location`/schedules/monthly_digest', 'projects/`project_id`/location/
1241
- # `location`/schedules/weekly_sentiment'].
1260
+ # `location`/schedules/weekly_sentiment']
1242
1261
  # Corresponds to the JSON property `unreachable`
1243
1262
  # @return [Array<String>]
1244
1263
  attr_accessor :unreachable
@@ -1593,37 +1612,42 @@ module Google
1593
1612
 
1594
1613
  # An Identity and Access Management (IAM) policy, which specifies access
1595
1614
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1596
- # A `binding` binds one or more `members` to a single `role`. Members can be
1597
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1598
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1599
- # role or a user-created custom role. For some types of Google Cloud resources,
1600
- # a `binding` can also specify a `condition`, which is a logical expression that
1601
- # allows access to a resource only if the expression evaluates to `true`. A
1602
- # condition can add constraints based on attributes of the request, the resource,
1603
- # or both. To learn which resources support conditions in their IAM policies,
1604
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1605
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1606
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1607
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1608
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1609
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1610
- # title": "expirable access", "description": "Does not grant access after Sep
1611
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1612
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1613
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1614
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1615
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1616
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1617
- # description: Does not grant access after Sep 2020 expression: request.time <
1618
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1619
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1620
- # google.com/iam/docs/).
1615
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1616
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1617
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1618
+ # an IAM predefined role or a user-created custom role. For some types of Google
1619
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1620
+ # logical expression that allows access to a resource only if the expression
1621
+ # evaluates to `true`. A condition can add constraints based on attributes of
1622
+ # the request, the resource, or both. To learn which resources support
1623
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1624
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1625
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1626
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1627
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1628
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1629
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1630
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1631
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1632
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1633
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1634
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1635
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1636
+ # access description: Does not grant access after Sep 2020 expression: request.
1637
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1638
+ # a description of IAM and its features, see the [IAM documentation](https://
1639
+ # cloud.google.com/iam/docs/).
1621
1640
  class Policy
1622
1641
  include Google::Apis::Core::Hashable
1623
1642
 
1624
- # Associates a list of `members` to a `role`. Optionally, may specify a `
1625
- # condition` that determines how and when the `bindings` are applied. Each of
1626
- # the `bindings` must contain at least one member.
1643
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
1644
+ # specify a `condition` that determines how and when the `bindings` are applied.
1645
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
1646
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
1647
+ # can be Google groups. Each occurrence of a principal counts towards these
1648
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
1649
+ # example.com`, and not to any other principal, then you can add another 1,450
1650
+ # principals to the `bindings` in the `Policy`.
1627
1651
  # Corresponds to the JSON property `bindings`
1628
1652
  # @return [Array<Google::Apis::NotebooksV1::Binding>]
1629
1653
  attr_accessor :bindings
@@ -1781,7 +1805,7 @@ module Google
1781
1805
  end
1782
1806
  end
1783
1807
 
1784
- # Request for reseting a notebook instance
1808
+ # Request for resetting a notebook instance
1785
1809
  class ResetInstanceRequest
1786
1810
  include Google::Apis::Core::Hashable
1787
1811
 
@@ -1794,7 +1818,7 @@ module Google
1794
1818
  end
1795
1819
  end
1796
1820
 
1797
- # Request for reseting a Managed Notebook Runtime.
1821
+ # Request for resetting a Managed Notebook Runtime.
1798
1822
  class ResetRuntimeRequest
1799
1823
  include Google::Apis::Core::Hashable
1800
1824
 
@@ -1860,7 +1884,7 @@ module Google
1860
1884
  # Specifies the selection and configuration of software inside the runtime. The
1861
1885
  # properties to set on runtime. Properties keys are specified in `key:value`
1862
1886
  # format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `
1863
- # report-system-health: true`
1887
+ # enable_health_monitoring: true`
1864
1888
  # Corresponds to the JSON property `softwareConfig`
1865
1889
  # @return [Google::Apis::NotebooksV1::RuntimeSoftwareConfig]
1866
1890
  attr_accessor :software_config
@@ -2052,7 +2076,7 @@ module Google
2052
2076
  # Specifies the selection and configuration of software inside the runtime. The
2053
2077
  # properties to set on runtime. Properties keys are specified in `key:value`
2054
2078
  # format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `
2055
- # report-system-health: true`
2079
+ # enable_health_monitoring: true`
2056
2080
  class RuntimeSoftwareConfig
2057
2081
  include Google::Apis::Core::Hashable
2058
2082
 
@@ -2085,6 +2109,12 @@ module Google
2085
2109
  attr_accessor :install_gpu_driver
2086
2110
  alias_method :install_gpu_driver?, :install_gpu_driver
2087
2111
 
2112
+ # Optional. Use a list of container images to use as Kernels in the notebook
2113
+ # instance.
2114
+ # Corresponds to the JSON property `kernels`
2115
+ # @return [Array<Google::Apis::NotebooksV1::ContainerImage>]
2116
+ attr_accessor :kernels
2117
+
2088
2118
  # Cron expression in UTC timezone, used to schedule instance auto upgrade.
2089
2119
  # Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
2090
2120
  # Corresponds to the JSON property `notebookUpgradeSchedule`
@@ -2092,12 +2122,19 @@ module Google
2092
2122
  attr_accessor :notebook_upgrade_schedule
2093
2123
 
2094
2124
  # 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/file-
2096
- # name).
2125
+ # boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/
2126
+ # file-name`).
2097
2127
  # Corresponds to the JSON property `postStartupScript`
2098
2128
  # @return [String]
2099
2129
  attr_accessor :post_startup_script
2100
2130
 
2131
+ # Output only. Bool indicating whether an newer image is available in an image
2132
+ # family.
2133
+ # Corresponds to the JSON property `upgradeable`
2134
+ # @return [Boolean]
2135
+ attr_accessor :upgradeable
2136
+ alias_method :upgradeable?, :upgradeable
2137
+
2101
2138
  def initialize(**args)
2102
2139
  update!(**args)
2103
2140
  end
@@ -2109,8 +2146,10 @@ module Google
2109
2146
  @idle_shutdown = args[:idle_shutdown] if args.key?(:idle_shutdown)
2110
2147
  @idle_shutdown_timeout = args[:idle_shutdown_timeout] if args.key?(:idle_shutdown_timeout)
2111
2148
  @install_gpu_driver = args[:install_gpu_driver] if args.key?(:install_gpu_driver)
2149
+ @kernels = args[:kernels] if args.key?(:kernels)
2112
2150
  @notebook_upgrade_schedule = args[:notebook_upgrade_schedule] if args.key?(:notebook_upgrade_schedule)
2113
2151
  @post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
2152
+ @upgradeable = args[:upgradeable] if args.key?(:upgradeable)
2114
2153
  end
2115
2154
  end
2116
2155
 
@@ -2231,31 +2270,31 @@ module Google
2231
2270
 
2232
2271
  # An Identity and Access Management (IAM) policy, which specifies access
2233
2272
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2234
- # A `binding` binds one or more `members` to a single `role`. Members can be
2235
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
2236
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
2237
- # role or a user-created custom role. For some types of Google Cloud resources,
2238
- # a `binding` can also specify a `condition`, which is a logical expression that
2239
- # allows access to a resource only if the expression evaluates to `true`. A
2240
- # condition can add constraints based on attributes of the request, the resource,
2241
- # or both. To learn which resources support conditions in their IAM policies,
2242
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2243
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
2244
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2245
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2246
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
2247
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
2248
- # title": "expirable access", "description": "Does not grant access after Sep
2249
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
2250
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
2251
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
2252
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
2253
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2254
- # roles/resourcemanager.organizationViewer condition: title: expirable access
2255
- # description: Does not grant access after Sep 2020 expression: request.time <
2256
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
2257
- # description of IAM and its features, see the [IAM documentation](https://cloud.
2258
- # google.com/iam/docs/).
2273
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
2274
+ # Principals can be user accounts, service accounts, Google groups, and domains (
2275
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
2276
+ # an IAM predefined role or a user-created custom role. For some types of Google
2277
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
2278
+ # logical expression that allows access to a resource only if the expression
2279
+ # evaluates to `true`. A condition can add constraints based on attributes of
2280
+ # the request, the resource, or both. To learn which resources support
2281
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2282
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2283
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2284
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2285
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2286
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2287
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
2288
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2289
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2290
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
2291
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2292
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2293
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2294
+ # access description: Does not grant access after Sep 2020 expression: request.
2295
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2296
+ # a description of IAM and its features, see the [IAM documentation](https://
2297
+ # cloud.google.com/iam/docs/).
2259
2298
  # Corresponds to the JSON property `policy`
2260
2299
  # @return [Google::Apis::NotebooksV1::Policy]
2261
2300
  attr_accessor :policy
@@ -2573,6 +2612,44 @@ module Google
2573
2612
  end
2574
2613
  end
2575
2614
 
2615
+ # Request for adding/changing metadata items for an instance.
2616
+ class UpdateInstanceMetadataItemsRequest
2617
+ include Google::Apis::Core::Hashable
2618
+
2619
+ # Metadata items to add/update for the instance.
2620
+ # Corresponds to the JSON property `items`
2621
+ # @return [Hash<String,String>]
2622
+ attr_accessor :items
2623
+
2624
+ def initialize(**args)
2625
+ update!(**args)
2626
+ end
2627
+
2628
+ # Update properties of this object
2629
+ def update!(**args)
2630
+ @items = args[:items] if args.key?(:items)
2631
+ end
2632
+ end
2633
+
2634
+ # Response for adding/changing metadata items for an instance.
2635
+ class UpdateInstanceMetadataItemsResponse
2636
+ include Google::Apis::Core::Hashable
2637
+
2638
+ # Map of items that were added/updated to/in the metadata.
2639
+ # Corresponds to the JSON property `items`
2640
+ # @return [Hash<String,String>]
2641
+ attr_accessor :items
2642
+
2643
+ def initialize(**args)
2644
+ update!(**args)
2645
+ end
2646
+
2647
+ # Update properties of this object
2648
+ def update!(**args)
2649
+ @items = args[:items] if args.key?(:items)
2650
+ end
2651
+ end
2652
+
2576
2653
  # Request for updating the Shielded Instance config for a notebook instance. You
2577
2654
  # can only use this method on a stopped instance
2578
2655
  class UpdateShieldedInstanceConfigRequest
@@ -2671,6 +2748,12 @@ module Google
2671
2748
  class UpgradeInstanceInternalRequest
2672
2749
  include Google::Apis::Core::Hashable
2673
2750
 
2751
+ # Optional. The optional UpgradeType. Setting this field will search for
2752
+ # additional compute images to upgrade this instance.
2753
+ # Corresponds to the JSON property `type`
2754
+ # @return [String]
2755
+ attr_accessor :type
2756
+
2674
2757
  # Required. The VM hardware token for authenticating the VM. https://cloud.
2675
2758
  # google.com/compute/docs/instances/verifying-instance-identity
2676
2759
  # Corresponds to the JSON property `vmId`
@@ -2683,6 +2766,7 @@ module Google
2683
2766
 
2684
2767
  # Update properties of this object
2685
2768
  def update!(**args)
2769
+ @type = args[:type] if args.key?(:type)
2686
2770
  @vm_id = args[:vm_id] if args.key?(:vm_id)
2687
2771
  end
2688
2772
  end
@@ -2691,12 +2775,19 @@ module Google
2691
2775
  class UpgradeInstanceRequest
2692
2776
  include Google::Apis::Core::Hashable
2693
2777
 
2778
+ # Optional. The optional UpgradeType. Setting this field will search for
2779
+ # additional compute images to upgrade this instance.
2780
+ # Corresponds to the JSON property `type`
2781
+ # @return [String]
2782
+ attr_accessor :type
2783
+
2694
2784
  def initialize(**args)
2695
2785
  update!(**args)
2696
2786
  end
2697
2787
 
2698
2788
  # Update properties of this object
2699
2789
  def update!(**args)
2790
+ @type = args[:type] if args.key?(:type)
2700
2791
  end
2701
2792
  end
2702
2793
 
@@ -2704,6 +2795,12 @@ module Google
2704
2795
  class VertexAiParameters
2705
2796
  include Google::Apis::Core::Hashable
2706
2797
 
2798
+ # Environment variables. At most 100 environment variables can be specified and
2799
+ # unique. Example: GCP_BUCKET=gs://my-bucket/samples/
2800
+ # Corresponds to the JSON property `env`
2801
+ # @return [Hash<String,String>]
2802
+ attr_accessor :env
2803
+
2707
2804
  # The full name of the Compute Engine [network](/compute/docs/networks-and-
2708
2805
  # firewalls#networks) to which the Job should be peered. For example, `projects/
2709
2806
  # 12345/global/networks/myVPC`. [Format](https://cloud.google.com/compute/docs/
@@ -2721,6 +2818,7 @@ module Google
2721
2818
 
2722
2819
  # Update properties of this object
2723
2820
  def update!(**args)
2821
+ @env = args[:env] if args.key?(:env)
2724
2822
  @network = args[:network] if args.key?(:network)
2725
2823
  end
2726
2824
  end
@@ -2770,7 +2868,8 @@ module Google
2770
2868
  # @return [Google::Apis::NotebooksV1::RuntimeAcceleratorConfig]
2771
2869
  attr_accessor :accelerator_config
2772
2870
 
2773
- # Optional. Use a list of container images to start the notebook instance.
2871
+ # Optional. Use a list of container images to use as Kernels in the notebook
2872
+ # instance.
2774
2873
  # Corresponds to the JSON property `containerImages`
2775
2874
  # @return [Array<Google::Apis::NotebooksV1::ContainerImage>]
2776
2875
  attr_accessor :container_images
@@ -2845,6 +2944,17 @@ module Google
2845
2944
  # @return [String]
2846
2945
  attr_accessor :nic_type
2847
2946
 
2947
+ # Optional. Reserved IP Range name is used for VPC Peering. The subnetwork
2948
+ # allocation will use the range *name* if it's assigned. Example: managed-
2949
+ # notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud
2950
+ # compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24
2951
+ # \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$
2952
+ # NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be:
2953
+ # `managed-notebooks-range-c`
2954
+ # Corresponds to the JSON property `reservedIpRange`
2955
+ # @return [String]
2956
+ attr_accessor :reserved_ip_range
2957
+
2848
2958
  # A set of Shielded Instance options. Check [Images using supported Shielded VM
2849
2959
  # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
2850
2960
  # vm). Not all combinations are valid.
@@ -2892,6 +3002,7 @@ module Google
2892
3002
  @metadata = args[:metadata] if args.key?(:metadata)
2893
3003
  @network = args[:network] if args.key?(:network)
2894
3004
  @nic_type = args[:nic_type] if args.key?(:nic_type)
3005
+ @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
2895
3006
  @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
2896
3007
  @subnet = args[:subnet] if args.key?(:subnet)
2897
3008
  @tags = args[:tags] if args.key?(:tags)
@@ -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.17.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210916"
25
+ REVISION = "20220205"
26
26
  end
27
27
  end
28
28
  end
@@ -394,6 +394,18 @@ module Google
394
394
  include Google::Apis::Core::JsonObjectSupport
395
395
  end
396
396
 
397
+ class UpdateInstanceMetadataItemsRequest
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
403
+ class UpdateInstanceMetadataItemsResponse
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
397
409
  class UpdateShieldedInstanceConfigRequest
398
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
411
 
@@ -531,6 +543,7 @@ module Google
531
543
  class Event
532
544
  # @private
533
545
  class Representation < Google::Apis::Core::JsonRepresentation
546
+ hash :details, as: 'details'
534
547
  property :report_time, as: 'reportTime'
535
548
  property :type, as: 'type'
536
549
  end
@@ -562,6 +575,7 @@ module Google
562
575
 
563
576
  property :input_notebook_file, as: 'inputNotebookFile'
564
577
  property :job_type, as: 'jobType'
578
+ property :kernel_spec, as: 'kernelSpec'
565
579
  hash :labels, as: 'labels'
566
580
  property :master_type, as: 'masterType'
567
581
  property :output_notebook_folder, as: 'outputNotebookFolder'
@@ -609,6 +623,7 @@ module Google
609
623
  property :container_image, as: 'containerImage', class: Google::Apis::NotebooksV1::ContainerImage, decorator: Google::Apis::NotebooksV1::ContainerImage::Representation
610
624
 
611
625
  property :create_time, as: 'createTime'
626
+ property :creator, as: 'creator'
612
627
  property :custom_gpu_driver_path, as: 'customGpuDriverPath'
613
628
  property :data_disk_size_gb, :numeric_string => true, as: 'dataDiskSizeGb'
614
629
  property :data_disk_type, as: 'dataDiskType'
@@ -929,8 +944,11 @@ module Google
929
944
  property :idle_shutdown, as: 'idleShutdown'
930
945
  property :idle_shutdown_timeout, as: 'idleShutdownTimeout'
931
946
  property :install_gpu_driver, as: 'installGpuDriver'
947
+ collection :kernels, as: 'kernels', class: Google::Apis::NotebooksV1::ContainerImage, decorator: Google::Apis::NotebooksV1::ContainerImage::Representation
948
+
932
949
  property :notebook_upgrade_schedule, as: 'notebookUpgradeSchedule'
933
950
  property :post_startup_script, as: 'postStartupScript'
951
+ property :upgradeable, as: 'upgradeable'
934
952
  end
935
953
  end
936
954
 
@@ -1069,6 +1087,20 @@ module Google
1069
1087
  end
1070
1088
  end
1071
1089
 
1090
+ class UpdateInstanceMetadataItemsRequest
1091
+ # @private
1092
+ class Representation < Google::Apis::Core::JsonRepresentation
1093
+ hash :items, as: 'items'
1094
+ end
1095
+ end
1096
+
1097
+ class UpdateInstanceMetadataItemsResponse
1098
+ # @private
1099
+ class Representation < Google::Apis::Core::JsonRepresentation
1100
+ hash :items, as: 'items'
1101
+ end
1102
+ end
1103
+
1072
1104
  class UpdateShieldedInstanceConfigRequest
1073
1105
  # @private
1074
1106
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1096,6 +1128,7 @@ module Google
1096
1128
  class UpgradeInstanceInternalRequest
1097
1129
  # @private
1098
1130
  class Representation < Google::Apis::Core::JsonRepresentation
1131
+ property :type, as: 'type'
1099
1132
  property :vm_id, as: 'vmId'
1100
1133
  end
1101
1134
  end
@@ -1103,12 +1136,14 @@ module Google
1103
1136
  class UpgradeInstanceRequest
1104
1137
  # @private
1105
1138
  class Representation < Google::Apis::Core::JsonRepresentation
1139
+ property :type, as: 'type'
1106
1140
  end
1107
1141
  end
1108
1142
 
1109
1143
  class VertexAiParameters
1110
1144
  # @private
1111
1145
  class Representation < Google::Apis::Core::JsonRepresentation
1146
+ hash :env, as: 'env'
1112
1147
  property :network, as: 'network'
1113
1148
  end
1114
1149
  end
@@ -1141,6 +1176,7 @@ module Google
1141
1176
  hash :metadata, as: 'metadata'
1142
1177
  property :network, as: 'network'
1143
1178
  property :nic_type, as: 'nicType'
1179
+ property :reserved_ip_range, as: 'reservedIpRange'
1144
1180
  property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig::Representation
1145
1181
 
1146
1182
  property :subnet, as: 'subnet'
@@ -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: "schedule_id="
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
@@ -506,13 +506,16 @@ module Google
506
506
  # REQUIRED: The resource for which the policy is being requested. See the
507
507
  # operation documentation for the appropriate value for this field.
508
508
  # @param [Fixnum] options_requested_policy_version
509
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
510
- # 3. Requests specifying an invalid value will be rejected. Requests for
511
- # policies with any conditional bindings must specify version 3. Policies
512
- # without any conditional bindings may specify any valid value or leave the
513
- # field unset. To learn which resources support conditions in their IAM policies,
514
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
515
- # resource-policies).
509
+ # Optional. The maximum policy version that will be used to format the policy.
510
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
511
+ # rejected. Requests for policies with any conditional role bindings must
512
+ # specify version 3. Policies with no conditional role bindings may specify any
513
+ # valid value or leave the field unset. The policy in the response might use the
514
+ # policy version that you specified, or it might use a lower policy version. For
515
+ # example, if you specify version 3, but the policy has no conditional role
516
+ # bindings, the response uses version 1. To learn which resources support
517
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
518
+ # google.com/iam/help/conditions/resource-policies).
516
519
  # @param [String] fields
517
520
  # Selector specifying which fields to include in a partial response.
518
521
  # @param [String] quota_user
@@ -576,6 +579,9 @@ module Google
576
579
  # @param [String] notebook_instance
577
580
  # Required. Format: `projects/`project_id`/locations/`location`/instances/`
578
581
  # instance_id``
582
+ # @param [String] type
583
+ # Optional. The optional UpgradeType. Setting this field will search for
584
+ # additional compute images to upgrade this instance.
579
585
  # @param [String] fields
580
586
  # Selector specifying which fields to include in a partial response.
581
587
  # @param [String] quota_user
@@ -593,11 +599,12 @@ module Google
593
599
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
594
600
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
595
601
  # @raise [Google::Apis::AuthorizationError] Authorization is required
596
- def is_project_location_instance_upgradeable(notebook_instance, fields: nil, quota_user: nil, options: nil, &block)
602
+ def is_project_location_instance_upgradeable(notebook_instance, type: nil, fields: nil, quota_user: nil, options: nil, &block)
597
603
  command = make_simple_command(:get, 'v1/{+notebookInstance}:isUpgradeable', options)
598
604
  command.response_representation = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse::Representation
599
605
  command.response_class = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse
600
606
  command.params['notebookInstance'] = notebook_instance unless notebook_instance.nil?
607
+ command.query['type'] = type unless type.nil?
601
608
  command.query['fields'] = fields unless fields.nil?
602
609
  command.query['quotaUser'] = quota_user unless quota_user.nil?
603
610
  execute_or_queue_command(command, &block)
@@ -1058,6 +1065,40 @@ module Google
1058
1065
  execute_or_queue_command(command, &block)
1059
1066
  end
1060
1067
 
1068
+ # Add/update metadata items for an instance.
1069
+ # @param [String] name
1070
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
1071
+ # instance_id``
1072
+ # @param [Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsRequest] update_instance_metadata_items_request_object
1073
+ # @param [String] fields
1074
+ # Selector specifying which fields to include in a partial response.
1075
+ # @param [String] quota_user
1076
+ # Available to use for quota purposes for server-side applications. Can be any
1077
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1078
+ # @param [Google::Apis::RequestOptions] options
1079
+ # Request-specific options
1080
+ #
1081
+ # @yield [result, err] Result & error if block supplied
1082
+ # @yieldparam result [Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse] parsed result object
1083
+ # @yieldparam err [StandardError] error object if request failed
1084
+ #
1085
+ # @return [Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse]
1086
+ #
1087
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1088
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1089
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1090
+ def update_project_location_instance_metadata_items(name, update_instance_metadata_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1091
+ command = make_simple_command(:patch, 'v1/{+name}:updateMetadataItems', options)
1092
+ command.request_representation = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsRequest::Representation
1093
+ command.request_object = update_instance_metadata_items_request_object
1094
+ command.response_representation = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse::Representation
1095
+ command.response_class = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse
1096
+ command.params['name'] = name unless name.nil?
1097
+ command.query['fields'] = fields unless fields.nil?
1098
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1099
+ execute_or_queue_command(command, &block)
1100
+ end
1101
+
1061
1102
  # Updates the Shielded instance configuration of a single Instance.
1062
1103
  # @param [String] name
1063
1104
  # Required. Format: `projects/`project_id`/locations/`location`/instances/`
@@ -1410,6 +1451,50 @@ module Google
1410
1451
  execute_or_queue_command(command, &block)
1411
1452
  end
1412
1453
 
1454
+ # Gets the access control policy for a resource. Returns an empty policy if the
1455
+ # resource exists and does not have a policy set.
1456
+ # @param [String] resource
1457
+ # REQUIRED: The resource for which the policy is being requested. See the
1458
+ # operation documentation for the appropriate value for this field.
1459
+ # @param [Fixnum] options_requested_policy_version
1460
+ # Optional. The maximum policy version that will be used to format the policy.
1461
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1462
+ # rejected. Requests for policies with any conditional role bindings must
1463
+ # specify version 3. Policies with no conditional role bindings may specify any
1464
+ # valid value or leave the field unset. The policy in the response might use the
1465
+ # policy version that you specified, or it might use a lower policy version. For
1466
+ # example, if you specify version 3, but the policy has no conditional role
1467
+ # bindings, the response uses version 1. To learn which resources support
1468
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1469
+ # google.com/iam/help/conditions/resource-policies).
1470
+ # @param [String] fields
1471
+ # Selector specifying which fields to include in a partial response.
1472
+ # @param [String] quota_user
1473
+ # Available to use for quota purposes for server-side applications. Can be any
1474
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1475
+ # @param [Google::Apis::RequestOptions] options
1476
+ # Request-specific options
1477
+ #
1478
+ # @yield [result, err] Result & error if block supplied
1479
+ # @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
1480
+ # @yieldparam err [StandardError] error object if request failed
1481
+ #
1482
+ # @return [Google::Apis::NotebooksV1::Policy]
1483
+ #
1484
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1485
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1486
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1487
+ def get_project_location_runtime_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1488
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1489
+ command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
1490
+ command.response_class = Google::Apis::NotebooksV1::Policy
1491
+ command.params['resource'] = resource unless resource.nil?
1492
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1493
+ command.query['fields'] = fields unless fields.nil?
1494
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1495
+ execute_or_queue_command(command, &block)
1496
+ end
1497
+
1413
1498
  # Lists Runtimes in a given project and location.
1414
1499
  # @param [String] parent
1415
1500
  # Required. Format: `parent=projects/`project_id`/locations/`location``
@@ -1515,6 +1600,42 @@ module Google
1515
1600
  execute_or_queue_command(command, &block)
1516
1601
  end
1517
1602
 
1603
+ # Sets the access control policy on the specified resource. Replaces any
1604
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1605
+ # PERMISSION_DENIED` errors.
1606
+ # @param [String] resource
1607
+ # REQUIRED: The resource for which the policy is being specified. See the
1608
+ # operation documentation for the appropriate value for this field.
1609
+ # @param [Google::Apis::NotebooksV1::SetIamPolicyRequest] set_iam_policy_request_object
1610
+ # @param [String] fields
1611
+ # Selector specifying which fields to include in a partial response.
1612
+ # @param [String] quota_user
1613
+ # Available to use for quota purposes for server-side applications. Can be any
1614
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1615
+ # @param [Google::Apis::RequestOptions] options
1616
+ # Request-specific options
1617
+ #
1618
+ # @yield [result, err] Result & error if block supplied
1619
+ # @yieldparam result [Google::Apis::NotebooksV1::Policy] parsed result object
1620
+ # @yieldparam err [StandardError] error object if request failed
1621
+ #
1622
+ # @return [Google::Apis::NotebooksV1::Policy]
1623
+ #
1624
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1625
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1626
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1627
+ def set_runtime_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1628
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1629
+ command.request_representation = Google::Apis::NotebooksV1::SetIamPolicyRequest::Representation
1630
+ command.request_object = set_iam_policy_request_object
1631
+ command.response_representation = Google::Apis::NotebooksV1::Policy::Representation
1632
+ command.response_class = Google::Apis::NotebooksV1::Policy
1633
+ command.params['resource'] = resource unless resource.nil?
1634
+ command.query['fields'] = fields unless fields.nil?
1635
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1636
+ execute_or_queue_command(command, &block)
1637
+ end
1638
+
1518
1639
  # Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume"
1519
1640
  # on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-
1520
1641
  # start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-
@@ -1623,6 +1744,44 @@ module Google
1623
1744
  execute_or_queue_command(command, &block)
1624
1745
  end
1625
1746
 
1747
+ # Returns permissions that a caller has on the specified resource. If the
1748
+ # resource does not exist, this will return an empty set of permissions, not a `
1749
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1750
+ # permission-aware UIs and command-line tools, not for authorization checking.
1751
+ # This operation may "fail open" without warning.
1752
+ # @param [String] resource
1753
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1754
+ # operation documentation for the appropriate value for this field.
1755
+ # @param [Google::Apis::NotebooksV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1756
+ # @param [String] fields
1757
+ # Selector specifying which fields to include in a partial response.
1758
+ # @param [String] quota_user
1759
+ # Available to use for quota purposes for server-side applications. Can be any
1760
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1761
+ # @param [Google::Apis::RequestOptions] options
1762
+ # Request-specific options
1763
+ #
1764
+ # @yield [result, err] Result & error if block supplied
1765
+ # @yieldparam result [Google::Apis::NotebooksV1::TestIamPermissionsResponse] parsed result object
1766
+ # @yieldparam err [StandardError] error object if request failed
1767
+ #
1768
+ # @return [Google::Apis::NotebooksV1::TestIamPermissionsResponse]
1769
+ #
1770
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1771
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1772
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1773
+ def test_runtime_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1774
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1775
+ command.request_representation = Google::Apis::NotebooksV1::TestIamPermissionsRequest::Representation
1776
+ command.request_object = test_iam_permissions_request_object
1777
+ command.response_representation = Google::Apis::NotebooksV1::TestIamPermissionsResponse::Representation
1778
+ command.response_class = Google::Apis::NotebooksV1::TestIamPermissionsResponse
1779
+ command.params['resource'] = resource unless resource.nil?
1780
+ command.query['fields'] = fields unless fields.nil?
1781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1782
+ execute_or_queue_command(command, &block)
1783
+ end
1784
+
1626
1785
  # Creates a new Scheduled Notebook in a given project and location.
1627
1786
  # @param [String] parent
1628
1787
  # 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.17.0
4
+ version: 0.21.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-09-22 00:00:00.000000000 Z
11
+ date: 2022-02-14 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/master/generated/google-apis-notebooks_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.17.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1
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.21.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:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Notebooks API V1