google-apis-notebooks_v1 0.18.0 → 0.22.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: 894ad2b301172e56625b457029b94b638cb4dcebf4589b9ffcb5d17881be95e6
4
- data.tar.gz: c2b407e798448b13376c6cbfe3ff7ae912fe897baabeaee956580d333e27d4cf
3
+ metadata.gz: 90bc8fee592dae026cb81f4a9e682fbcc431c51470cb4ff2dfd60c31c97eee0c
4
+ data.tar.gz: 2ebd6f332a24a624729811205390b4ea439d719f64b14766d5b5b24483959740
5
5
  SHA512:
6
- metadata.gz: 83a90564f02432e1eb82516ff2d2cfd14c78fe5fb0d858e7c85a68ac5df95ceb65e550ddc7e75436b2f2b70412ac855971f6176a5d2466112c1841425dbba35f
7
- data.tar.gz: ef3ae4427e602705cdafc94471a87bc3471599caf57076460c32c75e9d2dc209139041bb26d94e7a70f292ed7fcedab681cc1012c948c356f76ed432a716cc94
6
+ metadata.gz: 0eab019d70bf8fbf965f578645e6ae7a05acd9b372b9acb4d229b4c813e4064c8a0659c67a0be08c3be791ae013acfcb08852ac4aeeb77b4cbacb90b4987729e
7
+ data.tar.gz: f60eafea008516f315a08554d80fd2151c569cc6e38383abe770e0dd9075dc1f3beb9e78f1b9ca5294509b456d47011258d736bcc495cb2022f0f7347e547fa2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-notebooks_v1
2
2
 
3
+ ### v0.22.0 (2022-02-19)
4
+
5
+ * Regenerated from discovery document revision 20220214
6
+
7
+ ### v0.21.0 (2022-02-13)
8
+
9
+ * Regenerated from discovery document revision 20220205
10
+
11
+ ### v0.20.0 (2022-01-31)
12
+
13
+ * Regenerated from discovery document revision 20220125
14
+ * Regenerated using generator version 0.4.1
15
+
16
+ ### v0.19.0 (2022-01-09)
17
+
18
+ * Regenerated from discovery document revision 20220104
19
+ * Unspecified changes
20
+
3
21
  ### v0.18.0 (2021-10-25)
4
22
 
5
23
  * Regenerated from discovery document revision 20211019
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.
@@ -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
@@ -585,6 +591,13 @@ module Google
585
591
  # @return [String]
586
592
  attr_accessor :service_account
587
593
 
594
+ # The name of a Vertex AI [Tensorboard] resource to which this execution will
595
+ # upload Tensorboard logs. Format: `projects/`project`/locations/`location`/
596
+ # tensorboards/`tensorboard``
597
+ # Corresponds to the JSON property `tensorboard`
598
+ # @return [String]
599
+ attr_accessor :tensorboard
600
+
588
601
  # Parameters used in Vertex AI JobType executions.
589
602
  # Corresponds to the JSON property `vertexAiParameters`
590
603
  # @return [Google::Apis::NotebooksV1::VertexAiParameters]
@@ -609,6 +622,7 @@ module Google
609
622
  @params_yaml_file = args[:params_yaml_file] if args.key?(:params_yaml_file)
610
623
  @scale_tier = args[:scale_tier] if args.key?(:scale_tier)
611
624
  @service_account = args[:service_account] if args.key?(:service_account)
625
+ @tensorboard = args[:tensorboard] if args.key?(:tensorboard)
612
626
  @vertex_ai_parameters = args[:vertex_ai_parameters] if args.key?(:vertex_ai_parameters)
613
627
  end
614
628
  end
@@ -752,6 +766,11 @@ module Google
752
766
  # @return [String]
753
767
  attr_accessor :create_time
754
768
 
769
+ # Output only. Email address of entity that sent original CreateInstance request.
770
+ # Corresponds to the JSON property `creator`
771
+ # @return [String]
772
+ attr_accessor :creator
773
+
755
774
  # Specify a custom Cloud Storage path where the GPU driver is stored. If not
756
775
  # specified, we'll automatically choose from official GPU drivers.
757
776
  # Corresponds to the JSON property `customGpuDriverPath`
@@ -945,6 +964,7 @@ module Google
945
964
  @boot_disk_type = args[:boot_disk_type] if args.key?(:boot_disk_type)
946
965
  @container_image = args[:container_image] if args.key?(:container_image)
947
966
  @create_time = args[:create_time] if args.key?(:create_time)
967
+ @creator = args[:creator] if args.key?(:creator)
948
968
  @custom_gpu_driver_path = args[:custom_gpu_driver_path] if args.key?(:custom_gpu_driver_path)
949
969
  @data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
950
970
  @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
@@ -1793,7 +1813,7 @@ module Google
1793
1813
  end
