google-apis-notebooks_v1 0.6.0 → 0.7.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: 2f01f8ae315ce46345b2b12817c8fee96307dd73eff99a44ebf2ac4c4792ddb0
4
+ data.tar.gz: ee87e13c0032aba1deb97a553c87f0efb989bf7a99bc86f86bbe3f9aff99c4f3
5
5
  SHA512:
6
- metadata.gz: 1f8c0c93880beb4f8124b67f9ee4494d4dcc62cb1e52eeba583f7653008c22a7363b099049795a2e4b1418a102e7bc03a629dc52e126767758db690d53df415a
7
- data.tar.gz: e6cdaf71ccf44a749d0ca684fea7e457a3213a3bfbc401e3ef3966711f5f66ac8ae19d5eeb43000042755558a657e4a464b33688691ae277e37d22e9c7a5ba5e
6
+ metadata.gz: '0669547a974dff425c2e1d7e4b63c984763b82c74639c730d98fa6076e379f7c232a17002c7e5e5f5c38a5fa405a0c83966ea53dd2ddb0961f3087b184eb16f9'
7
+ data.tar.gz: 818709d9c078f8866a5a697a8d11d7839193413e0794443cd317bf6f6a2cfba042eb92d727e07e5665f41c5ba290c63f72fe7c6b6255cfa76a4a9d86b582d92b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.7.0 (2021-04-28)
4
+
5
+ * Regenerated from discovery document revision 20210422
6
+
3
7
  ### v0.6.0 (2021-03-31)
4
8
 
5
9
  * 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)
@@ -1629,6 +1644,26 @@ module Google
1629
1644
  end
1630
1645
  end
1631
1646
 
1647
+ # Request for rollbacking a notebook instance
1648
+ class RollbackInstanceRequest
1649
+ include Google::Apis::Core::Hashable
1650
+
1651
+ # Required. The snapshot for rollback. Example: "projects/test-project/global/
1652
+ # snapshots/krwlzipynril".
1653
+ # Corresponds to the JSON property `targetSnapshot`
1654
+ # @return [String]
1655
+ attr_accessor :target_snapshot
1656
+
1657
+ def initialize(**args)
1658
+ update!(**args)
1659
+ end
1660
+
1661
+ # Update properties of this object
1662
+ def update!(**args)
1663
+ @target_snapshot = args[:target_snapshot] if args.key?(:target_snapshot)
1664
+ end
1665
+ end
1666
+
1632
1667
  # The definition of a Runtime for a managed notebook instance.
1633
1668
  class Runtime
1634
1669
  include Google::Apis::Core::Hashable
@@ -2593,6 +2628,12 @@ module Google
2593
2628
  # @return [String]
2594
2629
  attr_accessor :network
2595
2630
 
2631
+ # Optional. The type of vNIC to be used on this interface. This may be gVNIC or
2632
+ # VirtioNet.
2633
+ # Corresponds to the JSON property `nicType`
2634
+ # @return [String]
2635
+ attr_accessor :nic_type
2636
+
2596
2637
  # A set of Shielded Instance options. Check [Images using supported Shielded VM
2597
2638
  # features] Not all combinations are valid.
2598
2639
  # Corresponds to the JSON property `shieldedInstanceConfig`
@@ -2638,6 +2679,7 @@ module Google
2638
2679
  @machine_type = args[:machine_type] if args.key?(:machine_type)
2639
2680
  @metadata = args[:metadata] if args.key?(:metadata)
2640
2681
  @network = args[:network] if args.key?(:network)
2682
+ @nic_type = args[:nic_type] if args.key?(:nic_type)
2641
2683
  @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
2642
2684
  @subnet = args[:subnet] if args.key?(:subnet)
2643
2685
  @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.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210323"
25
+ REVISION = "20210422"
26
26
  end
27
27
  end
28
28
  end
@@ -214,6 +214,12 @@ module Google
214
214
  include Google::Apis::Core::JsonObjectSupport
215
215
  end
216
216
 
217
+ class RollbackInstanceRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
217
223
  class Runtime
218
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
225
 
@@ -501,6 +507,7 @@ module Google
501
507
  property :parameters, as: 'parameters'
502
508
  property :params_yaml_file, as: 'paramsYamlFile'
503
509
  property :scale_tier, as: 'scaleTier'
510
+ property :service_account, as: 'serviceAccount'
504
511
  end
505
512
  end
506
513
 
@@ -553,6 +560,7 @@ module Google
553
560
  hash :metadata, as: 'metadata'
554
561
  property :name, as: 'name'
555
562
  property :network, as: 'network'
563
+ property :nic_type, as: 'nicType'
556
564
  property :no_proxy_access, as: 'noProxyAccess'
557
565
  property :no_public_ip, as: 'noPublicIp'
558
566
  property :no_remove_data_disk, as: 'noRemoveDataDisk'
@@ -756,6 +764,13 @@ module Google
756
764
  end
757
765
  end
758
766
 
767
+ class RollbackInstanceRequest
768
+ # @private
769
+ class Representation < Google::Apis::Core::JsonRepresentation
770
+ property :target_snapshot, as: 'targetSnapshot'
771
+ end
772
+ end
773
+
759
774
  class Runtime
760
775
  # @private
761
776
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1019,6 +1034,7 @@ module Google
1019
1034
  property :machine_type, as: 'machineType'
1020
1035
  hash :metadata, as: 'metadata'
1021
1036
  property :network, as: 'network'
1037
+ property :nic_type, as: 'nicType'
1022
1038
  property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig::Representation
1023
1039
 
1024
1040
  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/`
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.6.0
4
+ version: 0.7.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-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  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
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.7.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Notebooks API V1