azure_mgmt_logic 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_logic.rb +100 -12
  3. data/lib/generated/azure_mgmt_logic/integration_account_agreements.rb +534 -0
  4. data/lib/generated/azure_mgmt_logic/integration_account_certificates.rb +530 -0
  5. data/lib/generated/azure_mgmt_logic/integration_account_maps.rb +531 -0
  6. data/lib/generated/azure_mgmt_logic/integration_account_partners.rb +531 -0
  7. data/lib/generated/azure_mgmt_logic/integration_account_schemas.rb +531 -0
  8. data/lib/generated/azure_mgmt_logic/integration_accounts.rb +912 -0
  9. data/lib/generated/azure_mgmt_logic/logic_management_client.rb +38 -5
  10. data/lib/generated/azure_mgmt_logic/models/agreement_content.rb +68 -0
  11. data/lib/generated/azure_mgmt_logic/models/agreement_type.rb +18 -0
  12. data/lib/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb +79 -0
  13. data/lib/generated/azure_mgmt_logic/models/as2agreement_content.rb +57 -0
  14. data/lib/generated/azure_mgmt_logic/models/as2envelope_settings.rb +88 -0
  15. data/lib/generated/azure_mgmt_logic/models/as2error_settings.rb +57 -0
  16. data/lib/generated/azure_mgmt_logic/models/as2mdn_settings.rb +132 -0
  17. data/lib/generated/azure_mgmt_logic/models/as2message_connection_settings.rb +79 -0
  18. data/lib/generated/azure_mgmt_logic/models/as2one_way_agreement.rb +68 -0
  19. data/lib/generated/azure_mgmt_logic/models/as2protocol_settings.rb +113 -0
  20. data/lib/generated/azure_mgmt_logic/models/as2security_settings.rb +132 -0
  21. data/lib/generated/azure_mgmt_logic/models/as2validation_settings.rb +136 -0
  22. data/lib/generated/azure_mgmt_logic/models/b2bpartner_content.rb +54 -0
  23. data/lib/generated/azure_mgmt_logic/models/business_identity.rb +55 -0
  24. data/lib/generated/azure_mgmt_logic/models/callback_url.rb +45 -0
  25. data/lib/generated/azure_mgmt_logic/models/content_hash.rb +2 -1
  26. data/lib/generated/azure_mgmt_logic/models/content_link.rb +2 -1
  27. data/lib/generated/azure_mgmt_logic/models/correlation.rb +2 -1
  28. data/lib/generated/azure_mgmt_logic/models/day_of_week.rb +1 -1
  29. data/lib/generated/azure_mgmt_logic/models/days_of_week.rb +1 -1
  30. data/lib/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb +152 -0
  31. data/lib/generated/azure_mgmt_logic/models/edifact_agreement_content.rb +57 -0
  32. data/lib/generated/azure_mgmt_logic/models/edifact_character_set.rb +29 -0
  33. data/lib/generated/azure_mgmt_logic/models/edifact_decimal_indicator.rb +17 -0
  34. data/lib/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb +160 -0
  35. data/lib/generated/azure_mgmt_logic/models/edifact_envelope_override.rb +189 -0
  36. data/lib/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb +453 -0
  37. data/lib/generated/azure_mgmt_logic/models/edifact_framing_settings.rb +154 -0
  38. data/lib/generated/azure_mgmt_logic/models/edifact_message_filter.rb +47 -0
  39. data/lib/generated/azure_mgmt_logic/models/edifact_message_identifier.rb +46 -0
  40. data/lib/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb +68 -0
  41. data/lib/generated/azure_mgmt_logic/models/edifact_processing_settings.rb +89 -0
  42. data/lib/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb +196 -0
  43. data/lib/generated/azure_mgmt_logic/models/edifact_schema_reference.rb +105 -0
  44. data/lib/generated/azure_mgmt_logic/models/edifact_validation_override.rb +112 -0
  45. data/lib/generated/azure_mgmt_logic/models/edifact_validation_settings.rb +146 -0
  46. data/lib/generated/azure_mgmt_logic/models/encryption_algorithm.rb +21 -0
  47. data/lib/generated/azure_mgmt_logic/models/generate_upgraded_definition_parameters.rb +2 -1
  48. data/lib/generated/azure_mgmt_logic/models/hashing_algorithm.rb +19 -0
  49. data/lib/generated/azure_mgmt_logic/models/integration_account.rb +98 -0
  50. data/lib/generated/azure_mgmt_logic/models/integration_account_agreement.rb +174 -0
  51. data/lib/generated/azure_mgmt_logic/models/integration_account_agreement_filter.rb +48 -0
  52. data/lib/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb +94 -0
  53. data/lib/generated/azure_mgmt_logic/models/integration_account_certificate.rb +130 -0
  54. data/lib/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb +95 -0
  55. data/lib/generated/azure_mgmt_logic/models/integration_account_content_hash.rb +55 -0
  56. data/lib/generated/azure_mgmt_logic/models/integration_account_content_link.rb +86 -0
  57. data/lib/generated/azure_mgmt_logic/models/integration_account_list_result.rb +93 -0
  58. data/lib/generated/azure_mgmt_logic/models/integration_account_map.rb +153 -0
  59. data/lib/generated/azure_mgmt_logic/models/integration_account_map_filter.rb +47 -0
  60. data/lib/generated/azure_mgmt_logic/models/integration_account_map_list_result.rb +94 -0
  61. data/lib/generated/azure_mgmt_logic/models/integration_account_partner.rb +132 -0
  62. data/lib/generated/azure_mgmt_logic/models/integration_account_partner_filter.rb +47 -0
  63. data/lib/generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb +94 -0
  64. data/lib/generated/azure_mgmt_logic/models/integration_account_resource.rb +92 -0
  65. data/lib/generated/azure_mgmt_logic/models/integration_account_schema.rb +163 -0
  66. data/lib/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb +47 -0
  67. data/lib/generated/azure_mgmt_logic/models/integration_account_schema_list_result.rb +94 -0
  68. data/lib/generated/azure_mgmt_logic/models/integration_account_sku.rb +47 -0
  69. data/lib/generated/azure_mgmt_logic/models/key_type.rb +1 -1
  70. data/lib/generated/azure_mgmt_logic/models/key_vault_key_reference.rb +66 -0
  71. data/lib/generated/azure_mgmt_logic/models/key_vault_key_reference_key_vault.rb +66 -0
  72. data/lib/generated/azure_mgmt_logic/models/list_callback_url_parameters.rb +45 -0
  73. data/lib/generated/azure_mgmt_logic/models/map_type.rb +16 -0
  74. data/lib/generated/azure_mgmt_logic/models/message_filter_type.rb +17 -0
  75. data/lib/generated/azure_mgmt_logic/models/parameter_type.rb +1 -1
  76. data/lib/generated/azure_mgmt_logic/models/partner_content.rb +46 -0
  77. data/lib/generated/azure_mgmt_logic/models/partner_type.rb +16 -0
  78. data/lib/generated/azure_mgmt_logic/models/recurrence_frequency.rb +1 -1
  79. data/lib/generated/azure_mgmt_logic/models/recurrence_schedule.rb +2 -1
  80. data/lib/generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb +2 -1
  81. data/lib/generated/azure_mgmt_logic/models/resource_reference.rb +2 -1
  82. data/lib/generated/azure_mgmt_logic/models/schema_type.rb +16 -0
  83. data/lib/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb +19 -0
  84. data/lib/generated/azure_mgmt_logic/models/sku.rb +2 -1
  85. data/lib/generated/azure_mgmt_logic/models/sku_name.rb +1 -1
  86. data/lib/generated/azure_mgmt_logic/models/trailing_separator_policy.rb +18 -0
  87. data/lib/generated/azure_mgmt_logic/models/usage_indicator.rb +18 -0
  88. data/lib/generated/azure_mgmt_logic/models/workflow.rb +2 -1
  89. data/lib/generated/azure_mgmt_logic/models/workflow_filter.rb +4 -3
  90. data/lib/generated/azure_mgmt_logic/models/workflow_list_result.rb +1 -1
  91. data/lib/generated/azure_mgmt_logic/models/workflow_output_parameter.rb +2 -1
  92. data/lib/generated/azure_mgmt_logic/models/workflow_parameter.rb +2 -1
  93. data/lib/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb +1 -1
  94. data/lib/generated/azure_mgmt_logic/models/workflow_run.rb +5 -4
  95. data/lib/generated/azure_mgmt_logic/models/workflow_run_action.rb +5 -4
  96. data/lib/generated/azure_mgmt_logic/models/workflow_run_action_filter.rb +4 -3
  97. data/lib/generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb +1 -1
  98. data/lib/generated/azure_mgmt_logic/models/workflow_run_filter.rb +2 -1
  99. data/lib/generated/azure_mgmt_logic/models/workflow_run_list_result.rb +1 -1
  100. data/lib/generated/azure_mgmt_logic/models/workflow_run_trigger.rb +5 -4
  101. data/lib/generated/azure_mgmt_logic/models/workflow_state.rb +1 -1
  102. data/lib/generated/azure_mgmt_logic/models/workflow_status.rb +1 -1
  103. data/lib/generated/azure_mgmt_logic/models/workflow_trigger.rb +10 -10
  104. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_callback_url.rb +2 -1
  105. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_filter.rb +4 -3
  106. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_history.rb +5 -4
  107. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_filter.rb +4 -3
  108. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb +1 -1
  109. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb +1 -1
  110. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb +1 -1
  111. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb +2 -1
  112. data/lib/generated/azure_mgmt_logic/models/workflow_version.rb +2 -1
  113. data/lib/generated/azure_mgmt_logic/models/workflow_version_list_result.rb +1 -1
  114. data/lib/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb +194 -0
  115. data/lib/generated/azure_mgmt_logic/models/x12agreement_content.rb +57 -0
  116. data/lib/generated/azure_mgmt_logic/models/x12character_set.rb +18 -0
  117. data/lib/generated/azure_mgmt_logic/models/x12date_format.rb +17 -0
  118. data/lib/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb +129 -0
  119. data/lib/generated/azure_mgmt_logic/models/x12envelope_override.rb +142 -0
  120. data/lib/generated/azure_mgmt_logic/models/x12envelope_settings.rb +287 -0
  121. data/lib/generated/azure_mgmt_logic/models/x12framing_settings.rb +110 -0
  122. data/lib/generated/azure_mgmt_logic/models/x12message_filter.rb +47 -0
  123. data/lib/generated/azure_mgmt_logic/models/x12message_identifier.rb +45 -0
  124. data/lib/generated/azure_mgmt_logic/models/x12one_way_agreement.rb +68 -0
  125. data/lib/generated/azure_mgmt_logic/models/x12processing_settings.rb +100 -0
  126. data/lib/generated/azure_mgmt_logic/models/x12protocol_settings.rb +205 -0
  127. data/lib/generated/azure_mgmt_logic/models/x12schema_reference.rb +75 -0
  128. data/lib/generated/azure_mgmt_logic/models/x12security_settings.rb +75 -0
  129. data/lib/generated/azure_mgmt_logic/models/x12time_format.rb +19 -0
  130. data/lib/generated/azure_mgmt_logic/models/x12validation_override.rb +112 -0
  131. data/lib/generated/azure_mgmt_logic/models/x12validation_settings.rb +146 -0
  132. data/lib/generated/azure_mgmt_logic/module_definition.rb +1 -1
  133. data/lib/generated/azure_mgmt_logic/version.rb +2 -2
  134. data/lib/generated/azure_mgmt_logic/workflow_run_actions.rb +37 -37
  135. data/lib/generated/azure_mgmt_logic/workflow_runs.rb +38 -38
  136. data/lib/generated/azure_mgmt_logic/workflow_trigger_histories.rb +37 -37
  137. data/lib/generated/azure_mgmt_logic/workflow_triggers.rb +40 -40
  138. data/lib/generated/azure_mgmt_logic/workflow_versions.rb +35 -35
  139. data/lib/generated/azure_mgmt_logic/workflows.rb +79 -79
  140. metadata +92 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8776ccc0c9d824ea4d721cf97e19077d961f2302
