google-apis-notebooks_v1 0.24.0 → 0.27.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: 111ad3a19efffe17053a09b90f6513901880cef96a2bf94566cd518112ecedbe
4
- data.tar.gz: 4494d0db8106198c3985bb707fe91011c9a7ae818d4030d55e13afaeb3c4e347
3
+ metadata.gz: 50f7ac82edf6badfca333046ff90388459283b481e46622f590f6c8accf69a43
4
+ data.tar.gz: 9b3cd9a28645d22487547bb98268332551af1ab766c58f15b2c791219be9d9a9
5
5
  SHA512:
6
- metadata.gz: 6bba3a7e88288ec57527e85c41ce0f95d138efee2325aa53468130eb26011e602f6688cc01710a86c30e8fa989dc04143aaea95922993c7bdbc5507b47b5a30d
7
- data.tar.gz: b75052cc851e24c777c332173765f952b539a427615fc5c3afe82866a9b10dbbd80409fcf1643173fbbd7e89fda2704298ff7074936e36662524a02cef18d29a
6
+ metadata.gz: 79f482efeb24c8dd860be095ec202811b30e9878ec6a91924501824781cb5160adfd65d66bd41326793d01ff1de5a5a0816e1711dd8e0d4b85a0559272491386
7
+ data.tar.gz: ac2abc7346dbf18885c692a5ba9a41c6f52902db8748fda1c53bd98a12e6debba183a7507b11d360f974df2a6d3fb459fe65e8a4f0d0b6f800e2b693cf92780d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.27.0 (2022-05-22)
4
+
5
+ * Regenerated from discovery document revision 20220517
6
+
7
+ ### v0.26.0 (2022-04-16)
8
+
9
+ * Regenerated from discovery document revision 20220415
10
+
11
+ ### v0.25.0 (2022-03-26)
12
+
13
+ * Regenerated from discovery document revision 20220319
14
+
3
15
  ### v0.24.0 (2022-03-12)
4
16
 
5
17
  * Regenerated from discovery document revision 20220303
@@ -72,7 +72,7 @@ module Google
72
72
  # @return [Google::Apis::NotebooksV1::Expr]
73
73
  attr_accessor :condition
74
74
 
75
- # Specifies the principals requesting access for a Cloud Platform resource. `
75
+ # Specifies the principals requesting access for a Google Cloud 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
@@ -306,8 +306,7 @@ module Google
306
306
  # A generic empty message that you can re-use to avoid defining duplicated empty
307
307
  # messages in your APIs. A typical example is to use it as the request or the
308
308
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
309
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
310
- # `Empty` is empty JSON object ````.
309
+ # protobuf.Empty) returns (google.protobuf.Empty); `
311
310
  class Empty
312
311
  include Google::Apis::Core::Hashable
313
312
 
@@ -1729,6 +1728,51 @@ module Google
1729
1728
  end
1730
1729
  end
1731
1730
 
1731
+ # Request for getting a new access token.
1732
+ class RefreshRuntimeTokenInternalRequest
1733
+ include Google::Apis::Core::Hashable
1734
+
1735
+ # Required. The VM hardware token for authenticating the VM. https://cloud.
1736
+ # google.com/compute/docs/instances/verifying-instance-identity
1737
+ # Corresponds to the JSON property `vmId`
1738
+ # @return [String]
1739
+ attr_accessor :vm_id
1740
+
1741
+ def initialize(**args)
1742
+ update!(**args)
1743
+ end
1744
+
1745
+ # Update properties of this object
1746
+ def update!(**args)
1747
+ @vm_id = args[:vm_id] if args.key?(:vm_id)
1748
+ end
1749
+ end
1750
+
1751
+ # Response with a new access token.
1752
+ class RefreshRuntimeTokenInternalResponse
1753
+ include Google::Apis::Core::Hashable
1754
+
1755
+ # The OAuth 2.0 access token.
1756
+ # Corresponds to the JSON property `accessToken`
1757
+ # @return [String]
1758
+ attr_accessor :access_token
1759
+
1760
+ # Output only. Token expiration time.
1761
+ # Corresponds to the JSON property `expireTime`
1762
+ # @return [String]
1763
+ attr_accessor :expire_time
1764
+
1765
+ def initialize(**args)
1766
+ update!(**args)
1767
+ end
1768
+
1769
+ # Update properties of this object
1770
+ def update!(**args)
1771
+ @access_token = args[:access_token] if args.key?(:access_token)
1772
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
1773
+ end
1774
+ end
1775
+
1732
1776
  # Request for registering a notebook instance.
