Class: Google::Apis::RemotebuildexecutionV1alpha::BuildBazelRemoteExecutionV2SymlinkNode

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/remotebuildexecution_v1alpha/classes.rb,
lib/google/apis/remotebuildexecution_v1alpha/representations.rb,
lib/google/apis/remotebuildexecution_v1alpha/representations.rb

Overview

A SymlinkNode represents a symbolic link.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuildBazelRemoteExecutionV2SymlinkNode

Returns a new instance of BuildBazelRemoteExecutionV2SymlinkNode.



1382
1383
1384
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1382

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

The name of the symlink. Corresponds to the JSON property name

Returns:

  • (String)


1362
1363
1364
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1362

def name
  @name
end

#node_propertiesGoogle::Apis::RemotebuildexecutionV1alpha::BuildBazelRemoteExecutionV2NodeProperties

Node properties for FileNodes, DirectoryNodes, and SymlinkNodes. The server is responsible for specifying the properties that it accepts. Corresponds to the JSON property nodeProperties



1368
1369
1370
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1368

def node_properties
  @node_properties
end

#targetString

The target path of the symlink. The path separator is a forward slash /. The target path can be relative to the parent directory of the symlink or it can be an absolute path starting with /. Support for absolute paths can be checked using the Capabilities API. .. components are allowed anywhere in the target path as logical canonicalization may lead to different behavior in the presence of directory symlinks (e.g. foo/../bar may not be the same as bar). To reduce potential cache misses, canonicalization is still recommended where this is possible without impacting correctness. Corresponds to the JSON property target

Returns:

  • (String)


1380
1381
1382
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1380

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1387
1388
1389
1390
1391
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1387

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @node_properties = args[:node_properties] if args.key?(:node_properties)
  @target = args[:target] if args.key?(:target)
end