4
- data.tar.gz: 8edac5f4335ddea91331c5d611ef7e48cef9b17e
3
+ metadata.gz: b6784265fc073434fd5b68c8a7c73df3c86ad711
4
+ data.tar.gz: edbcb140800c3b628991809c249e2fe263860ade
5
5
  SHA512:
6
- metadata.gz: 673d4ae8d34814022673d734ff48ee7629c1dd19e9203930f1919ce6d9754f619c0894cb5ae18502998b864498e15492545426a34abd925ebca06d2796920225
7
- data.tar.gz: e369221976eb96d9672edfb5a6760516b7dac7499bc65f3f47800c1c8210ec26e0bc118d49b44874e7f4da380c7ab39583ff3316d543f8073cf7cc9382896ea4
6
+ metadata.gz: eb9528488586fa94f02c68eb583969509d7bf8a9f666f532bff963886253ba2e7082b4bd33152d94b084fd27000f301dd98e1956a98c7e534f2000b7194369f7
7
+ data.tar.gz: 2cde369e1d66aa435452aed9307d3c996c6eb81d552b8db4b6655052766f760aa6b9840ceb830d2e337f4929af363d34ff70805ef0309cf05219180ae38ffe2a
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -26,32 +26,99 @@ module Azure::ARM::Logic
26
26
  autoload :WorkflowTriggerHistories, 'generated/azure_mgmt_logic/workflow_trigger_histories.rb'
