/// <summary>
 /// Initializes a new instance of the
 /// RestorableSqlContainerPropertiesResource class.
 /// </summary>
 /// <param name="_rid">A system generated property. A unique
 /// identifier.</param>
 /// <param name="operationType">The operation type of this container
 /// event. Possible values include: 'Create', 'Replace', 'Delete',
 /// 'SystemOperation'</param>
 /// <param name="eventTimestamp">The timestamp of this container
 /// event.</param>
 /// <param name="ownerId">The name of this restorable SQL
 /// container.</param>
 /// <param name="ownerResourceId">The resource Id of this restorable
 /// SQL container.</param>
 public RestorableSqlContainerPropertiesResource(string _rid = default(string), string operationType = default(string), string eventTimestamp = default(string), string ownerId = default(string), string ownerResourceId = default(string), RestorableSqlContainerPropertiesResourceContainer container = default(RestorableSqlContainerPropertiesResourceContainer))
 {
     this._rid       = _rid;
     OperationType   = operationType;
     EventTimestamp  = eventTimestamp;
     OwnerId         = ownerId;
     OwnerResourceId = ownerResourceId;
     Container       = container;
     CustomInit();
 }
Example #2
0
        public PSRestorableSqlContainerPropertiesResourceContainer(RestorableSqlContainerPropertiesResourceContainer restorableSqlContainerPropertiesResourceContainer)
        {
            if (restorableSqlContainerPropertiesResourceContainer == null)
            {
                return;
            }

            Id                       = restorableSqlContainerPropertiesResourceContainer.Id;
            IndexingPolicy           = new PSIndexingPolicy(restorableSqlContainerPropertiesResourceContainer.IndexingPolicy);
            PartitionKey             = new PSContainerPartitionKey(restorableSqlContainerPropertiesResourceContainer.PartitionKey);
            DefaultTtl               = restorableSqlContainerPropertiesResourceContainer.DefaultTtl;
            UniqueKeyPolicy          = new PSUniqueKeyPolicy(restorableSqlContainerPropertiesResourceContainer.UniqueKeyPolicy);
            ConflictResolutionPolicy = new PSConflictResolutionPolicy(restorableSqlContainerPropertiesResourceContainer.ConflictResolutionPolicy);
            this._rid                = restorableSqlContainerPropertiesResourceContainer._rid;
            this._ts                 = restorableSqlContainerPropertiesResourceContainer._ts;
            this._etag               = restorableSqlContainerPropertiesResourceContainer._etag;
            this._self               = restorableSqlContainerPropertiesResourceContainer._self;
        }