internal SharedGalleryImageVersion(ArmResource options, SharedGalleryImageVersionData resource)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new SharedGalleryImageVersionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
        internal SharedGalleryImageVersion(ArmResource options, SharedGalleryImageVersionData data) : base(options, data.Id)
        {
            HasData            = true;
            _data              = data;
            _clientDiagnostics = new ClientDiagnostics(ClientOptions);
            ClientOptions.TryGetApiVersion(ResourceType, out string apiVersion);
            _sharedGalleryImageVersionsRestClient = new SharedGalleryImageVersionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri, apiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
예제 #3
0
 internal SharedGalleryImageVersion(ArmClient client, SharedGalleryImageVersionData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }