Class: Azure::ARM::StreamAnalytics::Functions

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_stream_analytics/functions.rb

Overview

Stream Analytics Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Functions

Creates and initializes a new instance of the Functions class.

Parameters:

  • client

    service class for accessing basic functionality.



17
18
19
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 17

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientStreamAnalyticsManagementClient (readonly)

Returns reference to the StreamAnalyticsManagementClient.

Returns:



22
23
24
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 22

def client
  @client
end

Instance Method Details

#begin_test(resource_group_name, job_name, function_name, function = nil, custom_headers = nil) ⇒ ResourceTestStatus

Tests if the information provided for a function is valid. This can range from testing the connection to the underlying web service behind the function or making sure the function code provided is syntactically correct.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. this parameter must contain the full function definition intended to be tested. If the function specified already exists, this parameter can be left null to test the existing function as is or if specified, the properties specified will overwrite the corresponding properties in the existing function (exactly like a PATCH operation) and the resulting function will be tested. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • function (Function) (defaults to: nil)

    If the function specified does not already exist,

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (ResourceTestStatus)

    operation results.



824
825
826
827
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 824

def begin_test(resource_group_name, job_name, function_name, function = nil, custom_headers = nil)
  response = begin_test_async(resource_group_name, job_name, function_name, function, custom_headers).value!
  response.body unless response.nil?
end

#begin_test_async(resource_group_name, job_name, function_name, function = nil, custom_headers = nil) ⇒ Concurrent::Promise

Tests if the information provided for a function is valid. This can range from testing the connection to the underlying web service behind the function or making sure the function code provided is syntactically correct.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. this parameter must contain the full function definition intended to be tested. If the function specified already exists, this parameter can be left null to test the existing function as is or if specified, the properties specified will overwrite the corresponding properties in the existing function (exactly like a PATCH operation) and the resulting function will be tested. to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • function (Function) (defaults to: nil)

    If the function specified does not already exist,

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 877

def begin_test_async(resource_group_name, job_name, function_name, function = nil, custom_headers = nil)
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_name is nil' if job_name.nil?
  fail ArgumentError, 'function_name is nil' if function_name.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Serialize Request
  request_mapper = Azure::ARM::StreamAnalytics::Models::Function.mapper()
  request_content = @client.serialize(request_mapper,  function)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/test'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobName' => job_name,'functionName' => function_name},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:post, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200 || status_code == 202
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::ARM::StreamAnalytics::Models::ResourceTestStatus.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#begin_test_with_http_info(resource_group_name, job_name, function_name, function = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Tests if the information provided for a function is valid. This can range from testing the connection to the underlying web service behind the function or making sure the function code provided is syntactically correct.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. this parameter must contain the full function definition intended to be tested. If the function specified already exists, this parameter can be left null to test the existing function as is or if specified, the properties specified will overwrite the corresponding properties in the existing function (exactly like a PATCH operation) and the resulting function will be tested. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • function (Function) (defaults to: nil)

    If the function specified does not already exist,

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



851
852
853
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 851

def begin_test_with_http_info(resource_group_name, job_name, function_name, function = nil, custom_headers = nil)
  begin_test_async(resource_group_name, job_name, function_name, function, custom_headers).value!
end

#create_or_replace(function, resource_group_name, job_name, function_name, if_match = nil, if_none_match = nil, custom_headers = nil) ⇒ Function

Creates a function or replaces an already existing function under an existing streaming job.

to create a new function or replace the existing one under the streaming job. contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. overwrite the current function. Specify the last-seen ETag value to prevent accidentally overwritting concurrent changes. created, but to prevent updating an existing function. Other values will result in a 412 Pre-condition Failed response. will be added to the HTTP request.

Parameters:

  • function (Function)

    The definition of the function that will be used

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • if_match (String) (defaults to: nil)

    The ETag of the function. Omit this value to always

  • if_none_match (String) (defaults to: nil)

    Set to ‘*’ to allow a new function to be

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (Function)

    operation results.



46
47
48
49
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 46

def create_or_replace(function, resource_group_name, job_name, function_name, if_match = nil, if_none_match = nil, custom_headers = nil)
  response = create_or_replace_async(function, resource_group_name, job_name, function_name, if_match, if_none_match, custom_headers).value!
  response.body unless response.nil?