27
27
  autoload :WorkflowRuns, 'generated/azure_mgmt_logic/workflow_runs.rb'
28
28
  autoload :WorkflowRunActions, 'generated/azure_mgmt_logic/workflow_run_actions.rb'
29
+ autoload :IntegrationAccounts, 'generated/azure_mgmt_logic/integration_accounts.rb'
30
+ autoload :IntegrationAccountSchemas, 'generated/azure_mgmt_logic/integration_account_schemas.rb'
31
+ autoload :IntegrationAccountMaps, 'generated/azure_mgmt_logic/integration_account_maps.rb'
32
+ autoload :IntegrationAccountPartners, 'generated/azure_mgmt_logic/integration_account_partners.rb'
33
+ autoload :IntegrationAccountAgreements, 'generated/azure_mgmt_logic/integration_account_agreements.rb'
34
+ autoload :IntegrationAccountCertificates, 'generated/azure_mgmt_logic/integration_account_certificates.rb'
29
35
  autoload :LogicManagementClient, 'generated/azure_mgmt_logic/logic_management_client.rb'
30
36
 
31
37
  module Models
32
- autoload :ResourceReference, 'generated/azure_mgmt_logic/models/resource_reference.rb'
38
+ autoload :B2BPartnerContent, 'generated/azure_mgmt_logic/models/b2bpartner_content.rb'
39
+ autoload :BusinessIdentity, 'generated/azure_mgmt_logic/models/business_identity.rb'
40
+ autoload :IntegrationAccountPartnerFilter, 'generated/azure_mgmt_logic/models/integration_account_partner_filter.rb'
41
+ autoload :IntegrationAccountMapFilter, 'generated/azure_mgmt_logic/models/integration_account_map_filter.rb'
33
42
  autoload :Sku, 'generated/azure_mgmt_logic/models/sku.rb'
34
- autoload :WorkflowParameter, 'generated/azure_mgmt_logic/models/workflow_parameter.rb'
43
+ autoload :IntegrationAccountPartnerListResult, 'generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb'
35
44
  autoload :WorkflowFilter, 'generated/azure_mgmt_logic/models/workflow_filter.rb'
36
- autoload :WorkflowListResult, 'generated/azure_mgmt_logic/models/workflow_list_result.rb'
37
- autoload :WorkflowVersionListResult, 'generated/azure_mgmt_logic/models/workflow_version_list_result.rb'
38
- autoload :WorkflowTriggerRecurrence, 'generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb'
45
+ autoload :EdifactEnvelopeOverride, 'generated/azure_mgmt_logic/models/edifact_envelope_override.rb'
46
+ autoload :PartnerContent, 'generated/azure_mgmt_logic/models/partner_content.rb'
47
+ autoload :KeyVaultKeyReferenceKeyVault, 'generated/azure_mgmt_logic/models/key_vault_key_reference_key_vault.rb'
39
48
  autoload :RecurrenceSchedule, 'generated/azure_mgmt_logic/models/recurrence_schedule.rb'
40
- autoload :RecurrenceScheduleOccurrence, 'generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb'
49
+ autoload :ResourceReference, 'generated/azure_mgmt_logic/models/resource_reference.rb'
41
50
  autoload :WorkflowTriggerFilter, 'generated/azure_mgmt_logic/models/workflow_trigger_filter.rb'
