google-apis-notebooks_v1 0.6.0 → 0.11.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: b8fc74b68104ea029c2d514077e62c454f40cf77408a307906c635346e939adb
4
- data.tar.gz: 8801f3a94bfdf9986656940c925d9e49dda65195d611c88e0e8ca85d3b6ed02f
3
+ metadata.gz: 5fad4c0801f5e3eee04d0f6ae5de39081b0f771162080a7bd178a7174a9065c2
4
+ data.tar.gz: 3c53772c67dcf80d47758c7cb51d7ec4a7267d53b9d583d25c4d2995d71cb8a1
5
5
  SHA512:
6
- metadata.gz: 1f8c0c93880beb4f8124b67f9ee4494d4dcc62cb1e52eeba583f7653008c22a7363b099049795a2e4b1418a102e7bc03a629dc52e126767758db690d53df415a
7
- data.tar.gz: e6cdaf71ccf44a749d0ca684fea7e457a3213a3bfbc401e3ef3966711f5f66ac8ae19d5eeb43000042755558a657e4a464b33688691ae277e37d22e9c7a5ba5e
6
+ metadata.gz: 31aa0c366125993ce63d5749e77e0c1a3c08b42f84f4d06ab20bc8e0ae95b8d12a53e83b3318b690c5caf1c0277d4e9d69a536d2f3c166711f83095625a3479e
7
+ data.tar.gz: 2fd1b97be496d010402724632b861836fa172cd2313ff51deb8111a4498f52190d9b75c27bde801002d671a3cf3820804e133c65334995485c26e9f6d2c6cdcb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.11.0 (2021-06-24)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.10.0 (2021-06-15)
8
+
9
+ * Regenerated from discovery document revision 20210610
10
+
11
+ ### v0.9.0 (2021-06-09)
12
+
13
+ * Regenerated from discovery document revision 20210603
14
+ * Regenerated using generator version 0.3.0
15
+
16
+ ### v0.8.0 (2021-05-19)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.7.0 (2021-04-28)
21
+
22
+ * Regenerated from discovery document revision 20210422
23
+
3
24
  ### v0.6.0 (2021-03-31)
4
25
 
5
26
  * Regenerated from discovery document revision 20210323
@@ -508,6 +508,13 @@ module Google
508
508
  # @return [String]
509
509
  attr_accessor :scale_tier
510
510
 
511
+ # The email address of a service account to use when running the execution. You
512
+ # must have the `iam.serviceAccounts.actAs` permission for the specified service
513
+ # account.
514
+ # Corresponds to the JSON property `serviceAccount`
515
+ # @return [String]
516
+ attr_accessor :service_account
517
+
511
518
  def initialize(**args)
512
519
  update!(**args)
513
520
  end
@@ -523,6 +530,7 @@ module Google
523
530
  @parameters = args[:parameters] if args.key?(:parameters)
524
531
  @params_yaml_file = args[:params_yaml_file] if args.key?(:params_yaml_file)
525
532
  @scale_tier = args[:scale_tier] if args.key?(:scale_tier)
533
+ @service_account = args[:service_account] if args.key?(:service_account)
526
534
  end
527
535
  end
528
536
 
@@ -746,6 +754,12 @@ module Google
746
754
  # @return [String]
747
755
  attr_accessor :network
748
756
 
757
+ # Optional. The type of vNIC to be used on this interface. This may be gVNIC or
758
+ # VirtioNet.
759
+ # Corresponds to the JSON property `nicType`
760
+ # @return [String]
761
+ attr_accessor :nic_type
762
+
749
763
  # If true, the notebook instance will not register with the proxy.
750
764
  # Corresponds to the JSON property `noProxyAccess`
751
765
  # @return [Boolean]
@@ -859,6 +873,7 @@ module Google
859
873
  @metadata = args[:metadata] if args.key?(:metadata)
860
874
  @name = args[:name] if args.key?(:name)
861
875
  @network = args[:network] if args.key?(:network)