1794
1814
  end
1795
1815
 
1796
- # Request for reseting a notebook instance
1816
+ # Request for resetting a notebook instance
1797
1817
  class ResetInstanceRequest
1798
1818
  include Google::Apis::Core::Hashable
1799
1819
 
@@ -1806,7 +1826,7 @@ module Google
1806
1826
  end
1807
1827
  end
1808
1828
 
1809
- # Request for reseting a Managed Notebook Runtime.
1829
+ # Request for resetting a Managed Notebook Runtime.
1810
1830
  class ResetRuntimeRequest
1811
1831
  include Google::Apis::Core::Hashable
1812
1832
 
@@ -1872,7 +1892,7 @@ module Google
1872
1892
  # Specifies the selection and configuration of software inside the runtime. The
1873
1893
  # properties to set on runtime. Properties keys are specified in `key:value`
1874
1894
  # format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `
1875
- # report-system-health: true`
1895
+ # enable_health_monitoring: true`
1876
1896
  # Corresponds to the JSON property `softwareConfig`
1877
1897
  # @return [Google::Apis::NotebooksV1::RuntimeSoftwareConfig]
1878
1898
  attr_accessor :software_config
@@ -2064,7 +2084,7 @@ module Google
2064
2084
  # Specifies the selection and configuration of software inside the runtime. The
2065
2085
  # properties to set on runtime. Properties keys are specified in `key:value`
2066
2086
  # format, for example: * `idle_shutdown: true` * `idle_shutdown_timeout: 180` * `
2067
- # report-system-health: true`
2087
+ # enable_health_monitoring: true`
2068
2088
  class RuntimeSoftwareConfig
2069
2089
  include Google::Apis::Core::Hashable
2070
2090
 
@@ -2091,12 +2111,18 @@ module Google
2091
2111
  # @return [Fixnum]
2092
2112
  attr_accessor :idle_shutdown_timeout
2093
2113
 
2094
- # Install Nvidia Driver automatically.
2114
+ # Install Nvidia Driver automatically. Default: True
2095
2115
  # Corresponds to the JSON property `installGpuDriver`
2096
2116
  # @return [Boolean]
2097
2117
  attr_accessor :install_gpu_driver
2098
2118
  alias_method :install_gpu_driver?, :install_gpu_driver
2099
2119
 
2120
+ # Optional. Use a list of container images to use as Kernels in the notebook
2121
+ # instance.
2122
+ # Corresponds to the JSON property `kernels`
2123
+ # @return [Array<Google::Apis::NotebooksV1::ContainerImage>]
2124
+ attr_accessor :kernels
2125
+
2100
2126
  # Cron expression in UTC timezone, used to schedule instance auto upgrade.
2101
2127
  # Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
2102
2128
  # Corresponds to the JSON property `notebookUpgradeSchedule`
@@ -2110,6 +2136,13 @@ module Google
2110
2136
  # @return [String]
2111
2137
  attr_accessor :post_startup_script
2112
2138
 
2139
+ # Output only. Bool indicating whether an newer image is available in an image
2140
+ # family.
2141
+ # Corresponds to the JSON property `upgradeable`
2142
+ # @return [Boolean]
2143
+ attr_accessor :upgradeable
2144
+ alias_method :upgradeable?, :upgradeable
2145
+
2113
2146
  def initialize(**args)
2114
2147
  update!(**args)
2115
2148
  end
@@ -2121,8 +2154,10 @@ module Google
2121
2154
  @idle_shutdown = args[:idle_shutdown] if args.key?(:idle_shutdown)
2122
2155
  @idle_shutdown_timeout = args[:idle_shutdown_timeout] if args.key?(:idle_shutdown_timeout)
2123
2156
  @install_gpu_driver = args[:install_gpu_driver] if args.key?(:install_gpu_driver)
2157
+ @kernels = args[:kernels] if args.key?(:kernels)
2124
2158
  @notebook_upgrade_schedule = args[:notebook_upgrade_schedule] if args.key?(:notebook_upgrade_schedule)
2125
2159
  @post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script)
2160
+ @upgradeable = args[:upgradeable] if args.key?(:upgradeable)
2126
2161
  end
2127
2162
  end
2128
2163
 
@@ -2585,6 +2620,44 @@ module Google
2585
2620
  end
2586
2621
  end
2587
2622
 
