Class: Azure::ApiManagement::Mgmt::V2017_03_01::ApiManagementClient

Inherits:
MsRestAzure::AzureServiceClient
  • Object
show all
Includes:
MsRestAzure, MsRestAzure::Serialization
Defined in:
lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb

Overview

A service client - single point of access to the REST API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(credentials = nil, base_url = nil, options = nil) ⇒ ApiManagementClient

Creates initializes a new instance of the ApiManagementClient class.

Parameters:

  • credentials (MsRest::ServiceClientCredentials) (defaults to: nil)

    credentials to authorize HTTP requests made by the service client.

  • base_url (String) (defaults to: nil)

    the base URI of the service.

  • options (Array) (defaults to: nil)

    filters to be applied to the HTTP requests.



238
239
240
241
242
243
244
245
246
247
248
249
250
251
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/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 238

def initialize(credentials = nil, base_url = nil, options = nil)
  super(credentials, options)
  @base_url = base_url || 'https://management.azure.com'

  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
  @credentials = credentials

  @policy = Policy.new(self)
  @policy_snippets = PolicySnippets.new(self)
  @regions = Regions.new(self)
  @api = Api.new(self)
  @api_revisions = ApiRevisions.new(self)
  @api_release = ApiRelease.new(self)
  @api_operation = ApiOperation.new(self)
  @api_operation_policy = ApiOperationPolicy.new(self)
  @api_product = ApiProduct.new(self)
  @api_policy = ApiPolicy.new(self)
  @api_schema = ApiSchema.new(self)
  @api_diagnostic = ApiDiagnostic.new(self)
  @api_diagnostic_logger = ApiDiagnosticLogger.new(self)
  @api_issues = ApiIssues.new(self)
  @api_issue = ApiIssue.new(self)
  @api_issue_comments = ApiIssueComments.new(self)
  @api_issu_comment = ApiIssuComment.new(self)
  @api_issue_comment = ApiIssueComment.new(self)
  @api_issue_attachments = ApiIssueAttachments.new(self)
  @api_issu_attachment = ApiIssuAttachment.new(self)
  @api_issue_attachment = ApiIssueAttachment.new(self)
  @authorization_server = AuthorizationServer.new(self)
  @backend = Backend.new(self)
  @certificate = Certificate.new(self)
  @api_management_operations = ApiManagementOperations.new(self)
  @api_management_service = ApiManagementService.new(self)
  @diagnostic = Diagnostic.new(self)
  @diagnostic_logger = DiagnosticLogger.new(self)
  @email_template = EmailTemplate.new(self)
  @group = Group.new(self)
  @group_user = GroupUser.new(self)
  @identity_provider = IdentityProvider.new(self)
  @logger = Logger.new(self)
  @notification = Notification.new(self)
  @notification_recipient_user = NotificationRecipientUser.new(self)
  @notification_recipient_email = NotificationRecipientEmail.new(self)
  @network_status = NetworkStatus.new(self)
  @open_id_connect_provider = OpenIdConnectProvider.new(self)
  @sign_in_settings = SignInSettings.new(self)
  @sign_up_settings = SignUpSettings.new(self)
  @delegation_settings = DelegationSettings.new(self)
  @product = Product.new(self)
  @product_api = ProductApi.new(self)
  @product_group = ProductGroup.new(self)
  @product_subscriptions = ProductSubscriptions.new(self)
  @product_policy = ProductPolicy.new(self)
  @property = Property.new(self)
  @quota_by_counter_keys = QuotaByCounterKeys.new(self)
  @quota_by_period_keys = QuotaByPeriodKeys.new(self)
  @reports = Reports.new(self)
  @subscription = Subscription.new(self)
  @tag_resource = TagResource.new(self)
  @tag = Tag.new(self)
  @tag_description = TagDescription.new(self)
  @operation_operations = OperationOperations.new(self)
  @tenant_access = TenantAccess.new(self)
  @tenant_access_git = TenantAccessGit.new(self)
  @tenant_configuration = TenantConfiguration.new(self)
  @user = User.new(self)
  @user_group = UserGroup.new(self)
  @user_subscription = UserSubscription.new(self)
  @user_identities = UserIdentities.new(self)
  @api_version_set = ApiVersionSet.new(self)
  @api_export = ApiExport.new(self)
  @api_version = '2017-03-01'
  @accept_language = 'en-US'
  @long_running_operation_retry_timeout = 30
  @generate_client_request_id = true
  add_telemetry
