Class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2OutputSymlink

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

An OutputSymlink is similar to a Symlink, but it is used as an output in an ActionResult. OutputSymlink is binary-compatible with SymlinkNode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuildBazelRemoteExecutionV2OutputSymlink

Returns a new instance of BuildBazelRemoteExecutionV2OutputSymlink.



1721
1722
1723
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1721

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

Instance Attribute Details

#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



1703
1704
1705
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1703

def node_properties
  @node_properties
end

#pathString

The full path of the symlink relative to the working directory, including the filename. The path separator is a forward slash /. Since this is a relative path, it MUST NOT begin with a leading forward slash. Corresponds to the JSON property path

Returns:

  • (String)


1710
1711
1712
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1710

def path
  @path
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. Corresponds to the JSON property target

Returns:

  • (String)


1719
1720
1721
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1719

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1726
1727
1728
1729
1730
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1726

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