2623
+ # Request for adding/changing metadata items for an instance.
2624
+ class UpdateInstanceMetadataItemsRequest
2625
+ include Google::Apis::Core::Hashable
2626
+
2627
+ # Metadata items to add/update for the instance.
2628
+ # Corresponds to the JSON property `items`
2629
+ # @return [Hash<String,String>]
2630
+ attr_accessor :items
2631
+
2632
+ def initialize(**args)
2633
+ update!(**args)
2634
+ end
2635
+
2636
+ # Update properties of this object
2637
+ def update!(**args)
2638
+ @items = args[:items] if args.key?(:items)
2639
+ end
2640
+ end
2641
+
2642
+ # Response for adding/changing metadata items for an instance.
2643
+ class UpdateInstanceMetadataItemsResponse
2644
+ include Google::Apis::Core::Hashable
2645
+
2646
+ # Map of items that were added/updated to/in the metadata.
2647
+ # Corresponds to the JSON property `items`
2648
+ # @return [Hash<String,String>]
2649
+ attr_accessor :items
2650
+
2651
+ def initialize(**args)
2652
+ update!(**args)
2653
+ end
2654
+
2655
+ # Update properties of this object
2656
+ def update!(**args)
2657
+ @items = args[:items] if args.key?(:items)
2658
+ end
2659
+ end
2660
+
2588
2661
  # Request for updating the Shielded Instance config for a notebook instance. You
2589
2662
  # can only use this method on a stopped instance
2590
2663
  class UpdateShieldedInstanceConfigRequest
@@ -2683,6 +2756,12 @@ module Google
2683
2756
  class UpgradeInstanceInternalRequest
2684
2757
  include Google::Apis::Core::Hashable
2685
2758
 
2759
+ # Optional. The optional UpgradeType. Setting this field will search for
2760
+ # additional compute images to upgrade this instance.
2761
+ # Corresponds to the JSON property `type`
2762
+ # @return [String]
2763
+ attr_accessor :type
2764
+
2686
2765
  # Required. The VM hardware token for authenticating the VM. https://cloud.
2687
2766
  # google.com/compute/docs/instances/verifying-instance-identity
2688
2767
  # Corresponds to the JSON property `vmId`
@@ -2695,6 +2774,7 @@ module Google
2695
2774
 
2696
2775
  # Update properties of this object
2697
2776
  def update!(**args)
2777
+ @type = args[:type] if args.key?(:type)
2698
2778
  @vm_id = args[:vm_id] if args.key?(:vm_id)
2699
2779
  end
2700
2780
  end
@@ -2703,12 +2783,19 @@ module Google
2703
2783
  class UpgradeInstanceRequest
2704
2784
  include Google::Apis::Core::Hashable
2705
2785
 
2786
+ # Optional. The optional UpgradeType. Setting this field will search for
2787
+ # additional compute images to upgrade this instance.
2788
+ # Corresponds to the JSON property `type`
2789
+ # @return [String]
2790
+ attr_accessor :type
2791
+
2706
2792
  def initialize(**args)
2707
2793
  update!(**args)
2708
2794
  end
2709
2795
 
2710
2796
  # Update properties of this object
2711
2797
  def update!(**args)
2798
+ @type = args[:type] if args.key?(:type)
2712
2799
  end
2713
2800
  end
2714
2801
 
@@ -2789,7 +2876,8 @@ module Google
2789
2876
  # @return [Google::Apis::NotebooksV1::RuntimeAcceleratorConfig]
2790
2877
  attr_accessor :accelerator_config
2791
2878
 
2792
- # Optional. Use a list of container images to start the notebook instance.
2879
+ # Optional. Use a list of container images to use as Kernels in the notebook
2880
+ # instance.
2793
2881
  # Corresponds to the JSON property `containerImages`
2794
2882
  # @return [Array<Google::Apis::NotebooksV1::ContainerImage>]
2795
2883
  attr_accessor :container_images
@@ -2864,6 +2952,17 @@ module Google
2864
2952
  # @return [String]
2865
2953
  attr_accessor :nic_type
2866
2954
 
2955
+ # Optional. Reserved IP Range name is used for VPC Peering. The subnetwork
2956
+ # allocation will use the range *name* if it's assigned. Example: managed-
2957
+ # notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud
2958
+ # compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24
2959
+ # \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$
2960
+ # NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be:
2961
+ # `managed-notebooks-range-c`
2962
+ # Corresponds to the JSON property `reservedIpRange`
2963
+ # @return [String]
2964
+ attr_accessor :reserved_ip_range
2965
+
2867
2966
  # A set of Shielded Instance options. Check [Images using supported Shielded VM
2868
2967
  # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
2869
2968
  # vm). Not all combinations are valid.
@@ -2911,6 +3010,7 @@ module Google
2911
3010
  @metadata = args[:metadata] if args.key?(:metadata)
2912
3011
  @network = args[:network] if args.key?(:network)
2913
3012
  @nic_type = args[:nic_type] if args.key?(:nic_type)
3013
+ @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
2914
3014
  @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
2915
3015
  @subnet = args[:subnet] if args.key?(:subnet)
2916
3016
  @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.18.0"