42
- autoload :WorkflowTriggerListResult, 'generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb'
51
+ autoload :EdifactProcessingSettings, 'generated/azure_mgmt_logic/models/edifact_processing_settings.rb'
43
52
  autoload :WorkflowTriggerCallbackUrl, 'generated/azure_mgmt_logic/models/workflow_trigger_callback_url.rb'
53
+ autoload :IntegrationAccountAgreementListResult, 'generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb'
44
54
  autoload :Correlation, 'generated/azure_mgmt_logic/models/correlation.rb'
45
- autoload :ContentLink, 'generated/azure_mgmt_logic/models/content_link.rb'
55
+ autoload :EdifactMessageFilter, 'generated/azure_mgmt_logic/models/edifact_message_filter.rb'
46
56
  autoload :ContentHash, 'generated/azure_mgmt_logic/models/content_hash.rb'
47
- autoload :WorkflowTriggerHistoryListResult, 'generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb'
57
+ autoload :AgreementContent, 'generated/azure_mgmt_logic/models/agreement_content.rb'
48
58
  autoload :WorkflowTriggerHistoryFilter, 'generated/azure_mgmt_logic/models/workflow_trigger_history_filter.rb'
59
+ autoload :AS2AgreementContent, 'generated/azure_mgmt_logic/models/as2agreement_content.rb'
49
60
  autoload :WorkflowRunTrigger, 'generated/azure_mgmt_logic/models/workflow_run_trigger.rb'
61
+ autoload :AS2OneWayAgreement, 'generated/azure_mgmt_logic/models/as2one_way_agreement.rb'
50
62
  autoload :WorkflowRunFilter, 'generated/azure_mgmt_logic/models/workflow_run_filter.rb'
51
- autoload :WorkflowRunListResult, 'generated/azure_mgmt_logic/models/workflow_run_list_result.rb'
52
- autoload :WorkflowRunActionFilter, 'generated/azure_mgmt_logic/models/workflow_run_action_filter.rb'
63
+ autoload :AS2ProtocolSettings, 'generated/azure_mgmt_logic/models/as2protocol_settings.rb'
64
+ autoload :EdifactDelimiterOverride, 'generated/azure_mgmt_logic/models/edifact_delimiter_override.rb'
65
+ autoload :AS2MessageConnectionSettings, 'generated/azure_mgmt_logic/models/as2message_connection_settings.rb'
53
66
  autoload :WorkflowRunActionListResult, 'generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb'
67
+ autoload :AS2AcknowledgementConnectionSettings, 'generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb'
68
+ autoload :IntegrationAccountResource, 'generated/azure_mgmt_logic/models/integration_account_resource.rb'
69
+ autoload :AS2MdnSettings, 'generated/azure_mgmt_logic/models/as2mdn_settings.rb'
70
+ autoload :IntegrationAccountContentHash, 'generated/azure_mgmt_logic/models/integration_account_content_hash.rb'
71
+ autoload :AS2SecuritySettings, 'generated/azure_mgmt_logic/models/as2security_settings.rb'
72
+ autoload :IntegrationAccountSku, 'generated/azure_mgmt_logic/models/integration_account_sku.rb'
73
+ autoload :AS2ValidationSettings, 'generated/azure_mgmt_logic/models/as2validation_settings.rb'
74
+ autoload :ListCallbackUrlParameters, 'generated/azure_mgmt_logic/models/list_callback_url_parameters.rb'
75
+ autoload :AS2EnvelopeSettings, 'generated/azure_mgmt_logic/models/as2envelope_settings.rb'
76
+ autoload :EdifactSchemaReference, 'generated/azure_mgmt_logic/models/edifact_schema_reference.rb'
77
+ autoload :AS2ErrorSettings, 'generated/azure_mgmt_logic/models/as2error_settings.rb'
78
+ autoload :IntegrationAccountSchemaFilter, 'generated/azure_mgmt_logic/models/integration_account_schema_filter.rb'
79
+ autoload :X12AgreementContent, 'generated/azure_mgmt_logic/models/x12agreement_content.rb'
80
+ autoload :IntegrationAccountMapListResult, 'generated/azure_mgmt_logic/models/integration_account_map_list_result.rb'
81
+ autoload :X12OneWayAgreement, 'generated/azure_mgmt_logic/models/x12one_way_agreement.rb'
82
+ autoload :WorkflowListResult, 'generated/azure_mgmt_logic/models/workflow_list_result.rb'
83
+ autoload :X12ProtocolSettings, 'generated/azure_mgmt_logic/models/x12protocol_settings.rb'
84
+ autoload :WorkflowTriggerRecurrence, 'generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb'
85
+ autoload :X12ValidationSettings, 'generated/azure_mgmt_logic/models/x12validation_settings.rb'
86
+ autoload :WorkflowTriggerListResult, 'generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb'
87
+ autoload :X12FramingSettings, 'generated/azure_mgmt_logic/models/x12framing_settings.rb'
88
+ autoload :ContentLink, 'generated/azure_mgmt_logic/models/content_link.rb'
89
+ autoload :X12EnvelopeSettings, 'generated/azure_mgmt_logic/models/x12envelope_settings.rb'
90
+ autoload :IntegrationAccountCertificateListResult, 'generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb'
91
+ autoload :X12AcknowledgementSettings, 'generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb'
92
+ autoload :WorkflowRunListResult, 'generated/azure_mgmt_logic/models/workflow_run_list_result.rb'
93
+ autoload :X12MessageFilter, 'generated/azure_mgmt_logic/models/x12message_filter.rb'
54
94
  autoload :GenerateUpgradedDefinitionParameters, 'generated/azure_mgmt_logic/models/generate_upgraded_definition_parameters.rb'
