Class: Google::Apis::RemotebuildexecutionV1::BuildBazelRemoteExecutionV2SymlinkNode

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/remotebuildexecution_v1/classes.rb,
lib/google/apis/remotebuildexecution_v1/representations.rb,
lib/google/apis/remotebuildexecution_v1/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.



1358
1359
1360
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1358

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


1338
1339
1340
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1338

def name
  @name
end

#node_propertiesGoogle::Apis::RemotebuildexecutionV1::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



1344
1345
1346
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1344

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)


1356
1357
1358
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1356

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1363
1364
1365
1366
1367
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1363

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