Class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2SymlinkNode

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



2014
2015
2016
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2014

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


1994
1995
1996
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1994

def name
  @name
end

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



2000
2001
2002
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2000

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)


2012
2013
2014
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2012

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2019
2020
2021
2022
2023
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2019

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