Class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties

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

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.



1527
1528
1529
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1527

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

Instance Attribute Details

#mtimeString

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

Returns:

  • (String)


1515
1516
1517
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1515

def mtime
  @mtime
end

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

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



1520
1521
1522
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1520

def properties
  @properties
end

#unix_modeFixnum

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

Returns:

  • (Fixnum)


1525
1526
1527
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1525

def unix_mode
  @unix_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1532
1533
1534
1535
1536
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1532

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