|
| 1 | +/** |
| 2 | + * Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | + * Licensed under the MIT License. See License.txt in the project root for |
| 4 | + * license information. |
| 5 | + * |
| 6 | + * Code generated by Microsoft (R) AutoRest Code Generator. |
| 7 | + */ |
| 8 | + |
| 9 | +package com.microsoft.azure.management.loganalytics.v2015_11_01_preview; |
| 10 | + |
| 11 | +import com.microsoft.azure.arm.model.HasInner; |
| 12 | +import com.microsoft.azure.management.loganalytics.v2015_11_01_preview.implementation.DataSourceInner; |
| 13 | +import com.microsoft.azure.arm.model.Indexable; |
| 14 | +import com.microsoft.azure.arm.model.Refreshable; |
| 15 | +import com.microsoft.azure.arm.model.Updatable; |
| 16 | +import com.microsoft.azure.arm.model.Appliable; |
| 17 | +import com.microsoft.azure.arm.model.Creatable; |
| 18 | +import com.microsoft.azure.arm.resources.models.HasManager; |
| 19 | +import com.microsoft.azure.management.loganalytics.v2015_11_01_preview.implementation.LogAnalyticsManager; |
| 20 | +import java.util.Map; |
| 21 | + |
| 22 | +/** |
| 23 | + * Type representing DataSource. |
| 24 | + */ |
| 25 | +public interface DataSource extends HasInner<DataSourceInner>, Indexable, Refreshable<DataSource>, Updatable<DataSource.Update>, HasManager<LogAnalyticsManager> { |
| 26 | + /** |
| 27 | + * @return the eTag value. |
| 28 | + */ |
| 29 | + String eTag(); |
| 30 | + |
| 31 | + /** |
| 32 | + * @return the id value. |
| 33 | + */ |
| 34 | + String id(); |
| 35 | + |
| 36 | + /** |
| 37 | + * @return the kind value. |
| 38 | + */ |
| 39 | + DataSourceKind kind(); |
| 40 | + |
| 41 | + /** |
| 42 | + * @return the name value. |
| 43 | + */ |
| 44 | + String name(); |
| 45 | + |
| 46 | + /** |
| 47 | + * @return the properties value. |
| 48 | + */ |
| 49 | + Object properties(); |
| 50 | + |
| 51 | + /** |
| 52 | + * @return the tags value. |
| 53 | + */ |
| 54 | + Map<String, String> tags(); |
| 55 | + |
| 56 | + /** |
| 57 | + * @return the type value. |
| 58 | + */ |
| 59 | + String type(); |
| 60 | + |
| 61 | + /** |
| 62 | + * The entirety of the DataSource definition. |
| 63 | + */ |
| 64 | + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithWorkspace, DefinitionStages.WithKind, DefinitionStages.WithProperties, DefinitionStages.WithCreate { |
| 65 | + } |
| 66 | + |
| 67 | + /** |
| 68 | + * Grouping of DataSource definition stages. |
| 69 | + */ |
| 70 | + interface DefinitionStages { |
| 71 | + /** |
| 72 | + * The first stage of a DataSource definition. |
| 73 | + */ |
| 74 | + interface Blank extends WithWorkspace { |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * The stage of the datasource definition allowing to specify Workspace. |
| 79 | + */ |
| 80 | + interface WithWorkspace { |
| 81 | + /** |
| 82 | + * Specifies resourceGroupName, workspaceName. |
| 83 | + * @param resourceGroupName The name of the resource group to get. The name is case insensitive |
| 84 | + * @param workspaceName Name of the Log Analytics Workspace that will contain the datasource |
| 85 | + * @return the next definition stage |
| 86 | + */ |
| 87 | + WithKind withExistingWorkspace(String resourceGroupName, String workspaceName); |
| 88 | + } |
| 89 | + |
| 90 | + /** |
| 91 | + * The stage of the datasource definition allowing to specify Kind. |
| 92 | + */ |
| 93 | + interface WithKind { |
| 94 | + /** |
| 95 | + * Specifies kind. |
| 96 | + * @param kind Possible values include: 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter' |
| 97 | + * @return the next definition stage |
| 98 | + */ |
| 99 | + WithProperties withKind(DataSourceKind kind); |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * The stage of the datasource definition allowing to specify Properties. |
| 104 | + */ |
| 105 | + interface WithProperties { |
| 106 | + /** |
| 107 | + * Specifies properties. |
| 108 | + * @param properties The data source properties in raw json format, each kind of data source have it's own schema |
| 109 | + * @return the next definition stage |
| 110 | + */ |
| 111 | + WithCreate withProperties(Object properties); |
| 112 | + } |
| 113 | + |
| 114 | + /** |
| 115 | + * The stage of the datasource definition allowing to specify ETag. |
| 116 | + */ |
| 117 | + interface WithETag { |
| 118 | + /** |
| 119 | + * Specifies eTag. |
| 120 | + * @param eTag The ETag of the data source |
| 121 | + * @return the next definition stage |
| 122 | + */ |
| 123 | + WithCreate withETag(String eTag); |
| 124 | + } |
| 125 | + |
| 126 | + /** |
| 127 | + * The stage of the datasource definition allowing to specify Tags. |
| 128 | + */ |
| 129 | + interface WithTags { |
| 130 | + /** |
| 131 | + * Specifies tags. |
| 132 | + * @param tags Resource tags |
| 133 | + * @return the next definition stage |
| 134 | + */ |
| 135 | + WithCreate withTags(Map<String, String> tags); |
| 136 | + } |
| 137 | + |
| 138 | + /** |
| 139 | + * The stage of the definition which contains all the minimum required inputs for |
| 140 | + * the resource to be created (via {@link WithCreate#create()}), but also allows |
| 141 | + * for any other optional settings to be specified. |
| 142 | + */ |
| 143 | + interface WithCreate extends Creatable<DataSource>, DefinitionStages.WithETag, DefinitionStages.WithTags { |
| 144 | + } |
| 145 | + } |
| 146 | + /** |
| 147 | + * The template for a DataSource update operation, containing all the settings that can be modified. |
| 148 | + */ |
| 149 | + interface Update extends Appliable<DataSource>, UpdateStages.WithETag, UpdateStages.WithTags { |
| 150 | + } |
| 151 | + |
| 152 | + /** |
| 153 | + * Grouping of DataSource update stages. |
| 154 | + */ |
| 155 | + interface UpdateStages { |
| 156 | + /** |
| 157 | + * The stage of the datasource update allowing to specify ETag. |
| 158 | + */ |
| 159 | + interface WithETag { |
| 160 | + /** |
| 161 | + * Specifies eTag. |
| 162 | + * @param eTag The ETag of the data source |
| 163 | + * @return the next update stage |
| 164 | + */ |
| 165 | + Update withETag(String eTag); |
| 166 | + } |
| 167 | + |
| 168 | + /** |
| 169 | + * The stage of the datasource update allowing to specify Tags. |
| 170 | + */ |
| 171 | + interface WithTags { |
| 172 | + /** |
| 173 | + * Specifies tags. |
| 174 | + * @param tags Resource tags |
| 175 | + * @return the next update stage |
| 176 | + */ |
| 177 | + Update withTags(Map<String, String> tags); |
| 178 | + } |
| 179 | + |
| 180 | + } |
| 181 | +} |
0 commit comments