예제 #1
0
 internal DataFeedDetail(DataFeedSourceType dataSourceType, string dataFeedId, string dataFeedName, string dataFeedDescription, DataFeedGranularityType granularityName, int?granularityAmount, IList <DataFeedMetric> metrics, IList <DataFeedDimension> dimension, string timestampColumn, DateTimeOffset dataStartFrom, long?startOffsetInSeconds, int?maxConcurrency, long?minRetryIntervalInSeconds, long?stopRetryAfterInSeconds, DataFeedRollupType?needRollup, DataFeedAutoRollupMethod?rollUpMethod, IList <string> rollUpColumns, string allUpIdentification, DataFeedMissingDataPointFillType?fillMissingPointType, double?fillMissingPointValue, DataFeedAccessMode?viewMode, IList <string> admins, IList <string> viewers, bool?isAdmin, string creator, DataFeedStatus?status, DateTimeOffset?createdTime, string actionLinkTemplate, AuthenticationTypeEnum?authenticationType, string credentialId)
 {
     DataSourceType            = dataSourceType;
     DataFeedId                = dataFeedId;
     DataFeedName              = dataFeedName;
     DataFeedDescription       = dataFeedDescription;
     GranularityName           = granularityName;
     GranularityAmount         = granularityAmount;
     Metrics                   = metrics;
     Dimension                 = dimension;
     TimestampColumn           = timestampColumn;
     DataStartFrom             = dataStartFrom;
     StartOffsetInSeconds      = startOffsetInSeconds;
     MaxConcurrency            = maxConcurrency;
     MinRetryIntervalInSeconds = minRetryIntervalInSeconds;
     StopRetryAfterInSeconds   = stopRetryAfterInSeconds;
     NeedRollup                = needRollup;
     RollUpMethod              = rollUpMethod;
     RollUpColumns             = rollUpColumns;
     AllUpIdentification       = allUpIdentification;
     FillMissingPointType      = fillMissingPointType;
     FillMissingPointValue     = fillMissingPointValue;
     ViewMode                  = viewMode;
     Admins             = admins;
     Viewers            = viewers;
     IsAdmin            = isAdmin;
     Creator            = creator;
     Status             = status;
     CreatedTime        = createdTime;
     ActionLinkTemplate = actionLinkTemplate;
     AuthenticationType = authenticationType;
     CredentialId       = credentialId;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BasicClusterInfo" /> class.
 /// </summary>
 /// <param name="authenticationType">Specifies the authentication scheme for the cluster. &#39;kPasswordOnly&#39; indicates the normal cohesity authentication type. &#39;kCertificateOnly&#39; indicates that certificate based authentication has been enabled and the password based authentication has been turned off. &#39;kPasswordAndCertificate&#39; indicates that both the authenticatio schemes are required..</param>
 /// <param name="bannerEnabled">Specifies if banner is enabled on the cluster..</param>
 /// <param name="clusterSoftwareVersion">Specifies the current release of the Cohesity software running on this Cohesity Cluster..</param>
 /// <param name="clusterType">Specifies the type of Cohesity Cluster. &#39;kPhysical&#39; indicates the Cohesity Cluster is hosted directly on hardware. &#39;kVirtualRobo&#39; indicates the Cohesity Cluster is hosted in a VM on a ESXi Host of a VMware vCenter Server using Cohesity&#39;s Virtual Edition. &#39;kMicrosoftCloud&#39; indicates the Cohesity Cluster is hosed in a VM on Microsoft Azure using Cohesity&#39;s Cloud Edition. &#39;kAmazonCloud&#39; indicates the Cohesity Cluster is hosed in a VM on Amazon S3 using Cohesity&#39;s Cloud Edition. &#39;kGoogleCloud&#39; indicates the Cohesity Cluster is hosed in a VM on Google Cloud Platform using Cohesity&#39;s Cloud Edition..</param>
 /// <param name="domains">Array of Domains.  Specifies a list of domains joined to the Cohesity Cluster, including the default LOCAL Cohesity domain used to store the local Cohesity users..</param>
 /// <param name="idpConfigured">Specifies Idp is configured for the Cluster..</param>
 /// <param name="idpTenantExists">Specifies Idp is configured for a Tenant..</param>
 /// <param name="languageLocale">Specifies the language and locale for the Cohesity Cluster..</param>
 /// <param name="mcmMode">Specifies whether server is running in mcm-mode. If set to true, it is in mcm-mode..</param>
 /// <param name="mcmOnPremMode">Specifies whether server is running in mcm-on-prem-mode. If set to true, it is in mcm on prem mode. This need mcm-mode to be true..</param>
 /// <param name="multiTenancyEnabled">Specifies if multi-tenancy is enabled on the cluster..</param>
 /// <param name="name">Specifies the name of the Cohesity Cluster..</param>
 public BasicClusterInfo(AuthenticationTypeEnum?authenticationType = default(AuthenticationTypeEnum?), bool?bannerEnabled = default(bool?), string clusterSoftwareVersion = default(string), ClusterTypeEnum?clusterType = default(ClusterTypeEnum?), List <string> domains = default(List <string>), bool?idpConfigured = default(bool?), bool?idpTenantExists = default(bool?), string languageLocale = default(string), bool?mcmMode = default(bool?), bool?mcmOnPremMode = default(bool?), bool?multiTenancyEnabled = default(bool?), string name = default(string))
 {
     this.AuthenticationType     = authenticationType;
     this.BannerEnabled          = bannerEnabled;
     this.ClusterSoftwareVersion = clusterSoftwareVersion;
     this.ClusterType            = clusterType;
     this.Domains             = domains;
     this.IdpConfigured       = idpConfigured;
     this.IdpTenantExists     = idpTenantExists;
     this.LanguageLocale      = languageLocale;
     this.McmMode             = mcmMode;
     this.McmOnPremMode       = mcmOnPremMode;
     this.MultiTenancyEnabled = multiTenancyEnabled;
     this.Name = name;
     this.AuthenticationType     = authenticationType;
     this.BannerEnabled          = bannerEnabled;
     this.ClusterSoftwareVersion = clusterSoftwareVersion;
     this.ClusterType            = clusterType;
     this.Domains             = domains;
     this.IdpConfigured       = idpConfigured;
     this.IdpTenantExists     = idpTenantExists;
     this.LanguageLocale      = languageLocale;
     this.McmMode             = mcmMode;
     this.McmOnPremMode       = mcmOnPremMode;
     this.MultiTenancyEnabled = multiTenancyEnabled;
     this.Name = name;
 }
예제 #3
0
        internal AzureDataExplorerDataFeedSource(SqlSourceParameter parameter, AuthenticationTypeEnum?authentication, string credentialId)
            : base(DataFeedSourceType.AzureDataExplorer)
        {
            Argument.AssertNotNull(parameter, nameof(parameter));

            ConnectionString = parameter.ConnectionString;
            Query            = parameter.Query;

            SetAuthentication(authentication);
            DataSourceCredentialId = credentialId;
        }
예제 #4
0
        internal AzureBlobDataFeedSource(AzureBlobParameter parameter, AuthenticationTypeEnum?authentication)
            : base(DataFeedSourceType.AzureBlob)
        {
            Argument.AssertNotNull(parameter, nameof(parameter));

            ConnectionString = parameter.ConnectionString;
            Container        = parameter.Container;
            BlobTemplate     = parameter.BlobTemplate;

            SetAuthentication(authentication);
        }
예제 #5
0
        internal AzureBlobDataFeedSource(AzureBlobParameter parameter, AuthenticationTypeEnum?authentication)
            : base(DataFeedSourceKind.AzureBlob)
        {
            Argument.AssertNotNull(parameter, nameof(parameter));

            ConnectionString = parameter.ConnectionString;
            Container        = parameter.Container;
            BlobTemplate     = parameter.BlobTemplate;

            Authentication = (authentication == null) ? default(AuthenticationType?) : new AuthenticationType(authentication.ToString());
        }
        internal AzureDataExplorerDataFeedSource(SqlSourceParameter parameter, AuthenticationTypeEnum?authentication, string credentialId)
            : base(DataFeedSourceKind.AzureDataExplorer)
        {
            Argument.AssertNotNull(parameter, nameof(parameter));

            ConnectionString = parameter.ConnectionString;
            Query            = parameter.Query;

            Authentication         = (authentication == null) ? default(AuthenticationType?) : new AuthenticationType(authentication.ToString());
            DataSourceCredentialId = credentialId;
        }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="User" /> class.
 /// </summary>
 /// <param name="additionalGroupNames">Array of Additional Groups.  Specifies the names of additional groups this User may belong to..</param>
 /// <param name="authenticationType">Specifies the authentication type of the user. &#39;kAuthLocal&#39; implies authenticated user is a local user. &#39;kAuthAd&#39; implies authenticated user is an Active Directory user. &#39;kAuthSalesforce&#39; implies authenticated user is a Salesforce user. &#39;kAuthGoogle&#39; implies authenticated user is a Google user. &#39;kAuthSso&#39; implies authenticated user is an SSO user..</param>
 /// <param name="clusterIdentifiers">Specifies the list of clusters this user has access to. If this is not specified, access will be granted to all clusters..</param>
 /// <param name="createdTimeMsecs">Specifies the epoch time in milliseconds when the user account was created on the Cohesity Cluster..</param>
 /// <param name="description">Specifies a description about the user..</param>
 /// <param name="domain">Specifies the fully qualified domain name (FQDN) of an Active Directory or LOCAL for the default LOCAL domain on the Cohesity Cluster. A user is uniquely identified by combination of the username and the domain..</param>
 /// <param name="effectiveTimeMsecs">Specifies the epoch time in milliseconds when the user becomes effective. Until that time, the user cannot log in..</param>
 /// <param name="emailAddress">Specifies the email address of the user..</param>
 /// <param name="expiredTimeMsecs">Specifies the epoch time in milliseconds when the user becomes expired. After that, the user cannot log in..</param>
 /// <param name="googleAccount">googleAccount.</param>
 /// <param name="idpUserInfo">idpUserInfo.</param>
 /// <param name="lastUpdatedTimeMsecs">Specifies the epoch time in milliseconds when the user account was last modified on the Cohesity Cluster..</param>
 /// <param name="orgMembership">OrgMembership contains the list of all available tenantIds for this user to switch to. Only when creating the session user, this field is populated on the fly. We discover the tenantIds from various groups assigned to the users..</param>
 /// <param name="password">Specifies the password of this user..</param>
 /// <param name="preferences">preferences.</param>
 /// <param name="primaryGroupName">Specifies the name of the primary group of this User..</param>
 /// <param name="privilegeIds">Array of Privileges.  Specifies the Cohesity privileges from the roles. This will be populated based on the union of all privileges in roles. Type for unique privilege Id values. All below enum values specify a value for all uniquely defined privileges in Cohesity..</param>
 /// <param name="restricted">Whether the user is a restricted user. A restricted user can only view the objects he has permissions to..</param>
 /// <param name="roles">Array of Roles.  Specifies the Cohesity roles to associate with the user such as such as &#39;Admin&#39;, &#39;Ops&#39; or &#39;View&#39;. The Cohesity roles determine privileges on the Cohesity Cluster for this user..</param>
 /// <param name="s3AccessKeyId">Specifies the S3 Account Access Key ID..</param>
 /// <param name="s3AccountId">Specifies the S3 Account Canonical User ID..</param>
 /// <param name="s3SecretKey">Specifies the S3 Account Secret Key..</param>
 /// <param name="salesforceAccount">salesforceAccount.</param>
 /// <param name="sid">Specifies the unique Security ID (SID) of the user..</param>
 /// <param name="tenantId">Specifies the effective Tenant ID of the user..</param>
 /// <param name="username">Specifies the login name of the user..</param>
 public User(List <string> additionalGroupNames = default(List <string>), AuthenticationTypeEnum?authenticationType = default(AuthenticationTypeEnum?), List <ClusterIdentifier> clusterIdentifiers = default(List <ClusterIdentifier>), long?createdTimeMsecs = default(long?), string description = default(string), string domain = default(string), long?effectiveTimeMsecs = default(long?), string emailAddress = default(string), long?expiredTimeMsecs = default(long?), GoogleAccountInfo googleAccount = default(GoogleAccountInfo), IdpUserInfo idpUserInfo = default(IdpUserInfo), long?lastUpdatedTimeMsecs = default(long?), List <TenantConfig> orgMembership = default(List <TenantConfig>), string password = default(string), Preferences preferences = default(Preferences), string primaryGroupName = default(string), List <PrivilegeIdsEnum> privilegeIds = default(List <PrivilegeIdsEnum>), bool?restricted = default(bool?), List <string> roles = default(List <string>), string s3AccessKeyId = default(string), string s3AccountId = default(string), string s3SecretKey = default(string), SalesforceAccountInfo salesforceAccount = default(SalesforceAccountInfo), string sid = default(string), string tenantId = default(string), string username = default(string))
 {
     this.AdditionalGroupNames = additionalGroupNames;
     this.AuthenticationType   = authenticationType;
     this.ClusterIdentifiers   = clusterIdentifiers;
     this.CreatedTimeMsecs     = createdTimeMsecs;
     this.Description          = description;
     this.Domain               = domain;
     this.EffectiveTimeMsecs   = effectiveTimeMsecs;
     this.EmailAddress         = emailAddress;
     this.ExpiredTimeMsecs     = expiredTimeMsecs;
     this.LastUpdatedTimeMsecs = lastUpdatedTimeMsecs;
     this.OrgMembership        = orgMembership;
     this.Password             = password;
     this.PrimaryGroupName     = primaryGroupName;
     this.PrivilegeIds         = privilegeIds;
     this.Restricted           = restricted;
     this.Roles                = roles;
     this.S3AccessKeyId        = s3AccessKeyId;
     this.S3AccountId          = s3AccountId;
     this.S3SecretKey          = s3SecretKey;
     this.Sid                  = sid;
     this.TenantId             = tenantId;
     this.Username             = username;
     this.AdditionalGroupNames = additionalGroupNames;
     this.AuthenticationType   = authenticationType;
     this.ClusterIdentifiers   = clusterIdentifiers;
     this.CreatedTimeMsecs     = createdTimeMsecs;
     this.Description          = description;
     this.Domain               = domain;
     this.EffectiveTimeMsecs   = effectiveTimeMsecs;
     this.EmailAddress         = emailAddress;
     this.ExpiredTimeMsecs     = expiredTimeMsecs;
     this.GoogleAccount        = googleAccount;
     this.IdpUserInfo          = idpUserInfo;
     this.LastUpdatedTimeMsecs = lastUpdatedTimeMsecs;
     this.OrgMembership        = orgMembership;
     this.Password             = password;
     this.Preferences          = preferences;
     this.PrimaryGroupName     = primaryGroupName;
     this.PrivilegeIds         = privilegeIds;
     this.Restricted           = restricted;
     this.Roles                = roles;
     this.S3AccessKeyId        = s3AccessKeyId;
     this.S3AccountId          = s3AccountId;
     this.S3SecretKey          = s3SecretKey;
     this.SalesforceAccount    = salesforceAccount;
     this.Sid                  = sid;
     this.TenantId             = tenantId;
     this.Username             = username;
 }
예제 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConvertHtmlData" /> class.
 /// </summary>
 /// <param name="UseAsyncPattern">Use async behaviour for API request (default to false).</param>
 /// <param name="SourceUrlOrHtml">HTML fragment or URL to convert (required).</param>
 /// <param name="PageOrientation">Page orientation (default to PageOrientationEnum.Portrait).</param>
 /// <param name="Username">User name.</param>
 /// <param name="Password">Password.</param>
 /// <param name="AuthenticationType">Authentication type (default to AuthenticationTypeEnum.Basic).</param>
 /// <param name="FailOnError">Fail on error (default to true).</param>
 public ConvertHtmlData(bool?UseAsyncPattern = false, string SourceUrlOrHtml = default(string), PageOrientationEnum?PageOrientation = PageOrientationEnum.Portrait, string Username = default(string), string Password = default(string), AuthenticationTypeEnum?AuthenticationType = AuthenticationTypeEnum.Basic, bool?FailOnError = true)
 {
     // to ensure "SourceUrlOrHtml" is required (not null)
     if (SourceUrlOrHtml == null)
     {
         throw new InvalidDataException("SourceUrlOrHtml is a required property for ConvertHtmlData and cannot be null");
     }
     else
     {
         this.SourceUrlOrHtml = SourceUrlOrHtml;
     }
     // use default value if no "UseAsyncPattern" provided
     if (UseAsyncPattern == null)
     {
         this.UseAsyncPattern = false;
     }
     else
     {
         this.UseAsyncPattern = UseAsyncPattern;
     }
     // use default value if no "PageOrientation" provided
     if (PageOrientation == null)
     {
         this.PageOrientation = PageOrientationEnum.Portrait;
     }
     else
     {
         this.PageOrientation = PageOrientation;
     }
     this.Username = Username;
     this.Password = Password;
     // use default value if no "AuthenticationType" provided
     if (AuthenticationType == null)
     {
         this.AuthenticationType = AuthenticationTypeEnum.Basic;
     }
     else
     {
         this.AuthenticationType = AuthenticationType;
     }
     // use default value if no "FailOnError" provided
     if (FailOnError == null)
     {
         this.FailOnError = true;
     }
     else
     {
         this.FailOnError = FailOnError;
     }
 }
예제 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Webhook" /> class.
 /// </summary>
 /// <param name="apiUserOid">Populated if webhook associated with an API user.</param>
 /// <param name="apiVersion">Version of the API objects that are sent in notifications.</param>
 /// <param name="applicationProfile">applicationProfile.</param>
 /// <param name="authenticationType">The type of authentication this webhook will use when communicating with your server.</param>
 /// <param name="basicPassword">Basic authentication password.</param>
 /// <param name="basicUsername">Basic authentication user name.</param>
 /// <param name="consecutiveFailures">The number of consecutive failures that have occurred trying to deliver notifications to the target server.</param>
 /// <param name="disabled">True if the webhook has been disabled.</param>
 /// <param name="eventCategories">The categories of events.  Individual events and subscriptions are handled in the child objects.  _placeholders parameter effects the population of this on a retrieval..</param>
 /// <param name="iamAccessKey">IAM Access Key for AWS SQS Delivery.</param>
 /// <param name="iamSecretKey">IAM Secret Key for AWS SQS Delivery.</param>
 /// <param name="maximumEvents">The maximum number of events in the payload that UltraCart will deliver.</param>
 /// <param name="maximumSize">The maximum size of the payload that UltraCart will deliver.</param>
 /// <param name="merchantId">The UltraCart merchant ID that owns this webhook.</param>
 /// <param name="nextRetryAfter">The next time UltraCart will attempt delivery if failures have been occurring.</param>
 /// <param name="pending">The number of pending events for this webhook.</param>
 /// <param name="webhookOid">The object identifier for this webhook.</param>
 /// <param name="webhookUrl">The URL to deliver events to.  Must be HTTPS for customer related information..</param>
 public Webhook(int?apiUserOid = default(int?), ApiVersionEnum?apiVersion = default(ApiVersionEnum?), ApiUserApplicationProfile applicationProfile = default(ApiUserApplicationProfile), AuthenticationTypeEnum?authenticationType = default(AuthenticationTypeEnum?), string basicPassword = default(string), string basicUsername = default(string), int?consecutiveFailures = default(int?), bool?disabled = default(bool?), List <WebhookEventCategory> eventCategories = default(List <WebhookEventCategory>), string iamAccessKey = default(string), string iamSecretKey = default(string), int?maximumEvents = default(int?), int?maximumSize = default(int?), string merchantId = default(string), string nextRetryAfter = default(string), int?pending = default(int?), int?webhookOid = default(int?), string webhookUrl = default(string))
 {
     this.ApiUserOid          = apiUserOid;
     this.ApiVersion          = apiVersion;
     this.ApplicationProfile  = applicationProfile;
     this.AuthenticationType  = authenticationType;
     this.BasicPassword       = basicPassword;
     this.BasicUsername       = basicUsername;
     this.ConsecutiveFailures = consecutiveFailures;
     this.Disabled            = disabled;
     this.EventCategories     = eventCategories;
     this.IamAccessKey        = iamAccessKey;
     this.IamSecretKey        = iamSecretKey;
     this.MaximumEvents       = maximumEvents;
     this.MaximumSize         = maximumSize;
     this.MerchantId          = merchantId;
     this.NextRetryAfter      = nextRetryAfter;
     this.Pending             = pending;
     this.WebhookOid          = webhookOid;
     this.WebhookUrl          = webhookUrl;
 }
예제 #10
0
 internal InfluxDBDataFeed(DataFeedSourceKind dataSourceType, string dataFeedId, string dataFeedName, string dataFeedDescription, DataFeedGranularityType granularityName, int?granularityAmount, IList <DataFeedMetric> metrics, IList <DataFeedDimension> dimension, string timestampColumn, DateTimeOffset dataStartFrom, long?startOffsetInSeconds, int?maxConcurrency, long?minRetryIntervalInSeconds, long?stopRetryAfterInSeconds, DataFeedRollupType?needRollup, DataFeedAutoRollupMethod?rollUpMethod, IList <string> rollUpColumns, string allUpIdentification, DataFeedMissingDataPointFillType?fillMissingPointType, double?fillMissingPointValue, DataFeedAccessMode?viewMode, IList <string> admins, IList <string> viewers, bool?isAdmin, string creator, DataFeedStatus?status, DateTimeOffset?createdTime, string actionLinkTemplate, AuthenticationTypeEnum?authenticationType, string credentialId, InfluxDBParameter dataSourceParameter) : base(dataSourceType, dataFeedId, dataFeedName, dataFeedDescription, granularityName, granularityAmount, metrics, dimension, timestampColumn, dataStartFrom, startOffsetInSeconds, maxConcurrency, minRetryIntervalInSeconds, stopRetryAfterInSeconds, needRollup, rollUpMethod, rollUpColumns, allUpIdentification, fillMissingPointType, fillMissingPointValue, viewMode, admins, viewers, isAdmin, creator, status, createdTime, actionLinkTemplate, authenticationType, credentialId)
 {
     DataSourceParameter = dataSourceParameter;
     DataSourceType      = dataSourceType;
 }
        internal AzureDataLakeStorageGen2DataFeedSource(AzureDataLakeStorageGen2Parameter parameter, AuthenticationTypeEnum?authentication, string credentialId)
            : base(DataFeedSourceType.AzureDataLakeStorageGen2)
        {
            Argument.AssertNotNull(parameter, nameof(parameter));

            AccountName       = parameter.AccountName;
            AccountKey        = parameter.AccountKey;
            FileSystemName    = parameter.FileSystemName;
            DirectoryTemplate = parameter.DirectoryTemplate;
            FileTemplate      = parameter.FileTemplate;

            SetAuthentication(authentication);
            DatasourceCredentialId = credentialId;
        }
예제 #12
0
        internal AzureDataLakeStorageDataFeedSource(AzureDataLakeStorageGen2Parameter parameter, AuthenticationTypeEnum?authentication, string credentialId)
            : base(DataFeedSourceKind.AzureDataLakeStorage)
        {
            Argument.AssertNotNull(parameter, nameof(parameter));

            AccountName       = parameter.AccountName;
            AccountKey        = parameter.AccountKey;
            FileSystemName    = parameter.FileSystemName;
            DirectoryTemplate = parameter.DirectoryTemplate;
            FileTemplate      = parameter.FileTemplate;

            Authentication         = (authentication == null) ? default(AuthenticationType?) : new AuthenticationType(authentication.ToString());
            DataSourceCredentialId = credentialId;
        }