Class: Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiManagementClient
- Inherits:
-
MsRestAzure::AzureServiceClient
- Object
- MsRestAzure::AzureServiceClient
- Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiManagementClient
- Includes:
- MsRestAzure, MsRestAzure::Serialization
- Defined in:
- lib/2018-06-01-preview/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
-
#accept_language ⇒ String
The preferred language for the response.
-
#api ⇒ Api
readonly
Api.
-
#api_diagnostic ⇒ ApiDiagnostic
readonly
Api_diagnostic.
-
#api_export ⇒ ApiExport
readonly
Api_export.
-
#api_issue ⇒ ApiIssue
readonly
Api_issue.
-
#api_issue_attachment ⇒ ApiIssueAttachment
readonly
Api_issue_attachment.
-
#api_issue_comment ⇒ ApiIssueComment
readonly
Api_issue_comment.
-
#api_management_operations ⇒ ApiManagementOperations
readonly
Api_management_operations.
-
#api_management_service ⇒ ApiManagementService
readonly
Api_management_service.
-
#api_management_service_skus ⇒ ApiManagementServiceSkus
readonly
Api_management_service_skus.
-
#api_operation ⇒ ApiOperation
readonly
Api_operation.
-
#api_operation_policy ⇒ ApiOperationPolicy
readonly
Api_operation_policy.
-
#api_policy ⇒ ApiPolicy
readonly
Api_policy.
-
#api_product ⇒ ApiProduct
readonly
Api_product.
-
#api_release ⇒ ApiRelease
readonly
Api_release.
-
#api_revisions ⇒ ApiRevisions
readonly
Api_revisions.
-
#api_schema ⇒ ApiSchema
readonly
Api_schema.
-
#api_version ⇒ String
readonly
Version of the API to be used with the client request.
-
#api_version_set ⇒ ApiVersionSet
readonly
Api_version_set.
-
#authorization_server ⇒ AuthorizationServer
readonly
Authorization_server.
-
#backend ⇒ Backend
readonly
Backend.
-
#base_url ⇒ String
The base URI of the service.
-
#cache ⇒ Cache
readonly
Cache.
-
#certificate ⇒ Certificate
readonly
Certificate.
-
#credentials ⇒ Object
readonly
Credentials needed for the client to connect to Azure.
-
#delegation_settings ⇒ DelegationSettings
readonly
Delegation_settings.
-
#diagnostic ⇒ Diagnostic
readonly
Diagnostic.
-
#email_template ⇒ EmailTemplate
readonly
Email_template.
-
#generate_client_request_id ⇒ Boolean
generated.
-
#group ⇒ Group
readonly
Group.
-
#group_user ⇒ GroupUser
readonly
Group_user.
-
#identity_provider ⇒ IdentityProvider
readonly
Identity_provider.
-
#issue ⇒ Issue
readonly
Issue.
-
#logger ⇒ Logger
readonly
Logger.
-
#long_running_operation_retry_timeout ⇒ Integer
Operations.
-
#network_status ⇒ NetworkStatus
readonly
Network_status.
-
#notification ⇒ Notification
readonly
Notification.
-
#notification_recipient_email ⇒ NotificationRecipientEmail
readonly
Notification_recipient_email.
-
#notification_recipient_user ⇒ NotificationRecipientUser
readonly
Notification_recipient_user.
-
#open_id_connect_provider ⇒ OpenIdConnectProvider
readonly
Open_id_connect_provider.
-
#operation_operations ⇒ OperationOperations
readonly
Operation_operations.
-
#policy ⇒ Policy
readonly
Policy.
-
#policy_snippets ⇒ PolicySnippets
readonly
Policy_snippets.
-
#product ⇒ Product
readonly
Product.
-
#product_api ⇒ ProductApi
readonly
Product_api.
-
#product_group ⇒ ProductGroup
readonly
Product_group.
-
#product_policy ⇒ ProductPolicy
readonly
Product_policy.
-
#product_subscriptions ⇒ ProductSubscriptions
readonly
Product_subscriptions.
-
#property ⇒ Property
readonly
Property.
-
#quota_by_counter_keys ⇒ QuotaByCounterKeys
readonly
Quota_by_counter_keys.
-
#quota_by_period_keys ⇒ QuotaByPeriodKeys
readonly
Quota_by_period_keys.
-
#region ⇒ Region
readonly
Region.
-
#reports ⇒ Reports
readonly
Reports.
-
#sign_in_settings ⇒ SignInSettings
readonly
Sign_in_settings.
-
#sign_up_settings ⇒ SignUpSettings
readonly
Sign_up_settings.
-
#subscription ⇒ Subscription
readonly
Subscription.
-
#subscription_id ⇒ String
Microsoft Azure subscription.
-
#tag ⇒ Tag
readonly
Tag.
-
#tag_description ⇒ TagDescription
readonly
Tag_description.
-
#tag_resource ⇒ TagResource
readonly
Tag_resource.
-
#tenant_access ⇒ TenantAccess
readonly
Tenant_access.
-
#tenant_access_git ⇒ TenantAccessGit
readonly
Tenant_access_git.
-
#tenant_configuration ⇒ TenantConfiguration
readonly
Tenant_configuration.
-
#user ⇒ User
readonly
User.
-
#user_confirmation_password ⇒ UserConfirmationPassword
readonly
User_confirmation_password.
-
#user_group ⇒ UserGroup
readonly
User_group.
-
#user_identities ⇒ UserIdentities
readonly
User_identities.
-
#user_subscription ⇒ UserSubscription
readonly
User_subscription.
Instance Method Summary collapse
-
#initialize(credentials = nil, base_url = nil, options = nil) ⇒ ApiManagementClient
constructor
Creates initializes a new instance of the ApiManagementClient class.
-
#make_request(method, path, options = {}) ⇒ Hash{String=>String}
Makes a request and returns the body of the response.
-
#make_request_async(method, path, options = {}) ⇒ Concurrent::Promise
Makes a request asynchronously.
-
#make_request_with_http_info(method, path, options = {}) ⇒ MsRestAzure::AzureOperationResponse
Makes a request and returns the operation response.
Constructor Details
#initialize(credentials = nil, base_url = nil, options = nil) ⇒ ApiManagementClient
Creates initializes a new instance of the ApiManagementClient class.
229 230 231 232 233 234 235 236 237 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 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 229 def initialize(credentials = nil, base_url = nil, = nil) super(credentials, ) @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 @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) @tag = Tag.new(self) @api_product = ApiProduct.new(self) @api_policy = ApiPolicy.new(self) @api_schema = ApiSchema.new(self) @api_diagnostic = ApiDiagnostic.new(self) @api_issue = ApiIssue.new(self) @api_issue_comment = ApiIssueComment.new(self) = ApiIssueAttachment.new(self) @tag_description = TagDescription.new(self) @operation_operations = OperationOperations.new(self) = AuthorizationServer.new(self) @backend = Backend.new(self) @cache = Cache.new(self) @certificate = Certificate.new(self) @api_management_operations = ApiManagementOperations.new(self) @api_management_service_skus = ApiManagementServiceSkus.new(self) @api_management_service = ApiManagementService.new(self) @diagnostic = Diagnostic.new(self) @email_template = EmailTemplate.new(self) @group = Group.new(self) @group_user = GroupUser.new(self) @identity_provider = IdentityProvider.new(self) @issue = Issue.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) @policy = Policy.new(self) @policy_snippets = PolicySnippets.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) @region = Region.new(self) @reports = Reports.new(self) @subscription = Subscription.new(self) @tag_resource = TagResource.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) @user_confirmation_password = UserConfirmationPassword.new(self) @api_version_set = ApiVersionSet.new(self) @api_export = ApiExport.new(self) @api_version = '2018-06-01-preview' @accept_language = 'en-US' @long_running_operation_retry_timeout = 30 @generate_client_request_id = true add_telemetry end |
Instance Attribute Details
#accept_language ⇒ String
Returns The preferred language for the response.
29 30 31 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 29 def accept_language @accept_language end |
#api ⇒ Api (readonly)
Returns api.
41 42 43 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 41 def api @api end |
#api_diagnostic ⇒ ApiDiagnostic (readonly)
Returns api_diagnostic.
68 69 70 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 68 def api_diagnostic @api_diagnostic end |
#api_export ⇒ ApiExport (readonly)
Returns api_export.
221 222 223 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 221 def api_export @api_export end |
#api_issue ⇒ ApiIssue (readonly)
Returns api_issue.
71 72 73 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 71 def api_issue @api_issue end |
#api_issue_attachment ⇒ ApiIssueAttachment (readonly)
Returns api_issue_attachment.
77 78 79 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 77 def end |
#api_issue_comment ⇒ ApiIssueComment (readonly)
Returns api_issue_comment.
74 75 76 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 74 def api_issue_comment @api_issue_comment end |
#api_management_operations ⇒ ApiManagementOperations (readonly)
Returns api_management_operations.
98 99 100 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 98 def api_management_operations @api_management_operations end |
#api_management_service ⇒ ApiManagementService (readonly)
Returns api_management_service.
104 105 106 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 104 def api_management_service @api_management_service end |
#api_management_service_skus ⇒ ApiManagementServiceSkus (readonly)
Returns api_management_service_skus.
101 102 103 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 101 def api_management_service_skus @api_management_service_skus end |
#api_operation ⇒ ApiOperation (readonly)
Returns api_operation.
50 51 52 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 50 def api_operation @api_operation end |
#api_operation_policy ⇒ ApiOperationPolicy (readonly)
Returns api_operation_policy.
53 54 55 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 53 def api_operation_policy @api_operation_policy end |
#api_policy ⇒ ApiPolicy (readonly)
Returns api_policy.
62 63 64 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 62 def api_policy @api_policy end |
#api_product ⇒ ApiProduct (readonly)
Returns api_product.
59 60 61 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 59 def api_product @api_product end |
#api_release ⇒ ApiRelease (readonly)
Returns api_release.
47 48 49 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 47 def api_release @api_release end |
#api_revisions ⇒ ApiRevisions (readonly)
Returns api_revisions.
44 45 46 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 44 def api_revisions @api_revisions end |
#api_schema ⇒ ApiSchema (readonly)
Returns api_schema.
65 66 67 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 65 def api_schema @api_schema end |
#api_version ⇒ String (readonly)
Returns Version of the API to be used with the client request.
21 22 23 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 21 def api_version @api_version end |
#api_version_set ⇒ ApiVersionSet (readonly)
Returns api_version_set.
218 219 220 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 218 def api_version_set @api_version_set end |
#authorization_server ⇒ AuthorizationServer (readonly)
Returns authorization_server.
86 87 88 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 86 def end |
#backend ⇒ Backend (readonly)
Returns backend.
89 90 91 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 89 def backend @backend end |
#base_url ⇒ String
Returns the base URI of the service.
15 16 17 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 15 def base_url @base_url end |
#cache ⇒ Cache (readonly)
Returns cache.
92 93 94 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 92 def cache @cache end |
#certificate ⇒ Certificate (readonly)
Returns certificate.
95 96 97 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 95 def certificate @certificate end |
#credentials ⇒ Object (readonly)
Returns Credentials needed for the client to connect to Azure.
18 19 20 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 18 def credentials @credentials end |
#delegation_settings ⇒ DelegationSettings (readonly)
Returns delegation_settings.
155 156 157 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 155 def delegation_settings @delegation_settings end |
#diagnostic ⇒ Diagnostic (readonly)
Returns diagnostic.
107 108 109 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 107 def diagnostic @diagnostic end |
#email_template ⇒ EmailTemplate (readonly)
Returns email_template.
110 111 112 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 110 def email_template @email_template end |
#generate_client_request_id ⇒ Boolean
generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
38 39 40 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 38 def generate_client_request_id @generate_client_request_id end |
#group ⇒ Group (readonly)
Returns group.
113 114 115 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 113 def group @group end |
#group_user ⇒ GroupUser (readonly)
Returns group_user.
116 117 118 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 116 def group_user @group_user end |
#identity_provider ⇒ IdentityProvider (readonly)
Returns identity_provider.
119 120 121 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 119 def identity_provider @identity_provider end |
#issue ⇒ Issue (readonly)
Returns issue.
122 123 124 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 122 def issue @issue end |
#logger ⇒ Logger (readonly)
Returns logger.
125 126 127 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 125 def logger @logger end |
#long_running_operation_retry_timeout ⇒ Integer
Operations. Default value is 30.
33 34 35 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 33 def long_running_operation_retry_timeout @long_running_operation_retry_timeout end |
#network_status ⇒ NetworkStatus (readonly)
Returns network_status.
137 138 139 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 137 def network_status @network_status end |
#notification ⇒ Notification (readonly)
Returns notification.
128 129 130 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 128 def notification @notification end |
#notification_recipient_email ⇒ NotificationRecipientEmail (readonly)
Returns notification_recipient_email.
134 135 136 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 134 def notification_recipient_email @notification_recipient_email end |
#notification_recipient_user ⇒ NotificationRecipientUser (readonly)
Returns notification_recipient_user.
131 132 133 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 131 def notification_recipient_user @notification_recipient_user end |
#open_id_connect_provider ⇒ OpenIdConnectProvider (readonly)
Returns open_id_connect_provider.
140 141 142 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 140 def open_id_connect_provider @open_id_connect_provider end |
#operation_operations ⇒ OperationOperations (readonly)
Returns operation_operations.
83 84 85 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 83 def operation_operations @operation_operations end |
#policy ⇒ Policy (readonly)
Returns policy.
143 144 145 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 143 def policy @policy end |
#policy_snippets ⇒ PolicySnippets (readonly)
Returns policy_snippets.
146 147 148 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 146 def policy_snippets @policy_snippets end |
#product ⇒ Product (readonly)
Returns product.
158 159 160 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 158 def product @product end |
#product_api ⇒ ProductApi (readonly)
Returns product_api.
161 162 163 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 161 def product_api @product_api end |
#product_group ⇒ ProductGroup (readonly)
Returns product_group.
164 165 166 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 164 def product_group @product_group end |
#product_policy ⇒ ProductPolicy (readonly)
Returns product_policy.
170 171 172 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 170 def product_policy @product_policy end |
#product_subscriptions ⇒ ProductSubscriptions (readonly)
Returns product_subscriptions.
167 168 169 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 167 def product_subscriptions @product_subscriptions end |
#property ⇒ Property (readonly)
Returns property.
173 174 175 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 173 def property @property end |
#quota_by_counter_keys ⇒ QuotaByCounterKeys (readonly)
Returns quota_by_counter_keys.
176 177 178 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 176 def quota_by_counter_keys @quota_by_counter_keys end |
#quota_by_period_keys ⇒ QuotaByPeriodKeys (readonly)
Returns quota_by_period_keys.
179 180 181 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 179 def quota_by_period_keys @quota_by_period_keys end |
#region ⇒ Region (readonly)
Returns region.
182 183 184 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 182 def region @region end |
#reports ⇒ Reports (readonly)
Returns reports.
185 186 187 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 185 def reports @reports end |
#sign_in_settings ⇒ SignInSettings (readonly)
Returns sign_in_settings.
149 150 151 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 149 def sign_in_settings @sign_in_settings end |
#sign_up_settings ⇒ SignUpSettings (readonly)
Returns sign_up_settings.
152 153 154 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 152 def sign_up_settings @sign_up_settings end |
#subscription ⇒ Subscription (readonly)
Returns subscription.
188 189 190 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 188 def subscription @subscription end |
#subscription_id ⇒ String
Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
26 27 28 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 26 def subscription_id @subscription_id end |
#tag ⇒ Tag (readonly)
Returns tag.
56 57 58 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 56 def tag @tag end |
#tag_description ⇒ TagDescription (readonly)
Returns tag_description.
80 81 82 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 80 def tag_description @tag_description end |
#tag_resource ⇒ TagResource (readonly)
Returns tag_resource.
191 192 193 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 191 def tag_resource @tag_resource end |
#tenant_access ⇒ TenantAccess (readonly)
Returns tenant_access.
194 195 196 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 194 def tenant_access @tenant_access end |
#tenant_access_git ⇒ TenantAccessGit (readonly)
Returns tenant_access_git.
197 198 199 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 197 def tenant_access_git @tenant_access_git end |
#tenant_configuration ⇒ TenantConfiguration (readonly)
Returns tenant_configuration.
200 201 202 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 200 def tenant_configuration @tenant_configuration end |
#user ⇒ User (readonly)
Returns user.
203 204 205 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 203 def user @user end |
#user_confirmation_password ⇒ UserConfirmationPassword (readonly)
Returns user_confirmation_password.
215 216 217 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 215 def user_confirmation_password @user_confirmation_password end |
#user_group ⇒ UserGroup (readonly)
Returns user_group.
206 207 208 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 206 def user_group @user_group end |
#user_identities ⇒ UserIdentities (readonly)
Returns user_identities.
212 213 214 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 212 def user_identities @user_identities end |
#user_subscription ⇒ UserSubscription (readonly)
Returns user_subscription.
209 210 211 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 209 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"
= {
body: request_content,
query_params: {'api-version' => '2016-02-01'}
}
result = @client.make_request(:put, path, )
320 321 322 323 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 320 def make_request(method, path, = {}) result = make_request_with_http_info(method, path, ) result.body unless result.nil? end |
#make_request_async(method, path, options = {}) ⇒ Concurrent::Promise
Makes a request asynchronously.
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 345 def make_request_async(method, path, = {}) fail ArgumentError, 'method is nil' if method.nil? fail ArgumentError, 'path is nil' if path.nil? request_url = [:base_url] || @base_url if(![:headers].nil? && ![:headers]['Content-Type'].nil?) @request_headers['Content-Type'] = [:headers]['Content-Type'] end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? .merge!({headers: request_headers.merge([:headers] || {})}) .merge!({credentials: @credentials}) unless @credentials.nil? super(request_url, method, path, ) end |
#make_request_with_http_info(method, path, options = {}) ⇒ MsRestAzure::AzureOperationResponse
Makes a request and returns the operation response.
332 333 334 335 336 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb', line 332 def make_request_with_http_info(method, path, = {}) result = make_request_async(method, path, ).value! result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body) result end |