19
+ GEM_VERSION = "0.22.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 = "20211019"
25
+ REVISION = "20220214"
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
@@ -570,6 +583,7 @@ module Google
570
583
  property :params_yaml_file, as: 'paramsYamlFile'
571
584
  property :scale_tier, as: 'scaleTier'
572
585
  property :service_account, as: 'serviceAccount'
586
+ property :tensorboard, as: 'tensorboard'
573
587
  property :vertex_ai_parameters, as: 'vertexAiParameters', class: Google::Apis::NotebooksV1::VertexAiParameters, decorator: Google::Apis::NotebooksV1::VertexAiParameters::Representation
574
588
 
575
589
  end
@@ -610,6 +624,7 @@ module Google
610
624
  property :container_image, as: 'containerImage', class: Google::Apis::NotebooksV1::ContainerImage, decorator: Google::Apis::NotebooksV1::ContainerImage::Representation
611
625
 
612
626
  property :create_time, as: 'createTime'
627
+ property :creator, as: 'creator'
613
628
  property :custom_gpu_driver_path, as: 'customGpuDriverPath'
614
629
  property :data_disk_size_gb, :numeric_string => true, as: 'dataDiskSizeGb'
615
630
  property :data_disk_type, as: 'dataDiskType'
@@ -930,8 +945,11 @@ module Google
930
945
  property :idle_shutdown, as: 'idleShutdown'
931
946
  property :idle_shutdown_timeout, as: 'idleShutdownTimeout'
932
947
  property :install_gpu_driver, as: 'installGpuDriver'
948
+ collection :kernels, as: 'kernels', class: Google::Apis::NotebooksV1::ContainerImage, decorator: Google::Apis::NotebooksV1::ContainerImage::Representation
949
+
933
950
  property :notebook_upgrade_schedule, as: 'notebookUpgradeSchedule'
934
951
  property :post_startup_script, as: 'postStartupScript'
952
+ property :upgradeable, as: 'upgradeable'
935
953
  end
936
954
  end
937
955
 
@@ -1070,6 +1088,20 @@ module Google
1070
1088
  end
1071
1089
  end
1072
1090
 
1091
+ class UpdateInstanceMetadataItemsRequest
1092
+ # @private
1093
+ class Representation < Google::Apis::Core::JsonRepresentation
1094
+ hash :items, as: 'items'
1095
+ end
1096
+ end
1097
+
1098
+ class UpdateInstanceMetadataItemsResponse
1099
+ # @private
1100
+ class Representation < Google::Apis::Core::JsonRepresentation
1101
+ hash :items, as: 'items'
1102
+ end
1103
+ end
1104
+
1073
1105
  class UpdateShieldedInstanceConfigRequest
1074
1106
  # @private
1075
1107
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1097,6 +1129,7 @@ module Google
1097
1129
  class UpgradeInstanceInternalRequest
1098
1130
  # @private
1099
1131
  class Representation < Google::Apis::Core::JsonRepresentation
1132
+ property :type, as: 'type'
1100
1133
  property :vm_id, as: 'vmId'
1101
1134
  end
1102
1135
  end
@@ -1104,6 +1137,7 @@ module Google
1104
1137
  class UpgradeInstanceRequest
1105
1138
  # @private
1106
1139
  class Representation < Google::Apis::Core::JsonRepresentation
1140
+ property :type, as: 'type'
1107
1141
  end
1108
1142
  end
1109
1143
 
@@ -1143,6 +1177,7 @@ module Google
1143
1177
  hash :metadata, as: 'metadata'
1144
1178
  property :network, as: 'network'
1145
1179
  property :nic_type, as: 'nicType'
1180
+ property :reserved_ip_range, as: 'reservedIpRange'
1146
1181
  property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig, decorator: Google::Apis::NotebooksV1::RuntimeShieldedInstanceConfig::Representation
1147
1182
 
1148
1183
  property :subnet, as: 'subnet'
@@ -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/`
@@ -1416,13 +1457,16 @@ module Google
1416
1457
  # REQUIRED: The resource for which the policy is being requested. See the
1417
1458
  # operation documentation for the appropriate value for this field.
1418
1459
  # @param [Fixnum] options_requested_policy_version
1419
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
1420
- # 3. Requests specifying an invalid value will be rejected. Requests for
1421
- # policies with any conditional bindings must specify version 3. Policies
1422
- # without any conditional bindings may specify any valid value or leave the
1423
- # field unset. To learn which resources support conditions in their IAM policies,
1424
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1425
- # resource-policies).
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).
1426
1470
  # @param [String] fields
1427
1471
  # Selector specifying which fields to include in a partial response.
1428
1472
  # @param [String] quota_user
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.18.0
4
+ version: 0.22.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-10-27 00:00:00.000000000 Z
11
+ date: 2022-02-21 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.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.22.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: []
@@ -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