end

Instance Attribute Details

#accept_languageString

Returns The preferred language for the response.

Returns:

  • (String)

    The preferred language for the response.



29
30
31
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 29

def accept_language
  @accept_language
end

#apiApi (readonly)

Returns api.

Returns:

  • (Api)

    api



50
51
52
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 50

def api
  @api
end

#api_diagnosticApiDiagnostic (readonly)

Returns api_diagnostic.

Returns:



74
75
76
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 74

def api_diagnostic
  @api_diagnostic
end

#api_diagnostic_loggerApiDiagnosticLogger (readonly)

Returns api_diagnostic_logger.

Returns:



77
78
79
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 77

def api_diagnostic_logger
  @api_diagnostic_logger
end

#api_exportApiExport (readonly)

Returns api_export.

Returns:



230
231
232
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 230

def api_export
  @api_export
end

#api_issu_attachmentApiIssuAttachment (readonly)

Returns api_issu_attachment.

Returns:



98
99
100
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 98

def api_issu_attachment
  @api_issu_attachment
end

#api_issu_commentApiIssuComment (readonly)

Returns api_issu_comment.

Returns:



89
90
91
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 89

def api_issu_comment
  @api_issu_comment
end

#api_issueApiIssue (readonly)

Returns api_issue.

Returns:



83
84
85
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 83

def api_issue
  @api_issue
end

#api_issue_attachmentApiIssueAttachment (readonly)

Returns api_issue_attachment.

Returns:



101
102
103
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 101

def api_issue_attachment
  @api_issue_attachment
end

#api_issue_attachmentsApiIssueAttachments (readonly)

Returns api_issue_attachments.

Returns:



95
96
97
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 95

def api_issue_attachments
  @api_issue_attachments
end

#api_issue_commentApiIssueComment (readonly)

Returns api_issue_comment.

Returns:



92
93
94
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 92

def api_issue_comment
  @api_issue_comment
end

#api_issue_commentsApiIssueComments (readonly)

Returns api_issue_comments.

Returns:



86
87
88
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 86

def api_issue_comments
  @api_issue_comments
end

#api_issuesApiIssues (readonly)

Returns api_issues.

Returns:



80
81
82
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 80

def api_issues
  @api_issues
end

#api_management_operationsApiManagementOperations (readonly)

Returns api_management_operations.

Returns:



113
114
115
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 113

def api_management_operations
  @api_management_operations
end

#api_management_serviceApiManagementService (readonly)

Returns api_management_service.

Returns:



116
117
118
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 116

def api_management_service
  @api_management_service
end

#api_operationApiOperation (readonly)

Returns api_operation.

Returns:



59
60
61
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 59

def api_operation
  @api_operation
end

#api_operation_policyApiOperationPolicy (readonly)

Returns api_operation_policy.

Returns:



62
63
64
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 62

def api_operation_policy
  @api_operation_policy
end

#api_policyApiPolicy (readonly)

Returns api_policy.

Returns:



68
69
70
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 68

def api_policy
  @api_policy
end

#api_productApiProduct (readonly)

Returns api_product.

Returns:



65
66
67
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 65

def api_product
  @api_product
end

#api_releaseApiRelease (readonly)

Returns api_release.

Returns:



56
57
58
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 56

def api_release
  @api_release
end

#api_revisionsApiRevisions (readonly)

Returns api_revisions.

Returns:



53
54
55
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 53

def api_revisions
  @api_revisions
end

#api_schemaApiSchema (readonly)

Returns api_schema.

Returns:



71
72
73
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 71

def api_schema
  @api_schema
end

#api_versionString (readonly)

Returns Version of the API to be used with the client request.

Returns:

  • (String)

    Version of the API to be used with the client request.



21
22
23
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 21

def api_version
  @api_version
end

#api_version_setApiVersionSet (readonly)

Returns api_version_set.

Returns:



227
228
229
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 227

def api_version_set
  @api_version_set
end

#authorization_serverAuthorizationServer (readonly)

Returns authorization_server.

Returns:



104
105
106
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 104

def authorization_server
  @authorization_server
end

#backendBackend (readonly)

Returns backend.

Returns:



107
108
109
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 107

def backend
  @backend
end

#base_urlString

Returns the base URI of the service.

Returns:

  • (String)

    the base URI of the service.



15
16
17
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 15

def base_url
  @base_url
end

#certificateCertificate (readonly)

Returns certificate.

Returns:



110
111
112
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 110