1733
1777
  class RegisterInstanceRequest
1734
1778
  include Google::Apis::Core::Hashable
@@ -2164,6 +2208,11 @@ module Google
2164
2208
  # @return [String]
2165
2209
  attr_accessor :post_startup_script
2166
2210
 
2211
+ # Behavior for the post startup script.
2212
+ # Corresponds to the JSON property `postStartupScriptBehavior`
2213
+ # @return [String]
2214
+ attr_accessor :post_startup_script_behavior
2215
+
2167
2216
  # Output only. Bool indicating whether an newer image is available in an image
2168
2217
  # family.
2169
2218
  # Corresponds to the JSON property `upgradeable`
@@ -2185,6 +2234,7 @@ module Google
2185
2234
  @kernels = args[:kernels] if args.key?(:kernels)
2186
2235
  @notebook_upgrade_schedule = args[:notebook_upgrade_schedule] if args.key?(:notebook_upgrade_schedule)
2187
2236
  @post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
2237
+ @post_startup_script_behavior = args[:post_startup_script_behavior] if args.key?(:post_startup_script_behavior)
2188
2238
  @upgradeable = args[:upgradeable] if args.key?(:upgradeable)
2189
2239
  end
2190
2240
  end
@@ -2599,7 +2649,7 @@ module Google
2599
2649
  include Google::Apis::Core::Hashable
2600
2650
 
2601
2651
  # The set of permissions to check for the `resource`. Permissions with wildcards
2602
- # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
2652
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
2603
2653
  # Overview](https://cloud.google.com/iam/docs/overview#permissions).
2604
2654
  # Corresponds to the JSON property `permissions`
2605
2655
  # @return [Array<String>]
@@ -3088,7 +3138,7 @@ module Google
3088
3138
  attr_accessor :image_name
3089
3139
 
3090
3140
  # Required. The name of the Google Cloud project that this VM image belongs to.
3091
- # Format: `projects/`project_id``
3141
+ # Format: ``project_id``
3092
3142
  # Corresponds to the JSON property `project`
3093
3143
  # @return [String]
3094
3144
  attr_accessor :project
@@ -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.24.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220303"
25
+ REVISION = "20220517"
26
26
  end
27
27
  end
28
28
  end
@@ -214,6 +214,18 @@ module Google
214
214
  include Google::Apis::Core::JsonObjectSupport
215
215
  end
216
216
 
217
+ class RefreshRuntimeTokenInternalRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class RefreshRuntimeTokenInternalResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
217
229
  class RegisterInstanceRequest
218
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
231
 
@@ -839,6 +851,21 @@ module Google
839
851
  end
840
852
  end
841
853
 
854
+ class RefreshRuntimeTokenInternalRequest
855
+ # @private
856
+ class Representation < Google::Apis::Core::JsonRepresentation
857
+ property :vm_id, as: 'vmId'
858
+ end
859
+ end
860
+
861
+ class RefreshRuntimeTokenInternalResponse
862
+ # @private
863
+ class Representation < Google::Apis::Core::JsonRepresentation
864
+ property :access_token, as: 'accessToken'
865
+ property :expire_time, as: 'expireTime'
866
+ end
867
+ end
868
+
842
869
  class RegisterInstanceRequest
843
870
  # @private
844
871
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -963,6 +990,7 @@ module Google
963
990
 
964
991
  property :notebook_upgrade_schedule, as: 'notebookUpgradeSchedule'
965
992
  property :post_startup_script, as: 'postStartupScript'
993
+ property :post_startup_script_behavior, as: 'postStartupScriptBehavior'
966
994
  property :upgradeable, as: 'upgradeable'
967
995
  end
968
996
  end
@@ -84,8 +84,8 @@ module Google
84
84
  # The resource that owns the locations collection, if applicable.
