Class: GetScimV2ServiceProviderConfigResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetScimV2ServiceProviderConfigResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 |
# File 'lib/schemas.rb', line 15237 def self.from_dynamic!(d) d = Types::Hash[d] new( authentication_schemes: d["authenticationSchemes"]&.map { |x| GetScimV2ServiceProviderConfigResponseAuthenticationSchemesItem.from_dynamic!(x) }, bulk: d["bulk"] ? GetScimV2ServiceProviderConfigResponseBulk.from_dynamic!(d["bulk"]) : nil, change_password: d["changePassword"] ? GetScimV2ServiceProviderConfigResponseChangePassword.from_dynamic!(d["changePassword"]) : nil, documentation_uri: d["documentationUri"], etag: d["etag"] ? GetScimV2ServiceProviderConfigResponseEtag.from_dynamic!(d["etag"]) : nil, filter: d["filter"] ? GetScimV2ServiceProviderConfigResponseFilter.from_dynamic!(d["filter"]) : nil, get_scim_v2_service_provider_config_response_meta: d["meta"] ? GetScimV2ServiceProviderConfigResponseMeta.from_dynamic!(d["meta"]) : nil, patch: d["patch"] ? GetScimV2ServiceProviderConfigResponsePatch.from_dynamic!(d["patch"]) : nil, schemas: d["schemas"], sort: d["sort"] ? GetScimV2ServiceProviderConfigResponseSort.from_dynamic!(d["sort"]) : nil, ) end |
.from_json!(json) ⇒ Object
15253 15254 15255 |
# File 'lib/schemas.rb', line 15253 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 |
# File 'lib/schemas.rb', line 15257 def to_dynamic { "authenticationSchemes" => authentication_schemes&.map { |x| x.to_dynamic }, "bulk" => bulk&.to_dynamic, "changePassword" => change_password&.to_dynamic, "documentationUri" => documentation_uri, "etag" => etag&.to_dynamic, "filter" => filter&.to_dynamic, "meta" => &.to_dynamic, "patch" => patch&.to_dynamic, "schemas" => schemas, "sort" => sort&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
15272 15273 15274 |
# File 'lib/schemas.rb', line 15272 def to_json( = nil) JSON.generate(to_dynamic, ) end |