def certificate
  @certificate
end

#credentialsObject (readonly)

Returns Credentials needed for the client to connect to Azure.

Returns:

  • Credentials needed for the client to connect to Azure.



18
19
20
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 18

def credentials
  @credentials
end

#delegation_settingsDelegationSettings (readonly)

Returns delegation_settings.

Returns:



161
162
163
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 161

def delegation_settings
  @delegation_settings
end

#diagnosticDiagnostic (readonly)

Returns diagnostic.

Returns:



119
120
121
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 119

def diagnostic
  @diagnostic
end

#diagnostic_loggerDiagnosticLogger (readonly)

Returns diagnostic_logger.

Returns:



122
123
124
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 122

def diagnostic_logger
  @diagnostic_logger
end

#email_templateEmailTemplate (readonly)

Returns email_template.

Returns:



125
126
127
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 125

def email_template
  @email_template
end

#generate_client_request_idBoolean

generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.

Returns:

  • (Boolean)

    Whether a unique x-ms-client-request-id should be



38
39
40
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 38

def generate_client_request_id
  @generate_client_request_id
end

#groupGroup (readonly)

Returns group.

Returns:



128
129
130
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 128

def group
  @group
end

#group_userGroupUser (readonly)

Returns group_user.

Returns:



131
132
133
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 131

def group_user
  @group_user
end

#identity_providerIdentityProvider (readonly)

Returns identity_provider.

Returns:



134
135
136
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 134

def identity_provider
  @identity_provider
end

#loggerLogger (readonly)

Returns logger.

Returns:



137
138
139
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 137

def logger
  @logger
end

#long_running_operation_retry_timeoutInteger

Operations. Default value is 30.

Returns:

  • (Integer)

    The retry timeout in seconds for Long Running



33
34
35
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 33

def long_running_operation_retry_timeout
  @long_running_operation_retry_timeout
end

#network_statusNetworkStatus (readonly)

Returns network_status.

Returns:



149
150
151
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 149

def network_status
  @network_status
end

#notificationNotification (readonly)

Returns notification.

Returns:



140
141
142
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 140

def notification
  @notification
end

#notification_recipient_emailNotificationRecipientEmail (readonly)

Returns notification_recipient_email.

Returns:



146
147
148
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 146

def notification_recipient_email
  @notification_recipient_email
end

#notification_recipient_userNotificationRecipientUser (readonly)

Returns notification_recipient_user.

Returns:



143
144
145
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 143

def notification_recipient_user
  @notification_recipient_user
end

#open_id_connect_providerOpenIdConnectProvider (readonly)

Returns open_id_connect_provider.

Returns:



152
153
154
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 152

def open_id_connect_provider
  @open_id_connect_provider
end

#operation_operationsOperationOperations (readonly)

Returns operation_operations.

Returns:



203
204
205
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 203

def operation_operations
  @operation_operations
end

#policyPolicy (readonly)

Returns policy.

Returns:



41
42
43
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 41

def policy
  @policy
end

#policy_snippetsPolicySnippets (readonly)

Returns policy_snippets.

Returns:



44
45
46
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 44

def policy_snippets
  @policy_snippets
end

#productProduct (readonly)

Returns product.

Returns:



164
165
166
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 164

def product
  @product
end

#product_apiProductApi (readonly)

Returns product_api.

Returns:



167
168
169
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 167

def product_api
  @product_api
end

#product_groupProductGroup (readonly)

Returns product_group.

Returns:



170
171
172
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 170

def product_group
  @product_group
end

#product_policyProductPolicy (readonly)

Returns product_policy.

Returns:



176
177
178
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 176

def product_policy
  @product_policy
end

#product_subscriptionsProductSubscriptions (readonly)

Returns product_subscriptions.

Returns:



173
174
175
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 173

def product_subscriptions
  @product_subscriptions
end

#propertyProperty (readonly)

Returns property.

Returns:



179
180
181
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 179

def property
  @property
end

#quota_by_counter_keysQuotaByCounterKeys (readonly)

Returns quota_by_counter_keys.

Returns:



182
183
184
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 182

def quota_by_counter_keys
  @quota_by_counter_keys
end

#quota_by_period_keysQuotaByPeriodKeys (readonly)

Returns quota_by_period_keys.

Returns:



185
186
187
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 185

def quota_by_period_keys
  @quota_by_period_keys
end

#regionsRegions (readonly)

Returns regions.

Returns:



47
48
49
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 47

