azure_mgmt_operational_insights 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/core_summary.rb +3 -0
  3. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/link_target.rb +5 -0
  4. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +6 -0
  5. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/resource.rb +7 -0
  6. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_search.rb +9 -0
  7. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +4 -0
  8. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_error.rb +3 -0
  9. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb +4 -0
  10. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_highlight.rb +3 -0
  11. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_metadata.rb +20 -0
  12. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb +3 -0
  13. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_parameters.rb +6 -0
  14. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_results_response.rb +6 -0
  15. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_schema_value.rb +9 -0
  16. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_sort.rb +3 -0
  17. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_account.rb +3 -0
  18. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight.rb +13 -0
  19. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +4 -0
  20. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb +3 -0
  21. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/tag.rb +3 -0
  22. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +1 -3
  23. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/saved_searches.rb +15 -0
  24. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb +12 -0
  25. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb +11 -0
  26. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/azure_log_analytics.rb +1 -3
  27. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb +12 -0
  28. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb +12 -0
  29. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source.rb +9 -0
  30. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_filter.rb +2 -0
  31. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +4 -0
  32. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb +3 -0
  33. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/linked_service.rb +7 -0
  34. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb +3 -0
  35. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/management_group.rb +9 -0
  36. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/metric_name.rb +3 -0
  37. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +6 -0
  38. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +7 -0
  39. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/shared_keys.rb +3 -0
  40. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku.rb +2 -0
  41. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb +7 -0
  42. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb +14 -0
  43. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +3 -0
  44. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb +3 -0
  45. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb +3 -0
  46. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb +26 -0
  47. data/lib/profiles/latest/operationalinsights_latest_profile_client.rb +1 -3
  48. data/lib/version.rb +1 -1
  49. metadata +10 -9
  50. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/version.rb +0 -8
  51. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/version.rb +0 -8
  52. data/lib/profiles/common/configurable.rb +0 -86
  53. data/lib/profiles/common/default.rb +0 -57
@@ -25,6 +25,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
25
25
  #
26
26
  def self.mapper()
