Class SandboxConfigSnapshot
- Namespace
- Openshell.Sandbox.V1
- Assembly
- OpenShell.Sdk.dll
Complete effective sandbox configuration delivered to a supervisor. Fields have the same meaning as the identically numbered GetSandboxConfigResponse fields, including fail-closed handling of an unknown policy_validation_failure_mode and treating absent configuration_admitted as not admitted. Move those field comments here when the polling RPC is removed.
public sealed class SandboxConfigSnapshot : IMessage<SandboxConfigSnapshot>, IEquatable<SandboxConfigSnapshot>, IDeepCloneable<SandboxConfigSnapshot>, IBufferMessage, IMessage
- Inheritance
-
SandboxConfigSnapshot
- Implements
-
IMessage<SandboxConfigSnapshot>IDeepCloneable<SandboxConfigSnapshot>IBufferMessageIMessage
- Inherited Members
Constructors
SandboxConfigSnapshot()
public SandboxConfigSnapshot()
SandboxConfigSnapshot(SandboxConfigSnapshot)
public SandboxConfigSnapshot(SandboxConfigSnapshot other)
Parameters
otherSandboxConfigSnapshot
Fields
ConfigRevisionFieldNumber
Field number for the "config_revision" field.
public const int ConfigRevisionFieldNumber = 5
Field Value
ConfigurationAdmittedFieldNumber
Field number for the "configuration_admitted" field.
public const int ConfigurationAdmittedFieldNumber = 13
Field Value
ConfigurationErrorFieldNumber
Field number for the "configuration_error" field.
public const int ConfigurationErrorFieldNumber = 16
Field Value
ConfigurationInstanceIdFieldNumber
Field number for the "configuration_instance_id" field.
public const int ConfigurationInstanceIdFieldNumber = 15
Field Value
ExtensionAuthenticationEnabledFieldNumber
Field number for the "extension_authentication_enabled" field.
public const int ExtensionAuthenticationEnabledFieldNumber = 12
Field Value
GlobalPolicyVersionFieldNumber
Field number for the "global_policy_version" field.
public const int GlobalPolicyVersionFieldNumber = 7
Field Value
PolicyFieldNumber
Field number for the "policy" field.
public const int PolicyFieldNumber = 1
Field Value
PolicyHashFieldNumber
Field number for the "policy_hash" field.
public const int PolicyHashFieldNumber = 3
Field Value
PolicySourceFieldNumber
Field number for the "policy_source" field.
public const int PolicySourceFieldNumber = 6
Field Value
PolicyValidationFailureModeFieldNumber
Field number for the "policy_validation_failure_mode" field.
public const int PolicyValidationFailureModeFieldNumber = 11
Field Value
ProviderAttachmentEpochFieldNumber
Field number for the "provider_attachment_epoch" field.
public const int ProviderAttachmentEpochFieldNumber = 14
Field Value
ProviderEnvRevisionFieldNumber
Field number for the "provider_env_revision" field.
public const int ProviderEnvRevisionFieldNumber = 8
Field Value
ServiceRoutesFieldNumber
Field number for the "service_routes" field.
public const int ServiceRoutesFieldNumber = 18
Field Value
SettingsFieldNumber
Field number for the "settings" field.
public const int SettingsFieldNumber = 4
Field Value
SettingsRevisionFieldNumber
Field number for the "settings_revision" field.
public const int SettingsRevisionFieldNumber = 17
Field Value
SupervisorMiddlewareServicesFieldNumber
Field number for the "supervisor_middleware_services" field.
public const int SupervisorMiddlewareServicesFieldNumber = 9
Field Value
VersionFieldNumber
Field number for the "version" field.
public const int VersionFieldNumber = 2
Field Value
WorkspaceFieldNumber
Field number for the "workspace" field.
public const int WorkspaceFieldNumber = 10
Field Value
Properties
ConfigRevision
public ulong ConfigRevision { get; set; }
Property Value
ConfigurationAdmitted
public bool ConfigurationAdmitted { get; set; }
Property Value
ConfigurationError
public string ConfigurationError { get; set; }
Property Value
ConfigurationInstanceId
public string ConfigurationInstanceId { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
ExtensionAuthenticationEnabled
public bool ExtensionAuthenticationEnabled { get; set; }
Property Value
GlobalPolicyVersion
public uint GlobalPolicyVersion { get; set; }
Property Value
Parser
public static MessageParser<SandboxConfigSnapshot> Parser { get; }
Property Value
- MessageParser<SandboxConfigSnapshot>
Policy
public SandboxPolicy Policy { get; set; }
Property Value
PolicyHash
public string PolicyHash { get; set; }
Property Value
PolicySource
public PolicySource PolicySource { get; set; }
Property Value
PolicyValidationFailureMode
public string PolicyValidationFailureMode { get; set; }
Property Value
ProviderAttachmentEpoch
public string ProviderAttachmentEpoch { get; set; }
Property Value
ProviderEnvRevision
public ulong ProviderEnvRevision { get; set; }
Property Value
ServiceRoutes
Explicit application ingress allowlist. Absent means no app routes.
public RepeatedField<SandboxServiceRoute> ServiceRoutes { get; }
Property Value
- RepeatedField<SandboxServiceRoute>
Settings
public MapField<string, EffectiveSetting> Settings { get; }
Property Value
- MapField<string, EffectiveSetting>
SettingsRevision
public ulong SettingsRevision { get; set; }
Property Value
SupervisorMiddlewareServices
public RepeatedField<SupervisorMiddlewareService> SupervisorMiddlewareServices { get; }
Property Value
- RepeatedField<SupervisorMiddlewareService>
Version
public uint Version { get; set; }
Property Value
Workspace
public string Workspace { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public SandboxConfigSnapshot Clone()
Returns
- SandboxConfigSnapshot
A deep clone of this object.
Equals(SandboxConfigSnapshot)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SandboxConfigSnapshot other)
Parameters
otherSandboxConfigSnapshotAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(SandboxConfigSnapshot)
Merges the given message into this one.
public void MergeFrom(SandboxConfigSnapshot other)
Parameters
otherSandboxConfigSnapshot
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.