85
85
  # @param [String] filter
86
86
  # A filter to narrow down results to a preferred subset. The filtering language
87
- # accepts strings like "displayName=tokyo", and is documented in more detail in [
88
- # AIP-160](https://google.aip.dev/160).
87
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
88
+ # in [AIP-160](https://google.aip.dev/160).
89
89
  # @param [Fixnum] page_size
90
90
  # The maximum number of results to return. If not set, the service selects a
91
91
  # default.
@@ -503,8 +503,9 @@ module Google
503
503
  # Gets the access control policy for a resource. Returns an empty policy if the
504
504
  # resource exists and does not have a policy set.
505
505
  # @param [String] resource
506
- # REQUIRED: The resource for which the policy is being requested. See the
507
- # operation documentation for the appropriate value for this field.
506
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
507
+ # names](https://cloud.google.com/apis/design/resource_names) for the
508
+ # appropriate value for this field.
508
509
  # @param [Fixnum] options_requested_policy_version
509
510
  # Optional. The maximum policy version that will be used to format the policy.
510
511
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -825,8 +826,9 @@ module Google
825
826
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
826
827
  # PERMISSION_DENIED` errors.
827
828
  # @param [String] resource
828
- # REQUIRED: The resource for which the policy is being specified. See the
829
- # operation documentation for the appropriate value for this field.
829
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
830
+ # names](https://cloud.google.com/apis/design/resource_names) for the
831
+ # appropriate value for this field.
830
832
  # @param [Google::Apis::NotebooksV1::SetIamPolicyRequest] set_iam_policy_request_object
831
833
  # @param [String] fields
832
834
  # Selector specifying which fields to include in a partial response.
@@ -999,8 +1001,9 @@ module Google
999
1001
  # permission-aware UIs and command-line tools, not for authorization checking.
1000
1002
  # This operation may "fail open" without warning.
1001
1003
  # @param [String] resource
1002
- # REQUIRED: The resource for which the policy detail is being requested. See the
1003
- # operation documentation for the appropriate value for this field.
1004
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1005
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1006
+ # appropriate value for this field.
1004
1007
  # @param [Google::Apis::NotebooksV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1005
1008
  # @param [String] fields
1006
1009
  # Selector specifying which fields to include in a partial response.
@@ -1460,8 +1463,9 @@ module Google
1460
1463
  # Gets the access control policy for a resource. Returns an empty policy if the
1461
1464
  # resource exists and does not have a policy set.
1462
1465
  # @param [String] resource
1463
- # REQUIRED: The resource for which the policy is being requested. See the
1464
- # operation documentation for the appropriate value for this field.
1466
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1467
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1468
+ # appropriate value for this field.
1465
1469
  # @param [Fixnum] options_requested_policy_version
1466
1470
  # Optional. The maximum policy version that will be used to format the policy.
1467
1471
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -1538,6 +1542,89 @@ module Google
1538
1542
  execute_or_queue_command(command, &block)
1539
1543
  end
1540
1544
 
