internal PSContainerRegistry(Microsoft.Azure.Batch.ContainerRegistry omObject) { if ((omObject == null)) { throw new System.ArgumentNullException("omObject"); } this.omObject = omObject; }
/// <summary> /// Initializes a new instance of the <see cref="TaskContainerSettings"/> class. /// </summary> /// <param name='imageName'>The image to use to create the container in which the task will run.</param> /// <param name='containerRunOptions'>Additional options to the container create command.</param> /// <param name='registry'>The private registry which contains the container image.</param> public TaskContainerSettings( string imageName, string containerRunOptions = default(string), ContainerRegistry registry = default(ContainerRegistry)) { this.ImageName = imageName; this.ContainerRunOptions = containerRunOptions; this.Registry = registry; }
public PSContainerRegistry(string userName = null, string password = null, string registryServer = null, PSComputeNodeIdentityReference identityReference = default(PSComputeNodeIdentityReference)) { Microsoft.Azure.Batch.ComputeNodeIdentityReference identityReferenceOmObject = null; if ((identityReference != null)) { identityReferenceOmObject = identityReference.omObject; } this.omObject = new Microsoft.Azure.Batch.ContainerRegistry(userName, password, registryServer, identityReferenceOmObject); }
public PSTaskContainerSettings(string imageName, string containerRunOptions = null, PSContainerRegistry registry = default(PSContainerRegistry), System.Nullable <Microsoft.Azure.Batch.Common.ContainerWorkingDirectory> workingDirectory = null) { Microsoft.Azure.Batch.ContainerRegistry registryOmObject = null; if ((registry != null)) { registryOmObject = registry.omObject; } this.omObject = new Microsoft.Azure.Batch.TaskContainerSettings(imageName, containerRunOptions, registryOmObject, workingDirectory); }
public PSTaskContainerSettings(string imageName, string containerRunOptions = null, PSContainerRegistry registry = default(PSContainerRegistry)) { Microsoft.Azure.Batch.ContainerRegistry registryOmObject = null; if ((registry != null)) { registryOmObject = registry.omObject; } this.omObject = new Microsoft.Azure.Batch.TaskContainerSettings(imageName, containerRunOptions, registryOmObject); }
public PropertyContainer(Models.ContainerConfiguration protocolObject) : base(BindingState.Bound) { this.ContainerImageNamesProperty = this.CreatePropertyAccessor( UtilitiesInternal.CollectionToThreadSafeCollection(protocolObject.ContainerImageNames, o => o), nameof(ContainerImageNames), BindingAccess.Read); this.ContainerRegistriesProperty = this.CreatePropertyAccessor( ContainerRegistry.ConvertFromProtocolCollectionAndFreeze(protocolObject.ContainerRegistries), nameof(ContainerRegistries), BindingAccess.Read); }
/// <summary> /// Initializes a new instance of the <see cref="TaskContainerSettings"/> class. /// </summary> /// <param name='imageName'>The image to use to create the container in which the task will run.</param> /// <param name='containerRunOptions'>Additional options to the container create command.</param> /// <param name='registry'>The private registry which contains the container image.</param> /// <param name='workingDirectory'>The location of the container task working directory.</param> public TaskContainerSettings( string imageName, string containerRunOptions = default(string), ContainerRegistry registry = default(ContainerRegistry), Common.ContainerWorkingDirectory?workingDirectory = default(Common.ContainerWorkingDirectory?)) { this.ImageName = imageName; this.ContainerRunOptions = containerRunOptions; this.Registry = registry; this.WorkingDirectory = workingDirectory; }
public PSContainerRegistry(string userName, string registryServer = null, string password = null) { this.omObject = new Microsoft.Azure.Batch.ContainerRegistry(userName, registryServer, password); }