def regions
  @regions
end

#reportsReports (readonly)

Returns reports.

Returns:



188
189
190
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 188

def reports
  @reports
end

#sign_in_settingsSignInSettings (readonly)

Returns sign_in_settings.

Returns:



155
156
157
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 155

def 
  @sign_in_settings
end

#sign_up_settingsSignUpSettings (readonly)

Returns sign_up_settings.

Returns:



158
159
160
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 158

def 
  @sign_up_settings
end

#subscriptionSubscription (readonly)

Returns subscription.

Returns:



191
192
193
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 191

def subscription
  @subscription
end

#subscription_idString

Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Returns:

  • (String)

    Subscription credentials which uniquely identify



26
27
28
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 26

def subscription_id
  @subscription_id
end

#tagTag (readonly)

Returns tag.

Returns:

  • (Tag)

    tag



197
198
199
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 197

def tag
  @tag
end

#tag_descriptionTagDescription (readonly)

Returns tag_description.

Returns:



200
201
202
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 200

def tag_description
  @tag_description
end

#tag_resourceTagResource (readonly)

Returns tag_resource.

Returns:



194
195
196
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 194

def tag_resource
  @tag_resource
end

#tenant_accessTenantAccess (readonly)

Returns tenant_access.

Returns:



206
207
208
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 206

def tenant_access
  @tenant_access
end

#tenant_access_gitTenantAccessGit (readonly)

Returns tenant_access_git.

Returns:



209
210
211
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 209

def tenant_access_git
  @tenant_access_git
end

#tenant_configurationTenantConfiguration (readonly)

Returns tenant_configuration.

Returns:



212
213
214
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 212

def tenant_configuration
  @tenant_configuration
end

#userUser (readonly)

Returns user.

Returns:



215
216
217
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 215

def user
  @user
end

#user_groupUserGroup (readonly)

Returns user_group.

Returns:



218
219
220
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 218

def user_group
  @user_group
end

#user_identitiesUserIdentities (readonly)

Returns user_identities.

Returns:



224
225
226
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 224

def user_identities
  @user_identities
end

#user_subscriptionUserSubscription (readonly)

Returns user_subscription.

Returns:



221
222
223
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 221

def user_subscription
  @user_subscription
end

Instance Method Details

#make_request(method, path, options = {}) ⇒ Hash{String=>String}

Makes a request and returns the body of the response. Example:

request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
path = "/path"
options = {
  body: request_content,
  query_params: {'api-version' => '2016-02-01'}
}
result = @client.make_request(:put, path, options)

Parameters:

  • method (Symbol)

    with any of the following values :get, :put, :post, :patch, :delete.

  • path (String)

    the path, relative to #base_url.

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

    specifying any request options like :body.

Returns:

  • (Hash{String=>String})

    containing the body of the response.



332
333
334
335
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 332

def make_request(method, path, options = {})
  result = make_request_with_http_info(method, path, options)
  result.body unless result.nil?
end

#make_request_async(method, path, options = {}) ⇒ Concurrent::Promise

Makes a request asynchronously.

Parameters:

  • method (Symbol)

    with any of the following values :get, :put, :post, :patch, :delete.

  • path (String)

    the path, relative to #base_url.

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

    specifying any request options like :body.

Returns:

  • (Concurrent::Promise)

    Promise object which holds the HTTP response.



357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 357

def make_request_async(method, path, options = {})
  fail ArgumentError, 'method is nil' if method.nil?
  fail ArgumentError, 'path is nil' if path.nil?

  request_url = options[:base_url] || @base_url
  if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
    @request_headers['Content-Type'] = options[:headers]['Content-Type']
  end

  request_headers = @request_headers
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
  options.merge!({headers: request_headers.merge(options[:headers] || {})})
  options.merge!({credentials: @credentials}) unless @credentials.nil?

  super(request_url, method, path, options)
end

#make_request_with_http_info(method, path, options = {}) ⇒ MsRestAzure::AzureOperationResponse

Makes a request and returns the operation response.

Parameters:

  • method (Symbol)

    with any of the following values :get, :put, :post, :patch, :delete.

  • path (String)

    the path, relative to #base_url.

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

    specifying any request options like :body.

Returns:

  • (MsRestAzure::AzureOperationResponse)

    Operation response containing the request, response and status.



344
345
346
347
348
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb', line 344

def make_request_with_http_info(method, path, options = {})
  result = make_request_async(method, path, options).value!
  result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
  result
end