end

#create_or_replace_async(function, resource_group_name, job_name, function_name, if_match = nil, if_none_match = nil, custom_headers = nil) ⇒ Concurrent::Promise

Creates a function or replaces an already existing function under an existing streaming job.

to create a new function or replace the existing one under the streaming job. contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. overwrite the current function. Specify the last-seen ETag value to prevent accidentally overwritting concurrent changes. created, but to prevent updating an existing function. Other values will result in a 412 Pre-condition Failed response. to the HTTP request.

Parameters:

  • function (Function)

    The definition of the function that will be used

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • if_match (String) (defaults to: nil)

    The ETag of the function. Omit this value to always

  • if_none_match (String) (defaults to: nil)

    Set to ‘*’ to allow a new function to be

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 99

def create_or_replace_async(function, resource_group_name, job_name, function_name, if_match = nil, if_none_match = nil, custom_headers = nil)
  fail ArgumentError, 'function is nil' if function.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_name is nil' if job_name.nil?
  fail ArgumentError, 'function_name is nil' if function_name.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['If-Match'] = if_match unless if_match.nil?
  request_headers['If-None-Match'] = if_none_match unless if_none_match.nil?
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Serialize Request
  request_mapper = Azure::ARM::StreamAnalytics::Models::Function.mapper()
  request_content = @client.serialize(request_mapper,  function)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobName' => job_name,'functionName' => function_name},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:put, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200 || status_code == 201
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::ARM::StreamAnalytics::Models::Function.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end
    # Deserialize Response
    if status_code == 201
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::ARM::StreamAnalytics::Models::Function.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#create_or_replace_with_http_info(function, resource_group_name, job_name, function_name, if_match = nil, if_none_match = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Creates a function or replaces an already existing function under an existing streaming job.

to create a new function or replace the existing one under the streaming job. contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. overwrite the current function. Specify the last-seen ETag value to prevent accidentally overwritting concurrent changes. created, but to prevent updating an existing function. Other values will result in a 412 Pre-condition Failed response. will be added to the HTTP request.

Parameters:

  • function (Function)

    The definition of the function that will be used

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • if_match (String) (defaults to: nil)

    The ETag of the function. Omit this value to always

  • if_none_match (String) (defaults to: nil)

    Set to ‘*’ to allow a new function to be

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



73
74
75
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 73

def create_or_replace_with_http_info(function, resource_group_name, job_name, function_name, if_match = nil, if_none_match = nil, custom_headers = nil)
  create_or_replace_async(function, resource_group_name, job_name, function_name, if_match, if_none_match, custom_headers).value!
end

#delete(resource_group_name, job_name, function_name, custom_headers = nil) ⇒ Object

Deletes a function from the streaming job.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that



328
329
330
331
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 328

def delete(resource_group_name, job_name, function_name, custom_headers = nil)
  response = delete_async(resource_group_name, job_name, function_name, custom_headers).value!
  nil
end

#delete_async(resource_group_name, job_name, function_name, custom_headers = nil) ⇒ Concurrent::Promise

Deletes a function from the streaming job.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 363

def delete_async(resource_group_name, job_name, function_name, custom_headers = nil)
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_name is nil' if job_name.nil?
  fail ArgumentError, 'function_name is nil' if function_name.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobName' => job_name,'functionName' => function_name},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:delete, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200 || status_code == 204
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end

#delete_with_http_info(resource_group_name, job_name, function_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Deletes a function from the streaming job.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



346
347
348
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 346

def delete_with_http_info(resource_group_name, job_name, function_name, custom_headers = nil)
  delete_async(resource_group_name, job_name, function_name, custom_headers).value!
end

#get(resource_group_name, job_name, function_name, custom_headers = nil) ⇒ Function

Gets details about the specified function.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (Function)

    operation results.



419
420
421
422
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 419

def get(resource_group_name, job_name, function_name, custom_headers = nil)
  response = get_async(resource_group_name, job_name, function_name, custom_headers).value!
  response.body unless response.nil?
end

