google-apis-notebooks_v1 0.7.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/notebooks_v1.rb +2 -2
- data/lib/google/apis/notebooks_v1/classes.rb +53 -1
- data/lib/google/apis/notebooks_v1/gem_version.rb +3 -3
- data/lib/google/apis/notebooks_v1/representations.rb +29 -0
- data/lib/google/apis/notebooks_v1/service.rb +36 -2
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10452921032e5ce604c6b86e4902fd224f9bbf74e9bb57125ad8a370e2734002
|
4
|
+
data.tar.gz: f4dc00c434435b7d66f36feaa2ce5cba9bdcc54c9a2905c5e329045ceff89a53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80dbbdf7e381c4e0e45fd958e0ec42b2f3013371a24f7841a6244bc9526c42e6acfa1fd526050de9792165a4c6dfb78a3101cc8b7b2f0187284196718a1a4467
|
7
|
+
data.tar.gz: ba48dd90a206275301bccdaa6ab00e454badec7d006404c2e82c9b057093e988170097471212ca7fd6595c82faa595c60aaaa6459f3217fdd58859761765d2cb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-notebooks_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-07-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210626
|
6
|
+
* Regenerated using generator version 0.4.0
|
7
|
+
|
8
|
+
### v0.11.0 (2021-06-24)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.10.0 (2021-06-15)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210610
|
15
|
+
|
16
|
+
### v0.9.0 (2021-06-09)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210603
|
19
|
+
* Regenerated using generator version 0.3.0
|
20
|
+
|
21
|
+
### v0.8.0 (2021-05-19)
|
22
|
+
|
23
|
+
* Unspecified changes
|
24
|
+
|
3
25
|
### v0.7.0 (2021-04-28)
|
4
26
|
|
5
27
|
* Regenerated from discovery document revision 20210422
|
data/OVERVIEW.md
CHANGED
@@ -79,7 +79,7 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
|
|
79
79
|
|
80
80
|
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
|
81
81
|
|
82
|
-
The [product documentation](https://cloud.google.com/
|
82
|
+
The [product documentation](https://cloud.google.com/notebooks/docs/) may provide guidance regarding the preferred client library to use.
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
@@ -21,9 +21,9 @@ module Google
|
|
21
21
|
module Apis
|
22
22
|
# Notebooks API
|
23
23
|
#
|
24
|
-
#
|
24
|
+
# Notebooks API is used to manage notebook resources in Google Cloud.
|
25
25
|
#
|
26
|
-
# @see https://cloud.google.com/
|
26
|
+
# @see https://cloud.google.com/notebooks/docs/
|
27
27
|
module NotebooksV1
|
28
28
|
# Version of the Notebooks API this client connects to.
|
29
29
|
# This is NOT the gem version.
|
@@ -393,6 +393,11 @@ module Google
|
|
393
393
|
# @return [Google::Apis::NotebooksV1::ExecutionTemplate]
|
394
394
|
attr_accessor :execution_template
|
395
395
|
|
396
|
+
# Output only. The URI of the external job used to execute the notebook.
|
397
|
+
# Corresponds to the JSON property `jobUri`
|
398
|
+
# @return [String]
|
399
|
+
attr_accessor :job_uri
|
400
|
+
|
396
401
|
# Output only. The resource name of the execute. Format: `projects/`project_id`/
|
397
402
|
# locations/`location`/execution/`execution_id`
|
398
403
|
# Corresponds to the JSON property `name`
|
@@ -424,6 +429,7 @@ module Google
|
|
424
429
|
@description = args[:description] if args.key?(:description)
|
425
430
|
@display_name = args[:display_name] if args.key?(:display_name)
|
426
431
|
@execution_template = args[:execution_template] if args.key?(:execution_template)
|
432
|
+
@job_uri = args[:job_uri] if args.key?(:job_uri)
|
427
433
|
@name = args[:name] if args.key?(:name)
|
428
434
|
@output_notebook_file = args[:output_notebook_file] if args.key?(:output_notebook_file)
|
429
435
|
@state = args[:state] if args.key?(:state)
|
@@ -891,6 +897,33 @@ module Google
|
|
891
897
|
end
|
892
898
|
end
|
893
899
|
|
900
|
+
# Notebook instance configurations that can be updated.
|
901
|
+
class InstanceConfig
|
902
|
+
include Google::Apis::Core::Hashable
|
903
|
+
|
904
|
+
# Verifies core internal services are running. More info: go/notebooks-health
|
905
|
+
# Corresponds to the JSON property `enableHealthMonitoring`
|
906
|
+
# @return [Boolean]
|
907
|
+
attr_accessor :enable_health_monitoring
|
908
|
+
alias_method :enable_health_monitoring?, :enable_health_monitoring
|
909
|
+
|
910
|
+
# Cron expression in UTC timezone, used to schedule instance auto upgrade.
|
911
|
+
# Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
|
912
|
+
# Corresponds to the JSON property `notebookUpgradeSchedule`
|
913
|
+
# @return [String]
|
914
|
+
attr_accessor :notebook_upgrade_schedule
|
915
|
+
|
916
|
+
def initialize(**args)
|
917
|
+
update!(**args)
|
918
|
+
end
|
919
|
+
|
920
|
+
# Update properties of this object
|
921
|
+
def update!(**args)
|
922
|
+
@enable_health_monitoring = args[:enable_health_monitoring] if args.key?(:enable_health_monitoring)
|
923
|
+
@notebook_upgrade_schedule = args[:notebook_upgrade_schedule] if args.key?(:notebook_upgrade_schedule)
|
924
|
+
end
|
925
|
+
end
|
926
|
+
|
894
927
|
# Response for checking if a notebook instance is upgradeable.
|
895
928
|
class IsInstanceUpgradeableResponse
|
896
929
|
include Google::Apis::Core::Hashable
|
@@ -1970,7 +2003,7 @@ module Google
|
|
1970
2003
|
attr_accessor :description
|
1971
2004
|
|
1972
2005
|
# Output only. Display name used for UI purposes. Name can only contain
|
1973
|
-
# alphanumeric characters, hyphens
|
2006
|
+
# alphanumeric characters, hyphens '-', and underscores '_'.
|
1974
2007
|
# Corresponds to the JSON property `displayName`
|
1975
2008
|
# @return [String]
|
1976
2009
|
attr_accessor :display_name
|
@@ -2387,6 +2420,25 @@ module Google
|
|
2387
2420
|
end
|
2388
2421
|
end
|
2389
2422
|
|
2423
|
+
# Request for updating instance configurations.
|
2424
|
+
class UpdateInstanceConfigRequest
|
2425
|
+
include Google::Apis::Core::Hashable
|
2426
|
+
|
2427
|
+
# Notebook instance configurations that can be updated.
|
2428
|
+
# Corresponds to the JSON property `config`
|
2429
|
+
# @return [Google::Apis::NotebooksV1::InstanceConfig]
|
2430
|
+
attr_accessor :config
|
2431
|
+
|
2432
|
+
def initialize(**args)
|
2433
|
+
update!(**args)
|
2434
|
+
end
|
2435
|
+
|
2436
|
+
# Update properties of this object
|
2437
|
+
def update!(**args)
|
2438
|
+
@config = args[:config] if args.key?(:config)
|
2439
|
+
end
|
2440
|
+
end
|
2441
|
+
|
2390
2442
|
# Request for updating the Shielded Instance config for a notebook instance. You
|
2391
2443
|
# can only use this method on a stopped instance
|
2392
2444
|
class UpdateShieldedInstanceConfigRequest
|
@@ -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.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210626"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -106,6 +106,12 @@ module Google
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
+
class InstanceConfig
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
109
115
|
class IsInstanceUpgradeableResponse
|
110
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
117
|
|
@@ -358,6 +364,12 @@ module Google
|
|
358
364
|
include Google::Apis::Core::JsonObjectSupport
|
359
365
|
end
|
360
366
|
|
367
|
+
class UpdateInstanceConfigRequest
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
361
373
|
class UpdateShieldedInstanceConfigRequest
|
362
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
375
|
|
@@ -487,6 +499,7 @@ module Google
|
|
487
499
|
property :display_name, as: 'displayName'
|
488
500
|
property :execution_template, as: 'executionTemplate', class: Google::Apis::NotebooksV1::ExecutionTemplate, decorator: Google::Apis::NotebooksV1::ExecutionTemplate::Representation
|
489
501
|
|
502
|
+
property :job_uri, as: 'jobUri'
|
490
503
|
property :name, as: 'name'
|
491
504
|
property :output_notebook_file, as: 'outputNotebookFile'
|
492
505
|
property :state, as: 'state'
|
@@ -581,6 +594,14 @@ module Google
|
|
581
594
|
end
|
582
595
|
end
|
583
596
|
|
597
|
+
class InstanceConfig
|
598
|
+
# @private
|
599
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
600
|
+
property :enable_health_monitoring, as: 'enableHealthMonitoring'
|
601
|
+
property :notebook_upgrade_schedule, as: 'notebookUpgradeSchedule'
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
584
605
|
class IsInstanceUpgradeableResponse
|
585
606
|
# @private
|
586
607
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -970,6 +991,14 @@ module Google
|
|
970
991
|
end
|
971
992
|
end
|
972
993
|
|
994
|
+
class UpdateInstanceConfigRequest
|
995
|
+
# @private
|
996
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
997
|
+
property :config, as: 'config', class: Google::Apis::NotebooksV1::InstanceConfig, decorator: Google::Apis::NotebooksV1::InstanceConfig::Representation
|
998
|
+
|
999
|
+
end
|
1000
|
+
end
|
1001
|
+
|
973
1002
|
class UpdateShieldedInstanceConfigRequest
|
974
1003
|
# @private
|
975
1004
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
module NotebooksV1
|
23
23
|
# Notebooks API
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# Notebooks API is used to manage notebook resources in Google Cloud.
|
26
26
|
#
|
27
27
|
# @example
|
28
28
|
# require 'google/apis/notebooks_v1'
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# Notebooks = Google::Apis::NotebooksV1 # Alias the module
|
31
31
|
# service = Notebooks::AIPlatformNotebooksService.new
|
32
32
|
#
|
33
|
-
# @see https://cloud.google.com/
|
33
|
+
# @see https://cloud.google.com/notebooks/docs/
|
34
34
|
class AIPlatformNotebooksService < Google::Apis::Core::BaseService
|
35
35
|
# @return [String]
|
36
36
|
# API key. Your API key identifies your project and provides you with API access,
|
@@ -1024,6 +1024,40 @@ module Google
|
|
1024
1024
|
execute_or_queue_command(command, &block)
|
1025
1025
|
end
|
1026
1026
|
|
1027
|
+
# Update Notebook Instance configurations.
|
1028
|
+
# @param [String] name
|
1029
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
1030
|
+
# instance_id``
|
1031
|
+
# @param [Google::Apis::NotebooksV1::UpdateInstanceConfigRequest] update_instance_config_request_object
|
1032
|
+
# @param [String] fields
|
1033
|
+
# Selector specifying which fields to include in a partial response.
|
1034
|
+
# @param [String] quota_user
|
1035
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1036
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1037
|
+
# @param [Google::Apis::RequestOptions] options
|
1038
|
+
# Request-specific options
|
1039
|
+
#
|
1040
|
+
# @yield [result, err] Result & error if block supplied
|
1041
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1042
|
+
# @yieldparam err [StandardError] error object if request failed
|
1043
|
+
#
|
1044
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1045
|
+
#
|
1046
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1047
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1048
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1049
|
+
def update_project_location_instance_config(name, update_instance_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1050
|
+
command = make_simple_command(:patch, 'v1/{+name}:updateConfig', options)
|
1051
|
+
command.request_representation = Google::Apis::NotebooksV1::UpdateInstanceConfigRequest::Representation
|
1052
|
+
command.request_object = update_instance_config_request_object
|
1053
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1054
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1055
|
+
command.params['name'] = name unless name.nil?
|
1056
|
+
command.query['fields'] = fields unless fields.nil?
|
1057
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1058
|
+
execute_or_queue_command(command, &block)
|
1059
|
+
end
|
1060
|
+
|
1027
1061
|
# Updates the Shielded instance configuration of a single Instance.
|
1028
1062
|
# @param [String] name
|
1029
1063
|
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.12.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-05
|
11
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Notebooks API V1. Simple REST clients
|
28
34
|
are Ruby client libraries that provide access to Google services via their HTTP
|
29
35
|
REST API endpoints. These libraries are generated and updated automatically based
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.12.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|