Пример #1
0
 internal SharedGallery(ArmResource options, SharedGalleryData resource)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new SharedGalleriesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
        internal SharedGallery(ArmResource options, SharedGalleryData data) : base(options, data.Id)
        {
            HasData            = true;
            _data              = data;
            _clientDiagnostics = new ClientDiagnostics(ClientOptions);
            ClientOptions.TryGetApiVersion(ResourceType, out string apiVersion);
            _sharedGalleriesRestClient = new SharedGalleriesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri, apiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal SharedGalleryResource(ArmClient client, SharedGalleryData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }
Пример #4
0
 internal SharedGallery(ArmClient armClient, SharedGalleryData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }