This is the implementation of Smartsheet interface. Thread Safety: This class is thread safe because all its mutable fields are safe-guarded using AtomicReference To ensure atomic modifications, and also the underlying HttpClient and JsonSerializer interfaces are thread safe.
Inheritance: SmartsheetClient
 /// <summary>
 /// Constructor.
 /// 
 /// Parameters: - Smartsheet : the SmartsheetImpl
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public SheetRowResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.attachments = new RowAttachmentResourcesImpl(smartsheet);
     this.discussions = new RowDiscussionResourcesImpl(smartsheet);
     this.cells = new RowColumnResourcesImpl(smartsheet);
 }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="smartsheet"> the Smartsheet </param>
        /// <param name="masterResourceType"> the master resource Type </param>
        public AbstractAssociatedResources(SmartsheetImpl smartsheet, string masterResourceType) : base(smartsheet)
        {
            Utils.ThrowIfNull(masterResourceType);
            Utils.ThrowIfEmpty(masterResourceType);

            this.masterResourceType = masterResourceType;
        }
 /// <summary>
 /// Constructor.
 ///
 /// Parameters: - Smartsheet : the SmartsheetImpl
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public SheetRowResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.attachments = new RowAttachmentResourcesImpl(smartsheet);
     this.discussions = new RowDiscussionResourcesImpl(smartsheet);
     this.cells       = new RowColumnResourcesImpl(smartsheet);
 }
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions:
 ///   - IllegalArgumentException : if any argument is
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public WorkspaceResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.folders = new WorkspaceFolderResourcesImpl(smartsheet);
     this.sheets  = new WorkspaceSheetResourcesImpl(smartsheet);
     this.shares  = new ShareResourcesImpl(smartsheet, "workspaces");
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: 
 ///   - IllegalArgumentException : if any argument is
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public WorkspaceResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.folders = new WorkspaceFolderResourcesImpl(smartsheet);
     this.sheets = new WorkspaceSheetResourcesImpl(smartsheet);
     this.shares = new ShareResourcesImpl(smartsheet, "workspaces");
 }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="smartsheet"> the Smartsheet </param>
        /// <param name="masterResourceType"> the master resource Type </param>
        public AbstractAssociatedResources(SmartsheetImpl smartsheet, string masterResourceType)
            : base(smartsheet)
        {
            Utils.ThrowIfNull(masterResourceType);
            Utils.ThrowIfEmpty(masterResourceType);

            this.masterResourceType = masterResourceType;
        }
Exemplo n.º 7
0
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public SheetResourcesImpl(SmartsheetImpl smartsheet) : base(smartsheet)
 {
     this.shares      = new ShareResourcesImpl(smartsheet, "sheet");
     this.rows        = new SheetRowResourcesImpl(smartsheet);
     this.columns     = new SheetColumnResourcesImpl(smartsheet);
     this.attachments = new AssociatedAttachmentResourcesImpl(smartsheet, "sheet");
     this.discussions = new AssociatedDiscussionResourcesImpl(smartsheet, "sheet");
 }
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public SheetResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.shares         = new ShareResourcesImpl(smartsheet, "sheets");
     this.rows           = new SheetRowResourcesImpl(smartsheet);
     this.columns        = new SheetColumnResourcesImpl(smartsheet);
     this.attachments    = new SheetAttachmentResourcesImpl(smartsheet);
     this.discussions    = new SheetDiscussionResourcesImpl(smartsheet);
     this.comments       = new SheetCommentResourcesImpl(smartsheet);
     this.updateRequests = new SheetUpdateRequestResourcesImpl(smartsheet);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public SheetResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.shares               = new ShareResourcesImpl(smartsheet, "sheets");
     this.rows                 = new SheetRowResourcesImpl(smartsheet);
     this.columns              = new SheetColumnResourcesImpl(smartsheet);
     this.attachments          = new SheetAttachmentResourcesImpl(smartsheet);
     this.discussions          = new SheetDiscussionResourcesImpl(smartsheet);
     this.comments             = new SheetCommentResourcesImpl(smartsheet);
     this.updateRequests       = new SheetUpdateRequestResourcesImpl(smartsheet);
     this.filters              = new SheetFilterResourcesImpl(smartsheet);
     this.automationRules      = new SheetAutomationRuleResourcesImpl(smartsheet);
     this.crossSheetReferences = new SheetCrossSheetReferencesResourcesImpl(smartsheet);
 }
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public SightResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.shares = new ShareResourcesImpl(smartsheet, "sights");
 }
Exemplo n.º 11
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <exception cref="IllegalArgumentException">if any argument is null</exception>
 public SheetDiscussionResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.attachments = new DiscussionAttachmentResourcesImpl(smartsheet);
     this.comments    = new DiscussionCommentResourcesImpl(smartsheet);
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <exception cref="IllegalArgumentException">if any argument is null</exception>
 public RowAttachmentResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