#get_async(resource_group_name, job_name, function_name, custom_headers = nil) ⇒ Concurrent::Promise

Gets details about the specified function.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 454

def get_async(resource_group_name, job_name, function_name, custom_headers = nil)
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_name is nil' if job_name.nil?
  fail ArgumentError, 'function_name is nil' if function_name.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobName' => job_name,'functionName' => function_name},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::ARM::StreamAnalytics::Models::Function.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#get_with_http_info(resource_group_name, job_name, function_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Gets details about the specified function.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



437
438
439
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 437

def get_with_http_info(resource_group_name, job_name, function_name, custom_headers = nil)
  get_async(resource_group_name, job_name, function_name, custom_headers).value!
end

#list_by_streaming_job(resource_group_name, job_name, select = nil, custom_headers = nil) ⇒ Array<Function>

Lists all of the functions under the specified streaming job.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. comma-separated list of structural properties to include in the response, or “*” to include all properties. By default, all properties are returned except diagnostics. Currently only accepts ‘*’ as a valid value. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • select (String) (defaults to: nil)

    The $select OData query parameter. This is a

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (Array<Function>)

    operation results.



523
524
525
526
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 523

def list_by_streaming_job(resource_group_name, job_name, select = nil, custom_headers = nil)
  first_page = list_by_streaming_job_as_lazy(resource_group_name, job_name, select, custom_headers)
  first_page.get_all_items
end

#list_by_streaming_job_as_lazy(resource_group_name, job_name, select = nil, custom_headers = nil) ⇒ FunctionListResult

Lists all of the functions under the specified streaming job.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. comma-separated list of structural properties to include in the response, or “*” to include all properties. By default, all properties are returned except diagnostics. Currently only accepts ‘*’ as a valid value. will be added to the HTTP request.

response.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • select (String) (defaults to: nil)

    The $select OData query parameter. This is a

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (FunctionListResult)

    which provide lazy access to pages of the



1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 1043

def list_by_streaming_job_as_lazy(resource_group_name, job_name, select = nil, custom_headers = nil)
  response = list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value!
  unless response.nil?
    page = response.body
    page.next_method = Proc.new do |next_page_link|
      list_by_streaming_job_next_async(next_page_link, custom_headers)
    end
    page
  end
end

#list_by_streaming_job_async(resource_group_name, job_name, select = nil, custom_headers = nil) ⇒ Concurrent::Promise

Lists all of the functions under the specified streaming job.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. comma-separated list of structural properties to include in the response, or “*” to include all properties. By default, all properties are returned except diagnostics. Currently only accepts ‘*’ as a valid value. to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • select (String) (defaults to: nil)

    The $select OData query parameter. This is a

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 564