876
+ @nic_type = args[:nic_type] if args.key?(:nic_type)
862
877
  @no_proxy_access = args[:no_proxy_access] if args.key?(:no_proxy_access)
863
878
  @no_public_ip = args[:no_public_ip] if args.key?(:no_public_ip)
864
879
  @no_remove_data_disk = args[:no_remove_data_disk] if args.key?(:no_remove_data_disk)
@@ -876,6 +891,33 @@ module Google
876
891
  end
877
892
  end
878
893
 
894
+ # Notebook instance configurations that can be updated.
895
+ class InstanceConfig
896
+ include Google::Apis::Core::Hashable
897
+
898
+ # Verifies core internal services are running. More info: go/notebooks-health
899
+ # Corresponds to the JSON property `enableHealthMonitoring`
900
+ # @return [Boolean]
901
+ attr_accessor :enable_health_monitoring
902
+ alias_method :enable_health_monitoring?, :enable_health_monitoring
903
+
904
+ # Cron expression in UTC timezone, used to schedule instance auto upgrade.
905
+ # Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
906
+ # Corresponds to the JSON property `notebookUpgradeSchedule`
907
+ # @return [String]
908
+ attr_accessor :notebook_upgrade_schedule
909
+
910
+ def initialize(**args)
911
+ update!(**args)
912
+ end
913
+
914
+ # Update properties of this object
915
+ def update!(**args)
916
+ @enable_health_monitoring = args[:enable_health_monitoring] if args.key?(:enable_health_monitoring)
917
+ @notebook_upgrade_schedule = args[:notebook_upgrade_schedule] if args.key?(:notebook_upgrade_schedule)
918
+ end
919
+ end
920
+
879
921
  # Response for checking if a notebook instance is upgradeable.
880
922
  class IsInstanceUpgradeableResponse
881
923
  include Google::Apis::Core::Hashable
@@ -1629,6 +1671,26 @@ module Google
1629
1671
  end
1630
1672
  end
1631
1673
 
1674
+ # Request for rollbacking a notebook instance
1675
+ class RollbackInstanceRequest
1676
+ include Google::Apis::Core::Hashable
1677
+
1678
+ # Required. The snapshot for rollback. Example: "projects/test-project/global/
1679
+ # snapshots/krwlzipynril".
1680
+ # Corresponds to the JSON property `targetSnapshot`
1681
+ # @return [String]
1682
+ attr_accessor :target_snapshot
1683
+
1684
+ def initialize(**args)
1685
+ update!(**args)
1686
+ end
1687
+
1688
+ # Update properties of this object
1689
+ def update!(**args)
1690
+ @target_snapshot = args[:target_snapshot] if args.key?(:target_snapshot)
1691
+ end
1692
+ end
1693
+
1632
1694
  # The definition of a Runtime for a managed notebook instance.
1633
1695
  class Runtime
1634
1696
  include Google::Apis::Core::Hashable
@@ -1935,7 +1997,7 @@ module Google
1935
1997
  attr_accessor :description
1936
1998
 
1937
1999
  # Output only. Display name used for UI purposes. Name can only contain
1938
- # alphanumeric characters, hyphens ‘-’, and underscores _’.
2000
+ # alphanumeric characters, hyphens '-', and underscores '_'.
1939
2001
  # Corresponds to the JSON property `displayName`
1940
2002
  # @return [String]
1941
2003
  attr_accessor :display_name
@@ -2352,6 +2414,25 @@ module Google
2352
2414
  end
2353
2415
  end
2354
2416
 
2417
+ # Request for updating instance configurations.
2418
+ class UpdateInstanceConfigRequest
2419
+ include Google::Apis::Core::Hashable
2420
+
2421
+ # Notebook instance configurations that can be updated.
2422
+ # Corresponds to the JSON property `config`
2423
+ # @return [Google::Apis::NotebooksV1::InstanceConfig]
2424
+ attr_accessor :config
2425
+
2426
+ def initialize(**args)
2427
+ update!(**args)
2428
+ end
2429
+
2430
+ # Update properties of this object
2431
+ def update!(**args)
2432
+ @config = args[:config] if args.key?(:config)
2433
+ end
2434
+ end
2435
+
2355
2436
  # Request for updating the Shielded Instance config for a notebook instance. You
