Class: Azure::ARM::Scheduler::Models::HttpRequest
- Inherits:
-
Object
- Object
- Azure::ARM::Scheduler::Models::HttpRequest
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_scheduler/models/http_request.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#authentication ⇒ HttpAuthentication
Gets or sets the http authentication.
-
#body ⇒ String
Gets or sets the request body.
-
#headers ⇒ Hash{String => String}
Gets or sets the headers.
-
#method ⇒ String
Gets or sets the method of the request.
-
#uri ⇒ String
Gets or sets the Uri.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for HttpRequest class as Ruby Hash.
Instance Attribute Details
#authentication ⇒ HttpAuthentication
Returns Gets or sets the http authentication.
16 17 18 |
# File 'lib/generated/azure_mgmt_scheduler/models/http_request.rb', line 16 def authentication @authentication end |
#body ⇒ String
Returns Gets or sets the request body.
25 26 27 |
# File 'lib/generated/azure_mgmt_scheduler/models/http_request.rb', line 25 def body @body end |
#headers ⇒ Hash{String => String}
Returns Gets or sets the headers.
28 29 30 |
# File 'lib/generated/azure_mgmt_scheduler/models/http_request.rb', line 28 def headers @headers end |
#method ⇒ String
Returns Gets or sets the method of the request.
22 23 24 |
# File 'lib/generated/azure_mgmt_scheduler/models/http_request.rb', line 22 def method @method end |
#uri ⇒ String
Returns Gets or sets the Uri.
19 20 21 |
# File 'lib/generated/azure_mgmt_scheduler/models/http_request.rb', line 19 def uri @uri end |
Class Method Details
.mapper ⇒ Object
Mapper for HttpRequest class as Ruby Hash. This will be used for serialization/deserialization.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/generated/azure_mgmt_scheduler/models/http_request.rb', line 35 def self.mapper() { required: false, serialized_name: 'HttpRequest', type: { name: 'Composite', class_name: 'HttpRequest', model_properties: { authentication: { required: false, serialized_name: 'authentication', type: { name: 'Composite', class_name: 'HttpAuthentication' } }, uri: { required: false, serialized_name: 'uri', type: { name: 'String' } }, method: { required: false, serialized_name: 'method', type: { name: 'String' } }, body: { required: false, serialized_name: 'body', type: { name: 'String' } }, headers: { required: false, serialized_name: 'headers', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |