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