Class: Google::Apis::RemotebuildexecutionV1alpha::BuildBazelRemoteExecutionV2NodeProperties

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

Node properties for FileNodes, DirectoryNodes, and SymlinkNodes. The server is responsible for specifying the properties that it accepts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuildBazelRemoteExecutionV2NodeProperties

Returns a new instance of BuildBazelRemoteExecutionV2NodeProperties.



1011
1012
1013
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1011

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

Instance Attribute Details

#mtimeString

The file's last modification timestamp. Corresponds to the JSON property mtime

Returns:

  • (String)


999
1000
1001
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 999

def mtime
  @mtime
end

#propertiesArray<Google::Apis::RemotebuildexecutionV1alpha::BuildBazelRemoteExecutionV2NodeProperty>

A list of string-based NodeProperties. Corresponds to the JSON property properties



1004
1005
1006
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1004

def properties
  @properties
end

#unix_modeFixnum

The UNIX file mode, e.g., 0755. Corresponds to the JSON property unixMode

Returns:

  • (Fixnum)


1009
1010
1011
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1009

def unix_mode
  @unix_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1016
1017
1018
1019
1020
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1016

def update!(**args)
  @mtime = args[:mtime] if args.key?(:mtime)
  @properties = args[:properties] if args.key?(:properties)
  @unix_mode = args[:unix_mode] if args.key?(:unix_mode)
end