generated/google/apis/tpu_v1alpha1/classes.rb in google-api-client-0.22.0 vs generated/google/apis/tpu_v1alpha1/classes.rb in google-api-client-0.23.0
- old
+ new
@@ -348,10 +348,15 @@
# The network port for the TPU Node as visible to Compute Engine instances.
# Corresponds to the JSON property `port`
# @return [String]
attr_accessor :port
+ #
+ # Corresponds to the JSON property `schedulingConfig`
+ # @return [Google::Apis::TpuV1alpha1::SchedulingConfig]
+ attr_accessor :scheduling_config
+
# Output only.
# The service account used to run the tensor flow services within the node.
# To share resources, including Google Cloud Storage data, with the
# Tensorflow job running in the Node, this account must have permissions to
# that data.
@@ -387,10 +392,11 @@
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
@port = args[:port] if args.key?(:port)
+ @scheduling_config = args[:scheduling_config] if args.key?(:scheduling_config)
@service_account = args[:service_account] if args.key?(:service_account)
@state = args[:state] if args.key?(:state)
@tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version)
end
end
@@ -578,9 +584,29 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
+ end
+ end
+
+ #
+ class SchedulingConfig
+ include Google::Apis::Core::Hashable
+
+ #
+ # Corresponds to the JSON property `preemptible`
+ # @return [Boolean]
+ attr_accessor :preemptible
+ alias_method :preemptible?, :preemptible
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @preemptible = args[:preemptible] if args.key?(:preemptible)
end
end
# Request for StartNode.
class StartNodeRequest