| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Collections; |
| | 9 | | using System.Collections.Generic; |
| | 10 | | using Azure.Core; |
| | 11 | |
|
| | 12 | | namespace Azure.Analytics.Synapse.Artifacts.Models |
| | 13 | | { |
| | 14 | | /// <summary> Execution policy for an activity. </summary> |
| | 15 | | public partial class ActivityPolicy : IDictionary<string, object> |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of ActivityPolicy. </summary> |
| 0 | 18 | | public ActivityPolicy() |
| | 19 | | { |
| 0 | 20 | | AdditionalProperties = new ChangeTrackingDictionary<string, object>(); |
| 0 | 21 | | } |
| | 22 | |
|
| | 23 | | /// <summary> Initializes a new instance of ActivityPolicy. </summary> |
| | 24 | | /// <param name="timeout"> Specifies the timeout for the activity to run. The default timeout is 7 days. Type: s |
| | 25 | | /// <param name="retry"> Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with result |
| | 26 | | /// <param name="retryIntervalInSeconds"> Interval between each retry attempt (in seconds). The default is 30 se |
| | 27 | | /// <param name="secureInput"> When set to true, Input from activity is considered as secure and will not be log |
| | 28 | | /// <param name="secureOutput"> When set to true, Output from activity is considered as secure and will not be l |
| | 29 | | /// <param name="additionalProperties"> . </param> |
| 0 | 30 | | internal ActivityPolicy(object timeout, object retry, int? retryIntervalInSeconds, bool? secureInput, bool? secu |
| | 31 | | { |
| 0 | 32 | | Timeout = timeout; |
| 0 | 33 | | Retry = retry; |
| 0 | 34 | | RetryIntervalInSeconds = retryIntervalInSeconds; |
| 0 | 35 | | SecureInput = secureInput; |
| 0 | 36 | | SecureOutput = secureOutput; |
| 0 | 37 | | AdditionalProperties = additionalProperties; |
| 0 | 38 | | } |
| | 39 | |
|
| | 40 | | /// <summary> Specifies the timeout for the activity to run. The default timeout is 7 days. Type: string (or Exp |
| 0 | 41 | | public object Timeout { get; set; } |
| | 42 | | /// <summary> Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType intege |
| 0 | 43 | | public object Retry { get; set; } |
| | 44 | | /// <summary> Interval between each retry attempt (in seconds). The default is 30 sec. </summary> |
| 0 | 45 | | public int? RetryIntervalInSeconds { get; set; } |
| | 46 | | /// <summary> When set to true, Input from activity is considered as secure and will not be logged to monitoring |
| 0 | 47 | | public bool? SecureInput { get; set; } |
| | 48 | | /// <summary> When set to true, Output from activity is considered as secure and will not be logged to monitorin |
| 0 | 49 | | public bool? SecureOutput { get; set; } |
| 0 | 50 | | internal IDictionary<string, object> AdditionalProperties { get; } |
| | 51 | | /// <inheritdoc /> |
| 0 | 52 | | public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 53 | | /// <inheritdoc /> |
| 0 | 54 | | IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 55 | | /// <inheritdoc /> |
| 0 | 56 | | public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); |
| | 57 | | /// <inheritdoc /> |
| 0 | 58 | | public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); |
| | 59 | | /// <inheritdoc /> |
| 0 | 60 | | public ICollection<string> Keys => AdditionalProperties.Keys; |
| | 61 | | /// <inheritdoc /> |
| 0 | 62 | | public ICollection<object> Values => AdditionalProperties.Values; |
| | 63 | | /// <inheritdoc /> |
| 0 | 64 | | int ICollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count; |
| | 65 | | /// <inheritdoc /> |
| 0 | 66 | | public void Add(string key, object value) => AdditionalProperties.Add(key, value); |
| | 67 | | /// <inheritdoc /> |
| 0 | 68 | | public bool Remove(string key) => AdditionalProperties.Remove(key); |
| | 69 | | /// <inheritdoc /> |
| 0 | 70 | | bool ICollection<KeyValuePair<string, object>>.IsReadOnly => AdditionalProperties.IsReadOnly; |
| | 71 | | /// <inheritdoc /> |
| 0 | 72 | | void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> value) => AdditionalProperties.A |
| | 73 | | /// <inheritdoc /> |
| 0 | 74 | | bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> value) => AdditionalPropertie |
| | 75 | | /// <inheritdoc /> |
| 0 | 76 | | bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> value) => AdditionalPropert |
| | 77 | | /// <inheritdoc /> |
| 0 | 78 | | void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] destination, int offset) => |
| | 79 | | /// <inheritdoc /> |
| 0 | 80 | | void ICollection<KeyValuePair<string, object>>.Clear() => AdditionalProperties.Clear(); |
| | 81 | | /// <inheritdoc /> |
| | 82 | | public object this[string key] |
| | 83 | | { |
| 0 | 84 | | get => AdditionalProperties[key]; |
| 0 | 85 | | set => AdditionalProperties[key] = value; |
| | 86 | | } |
| | 87 | | } |
| | 88 | | } |