def list_by_streaming_job_async(resource_group_name, job_name, select = nil, custom_headers = nil)
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_name is nil' if job_name.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobName' => job_name},
      query_params: {'$select' => select,'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::ARM::StreamAnalytics::Models::FunctionListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_by_streaming_job_next(next_page_link, custom_headers = nil) ⇒ FunctionListResult

Lists all of the functions under the specified streaming job.

to List operation. will be added to the HTTP request.

Parameters:

  • next_page_link (String)

    The NextLink from the previous successful call

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (FunctionListResult)

    operation results.



949
950
951
952
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 949

def list_by_streaming_job_next(next_page_link, custom_headers = nil)
  response = list_by_streaming_job_next_async(next_page_link, custom_headers).value!
  response.body unless response.nil?
end

#list_by_streaming_job_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise

Lists all of the functions under the specified streaming job.

to List operation. to the HTTP request.

Parameters:

  • next_page_link (String)

    The NextLink from the previous successful call

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 978

def list_by_streaming_job_next_async(next_page_link, custom_headers = nil)
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{nextLink}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      skip_encoding_path_params: {'nextLink' => next_page_link},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::ARM::StreamAnalytics::Models::FunctionListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_by_streaming_job_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Lists all of the functions under the specified streaming job.

to List operation. will be added to the HTTP request.

Parameters:

  • next_page_link (String)

    The NextLink from the previous successful call

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



964
965
966
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 964

def list_by_streaming_job_next_with_http_info(next_page_link, custom_headers = nil)
  list_by_streaming_job_next_async(next_page_link, custom_headers).value!
end

#list_by_streaming_job_with_http_info(resource_group_name, job_name, select = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Lists all of the functions under the specified streaming job.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. comma-separated list of structural properties to include in the response, or “*” to include all properties. By default, all properties are returned except diagnostics. Currently only accepts ‘*’ as a valid value. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • select (String) (defaults to: nil)

    The $select OData query parameter. This is a

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



544
545
546
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 544

def list_by_streaming_job_with_http_info(resource_group_name, job_name, select = nil, custom_headers = nil)
  list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value!
end

#retrieve_default_definition(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters = nil, custom_headers = nil) ⇒ Function

Retrieves the default definition of a function based on the parameters specified.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

FunctionRetrieveDefaultDefinitionParameters

Parameters used to specify the

type of function to retrieve the default definition for. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • function_retrieve_default_definition_parameters (defaults to: nil)
  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (Function)

    operation results.



697
698
699
700
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 697

def retrieve_default_definition(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters = nil, custom_headers = nil)
  response = retrieve_default_definition_async(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters, custom_headers).value!
  response.body unless response.nil?
end

#retrieve_default_definition_async(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters = nil, custom_headers = nil) ⇒ Concurrent::Promise

Retrieves the default definition of a function based on the parameters specified.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

FunctionRetrieveDefaultDefinitionParameters

Parameters used to specify the

type of function to retrieve the default definition for. to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • function_retrieve_default_definition_parameters (defaults to: nil)
  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 740

def retrieve_default_definition_async(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters = nil, custom_headers = nil)
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_name is nil' if job_name.nil?
  fail ArgumentError, 'function_name is nil' if function_name.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Serialize Request
  request_mapper = Azure::ARM::StreamAnalytics::Models::FunctionRetrieveDefaultDefinitionParameters.mapper()
  request_content = @client.serialize(request_mapper,  function_retrieve_default_definition_parameters)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/RetrieveDefaultDefinition'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobName' => job_name,'functionName' => function_name},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:post, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::ARM::StreamAnalytics::Models::Function.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#retrieve_default_definition_with_http_info(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Retrieves the default definition of a function based on the parameters specified.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

FunctionRetrieveDefaultDefinitionParameters

Parameters used to specify the

type of function to retrieve the default definition for. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • function_retrieve_default_definition_parameters (defaults to: nil)
  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



719
720
721
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 719

def retrieve_default_definition_with_http_info(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters = nil, custom_headers = nil)
  retrieve_default_definition_async(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters, custom_headers).value!
end

#test(resource_group_name, job_name, function_name, function = nil, custom_headers = nil) ⇒ ResourceTestStatus

Tests if the information provided for a function is valid. This can range from testing the connection to the underlying web service behind the function or making sure the function code provided is syntactically correct.

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. this parameter must contain the full function definition intended to be tested. If the function specified already exists, this parameter can be left null to test the existing function as is or if specified, the properties specified will overwrite the corresponding properties in the existing function (exactly like a PATCH operation) and the resulting function will be tested. will be added to the HTTP request.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • function (Function) (defaults to: nil)

    If the function specified does not already exist,

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (ResourceTestStatus)

    operation results.



638
639
640
641
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 638

def test(resource_group_name, job_name, function_name, function = nil, custom_headers = nil)
  response = test_async(resource_group_name, job_name, function_name, function, custom_headers).value!
  response.body unless response.nil?
end

#test_async(resource_group_name, job_name, function_name, function = nil, custom_headers = nil) ⇒ Concurrent::Promise

contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. this parameter must contain the full function definition intended to be tested. If the function specified already exists, this parameter can be left null to test the existing function as is or if specified, the properties specified will overwrite the corresponding properties in the existing function (exactly like a PATCH operation) and the resulting function will be tested. will be added to the HTTP request.

response.

Parameters:

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • function (Function) (defaults to: nil)

    If the function specified does not already exist,

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (Concurrent::Promise)

    promise which provides async access to http



662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 662