2356
2437
  # can only use this method on a stopped instance
2357
2438
  class UpdateShieldedInstanceConfigRequest
@@ -2593,6 +2674,12 @@ module Google
2593
2674
  # @return [String]
2594
2675
  attr_accessor :network
2595
2676
 
2677
+ # Optional. The type of vNIC to be used on this interface. This may be gVNIC or
2678
+ # VirtioNet.
2679
+ # Corresponds to the JSON property `nicType`
2680
+ # @return [String]
2681
+ attr_accessor :nic_type
2682
+
2596
2683
  # A set of Shielded Instance options. Check [Images using supported Shielded VM
2597
2684
  # features] Not all combinations are valid.
2598
2685
  # Corresponds to the JSON property `shieldedInstanceConfig`
@@ -2638,6 +2725,7 @@ module Google
2638
2725
  @machine_type = args[:machine_type] if args.key?(:machine_type)
2639
2726
  @metadata = args[:metadata] if args.key?(:metadata)
2640
2727
  @network = args[:network] if args.key?(:network)
2728
+ @nic_type = args[:nic_type] if args.key?(:nic_type)
2641
2729
  @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
2642
2730
  @subnet = args[:subnet] if args.key?(:subnet)
2643
2731
  @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.6.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210323"
25
+ REVISION = "20210610"
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
 
@@ -214,6 +220,12 @@ module Google
214
220
  include Google::Apis::Core::JsonObjectSupport
215
221
  end
216
222
 
223
+ class RollbackInstanceRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
217
229
  class Runtime
218
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
231
 
@@ -352,6 +364,12 @@ module Google
352
364
  include Google::Apis::Core::JsonObjectSupport
353
365
  end
354
366
 
367
+ class UpdateInstanceConfigRequest
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
355
373
  class UpdateShieldedInstanceConfigRequest
356
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
357
375
 
@@ -501,6 +519,7 @@ module Google
501
519
  property :parameters, as: 'parameters'
502
520
  property :params_yaml_file, as: 'paramsYamlFile'
503
521
  property :scale_tier, as: 'scaleTier'
522
+ property :service_account, as: 'serviceAccount'
504
523
  end
505
524
  end
506
525
 
@@ -553,6 +572,7 @@ module Google
553
572
  hash :metadata, as: 'metadata'
554
573
  property :name, as: 'name'
555
574
  property :network, as: 'network'
575
+ property :nic_type, as: 'nicType'
556
576
  property :no_proxy_access, as: 'noProxyAccess'
557
577
  property :no_public_ip, as: 'noPublicIp'
558
578
  property :no_remove_data_disk, as: 'noRemoveDataDisk'
@@ -573,6 +593,14 @@ module Google
573
593
  end
574
594
  end
575
595
 
596
+ class InstanceConfig
597
+ # @private
598
+ class Representation < Google::Apis::Core::JsonRepresentation
599
+ property :enable_health_monitoring, as: 'enableHealthMonitoring'
600
+ property :notebook_upgrade_schedule, as: 'notebookUpgradeSchedule'
601
+ end
602
+ end
603
+
576
604
  class IsInstanceUpgradeableResponse
577
605
  # @private
578
606
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -756,6 +784,13 @@ module Google
756
784
  end
757
785
  end
758
786
 
787
+ class RollbackInstanceRequest
788
+ # @private
789
+ class Representation < Google::Apis::Core::JsonRepresentation
790
+ property :target_snapshot, as: 'targetSnapshot'
791
+ end
792
+ end
793
+
759
794
  class Runtime
760
795
  # @private
761
796
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -955,6 +990,14 @@ module Google
955
990
  end
956
991
  end
957
992
 