27
27
  {
28
+ client_side_validation: true,
28
29
  required: false,
29
30
  serialized_name: 'SearchMetadataSchema',
30
31
  type: {
@@ -32,6 +33,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
32
33
  class_name: 'SearchMetadataSchema',
33
34
  model_properties: {
34
35
  name: {
36
+ client_side_validation: true,
35
37
  required: false,
36
38
  serialized_name: 'name',
37
39
  type: {
@@ -39,6 +41,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
39
41
  }
40
42
  },
41
43
  version: {
44
+ client_side_validation: true,
42
45
  required: false,
43
46
  serialized_name: 'version',
44
47
  type: {
@@ -37,6 +37,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
37
37
  #
38
38
  def self.mapper()
39
39
  {
40
+ client_side_validation: true,
40
41
  required: false,
41
42
  serialized_name: 'SearchParameters',
42
43
  type: {
@@ -44,6 +45,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
44
45
  class_name: 'SearchParameters',
45
46
  model_properties: {
46
47
  top: {
48
+ client_side_validation: true,
47
49
  required: false,
48
50
  serialized_name: 'top',
49
51
  type: {
@@ -51,6 +53,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
51
53
  }
52
54
  },
53
55
  highlight: {
56
+ client_side_validation: true,
54
57
  required: false,
55
58
  serialized_name: 'highlight',
56
59
  type: {
@@ -59,6 +62,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
59
62
  }
60
63
  },
61
64
  query: {
65
+ client_side_validation: true,
62
66
  required: true,
63
67
  serialized_name: 'query',
64
68
  type: {
@@ -66,6 +70,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
66
70
  }
67
71
  },
68
72
  start: {
73
+ client_side_validation: true,
69
74
  required: false,
70
75
  serialized_name: 'start',
71
76
  type: {
@@ -73,6 +78,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
73
78
  }
74
79
  },
75
80
  end_property: {
81
+ client_side_validation: true,
76
82
  required: false,
77
83
  serialized_name: 'end',
78
84
  type: {
@@ -31,6 +31,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
31
31
  #
32
32
  def self.mapper()
33
33
  {
34
+ client_side_validation: true,
34
35
  required: false,
35
36
  serialized_name: 'SearchResultsResponse',
36
37
  type: {
@@ -38,6 +39,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
38
39
  class_name: 'SearchResultsResponse',
39
40
  model_properties: {
40
41
  id: {
42
+ client_side_validation: true,
41
43
  required: false,
42
44
  read_only: true,
43
45
  serialized_name: 'id',
@@ -46,6 +48,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
46
48
  }
47
49
  },
48
50
  metadata: {
51
+ client_side_validation: true,
49
52
  required: false,
50
53
  serialized_name: '__metadata',
51
54
  type: {
@@ -54,11 +57,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
54
57
  }
55
58
  },
56
59
  value: {
60
+ client_side_validation: true,
57
61
  required: false,
58
62
  serialized_name: 'value',
59
63
  type: {
60
64
  name: 'Sequence',
61
65
  element: {
66
+ client_side_validation: true,
62
67
  required: false,
63
68
  serialized_name: 'ObjectElementType',
64
69
  type: {
@@ -68,6 +73,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
68
73
  }
69
74
  },
70
75
  error: {
76
+ client_side_validation: true,
71
77
  required: false,
72
78
  serialized_name: 'error',
73
79
  type: {
@@ -43,6 +43,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
43
43
  #
44
44
  def self.mapper()
45
45
  {
46
+ client_side_validation: true,
46
47
  required: false,
47
48
  serialized_name: 'SearchSchemaValue',
48
49
  type: {
@@ -50,6 +51,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
50
51
  class_name: 'SearchSchemaValue',
51
52
  model_properties: {
52
53
  name: {
54
+ client_side_validation: true,
53
55
  required: false,
54
56
  serialized_name: 'name',
55
57
  type: {
@@ -57,6 +59,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
57
59
  }
58
60
  },
59
61
  display_name: {
62
+ client_side_validation: true,
60
63
  required: false,
61
64
  serialized_name: 'displayName',
62
65
  type: {
@@ -64,6 +67,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
64
67
  }
65
68
  },
66
69
  type: {
70
+ client_side_validation: true,
67
71
  required: false,
68
72
  serialized_name: 'type',
69
73
  type: {
@@ -71,6 +75,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
71
75
  }
72
76
  },
73
77
  indexed: {
78
+ client_side_validation: true,
74
79
  required: true,
75
80
  serialized_name: 'indexed',
76
81
  type: {
@@ -78,6 +83,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
78
83
  }
79
84
  },
80
85
  stored: {
86
+ client_side_validation: true,
81
87
  required: true,
82
88
  serialized_name: 'stored',
83
89
  type: {
@@ -85,6 +91,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
85
91
  }
86
92
  },
87
93
  facet: {
94
+ client_side_validation: true,
88
95
  required: true,
89
96
  serialized_name: 'facet',
90
97
  type: {
@@ -92,11 +99,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
92
99
  }
93
100
  },
94
101
  owner_type: {
102
+ client_side_validation: true,
95
103
  required: false,
96
104
  serialized_name: 'ownerType',
97
105
  type: {
98
106
  name: 'Sequence',
99
107
  element: {
108
+ client_side_validation: true,
100
109
  required: false,
101
110
  serialized_name: 'StringElementType',
102
111
  type: {
@@ -26,6 +26,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
26
26
  #
27
27
  def self.mapper()
28
28
  {
29
+ client_side_validation: true,
29
30
  required: false,
30
31
  serialized_name: 'SearchSort',
31
32
  type: {
@@ -33,6 +34,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
33
34
  class_name: 'SearchSort',
34
35
  model_properties: {
35
36
  name: {
37
+ client_side_validation: true,
36
38
  required: false,
37
39
  serialized_name: 'name',
38
40
  type: {
@@ -40,6 +42,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
40
42
  }
41
43
  },
42
44
  order: {
45
+ client_side_validation: true,
43
46
  required: false,
44
47
  serialized_name: 'order',
45
48
  type: {
@@ -26,6 +26,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
26
26
  #
27
27
  def self.mapper()
28
28
  {
29
+ client_side_validation: true,
29
30
  required: false,
30
31
  serialized_name: 'StorageAccount',
31
32
  type: {
@@ -33,6 +34,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
33
34
  class_name: 'StorageAccount',
34
35
  model_properties: {
35
36
  id: {
37
+ client_side_validation: true,
36
38
  required: true,
37
39
  serialized_name: 'id',
38
40
  type: {
@@ -40,6 +42,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
40
42
  }
41
43
  },
42
44
  key: {
45
+ client_side_validation: true,
43
46
  required: true,
44
47
  serialized_name: 'key',
45
48
  type: {
@@ -36,6 +36,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
36
36
  #
37
37
  def self.mapper()
38
38
  {
39
+ client_side_validation: true,
39
40
  required: false,
40
41
  serialized_name: 'StorageInsight',
41
42
  type: {
@@ -43,6 +44,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
43
44
  class_name: 'StorageInsight',
44
45
  model_properties: {
45
46
  id: {
47
+ client_side_validation: true,
46
48
  required: false,
47
49
  read_only: true,
48
50
  serialized_name: 'id',
@@ -51,6 +53,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
51
53
  }
52
54
  },
53
55
  name: {
56
+ client_side_validation: true,
54
57
  required: false,
55
58
  read_only: true,
56
59
  serialized_name: 'name',
@@ -59,6 +62,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
59
62
  }
60
63
  },
61
64
  type: {
65
+ client_side_validation: true,
62
66
  required: false,
63
67
  read_only: true,
64
68
  serialized_name: 'type',
@@ -67,11 +71,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
67
71
  }
68
72
  },
69
73
  tags: {
74
+ client_side_validation: true,
70
75
  required: false,
71
76
  serialized_name: 'tags',
72
77
  type: {
73
78
  name: 'Dictionary',
74
79
  value: {
80
+ client_side_validation: true,
75
81
  required: false,
76
82
  serialized_name: 'StringElementType',
77
83
  type: {
@@ -81,11 +87,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
81
87
  }
82
88
  },
83
89
  containers: {
90
+ client_side_validation: true,
84
91
  required: false,
85
92
  serialized_name: 'properties.containers',
86
93
  type: {
87
94
  name: 'Sequence',
88
95
  element: {
96
+ client_side_validation: true,
89
97
  required: false,
90
98
  serialized_name: 'StringElementType',
91
99
  type: {
@@ -95,11 +103,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
95
103
  }
96
104
  },
97
105
  tables: {
106
+ client_side_validation: true,
98
107
  required: false,
99
108
  serialized_name: 'properties.tables',
100
109
  type: {
101
110
  name: 'Sequence',
102
111
  element: {
112
+ client_side_validation: true,
103
113
  required: false,
104
114
  serialized_name: 'StringElementType',
105
115
  type: {
@@ -109,6 +119,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
109
119
  }
110
120
  },
111
121
  storage_account: {
122
+ client_side_validation: true,
112
123
  required: true,
113
124
  serialized_name: 'properties.storageAccount',
114
125
  type: {
@@ -117,6 +128,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
117
128
  }
118
129
  },
119
130
  status: {
131
+ client_side_validation: true,
120
132
  required: false,
121
133
  read_only: true,
122
134
  serialized_name: 'properties.status',
@@ -126,6 +138,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
126
138
  }
127
139
  },
128
140
  e_tag: {
141
+ client_side_validation: true,
129
142
  required: false,
130
143
  serialized_name: 'eTag',
131
144
  type: {
@@ -58,6 +58,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
58
58
  #
59
59
  def self.mapper()
60
60
  {
61
+ client_side_validation: true,
61
62
  required: false,
62
63
  serialized_name: 'StorageInsightListResult',
63
64
  type: {
@@ -65,11 +66,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
65
66
  class_name: 'StorageInsightListResult',
66
67
  model_properties: {
67
68
  value: {
69
+ client_side_validation: true,
68
70
  required: false,
69
71
  serialized_name: 'value',
70
72
  type: {
71
73
  name: 'Sequence',
72
74
  element: {
75
+ client_side_validation: true,
73
76
  required: false,
74
77
  serialized_name: 'StorageInsightElementType',
75
78
  type: {
@@ -80,6 +83,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
80
83
  }
81
84
  },
82
85
  odata_next_link: {
86
+ client_side_validation: true,
83
87
  required: false,
84
88
  serialized_name: '@odata\\.nextLink',
85
89
  type: {
@@ -26,6 +26,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
26
26
  #
27
27
  def self.mapper()
28
28
  {
29
+ client_side_validation: true,
29
30
  required: false,
30
31
  serialized_name: 'StorageInsightStatus',
31
32
  type: {
@@ -33,6 +34,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
33
34
  class_name: 'StorageInsightStatus',
34
35
  model_properties: {
35
36
  state: {
37
+ client_side_validation: true,
36
38
  required: true,
37
39
  serialized_name: 'state',
38
40
  type: {
@@ -40,6 +42,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
40
42
  }
41
43
  },
42
44
  description: {
45
+ client_side_validation: true,
43
46
  required: false,
44
47
  serialized_name: 'description',
45
48
  type: {
@@ -25,6 +25,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
25
25
  #
26
26
  def self.mapper()
27
27
  {
28
+ client_side_validation: true,
28
29
  required: false,
29
30
  serialized_name: 'Tag',
30
31
  type: {
@@ -32,6 +33,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
32
33
  class_name: 'Tag',
33
34
  model_properties: {
34
35
  name: {
36
+ client_side_validation: true,
35
37
  required: true,
36
38
  serialized_name: 'Name',
37
39
  type: {
@@ -39,6 +41,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
39
41
  }
40
42
  },
41
43
  value: {
44
+ client_side_validation: true,
42
45
  required: true,
43
46
  serialized_name: 'Value',
44
47
  type: {
@@ -130,9 +130,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
130
130
  #
131
131
  def add_telemetry
132
132
  sdk_information = 'azure_mgmt_operational_insights'
133
- if defined? Azure::OperationalInsights::Mgmt::V2015_03_20::VERSION
134
- sdk_information = "#{sdk_information}/#{Azure::OperationalInsights::Mgmt::V2015_03_20::VERSION}"
135
- end
133
+ sdk_information = "#{sdk_information}/0.15.2"
136
134
  add_user_agent_information(sdk_information)
137
135
  end
138
136
  end
@@ -67,6 +67,9 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
67
67
  #
68
68
  def delete_async(resource_group_name, workspace_name, saved_search_name, custom_headers = nil)
69
69
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
70
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
71
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
72
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
70
73
  fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
71
74
  fail ArgumentError, 'saved_search_name is nil' if saved_search_name.nil?
72
75
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -158,6 +161,9 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
158
161
  #
159
162
  def create_or_update_async(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers = nil)
160
163
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
164
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
165
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
166
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
161
167
  fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
162
168
  fail ArgumentError, 'saved_search_name is nil' if saved_search_name.nil?
163
169
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -266,6 +272,9 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
266
272
  #
267
273
  def get_async(resource_group_name, workspace_name, saved_search_name, custom_headers = nil)
268
274
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
275
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
276
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
277
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
269
278
  fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
270
279
  fail ArgumentError, 'saved_search_name is nil' if saved_search_name.nil?
271
280
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -361,6 +370,9 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
361
370
  #
362
371
  def list_by_workspace_async(resource_group_name, workspace_name, custom_headers = nil)
363
372
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
373
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
374
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
375
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
364
376
  fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
365
377
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
366
378
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -458,6 +470,9 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
458
470
  #
459
471
  def get_results_async(resource_group_name, workspace_name, saved_search_name, custom_headers = nil)
460
472
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
473
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
474
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
475
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
461
476
  fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
462
477
  fail ArgumentError, 'saved_search_name is nil' if saved_search_name.nil?
463
478
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?