95
+ autoload :X12SecuritySettings, 'generated/azure_mgmt_logic/models/x12security_settings.rb'
96
+ autoload :EdifactValidationOverride, 'generated/azure_mgmt_logic/models/edifact_validation_override.rb'
97
+ autoload :X12ProcessingSettings, 'generated/azure_mgmt_logic/models/x12processing_settings.rb'
98
+ autoload :CallbackUrl, 'generated/azure_mgmt_logic/models/callback_url.rb'
99
+ autoload :X12EnvelopeOverride, 'generated/azure_mgmt_logic/models/x12envelope_override.rb'
100
+ autoload :EdifactMessageIdentifier, 'generated/azure_mgmt_logic/models/edifact_message_identifier.rb'
101
+ autoload :X12ValidationOverride, 'generated/azure_mgmt_logic/models/x12validation_override.rb'
102
+ autoload :WorkflowVersionListResult, 'generated/azure_mgmt_logic/models/workflow_version_list_result.rb'
103
+ autoload :X12MessageIdentifier, 'generated/azure_mgmt_logic/models/x12message_identifier.rb'
104
+ autoload :KeyVaultKeyReference, 'generated/azure_mgmt_logic/models/key_vault_key_reference.rb'
105
+ autoload :X12SchemaReference, 'generated/azure_mgmt_logic/models/x12schema_reference.rb'
106
+ autoload :IntegrationAccountAgreementFilter, 'generated/azure_mgmt_logic/models/integration_account_agreement_filter.rb'
107
+ autoload :X12DelimiterOverrides, 'generated/azure_mgmt_logic/models/x12delimiter_overrides.rb'
108
+ autoload :IntegrationAccountContentLink, 'generated/azure_mgmt_logic/models/integration_account_content_link.rb'
109
+ autoload :EdifactAgreementContent, 'generated/azure_mgmt_logic/models/edifact_agreement_content.rb'
110
+ autoload :IntegrationAccountSchemaListResult, 'generated/azure_mgmt_logic/models/integration_account_schema_list_result.rb'
111
+ autoload :EdifactOneWayAgreement, 'generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb'
112
+ autoload :RecurrenceScheduleOccurrence, 'generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb'
113
+ autoload :EdifactProtocolSettings, 'generated/azure_mgmt_logic/models/edifact_protocol_settings.rb'
114
+ autoload :WorkflowRunActionFilter, 'generated/azure_mgmt_logic/models/workflow_run_action_filter.rb'
115
+ autoload :EdifactValidationSettings, 'generated/azure_mgmt_logic/models/edifact_validation_settings.rb'
116
+ autoload :WorkflowParameter, 'generated/azure_mgmt_logic/models/workflow_parameter.rb'
117
+ autoload :EdifactFramingSettings, 'generated/azure_mgmt_logic/models/edifact_framing_settings.rb'
118
+ autoload :IntegrationAccountListResult, 'generated/azure_mgmt_logic/models/integration_account_list_result.rb'
119
+ autoload :EdifactEnvelopeSettings, 'generated/azure_mgmt_logic/models/edifact_envelope_settings.rb'
120
+ autoload :WorkflowTriggerHistoryListResult, 'generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb'
121
+ autoload :EdifactAcknowledgementSettings, 'generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb'
55
122
  autoload :Workflow, 'generated/azure_mgmt_logic/models/workflow.rb'
56
123
  autoload :WorkflowVersion, 'generated/azure_mgmt_logic/models/workflow_version.rb'
57
124
  autoload :WorkflowTrigger, 'generated/azure_mgmt_logic/models/workflow_trigger.rb'
@@ -59,6 +126,12 @@ module Azure::ARM::Logic
59
126
  autoload :WorkflowRun, 'generated/azure_mgmt_logic/models/workflow_run.rb'
60
127
  autoload :WorkflowOutputParameter, 'generated/azure_mgmt_logic/models/workflow_output_parameter.rb'
61
128
  autoload :WorkflowRunAction, 'generated/azure_mgmt_logic/models/workflow_run_action.rb'
129
+ autoload :IntegrationAccount, 'generated/azure_mgmt_logic/models/integration_account.rb'
130
+ autoload :IntegrationAccountSchema, 'generated/azure_mgmt_logic/models/integration_account_schema.rb'
131
+ autoload :IntegrationAccountMap, 'generated/azure_mgmt_logic/models/integration_account_map.rb'
132
+ autoload :IntegrationAccountPartner, 'generated/azure_mgmt_logic/models/integration_account_partner.rb'
133
+ autoload :IntegrationAccountAgreement, 'generated/azure_mgmt_logic/models/integration_account_agreement.rb'
134
+ autoload :IntegrationAccountCertificate, 'generated/azure_mgmt_logic/models/integration_account_certificate.rb'
62
135
  autoload :WorkflowProvisioningState, 'generated/azure_mgmt_logic/models/workflow_provisioning_state.rb'
63
136
  autoload :WorkflowState, 'generated/azure_mgmt_logic/models/workflow_state.rb'
64
137
  autoload :SkuName, 'generated/azure_mgmt_logic/models/sku_name.rb'
@@ -69,5 +142,20 @@ module Azure::ARM::Logic
69
142
  autoload :DaysOfWeek, 'generated/azure_mgmt_logic/models/days_of_week.rb'
70
143
  autoload :DayOfWeek, 'generated/azure_mgmt_logic/models/day_of_week.rb'
71
144
  autoload :KeyType, 'generated/azure_mgmt_logic/models/key_type.rb'