993
+ class UpdateInstanceConfigRequest
994
+ # @private
995
+ class Representation < Google::Apis::Core::JsonRepresentation
996
+ property :config, as: 'config', class: Google::Apis::NotebooksV1::InstanceConfig, decorator: Google::Apis::NotebooksV1::InstanceConfig::Representation
997
+
998
+ end
999
+ end
1000
+
958
1001
  class UpdateShieldedInstanceConfigRequest
959
1002
  # @private
960
1003
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1019,6 +1062,7 @@ module Google
1019
1062
  property :machine_type, as: 'machineType'
1020
1063
  hash :metadata, as: 'metadata'
1021
1064
  property :network, as: 'network'
1065
+ property :nic_type, as: 'nicType'
1022
1066
  property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig::Representation
1023
1067
 
1024
1068
  property :subnet, as: 'subnet'
@@ -87,7 +87,7 @@ module Google
87
87
  # accepts strings like "displayName=tokyo", and is documented in more detail in [
88
88
  # AIP-160](https://google.aip.dev/160).
89
89
  # @param [Fixnum] page_size
90
- # The maximum number of results to return. If not set, the service will select a
90
+ # The maximum number of results to return. If not set, the service selects a
91
91
  # default.
92
92
  # @param [String] page_token
93
93
  # A page token received from the `next_page_token` field in the response. Send
@@ -362,7 +362,8 @@ module Google
362
362
  # @param [String] parent
363
363
  # Required. Format: `parent=projects/`project_id`/locations/`location``
364
364
  # @param [String] filter
365
- # Filter applied to resulting executions.
365
+ # Filter applied to resulting executions. Currently only supports filtering
366
+ # executions by a specified schedule_id. Format: "schedule_id="
366
367
  # @param [String] order_by
367
368
  # Sort by field.
368
369
  # @param [Fixnum] page_size
@@ -745,6 +746,40 @@ module Google
745
746
  execute_or_queue_command(command, &block)
746
747
  end
747
748
 
749
+ # Rollbacks a notebook instance to the previous version.
750
+ # @param [String] name
751
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
752
+ # instance_id``
753
+ # @param [Google::Apis::NotebooksV1::RollbackInstanceRequest] rollback_instance_request_object
754
+ # @param [String] fields
755
+ # Selector specifying which fields to include in a partial response.
756
+ # @param [String] quota_user
757
+ # Available to use for quota purposes for server-side applications. Can be any
758
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
759
+ # @param [Google::Apis::RequestOptions] options
760
+ # Request-specific options
761
+ #
762
+ # @yield [result, err] Result & error if block supplied
763
+ # @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
764
+ # @yieldparam err [StandardError] error object if request failed
765
+ #
766
+ # @return [Google::Apis::NotebooksV1::Operation]
767
+ #
768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
771
+ def rollback_instance(name, rollback_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
772
+ command = make_simple_command(:post, 'v1/{+name}:rollback', options)
773
+ command.request_representation = Google::Apis::NotebooksV1::RollbackInstanceRequest::Representation
774
+ command.request_object = rollback_instance_request_object
775
+ command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
776
+ command.response_class = Google::Apis::NotebooksV1::Operation
777
+ command.params['name'] = name unless name.nil?
778
+ command.query['fields'] = fields unless fields.nil?
779
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
780
+ execute_or_queue_command(command, &block)
781
+ end
782
+
748
783
  # Updates the guest accelerators of a single Instance.
749
784
  # @param [String] name
750
785
  # Required. Format: `projects/`project_id`/locations/`location`/instances/`
@@ -989,6 +1024,40 @@ module Google
989
1024
  execute_or_queue_command(command, &block)
990
1025
  end
991
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
+
992
1061
  # Updates the Shielded instance configuration of a single Instance.
993
1062
  # @param [String] name
994
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.6.0
4
+ version: 0.11.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-04-05 00:00:00.000000000 Z
11
+ date: 2021-06-28 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.1'
19
+ version: '0.3'
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.3'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
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.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.11.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: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Notebooks API V1