public PSGremlinGraphGetPropertiesResource(GremlinGraphGetPropertiesResource gremlinGraphGetPropertiesResource) { Id = gremlinGraphGetPropertiesResource.Id; IndexingPolicy = new PSIndexingPolicy(gremlinGraphGetPropertiesResource.IndexingPolicy); PartitionKey = new PSContainerPartitionKey(gremlinGraphGetPropertiesResource.PartitionKey); DefaultTtl = gremlinGraphGetPropertiesResource.DefaultTtl; UniqueKeyPolicy = new PSUniqueKeyPolicy(gremlinGraphGetPropertiesResource.UniqueKeyPolicy); ConflictResolutionPolicy = new PSConflictResolutionPolicy(gremlinGraphGetPropertiesResource.ConflictResolutionPolicy); _rid = gremlinGraphGetPropertiesResource._rid; _ts = gremlinGraphGetPropertiesResource._ts; _etag = gremlinGraphGetPropertiesResource._etag; }
private static GremlinGraphResource PopulateGremlinGraphResourceResource(GremlinGraphGetPropertiesResource resource) { return(new GremlinGraphResource { ConflictResolutionPolicy = resource.ConflictResolutionPolicy, UniqueKeyPolicy = resource.UniqueKeyPolicy, DefaultTtl = resource.DefaultTtl, Id = resource.Id, IndexingPolicy = resource.IndexingPolicy, PartitionKey = resource.PartitionKey }); }