Exemplo n.º 13
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public SheetAttachmentResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.versioning = new AttachmentVersioningResourcesImpl(smartsheet);
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <exception cref="IllegalArgumentException">if any argument is null</exception>
 public HomeFolderResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public WorkspaceSheetResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the SmartsheetImpl </param>
 /// <exception cref="IllegalArgumentException">if any argument is null</exception>
 public TokenResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public GroupResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 public SheetUpdateRequestResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public RowDiscussionResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <exception cref="IllegalArgumentException">if any argument is null</exception>
 public SheetDiscussionResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.attachments = new DiscussionAttachmentResourcesImpl(smartsheet);
     this.comments = new DiscussionCommentResourcesImpl(smartsheet);
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null or empty string
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public ServerInfoResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public UserResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.sheets = new UserSheetResourcesImpl(smartsheet);
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public HomeResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.folders = new HomeFolderResourcesImpl(smartsheet);
 }
Exemplo n.º 24
0
 /// <summary>
 /// Constructor.
 ///
 /// Parameters: - Smartsheet : the SmartsheetImpl
 ///
 /// Exceptions:
 ///   IllegalArgumentException : if any argument is null or empty string
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public CommentAttachmentResources(SmartsheetImpl smartsheet) : base(smartsheet, "comment")
 {
 }
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public UserSheetResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public WebhookResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <exception cref="IllegalArgumentException">if any argument is null</exception>
 public DiscussionCommentResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public SearchResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 public AssociatedDiscussionResourcesImpl(SmartsheetImpl smartsheet, string masterResourceType)
     : base(smartsheet, masterResourceType)
 {
 }
Exemplo n.º 30
0
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null or empty string
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public ServerInfoResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the SmartsheetImpl </param>
 /// <exception cref="InvalidOperationException">if any argument is null</exception>
 public FolderResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.sheets = new FolderSheetResourcesImpl(smartsheet);
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public WorkspaceSheetResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public UserSheetResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Parameters: - Smartsheet : the SmartsheetImpl
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public ImageUrlsResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 public AssociatedAttachmentResourcesImpl(SmartsheetImpl smartsheet, string masterResourceType)
     : base(smartsheet, masterResourceType)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Parameters: - Smartsheet : the SmartsheetImpl
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public AttachmentVersioningResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
Exemplo n.º 37
0
 /// <summary>
 ///     Constructor.
 ///     Exceptions: - IllegalArgumentException : if any argument is
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public ReportResourcesImpl(SmartsheetImpl smartsheet) : base(smartsheet)
 {
 }
 public SheetUpdateRequestResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
Exemplo n.º 39
0
 /// <summary>
 /// Constructor.
 ///
 /// Parameters: - Smartsheet : the SmartsheetImpl
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public ImageUrlsResourcesImpl(SmartsheetImpl smartsheet) : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null or empty string
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <param name="masterResourceType"> the master resource Type (e.g. "sheets", "workspaces", "reports") </param>
 public ShareResourcesImpl(SmartsheetImpl smartsheet, string masterResourceType)
     : base(smartsheet, masterResourceType)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public RowColumnResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public SightResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.shares = new ShareResourcesImpl(smartsheet, "sights");
 }
Exemplo n.º 43
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <exception cref="InvalidOperationException">if any argument is null</exception>
 public SheetColumnResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
Exemplo n.º 44
0
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public AttachmentResourcesImpl(SmartsheetImpl smartsheet) : base(smartsheet)
 {
 }
 public AssociatedDiscussionResourcesImpl(SmartsheetImpl smartsheet, string masterResourceType) :
     base(smartsheet, masterResourceType)
 {
 }
Exemplo n.º 46
0
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null or empty string
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public DiscussionAttachmentResources(SmartsheetImpl smartsheet) : base(smartsheet, "discussion")
 {
 }
Exemplo n.º 47
0
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public WorkspaceFolderResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
Exemplo n.º 48
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <exception cref="InvalidOperationException">if any argument is null</exception>
 public ContactResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
Exemplo n.º 49
0
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public EventResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public ReportResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.shares = new ShareResourcesImpl(smartsheet, "reports");
 }
Exemplo n.º 51
0
 /// <summary>
 /// Constructor.
 ///
 /// Exceptions: - IllegalArgumentException : if any argument is null
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public HomeFolderResourcesImpl(SmartsheetImpl smartsheet) : base(smartsheet)
 {
 }
 public CommentResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <exception cref="IllegalArgumentException">if any argument is null</exception>
 public SheetCommentResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
     this.attachments = new CommentAttachmentResourcesImpl(smartsheet);
 }
Exemplo n.º 54
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the SmartsheetImpl </param>
 /// <exception cref="InvalidOperationException">if any argument is null</exception>
 public TokenResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="smartsheet"> the SmartsheetClient </param>
        protected internal AbstractResources(SmartsheetImpl smartsheet)
        {
            Utils.ThrowIfNull(smartsheet);

            this.smartsheet = smartsheet;
        }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public TemplateResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 public DiscussionResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <exception cref="IllegalArgumentException">if any argument is null</exception>
 public ContactResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
Exemplo n.º 59
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 /// <exception cref="InvalidOperationException">if any argument is null</exception>
 public DiscussionAttachmentResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }
 /// <summary>
 /// Constructor.
 /// 
 /// Exceptions: - IllegalArgumentException : if any argument is
 /// </summary>
 /// <param name="smartsheet"> the Smartsheet </param>
 public WorkspaceFolderResourcesImpl(SmartsheetImpl smartsheet)
     : base(smartsheet)
 {
 }