def test_async(resource_group_name, job_name, function_name, function = nil, custom_headers = nil)
  # Send request
  promise = begin_test_async(resource_group_name, job_name, function_name, function, custom_headers)

  promise = promise.then do |response|
    # Defining deserialization method.
    deserialize_method = lambda do |parsed_response|
      result_mapper = Azure::ARM::StreamAnalytics::Models::ResourceTestStatus.mapper()
      parsed_response = @client.deserialize(result_mapper, parsed_response)
    end

    # Waiting for response.
    @client.get_long_running_operation_result(response, deserialize_method)
  end

  promise
end

#update(function, resource_group_name, job_name, function_name, if_match = nil, custom_headers = nil) ⇒ Function

Updates an existing function under an existing streaming job. This can be used to partially update (ie. update one or two properties) a function without affecting the rest the job or function definition.

will overwrite the corresponding properties in the existing function (ie. Those properties will be updated). Any properties that are set to null here will mean that the corresponding property in the existing function will remain the same and not change as a result of this PATCH operation. contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. overwrite the current function. Specify the last-seen ETag value to prevent accidentally overwritting concurrent changes. will be added to the HTTP request.

Parameters:

  • function (Function)

    A function object. The properties specified here

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • if_match (String) (defaults to: nil)

    The ETag of the function. Omit this value to always

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (Function)

    operation results.



197
198
199
200
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 197

def update(function, resource_group_name, job_name, function_name, if_match = nil, custom_headers = nil)
  response = update_async(function, resource_group_name, job_name, function_name, if_match, custom_headers).value!
  response.body unless response.nil?
end

#update_async(function, resource_group_name, job_name, function_name, if_match = nil, custom_headers = nil) ⇒ Concurrent::Promise

Updates an existing function under an existing streaming job. This can be used to partially update (ie. update one or two properties) a function without affecting the rest the job or function definition.

will overwrite the corresponding properties in the existing function (ie. Those properties will be updated). Any properties that are set to null here will mean that the corresponding property in the existing function will remain the same and not change as a result of this PATCH operation. contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. overwrite the current function. Specify the last-seen ETag value to prevent accidentally overwritting concurrent changes. to the HTTP request.

Parameters:

  • function (Function)

    A function object. The properties specified here

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • if_match (String) (defaults to: nil)

    The ETag of the function. Omit this value to always

  • A (Hash{String => String})

    hash of custom headers that will be added

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 252

def update_async(function, resource_group_name, job_name, function_name, if_match = nil, custom_headers = nil)
  fail ArgumentError, 'function is nil' if function.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'job_name is nil' if job_name.nil?
  fail ArgumentError, 'function_name is nil' if function_name.nil?


  request_headers = {}

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['If-Match'] = if_match unless if_match.nil?
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Serialize Request
  request_mapper = Azure::ARM::StreamAnalytics::Models::Function.mapper()
  request_content = @client.serialize(request_mapper,  function)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'jobName' => job_name,'functionName' => function_name},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:patch, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::ARM::StreamAnalytics::Models::Function.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#update_with_http_info(function, resource_group_name, job_name, function_name, if_match = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse

Updates an existing function under an existing streaming job. This can be used to partially update (ie. update one or two properties) a function without affecting the rest the job or function definition.

will overwrite the corresponding properties in the existing function (ie. Those properties will be updated). Any properties that are set to null here will mean that the corresponding property in the existing function will remain the same and not change as a result of this PATCH operation. contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. overwrite the current function. Specify the last-seen ETag value to prevent accidentally overwritting concurrent changes. will be added to the HTTP request.

Parameters:

  • function (Function)

    A function object. The properties specified here

  • resource_group_name (String)

    The name of the resource group that

  • job_name (String)

    The name of the streaming job.

  • function_name (String)

    The name of the function.

  • if_match (String) (defaults to: nil)

    The ETag of the function. Omit this value to always

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (MsRestAzure::AzureOperationResponse)

    HTTP response information.



225
226
227
# File 'lib/generated/azure_mgmt_stream_analytics/functions.rb', line 225

def update_with_http_info(function, resource_group_name, job_name, function_name, if_match = nil, custom_headers = nil)
  update_async(function, resource_group_name, job_name, function_name, if_match, custom_headers).value!
end