Class: Google::Apis::RemotebuildexecutionV1alpha::BuildBazelRemoteExecutionV2OutputSymlink

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BuildBazelRemoteExecutionV2OutputSymlink

Returns a new instance of BuildBazelRemoteExecutionV2OutputSymlink.



1180
1181
1182
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1180

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

Instance Attribute Details

#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)


1168
1169
1170
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1168

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. The canonical form forbids the substrings /./ and // in the target path. .. components are allowed anywhere in the target path. Corresponds to the JSON property target

Returns:

  • (String)


1178
1179
1180
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1178

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1185
1186
1187
1188
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1185

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