| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | PullImageOptions.h |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | This file contains the definition of the WinRT wrapper for the WSLC SDK PullImageOptions class. |
| 12 | |
| 13 | --*/ |
| 14 | |
| 15 | #pragma once |
| 16 | #include "Microsoft.WSL.Containers.PullImageOptions.g.h" |
| 17 | #include "Helpers.h" |
| 18 | |
| 19 | namespace winrt::Microsoft::WSL::Containers::implementation { |
| 20 | struct PullImageOptions : PullImageOptionsT<PullImageOptions> |
| 21 | { |
| 22 | PullImageOptions() = default; |
| 23 | |
| 24 | PullImageOptions(hstring const& uri); |
| 25 | hstring Uri(); |
| 26 | void Uri(hstring const& value); |
| 27 | hstring RegistryAuth(); |
| 28 | void RegistryAuth(hstring const& value); |
| 29 | |
| 30 | WslcPullImageOptions ToStruct(); |
| 31 | |
| 32 | private: |
| 33 | std::string m_uri; |
| 34 | std::string m_registryAuth; |
| 35 | |
| 36 | std::unique_ptr<WslcPullImageOptions> m_pullImageOptions; |
| 37 | }; |
| 38 | } // namespace winrt::Microsoft::WSL::Containers::implementation |
| 39 | |
| 40 | namespace winrt::Microsoft::WSL::Containers::factory_implementation { |
| 41 | struct PullImageOptions : PullImageOptionsT<PullImageOptions, implementation::PullImageOptions> |
| 42 | { |
| 43 | }; |
| 44 | } // namespace winrt::Microsoft::WSL::Containers::factory_implementation |
| 45 | |
| 46 | DEFINE_TYPE_HELPERS(PullImageOptions); |