145
+ autoload :SchemaType, 'generated/azure_mgmt_logic/models/schema_type.rb'
146
+ autoload :MapType, 'generated/azure_mgmt_logic/models/map_type.rb'
147
+ autoload :PartnerType, 'generated/azure_mgmt_logic/models/partner_type.rb'
148
+ autoload :AgreementType, 'generated/azure_mgmt_logic/models/agreement_type.rb'
149
+ autoload :HashingAlgorithm, 'generated/azure_mgmt_logic/models/hashing_algorithm.rb'
150
+ autoload :EncryptionAlgorithm, 'generated/azure_mgmt_logic/models/encryption_algorithm.rb'
151
+ autoload :TrailingSeparatorPolicy, 'generated/azure_mgmt_logic/models/trailing_separator_policy.rb'
152
+ autoload :X12CharacterSet, 'generated/azure_mgmt_logic/models/x12character_set.rb'
153
+ autoload :SegmentTerminatorSuffix, 'generated/azure_mgmt_logic/models/segment_terminator_suffix.rb'
154
+ autoload :X12DateFormat, 'generated/azure_mgmt_logic/models/x12date_format.rb'
155
+ autoload :X12TimeFormat, 'generated/azure_mgmt_logic/models/x12time_format.rb'
156
+ autoload :UsageIndicator, 'generated/azure_mgmt_logic/models/usage_indicator.rb'
157
+ autoload :MessageFilterType, 'generated/azure_mgmt_logic/models/message_filter_type.rb'
158
+ autoload :EdifactCharacterSet, 'generated/azure_mgmt_logic/models/edifact_character_set.rb'
159
+ autoload :EdifactDecimalIndicator, 'generated/azure_mgmt_logic/models/edifact_decimal_indicator.rb'
72
160
  end
73
161
  end