1545
+ # Update Notebook Runtime configuration.
1546
+ # @param [String] name
1547
+ # Output only. The resource name of the runtime. Format: `projects/`project`/
1548
+ # locations/`location`/runtimes/`runtimeId``
1549
+ # @param [Google::Apis::NotebooksV1::Runtime] runtime_object
1550
+ # @param [String] request_id
1551
+ # Idempotent request UUID.
1552
+ # @param [String] update_mask
1553
+ # Required. Specifies the path, relative to `Runtime`, of the field to update.
1554
+ # For example, to change the software configuration kernels, the `update_mask`
1555
+ # parameter would be specified as `software_config.kernels`, and the `PATCH`
1556
+ # request body would specify the new value, as follows: ` "software_config":` "
1557
+ # kernels": [` 'repository': 'gcr.io/deeplearning-platform-release/pytorch-gpu',
1558
+ # 'tag': 'latest' `], ` ` Currently, only the following fields can be updated: -
1559
+ # software_config.kernels - software_config.post_startup_script -
1560
+ # software_config.custom_gpu_driver_path - software_config.idle_shutdown -
1561
+ # software_config.idle_shutdown_timeout
1562
+ # @param [String] fields
1563
+ # Selector specifying which fields to include in a partial response.
1564
+ # @param [String] quota_user
1565
+ # Available to use for quota purposes for server-side applications. Can be any
1566
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1567
+ # @param [Google::Apis::RequestOptions] options
1568
+ # Request-specific options
1569
+ #
1570
+ # @yield [result, err] Result & error if block supplied
1571
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
1572
+ # @yieldparam err [StandardError] error object if request failed
1573
+ #
1574
+ # @return [Google::Apis::NotebooksV1::Operation]
1575
+ #
1576
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1577
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1578
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1579
+ def patch_project_location_runtime(name, runtime_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1580
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1581
+ command.request_representation = Google::Apis::NotebooksV1::Runtime::Representation
1582
+ command.request_object = runtime_object
1583
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
1584
+ command.response_class = Google::Apis::NotebooksV1::Operation
1585
+ command.params['name'] = name unless name.nil?
1586
+ command.query['requestId'] = request_id unless request_id.nil?
1587
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1588
+ command.query['fields'] = fields unless fields.nil?
1589
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1590
+ execute_or_queue_command(command, &block)
1591
+ end
1592
+
1593
+ # Gets an access token for the consumer service account that the customer
1594
+ # attached to the runtime. Only accessible from the tenant instance.
1595
+ # @param [String] name
1596
+ # Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
1597
+ # runtime_id``
1598
+ # @param [Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalRequest] refresh_runtime_token_internal_request_object
1599
+ # @param [String] fields
1600
+ # Selector specifying which fields to include in a partial response.
1601
+ # @param [String] quota_user
1602
+ # Available to use for quota purposes for server-side applications. Can be any
1603
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1604
+ # @param [Google::Apis::RequestOptions] options
1605
+ # Request-specific options
1606
+ #
1607
+ # @yield [result, err] Result & error if block supplied
1608
+ # @yieldparam result [Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse] parsed result object
1609
+ # @yieldparam err [StandardError] error object if request failed
1610
+ #
1611
+ # @return [Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse]
1612
+ #
1613
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1614
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1615
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1616
+ def refresh_runtime_token_internal(name, refresh_runtime_token_internal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1617
+ command = make_simple_command(:post, 'v1/{+name}:refreshRuntimeTokenInternal', options)
1618
+ command.request_representation = Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalRequest::Representation
1619
+ command.request_object = refresh_runtime_token_internal_request_object
1620
+ command.response_representation = Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse::Representation
1621
+ command.response_class = Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse
1622
+ command.params['name'] = name unless name.nil?
1623
+ command.query['fields'] = fields unless fields.nil?
1624
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1625
+ execute_or_queue_command(command, &block)
1626
+ end
1627
+
1541
1628
  # Report and process a runtime event.
1542
1629
  # @param [String] name
1543
1630
  # Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
@@ -1610,8 +1697,9 @@ module Google
1610
1697
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1611
1698
  # PERMISSION_DENIED` errors.
1612
1699
  # @param [String] resource
1613
- # REQUIRED: The resource for which the policy is being specified. See the
1614
- # operation documentation for the appropriate value for this field.
1700
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1701
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1702
+ # appropriate value for this field.
1615
1703
  # @param [Google::Apis::NotebooksV1::SetIamPolicyRequest] set_iam_policy_request_object
1616
1704
  # @param [String] fields
1617
1705
  # Selector specifying which fields to include in a partial response.
@@ -1756,8 +1844,9 @@ module Google
1756
1844
  # permission-aware UIs and command-line tools, not for authorization checking.
1757
1845
  # This operation may "fail open" without warning.
1758
1846
  # @param [String] resource
1759
- # REQUIRED: The resource for which the policy detail is being requested. See the
1760
- # operation documentation for the appropriate value for this field.
1847
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1848
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1849
+ # appropriate value for this field.
1761
1850
  # @param [Google::Apis::NotebooksV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1762
1851
  # @param [String] fields
1763
1852
  # Selector specifying which fields to include in a partial response.
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.24.0
4
+ version: 0.27.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-03-14 00:00:00.000000000 Z
11
+ date: 2022-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.27.0
62
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: []