@@ -0,0 +1,534 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Logic
7
+ #
8
+ # Composite Swagger for Logic Management Client
9
+ #
10
+ class IntegrationAccountAgreements
11
+ include Azure::ARM::Logic::Models
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the IntegrationAccountAgreements class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return [LogicManagementClient] reference to the LogicManagementClient
23
+ attr_reader :client
24
+
25
+ #
26
+ # Gets a list of integration account agreements.
27
+ #
28
+ # @param resource_group_name [String] The resource group name.
29
+ # @param integration_account_name [String] The integration account name.
30
+ # @param top [Integer] The number of items to be included in the result.
31
+ # @param filter [String] The filter to apply on the operation.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [Array<IntegrationAccountAgreement>] operation results.
36
+ #
37
+ def list(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
38
+ first_page = list_as_lazy(resource_group_name, integration_account_name, top, filter, custom_headers)
39
+ first_page.get_all_items
40
+ end
41
+
42
+ #
43
+ # Gets a list of integration account agreements.
44
+ #
45
+ # @param resource_group_name [String] The resource group name.
46
+ # @param integration_account_name [String] The integration account name.
47
+ # @param top [Integer] The number of items to be included in the result.
48
+ # @param filter [String] The filter to apply on the operation.
49
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
50
+ # will be added to the HTTP request.
51
+ #
52
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
53
+ #
54
+ def list_with_http_info(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
55
+ list_async(resource_group_name, integration_account_name, top, filter, custom_headers).value!
56
+ end
57
+
58
+ #
59
+ # Gets a list of integration account agreements.
60
+ #
61
+ # @param resource_group_name [String] The resource group name.
62
+ # @param integration_account_name [String] The integration account name.
63
+ # @param top [Integer] The number of items to be included in the result.
64
+ # @param filter [String] The filter to apply on the operation.
65
+ # @param [Hash{String => String}] A hash of custom headers that will be added
66
+ # to the HTTP request.
67
+ #
68
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
69
+ #
70
+ def list_async(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
71
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
72
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
73
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
74
+ api_version = '2015-08-01-preview'
75
+
76
+
77
+ request_headers = {}
78
+
79
+ # Set Headers
80
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
81
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
82
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements'
83
+
84
+ request_url = @base_url || @client.base_url
85
+
86
+ options = {
87
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
88
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
89
+ query_params: {'api-version' => api_version,'$top' => top,'$filter' => filter},
90
+ headers: request_headers.merge(custom_headers || {}),
91
+ base_url: request_url
92
+ }
93
+ promise = @client.make_request_async(:get, path_template, options)
94
+
95
+ promise = promise.then do |result|
96
+ http_response = result.response
97
+ status_code = http_response.status
98
+ response_content = http_response.body
99
+ unless status_code == 200
100
+ error_model = JSON.load(response_content)
101
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
102
+ end
103
+
104
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
105
+ # Deserialize Response
106
+ if status_code == 200
107
+ begin
108
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
109
+ result_mapper = IntegrationAccountAgreementListResult.mapper()
110
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
111
+ rescue Exception => e
112
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
113
+ end
114
+ end
115
+
116
+ result
117
+ end
118
+
119
+ promise.execute
120
+ end
121
+
122
+ #
123
+ # Gets an integration account agreement.
124
+ #
125
+ # @param resource_group_name [String] The resource group name.
126
+ # @param integration_account_name [String] The integration account name.
127
+ # @param agreement_name [String] The integration account agreement name.
128
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
+ # will be added to the HTTP request.
130
+ #
131
+ # @return [IntegrationAccountAgreement] operation results.
132
+ #
133
+ def get(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
134
+ response = get_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value!
135
+ response.body unless response.nil?
136
+ end
137
+
138
+ #
139
+ # Gets an integration account agreement.
140
+ #
141
+ # @param resource_group_name [String] The resource group name.
142
+ # @param integration_account_name [String] The integration account name.
143
+ # @param agreement_name [String] The integration account agreement name.
144
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
145
+ # will be added to the HTTP request.
146
+ #
147
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
148
+ #
149
+ def get_with_http_info(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
150
+ get_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value!
151
+ end
152
+
153
+ #
154
+ # Gets an integration account agreement.
155
+ #
156
+ # @param resource_group_name [String] The resource group name.
157
+ # @param integration_account_name [String] The integration account name.
158
+ # @param agreement_name [String] The integration account agreement name.
159
+ # @param [Hash{String => String}] A hash of custom headers that will be added
160
+ # to the HTTP request.
161
+ #
162
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
163
+ #
164
+ def get_async(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
165
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
166
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
167
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
168
+ fail ArgumentError, 'agreement_name is nil' if agreement_name.nil?
169
+ api_version = '2015-08-01-preview'
170
+
171
+
172
+ request_headers = {}
173
+
174
+ # Set Headers
175
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
176
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
177
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'
178
+
179
+ request_url = @base_url || @client.base_url
180
+
181
+ options = {
182
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
183
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'agreementName' => agreement_name},
184
+ query_params: {'api-version' => api_version},
185
+ headers: request_headers.merge(custom_headers || {}),
186
+ base_url: request_url
187
+ }
188
+ promise = @client.make_request_async(:get, path_template, options)
189
+
190
+ promise = promise.then do |result|
191
+ http_response = result.response
192
+ status_code = http_response.status
193
+ response_content = http_response.body
194
+ unless status_code == 200
195
+ error_model = JSON.load(response_content)
196
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
197
+ end
198
+
199
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
200
+ # Deserialize Response
201
+ if status_code == 200
202
+ begin
203
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
204
+ result_mapper = IntegrationAccountAgreement.mapper()
205
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
206
+ rescue Exception => e
207
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
208
+ end
209
+ end
210
+
211
+ result
212
+ end
213
+
214
+ promise.execute
215
+ end
216
+
217
+ #
218
+ # Creates or updates an integration account agreement.
219
+ #
220
+ # @param resource_group_name [String] The resource group name.
221
+ # @param integration_account_name [String] The integration account name.
222
+ # @param agreement_name [String] The integration account agreement name.
223
+ # @param agreement [IntegrationAccountAgreement] The integration account
224
+ # agreement.
225
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
226
+ # will be added to the HTTP request.
227
+ #
228
+ # @return [IntegrationAccountAgreement] operation results.
229
+ #
230
+ def create_or_update(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers = nil)
231
+ response = create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers).value!
232
+ response.body unless response.nil?
233
+ end
234
+
235
+ #
236
+ # Creates or updates an integration account agreement.
237
+ #
238
+ # @param resource_group_name [String] The resource group name.
239
+ # @param integration_account_name [String] The integration account name.
240
+ # @param agreement_name [String] The integration account agreement name.
241
+ # @param agreement [IntegrationAccountAgreement] The integration account
242
+ # agreement.
243
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
244
+ # will be added to the HTTP request.
245
+ #
246
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
247
+ #
248
+ def create_or_update_with_http_info(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers = nil)
249
+ create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers).value!
250
+ end
251
+
252
+ #
253
+ # Creates or updates an integration account agreement.
254
+ #
255
+ # @param resource_group_name [String] The resource group name.
256
+ # @param integration_account_name [String] The integration account name.
257
+ # @param agreement_name [String] The integration account agreement name.
258
+ # @param agreement [IntegrationAccountAgreement] The integration account
259
+ # agreement.
260
+ # @param [Hash{String => String}] A hash of custom headers that will be added
261
+ # to the HTTP request.
262
+ #
263
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
264
+ #
265
+ def create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers = nil)
266
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
267
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
268
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
269
+ fail ArgumentError, 'agreement_name is nil' if agreement_name.nil?
270
+ api_version = '2015-08-01-preview'
271
+ fail ArgumentError, 'agreement is nil' if agreement.nil?
272
+
273
+
274
+ request_headers = {}
275
+
276
+ # Set Headers
277
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
278
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
279
+
280
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
281
+
282
+ # Serialize Request
283
+ request_mapper = IntegrationAccountAgreement.mapper()
284
+ request_content = @client.serialize(request_mapper, agreement, 'agreement')
285
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
286
+
287
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'
288
+
289
+ request_url = @base_url || @client.base_url
290
+
291
+ options = {
292
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
293
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'agreementName' => agreement_name},
294
+ query_params: {'api-version' => api_version},
295
+ body: request_content,
296
+ headers: request_headers.merge(custom_headers || {}),
297
+ base_url: request_url
298
+ }
299
+ promise = @client.make_request_async(:put, path_template, options)
300
+
301
+ promise = promise.then do |result|
302
+ http_response = result.response
303
+ status_code = http_response.status
304
+ response_content = http_response.body
305
+ unless status_code == 200 || status_code == 201
306
+ error_model = JSON.load(response_content)
307
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
308
+ end
309
+
310
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
311
+ # Deserialize Response
312
+ if status_code == 200
313
+ begin
314
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
315
+ result_mapper = IntegrationAccountAgreement.mapper()
316
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
317
+ rescue Exception => e
318
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
319
+ end
320
+ end
321
+ # Deserialize Response
322
+ if status_code == 201
323
+ begin
324
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
325
+ result_mapper = IntegrationAccountAgreement.mapper()
326
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
327
+ rescue Exception => e
328
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
329
+ end
330
+ end
331
+
332
+ result
333
+ end
334
+
335
+ promise.execute
336
+ end
337
+
338
+ #
339
+ # Deletes an integration account agreement.
340
+ #
341
+ # @param resource_group_name [String] The resource group name.
342
+ # @param integration_account_name [String] The integration account name.
343
+ # @param agreement_name [String] The integration account agreement name.
344
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
345
+ # will be added to the HTTP request.
346
+ #
347
+ #
348
+ def delete(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
349
+ response = delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value!
350
+ nil
351
+ end
352
+
353
+ #
354
+ # Deletes an integration account agreement.
355
+ #
356
+ # @param resource_group_name [String] The resource group name.
357
+ # @param integration_account_name [String] The integration account name.
358
+ # @param agreement_name [String] The integration account agreement name.
359
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
360
+ # will be added to the HTTP request.
361
+ #
362
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
363
+ #
364
+ def delete_with_http_info(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
365
+ delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value!
366
+ end
367
+
368
+ #
369
+ # Deletes an integration account agreement.
370
+ #
371
+ # @param resource_group_name [String] The resource group name.
372
+ # @param integration_account_name [String] The integration account name.
373
+ # @param agreement_name [String] The integration account agreement name.
374
+ # @param [Hash{String => String}] A hash of custom headers that will be added
375
+ # to the HTTP request.
376
+ #
377
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
378
+ #
379
+ def delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
380
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
381
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
382
+ fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
383
+ fail ArgumentError, 'agreement_name is nil' if agreement_name.nil?
384
+ api_version = '2015-08-01-preview'
385
+
386
+
387
+ request_headers = {}
388
+
389
+ # Set Headers
390
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
391
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
392
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'
393
+
394
+ request_url = @base_url || @client.base_url
395
+
396
+ options = {
397
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
398
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'agreementName' => agreement_name},
399
+ query_params: {'api-version' => api_version},
400
+ headers: request_headers.merge(custom_headers || {}),
401
+ base_url: request_url
402
+ }
403
+ promise = @client.make_request_async(:delete, path_template, options)
404
+
405
+ promise = promise.then do |result|
406
+ http_response = result.response
407
+ status_code = http_response.status
408
+ response_content = http_response.body
409
+ unless status_code == 200 || status_code == 204
410
+ error_model = JSON.load(response_content)
411
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
412
+ end
413
+
414
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
415
+
416
+ result
417
+ end
418
+
419
+ promise.execute
420
+ end
421
+
422
+ #
423
+ # Gets a list of integration account agreements.
424
+ #
425
+ # @param next_page_link [String] The NextLink from the previous successful call
426
+ # to List operation.
427
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
428
+ # will be added to the HTTP request.
429
+ #
430
+ # @return [IntegrationAccountAgreementListResult] operation results.
431
+ #
432
+ def list_next(next_page_link, custom_headers = nil)
433
+ response = list_next_async(next_page_link, custom_headers).value!
434
+ response.body unless response.nil?
435
+ end
436
+
437
+ #
438
+ # Gets a list of integration account agreements.
439
+ #
440
+ # @param next_page_link [String] The NextLink from the previous successful call
441
+ # to List operation.
442
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
443
+ # will be added to the HTTP request.
444
+ #
445
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
446
+ #
447
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
448
+ list_next_async(next_page_link, custom_headers).value!
449
+ end
450
+
451
+ #
452
+ # Gets a list of integration account agreements.
453
+ #
454
+ # @param next_page_link [String] The NextLink from the previous successful call
455
+ # to List operation.
456
+ # @param [Hash{String => String}] A hash of custom headers that will be added
457
+ # to the HTTP request.
458
+ #
459
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
460
+ #
461
+ def list_next_async(next_page_link, custom_headers = nil)
462
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
463
+
464
+
465
+ request_headers = {}
466
+
467
+ # Set Headers
468
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
469
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
470
+ path_template = '{nextLink}'
471
+
472
+ request_url = @base_url || @client.base_url
473
+
474
+ options = {
475
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
476
+ skip_encoding_path_params: {'nextLink' => next_page_link},
477
+ headers: request_headers.merge(custom_headers || {}),
478
+ base_url: request_url
479
+ }
480
+ promise = @client.make_request_async(:get, path_template, options)
481
+
482
+ promise = promise.then do |result|
483
+ http_response = result.response
484
+ status_code = http_response.status
485
+ response_content = http_response.body
486
+ unless status_code == 200
487
+ error_model = JSON.load(response_content)
488
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
489
+ end
490
+
491
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
492
+ # Deserialize Response
493
+ if status_code == 200
494
+ begin
495
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
496
+ result_mapper = IntegrationAccountAgreementListResult.mapper()
497
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
498
+ rescue Exception => e
499
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
500
+ end
501
+ end
502
+
503
+ result
504
+ end
505
+
506
+ promise.execute
507
+ end
508
+
509
+ #
510
+ # Gets a list of integration account agreements.
511
+ #
512
+ # @param resource_group_name [String] The resource group name.
513
+ # @param integration_account_name [String] The integration account name.
514
+ # @param top [Integer] The number of items to be included in the result.
515
+ # @param filter [String] The filter to apply on the operation.
516
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
517
+ # will be added to the HTTP request.
518
+ #
519
+ # @return [IntegrationAccountAgreementListResult] which provide lazy access to
520
+ # pages of the response.
521
+ #
522
+ def list_as_lazy(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
523
+ response = list_async(resource_group_name, integration_account_name, top, filter, custom_headers).value!
524
+ unless response.nil?
525
+ page = response.body
526
+ page.next_method = Proc.new do |next_page_link|
527
+ list_next_async(next_page_link, custom_headers)
528
+ end
529
+ page
530
+ end
531
+ end
532
+
533
+ end
534
+ end